/* JátékSpill — light editorial gaming reviews */
:root {
  --ink: #12141a;
  --ink-soft: #3a3f4a;
  --muted: #6b7280;
  --paper: #f7f8fa;
  --paper-2: #eef1f5;
  --white: #ffffff;
  --line: rgba(18, 20, 26, 0.1);
  --accent: #0b7a6f;
  --accent-2: #e4572e;
  --accent-soft: rgba(11, 122, 111, 0.12);
  --glow: rgba(11, 122, 111, 0.22);
  --score-ring: #0b7a6f;
  --nav-h: 4.25rem;
  --max: 72rem;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(18, 20, 26, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(11, 122, 111, 0.09), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(228, 87, 46, 0.07), transparent 50%),
    linear-gradient(180deg, #fbfcfd 0%, var(--paper) 40%, var(--paper-2) 100%);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}

.brand em,
.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(247, 248, 250, 0.96) 0%, rgba(247, 248, 250, 0.78) 38%, rgba(18, 20, 26, 0.15) 70%, rgba(18, 20, 26, 0.45) 100%),
    linear-gradient(0deg, rgba(18, 20, 26, 0.55) 0%, transparent 45%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 36rem;
  animation: riseIn 0.9s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 28px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #09665c;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.hero-score {
  position: absolute;
  right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 4.5rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  animation: riseIn 1s 0.2s var(--ease) both;
}

.hero-score strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.hero-score span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* —— Sections —— */
.section {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 4.5rem 0 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.98rem;
}

/* —— Review rail —— */
.review-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.review-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  border-radius: 1rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  opacity: 0;
  transform: translateY(16px);
}

.review-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.review-item:hover {
  background: var(--white);
  border-color: var(--line);
  transform: translateY(-3px);
}

.review-item.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.review-thumb {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 7.5rem;
  background: var(--paper-2);
}

.review-item.is-featured .review-thumb {
  min-height: 14rem;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.review-item:hover .review-thumb img {
  transform: scale(1.06);
}

.review-score {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.review-score.high {
  background: var(--accent);
}

.review-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0.5rem 0.35rem 0;
  gap: 0.35rem;
}

.review-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.review-tag.warn {
  color: var(--accent-2);
}

.review-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.review-item.is-featured h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.review-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-item.is-featured p {
  -webkit-line-clamp: 4;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Featured Slotoro essay —— */
.slotoro-panel {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(11, 122, 111, 0.08), transparent 45%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.slotoro-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.slotoro-panel .kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.slotoro-panel p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.slotoro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.stat {
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

.slotoro-visual {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  min-height: 18rem;
}

.slotoro-visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.slotoro-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner strong {
  color: var(--ink);
  font-family: var(--font-display);
}

/* —— Review page —— */
.article-hero {
  width: min(100% - 2rem, 48rem);
  margin: 2.5rem auto 0;
}

.article-hero .kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}

.article-cover {
  width: min(100%, var(--max));
  margin: 1.5rem auto 0;
  max-height: 28rem;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
}

.article-body {
  width: min(100% - 2rem, 42rem);
  margin: 2rem auto 4rem;
}

.article-body p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.verdict {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.85rem 0.85rem 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

  .nav-links.open a {
    padding: 0.9rem 1.25rem;
  }

  .hero-score {
    right: 1rem;
    bottom: 1.5rem;
    width: 5.25rem;
    height: 5.25rem;
  }

  .hero-score strong {
    font-size: 1.55rem;
  }

  .review-rail {
    grid-template-columns: 1fr;
  }

  .review-item,
  .review-item.is-featured {
    grid-template-columns: 7.5rem 1fr;
  }

  .review-item.is-featured .review-thumb {
    min-height: 8rem;
  }

  .slotoro-panel {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .slotoro-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }

  .review-item,
  .review-item.is-featured {
    grid-template-columns: 1fr;
  }

  .review-thumb,
  .review-item.is-featured .review-thumb {
    min-height: 11rem;
  }

  .hero-content {
    margin-bottom: 7rem;
  }
}
