/* Growing Legacy */
:root {
  --bg: #0a0f14;
  --bg-elevated: #111820;
  --bg-soft: #151c24;
  --surface: #1a222c;
  --border: #2a3540;
  --text: #e4e8ec;
  --text-muted: #8f9aa6;
  --accent: #1a9b8e;
  --accent-hover: #178f83;
  --danger: #c94a4a;
  --focus: #6eb8ff;
  --radius: 6px;
  --header-h: 64px;
  --font-body: "Source Sans 3", sans-serif;
  --transition: 0.15s ease;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent-hover);
}

.nav-desktop {
  display: none;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
  z-index: 950;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 960;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.nav-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:active {
  opacity: 0.9;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 15, 20, 0.72);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.5rem;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

/* Rank list */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rank-list__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.rank-list__item:last-child {
  border-bottom: 0;
}

.rank-list__place {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.rank-list__name {
  font-weight: 600;
}

.rank-list__score {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

#play-now .section__head {
  margin: 2rem auto;
  text-align: center;
}

#play-now .game-embed {
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-elevated);
  position: relative;
}

.section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section__head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Games */
.games-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.game-card__image-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.game-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.game-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.game-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.game-card .btn {
  margin-top: 0.35rem;
  min-height: 42px;
  font-size: 0.95rem;
}

/* Disclaimer */
.disclaimer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.disclaimer p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.disclaimer ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.disclaimer__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.disclaimer__head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.disclaimer__head img {
  flex-shrink: 0;
}

.disclaimer__note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.disclaimer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* Game embed */
.game-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 16 / 10;
  max-height: min(70vh, 620px);
}

.game-embed__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1850;
}

.chat-widget__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.chat-widget__toggle:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.chat-widget__toggle-icon {
  width: 26px;
  height: 26px;
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(calc(100vw - 2rem), 380px);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  overflow: hidden;
}

.chat-widget__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.chat-widget__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.chat-widget__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  max-height: 320px;
}

.chat-widget__message {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 88%;
}

.chat-widget__message--user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-widget__message--bot {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-widget__bubble {
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius) + 2px);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-widget__message--user .chat-widget__bubble {
  background: var(--accent);
  color: #fff;
}

.chat-widget__message--bot .chat-widget__bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-widget__link {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.chat-widget__link:hover {
  color: var(--text);
  text-decoration: underline;
}

.chat-widget__typing {
  display: none;
  gap: 0.35rem;
  padding: 0 1rem 0.5rem;
}

.chat-widget__typing.is-visible {
  display: flex;
}

.chat-widget__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-widget__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-widget__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-widget__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.chat-widget__input {
  flex: 1;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.chat-widget__input:focus {
  border-color: var(--accent);
  outline: none;
}

.chat-widget__send {
  min-height: 44px;
  padding-inline: 1rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chat-widget__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
    transform: translateY(100%);
  }

  .chat-widget__panel.is-open {
    transform: translateY(0);
  }

  .chat-widget__messages {
    max-height: none;
  }
}

/* Performance */
.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.page-hero h1 {
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.benefit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefit-item {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.benefit-item h3 {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
}

.benefit-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.form-card,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.map-wrap {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  background: #0a1218;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__panel {
  display: none;
}

.faq-item__panel-inner {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

/* Footer */
.site-footer {
  background: #050a0e;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h2,
.footer-col__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-address {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(100%, 460px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.modal h2 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.modal p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .modal__actions {
    flex-direction: row;
  }

  .modal__actions .btn {
    flex: 1;
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.modal-wrap {
  position: relative;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  background: rgba(10, 18, 24, 0.97);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.is-hiding {
  transform: translateY(110%);
  opacity: 0;
}

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 800px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
  }
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Category tiles */
.category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 100px;
  padding: 1rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.category-tile:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--text);
}

.category-tile__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Media block */
.media-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .media-block {
    grid-template-columns: 1fr 1fr;
  }

  .media-block--reverse .media-block__media {
    order: 2;
  }
}

.media-block__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg);
}

.media-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-block__content h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.media-block__content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.media-block__content p:last-child {
  margin-bottom: 0;
}

/* Footer brand */
.footer-brand {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand__logo {
  font-size: 1.15rem;
}

.footer-brand__logo .logo__mark {
  width: 48px;
  height: 48px;
}

/* How it works */
.steps-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.step-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  color: var(--accent);
}

.step-card__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Reviews carousel */
.reviews-carousel {
  position: relative;
}

.reviews-track {
  overflow: hidden;
}

.reviews-slides {
  display: flex;
  transition: transform 0.35s ease;
}

.review-card {
  flex: 0 0 100%;
  padding: 0 0.25rem;
}

.review-card__inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.35rem;
  min-height: 180px;
}

.review-card__stars {
  color: #e8b84a;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.review-card__quote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
}

.review-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.review-card__game {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent-hover);
  font-size: 0.88rem;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.reviews-nav__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.reviews-nav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reviews-dots {
  display: flex;
  gap: 0.45rem;
}

.reviews-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.reviews-dots button.is-active {
  background: var(--accent);
}

/* Games filter */
.games-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.games-filter__btn {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.games-filter__btn:hover,
.games-filter__btn.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}

.game-card.is-hidden {
  display: none;
}

.games-empty {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.games-empty.is-visible {
  display: block;
}
