:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #eef2f7;
  --text: #1b2430;
  --muted: #5c6c80;
  --accent: #6c7886;
  --accent-2: #334155;
  --hot: #8b97a6;
  --new: #6d7a89;
  --border: rgba(15, 23, 35, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 35, 0.14);
  --header-height: 96px;
  --sidebar-width: 0px;
  --page-max-width: 1680px;
  --page-desktop-padding: clamp(56px, 6vw, 128px);
  --home-layout-max-width: 1200px;
  --static-layout-max-width: 860px;
  --static-layout-wide-max-width: 1240px;
  --taxonomy-layout-max-width: 1200px;
  --taxonomy-grid-gap: 18px;
  --radius: 18px;
  --rail-card-width: 200px;
  --rail-padding: 16px;
  --rail-gap: 12px;
  --home-rail-card-width: 166px;
  --home-rail-padding: 12px;
  --home-rail-gap: 10px;
  --category-chip-bg: #7a5538;
  --category-chip-bg-top: #98704c;
  --category-chip-text: #f7eadc;
  --recommend-gap: 10px;
  --fnaf-btn-top: #4f5b69;
  --fnaf-btn-mid: #2f3946;
  --fnaf-btn-bottom: #18202a;
  --fnaf-btn-border: rgba(255, 255, 255, 0.72);
  --fnaf-btn-outline: rgba(17, 24, 39, 0.92);
  --fnaf-btn-glow: rgba(116, 145, 174, 0.22);
  --fnaf-btn-text: #f7f9fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  color-scheme: light;
}

/* Soccer Bros 2 brand layer for the homepage and standalone site pages. */
body.soccer-site {
  --bg: #eefbf5;
  --bg-soft: #e1f7ec;
  --panel: #ffffff;
  --panel-2: #dff5e9;
  --text: #113b2d;
  --muted: #47695d;
  --accent: #087f5b;
  --accent-2: #075f46;
  --hot: #f97316;
  --new: #22c55e;
  --border: rgba(8, 127, 91, 0.16);
  --shadow: 0 18px 44px rgba(9, 83, 60, 0.14);
  background-color: #e6f8ef;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(250, 204, 21, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 2%, rgba(56, 189, 248, 0.2), transparent 25rem),
    linear-gradient(180deg, rgba(246, 255, 249, 0.76) 0%, rgba(230, 248, 239, 0.82) 50%, rgba(248, 255, 249, 0.86) 100%),
    url("/images/logo/background.jpg");
  background-position: center, center, center, center top;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover;
  background-attachment: fixed;
}

body.soccer-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(8, 127, 91, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 91, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

body.soccer-site[data-theme="light"] .site-header {
  background: rgba(246, 255, 249, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.soccer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  line-height: 1;
}

.soccer-logo-ball {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(8, 95, 69, 0.18);
  font-size: 1.55rem;
}

.soccer-logo > span:last-child {
  display: grid;
  gap: 4px;
}

.soccer-logo strong {
  color: #087f5b;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.soccer-logo small {
  color: #f97316;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

body.soccer-site .tag {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(8, 95, 69, 0.11);
}

body.soccer-site .tag.hot,
body.soccer-site .primary,
body.soccer-site #fullscreen-button.primary,
body.soccer-site .description-collapse-button {
  background: linear-gradient(135deg, #0aa876, #087f5b);
  color: #ffffff;
}

body.soccer-site .page {
  padding-top: 34px;
}

.soccer-home-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.soccer-hero .embed-frame {
  aspect-ratio: 4 / 3;
  max-height: 760px;
  background: #062d22;
}

body.soccer-site .player-shell {
  border-color: rgba(8, 127, 91, 0.22);
}

body.soccer-site .player-top,
body.soccer-site[data-theme="light"] .player-top {
  background: linear-gradient(90deg, rgba(225, 247, 236, 0.98), rgba(255, 249, 219, 0.92));
}

body.soccer-site .live-pill {
  background: #f97316;
  color: #ffffff;
}

.soccer-title-row {
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.soccer-kicker,
.section-eyebrow {
  margin: 0 0 7px;
  color: #f97316 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.soccer-title-row h1 {
  color: #075f46;
}

body.soccer-site .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soccer-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.soccer-stat-strip div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(9, 83, 60, 0.09);
}

.soccer-stat-strip strong,
.soccer-stat-strip span {
  display: block;
}

.soccer-stat-strip strong {
  color: #087f5b;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.soccer-stat-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.soccer-description {
  padding: clamp(22px, 4vw, 42px);
}

.soccer-description .description-body > .description-content > section,
.soccer-description .description-body > section {
  scroll-margin-top: 110px;
}

.soccer-description .description-body h2 {
  color: #075f46;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
}

.soccer-description .description-body h3 {
  color: #113b2d;
  font-size: 1.08rem;
}

.soccer-description .how-to-play-panel {
  border-left-color: #f97316;
  background: linear-gradient(180deg, #fff9e6 0%, #effbf4 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}

.feature-grid > div,
.game-elements-list > div {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7fffa;
}

.feature-grid h3 {
  margin-top: 0;
}

.feature-grid p {
  margin-bottom: 0;
}

.game-elements-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 28px;
}

.game-elements-list dt {
  color: #087f5b;
  font-weight: 800;
}

.game-elements-list dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 46px 16px 17px;
  color: #113b2d;
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
}

.faq-list details[open] summary {
  background: #e8f8f0;
}

.faq-list p {
  padding: 0 17px 16px;
}

body.soccer-site .static-hero,
body.soccer-site .static-card {
  border: 1px solid var(--border);
}

body.soccer-site .static-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(225,247,236,0.96));
}

body.soccer-site .static-hero h1,
body.soccer-site .static-card h2 {
  color: #075f46;
}

body.soccer-site .static-link {
  color: #087f5b;
  font-weight: 700;
}

body.soccer-site[data-theme="light"] .site-footer {
  border-top: 1px solid var(--border);
  background: rgba(246, 255, 249, 0.7);
}

.soccer-footer .footer-logo {
  display: inline-flex;
}

.soccer-footer .footer-note {
  max-width: 360px;
}

@media (max-width: 760px) {
  .soccer-logo-ball {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .soccer-logo strong {
    font-size: 0.82rem;
  }

  .soccer-stat-strip,
  .feature-grid,
  .game-elements-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soccer-title-row {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .soccer-stat-strip,
  .feature-grid,
  .game-elements-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .soccer-hero .embed-frame {
    aspect-ratio: 4 / 3;
  }
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button,
.tag,
.card-entry-link,
.footer-category-link {
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

button:focus-visible,
.tag:focus-visible,
.card-entry-link:focus-visible,
.footer-category-link:focus-visible {
  outline: 2px solid rgba(51, 65, 85, 0.35);
  outline-offset: 3px;
}

input,
select,
textarea {
  background: transparent;
  border: none;
  outline: none;
}

textarea {
  resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--accent);
  color: #0b0f14;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2000;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  height: var(--header-height);
  padding: 0 24px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  z-index: 1200;
}

body[data-theme="light"] .site-header {
  background: transparent;
}

.header-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 35, 0.14);
}

.menu-toggle:active {
  transform: translateY(0) scale(0.98);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.logo img {
  width: auto;
  height: 44px;
  max-width: 172px;
  object-fit: contain;
  border-radius: 12px;
}

.hot-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-left: clamp(10px, 1.8vw, 28px);
  min-width: 0;
}

.hot-tags::-webkit-scrollbar {
  height: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(166, 175, 186, 0.45);
  background: rgba(166, 175, 186, 0.14);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag.hot {
  border-color: rgba(194, 202, 212, 0.55);
  background: rgba(194, 202, 212, 0.2);
}

.hot-tags .tag,
.hot-tags .tag.hot {
  border: none;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tag:active {
  transform: translateY(0) scale(0.98);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: none;
  border-radius: 999px;
  padding: 6px 8px;
}

.search input {
  width: 260px;
  padding: 10px 72px 10px 34px;
  color: var(--text);
}

.search input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
}

.search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(150deg, rgba(66, 72, 82, 0.92) 0%, rgba(29, 33, 41, 0.96) 62%, rgba(11, 13, 17, 0.98) 100%);
  color: var(--fnaf-btn-text);
  border: none;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Orbitron", sans-serif;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search button:hover {
  transform: translateY(-50%) translateX(1px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(236, 241, 248, 0.12);
}

.search button:active {
  transform: translateY(-50%);
}

.sidebar {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  padding: 14px 10px;
  background: transparent;
  border-right: none;
  overflow: visible;
  z-index: 1100;
}

body[data-theme="light"] .sidebar {
  background: transparent;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-list a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--panel-2);
  border: none;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.2s ease;
}

.category-list a img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.category-list a:hover {
  transform: translateY(-2px);
}

.category-list .label {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.75rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.category-list a:hover .label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.page {
  margin: 0 auto;
  max-width: var(--page-max-width);
  padding: 28px var(--page-desktop-padding) 80px;
}

.layout {
  display: grid;
  grid-template-columns: calc(var(--rail-card-width) + var(--rail-padding) * 2) minmax(0, 1fr) calc(var(--rail-card-width) * 2 + var(--rail-gap) + var(--rail-padding) * 2);
  gap: 24px;
  align-items: start;
  grid-template-areas: "left center right";
}

.layout.layout-home {
  max-width: var(--home-layout-max-width);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "center side";
  column-gap: 34px;
  padding: 0;
}

.center-column {
  grid-area: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.left-rail,
.right-rail {
  align-self: start;
  overflow: visible;
  background: rgba(21, 27, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--rail-padding);
  box-shadow: var(--shadow);
}

.left-rail .game-card:hover,
.right-rail .game-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.left-rail {
  grid-area: left;
}

.right-rail {
  grid-area: right;
}

.home-side-column {
  grid-area: side;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  align-self: start;
  min-width: 0;
}

.home-side-column .left-rail,
.home-side-column .right-rail,
.home-side-column > #comments {
  grid-area: auto;
}

.layout.layout-home .left-rail,
.layout.layout-home .right-rail {
  padding: var(--home-rail-padding);
}

/* Home-only: remove hard card outlines for a softer panel look. */
.layout.layout-home .left-rail,
.layout.layout-home .right-rail,
.layout.layout-home .player-shell,
.layout.layout-home .player-top,
.layout.layout-home .embed-ad-slot,
.layout.layout-home .description-card,
.layout.layout-home .home-new-drops,
.home-side-column > #comments {
  border: none;
}

.layout.layout-home .description-tag-list .tag {
  border: none;
}

.layout.layout-home .embed-ad-slot {
  display: none;
}

.layout.layout-home .left-rail .game-card,
.layout.layout-home .right-rail .game-card,
.layout.layout-home .home-new-drops-grid .game-card {
  border: none;
}

.layout.layout-home .left-rail .game-card:hover,
.layout.layout-home .right-rail .game-card:hover,
.layout.layout-home .home-new-drops-grid .game-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

body[data-theme="light"] .left-rail,
body[data-theme="light"] .right-rail {
  background: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .home-side-column > #comments {
  background: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .layout.layout-home .game-card.side-list-card {
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.98) 0%, rgba(237, 240, 246, 0.98) 100%);
}

body[data-theme="light"] .side-tag {
  color: #56677b;
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rail-header .rail-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.rail-header a {
  font-size: 0.8rem;
  color: var(--accent);
}

.rail-stack {
  display: grid;
  gap: 12px;
}

.rail-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 140px;
}

.rail-stack .rail-card {
  aspect-ratio: 3 / 2;
  min-height: 150px;
}

.right-grid .rail-card {
  aspect-ratio: 3 / 2;
  min-height: 130px;
}

.layout.layout-home .rail-stack .rail-card {
  min-height: 118px;
}

.layout.layout-home .right-grid .rail-card {
  min-height: 108px;
}

.home-side-column .rail-stack,
.home-side-column .right-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 10px;
}

.layout.layout-home .rail-card .title {
  left: 10px;
  bottom: 8px;
  font-size: 0.8rem;
}

.rail-card .title {
  font-size: 0.85rem;
}

.layout.layout-home .game-card.side-list-card {
  --side-card-image-width: var(--home-rail-card-width);
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-height: auto;
  aspect-ratio: auto;
  background: linear-gradient(180deg, rgba(17, 21, 28, 0.96) 0%, rgba(12, 16, 22, 0.98) 100%);
  padding-right: 14px;
}

.layout.layout-home .game-card.side-list-card::after {
  content: none;
}

.layout.layout-home .game-card.side-list-card img {
  flex: 0 0 var(--side-card-image-width);
  width: var(--side-card-image-width);
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.layout.layout-home .game-card.side-list-card .side-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0;
}

.layout.layout-home .game-card.side-list-card .title {
  position: static;
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.layout.layout-home .game-card.side-list-card .side-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  color: var(--muted);
}

.card-entry-link {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.82);
  font-family: "Orbitron", sans-serif;
}

.card-entry-link::after {
  content: ">";
  font-size: 0.78rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.game-card:hover .card-entry-link,
.game-card:focus-visible .card-entry-link {
  filter: brightness(1.08);
}

.game-card:hover .card-entry-link::after,
.game-card:focus-visible .card-entry-link::after {
  transform: translateX(3px);
}

.layout.layout-home .home-new-drops-grid .game-card .title {
  max-width: calc(100% - 96px);
}

.layout.layout-home .game-card.side-list-card .card-entry-link {
  position: static;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--accent-2);
}

body[data-theme="light"] .card-entry-link {
  color: rgba(18, 27, 38, 0.74);
}

body[data-theme="light"] .layout.layout-home .home-new-drops-grid .game-card .title,
body[data-theme="light"] .layout.layout-home .home-new-drops-grid .game-card .card-entry-link {
  color: #f7fff9;
  text-shadow: 0 2px 6px rgba(3, 20, 15, 0.9);
}

body[data-theme="light"] .layout.layout-home .game-card.side-list-card .card-entry-link {
  color: #6f859d;
}

.side-tag {
  display: inline;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.side-tag + .side-tag::before {
  content: "·";
  margin: 0 8px;
  color: var(--muted);
}

.category-badge {
  top: 10px;
  left: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 244, 230, 0.08);
  background: linear-gradient(180deg, var(--category-chip-bg-top) 0%, var(--category-chip-bg) 100%);
  color: var(--category-chip-text);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 18px rgba(20, 12, 7, 0.26);
}

.layout.layout-home .category-badge {
  top: 10px;
  left: 10px;
  padding: 7px 12px;
  font-size: 0.72rem;
}

.center-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.player-shell {
  background: var(--panel);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.6);
}

body[data-theme="light"] .player-top {
  background: rgba(245, 247, 251, 0.9);
}

.player-top div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-top button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.player-top button:hover,
.player-top button:focus-visible {
  background: rgba(108, 120, 134, 0.12);
  transform: translateY(-1px);
}

.player-top button:active {
  transform: translateY(0) scale(0.98);
}

.live-pill {
  background: rgba(194, 202, 212, 0.22);
  color: var(--hot);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.player-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #090c11;
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-new-drops {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-new-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 18px;
}

.home-new-drops-grid .game-card.wide {
  min-width: 0;
  aspect-ratio: 3 / 2;
}

.adsterra-ad-slot {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-align: center;
}

.adsterra-ad-slot > div {
  width: 100%;
  max-width: 100%;
}

.embed-ad-slot {
  position: relative;
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.embed-ad-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  opacity: 0.86;
}

.embed-ad-slot [id^="container-"] {
  width: 100%;
  min-height: 50px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.title-row h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  font-family: "Orbitron", sans-serif;
}

.quick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.rating {
  background: rgba(178, 186, 196, 0.2);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(155deg, rgba(74, 80, 90, 0.94) 0%, rgba(33, 37, 45, 0.97) 58%, rgba(10, 12, 15, 1) 100%);
  color: var(--fnaf-btn-text);
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Orbitron", sans-serif;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(236, 241, 248, 0.14);
}

.primary:active {
  transform: translateY(0);
}

#fullscreen-button.primary {
  background: linear-gradient(155deg, rgba(74, 80, 90, 0.94) 0%, rgba(33, 37, 45, 0.97) 58%, rgba(10, 12, 15, 1) 100%);
  color: var(--fnaf-btn-text);
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Orbitron", sans-serif;
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#fullscreen-button.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 32px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(236, 241, 248, 0.14);
}

#fullscreen-button.primary:active {
  transform: translateY(0);
}

.ghost {
  background: transparent;
  border: none;
}

.ghost:hover,
.ghost:focus-visible {
  background: rgba(108, 120, 134, 0.12);
  transform: translateY(-2px);
}

.ghost:active {
  transform: translateY(0) scale(0.98);
}

.strip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.strip-row::-webkit-scrollbar,
.recommend-grid::-webkit-scrollbar {
  height: 6px;
}

.strip-row::-webkit-scrollbar-thumb,
.recommend-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  min-height: 120px;
  transition: transform 0.2s ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.game-card .title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-weight: 600;
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.game-card.wide {
  min-width: 220px;
  aspect-ratio: 16 / 9;
}

.right-grid {
  display: grid;
  grid-template-columns: repeat(2, var(--rail-card-width));
  gap: var(--rail-gap);
  justify-content: center;
}

.layout.layout-home .right-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-rail-gap);
}


.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  z-index: 1;
}

.layout.layout-home .badge {
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 0.65rem;
}

.badge.hot {
  background: rgba(255, 94, 87, 0.9);
  color: #fff;
}

.badge.new {
  background: rgba(74, 213, 138, 0.9);
  color: #0b0f14;
}

.game-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.description-card,
.reviews-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
}

.description-body h2 {
  margin: 18px 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
}

.description-body h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

.description-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.description-body ul,
.description-body ol {
  margin: 0 0 14px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.description-body li {
  margin-bottom: 6px;
}

.description-body strong {
  color: var(--text);
}

.description-video {
  margin: 24px 0 28px;
}

.description-video h3 {
  margin-bottom: 10px;
}

.description-video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #071f19;
  box-shadow: 0 18px 42px rgba(7, 31, 25, 0.16);
}

.description-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.description-video-caption {
  margin-top: 8px !important;
  font-size: 0.88rem;
}

.how-to-play-panel {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid #5a6878;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.96) 0%, rgba(232, 238, 246, 0.92) 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 35, 0.1);
}

.description-body .how-to-play-panel h2 {
  margin-top: 0;
  color: #111827;
  font-size: 1.24rem;
}

.description-body .how-to-play-panel h3 {
  color: #243142;
}

.description-body .how-to-play-panel p,
.description-body .how-to-play-panel li {
  color: #3f4f63;
}

.how-to-play-panel .description-table {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  overflow: hidden;
}

.how-to-play-panel .description-table th {
  background: rgba(36, 49, 66, 0.08);
}

.description-body.is-collapsible .description-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.description-body.is-collapsed .description-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--panel) 82%);
}

.description-collapse-control {
  display: none;
  justify-content: center;
  margin-top: 4px;
}

.description-body.is-collapsible .description-collapse-control {
  display: flex;
}

.description-collapse-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  padding: 11px 24px;
  box-shadow: 0 10px 22px rgba(30, 92, 230, 0.16);
}

.description-collapse-button:hover,
.description-collapse-button:focus-visible {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(30, 42, 62, 0.22);
  outline: none;
}

.description-collapse-button:active {
  transform: translateY(0) scale(0.98);
}

.description-collapse-button[hidden] {
  display: none;
}

.description-table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  color: var(--muted);
  line-height: 1.5;
}

.description-table th,
.description-table td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.description-table th {
  color: var(--text);
  font-weight: 700;
}

.description-media {
  margin: 18px 0;
}

.description-media img {
  width: 100%;
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow);
}

.description-card .section-title-text,
.reviews-card h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
}

.description-card .section-title-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title .pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(166, 175, 186, 0.16);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.description-card p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.feature-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(178, 186, 196, 0.16);
  font-size: 0.8rem;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.reviews-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.sort select {
  background: var(--panel-2);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.review {
  padding: 14px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid transparent;
  margin-bottom: 12px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(170, 178, 188, 0.24);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.review-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.review p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.review-actions {
  display: flex;
  gap: 10px;
}

.review-actions button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.comment-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.comment-form textarea,
.comment-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(12, 15, 20, 0.3);
}

body[data-theme="light"] .comment-form textarea,
body[data-theme="light"] .comment-form input {
  background: rgba(255, 255, 255, 0.7);
}

.comment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.static-layout {
  max-width: var(--static-layout-max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.static-layout.full-width {
  max-width: var(--static-layout-wide-max-width);
}

.static-layout.full-width.taxonomy-layout {
  max-width: var(--taxonomy-layout-max-width);
}

.static-hero,
.static-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: none;
  padding: 24px;
  box-shadow: var(--shadow);
}

.static-hero h1 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
}

.static-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.static-card h2 {
  margin: 0 0 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
}

.static-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.static-list {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
}

.static-list li {
  margin-bottom: 6px;
}

.static-link {
  color: var(--accent);
}

.blog-hero {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}

.blog-hero h1 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
}

.blog-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(166, 175, 186, 0.45);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(166, 175, 186, 0.16);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.description-tag-recommend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: none;
}

.description-tag-recommend h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.description-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.description-tag-list .tag {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.post-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
}

.post-title a {
  color: inherit;
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
}

.post-article {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.post-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.post-header h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
}

.post-body h2 {
  margin: 24px 0 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.45rem;
}

.post-body h3 {
  margin: 18px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
}

.post-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.post-body ul,
.post-body ol {
  margin: 0 0 16px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body strong {
  color: var(--text);
}

.recommend-grid {
  display: grid;
  gap: var(--recommend-gap);
  grid-template-columns: repeat(7, minmax(0, var(--rail-card-width)));
  justify-content: center;
}

.taxonomy-layout .recommend-grid {
  gap: var(--taxonomy-grid-gap);
  grid-template-columns: repeat(5, minmax(0, var(--rail-card-width)));
}

.home-game-recommendations .section-title {
  justify-content: space-between;
  flex-wrap: wrap;
}

.home-game-recommendations .section-title-text {
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.home-game-recommendations > p {
  margin-bottom: 18px;
}

.taxonomy-directory {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.taxonomy-directory strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recommend-grid .game-card.wide {
  min-width: auto;
  aspect-ratio: 3 / 2;
}

.site-footer {
  margin-left: var(--sidebar-width);
  padding: 26px 28px 40px;
  border-top: none;
  background: transparent;
}

body[data-theme="light"] .site-footer {
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 0 0 auto;
}

.footer-logo img {
  width: auto;
  height: 44px;
  max-width: 172px;
  object-fit: contain;
  border-radius: 12px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer-category-nav {
  display: flex;
  flex: 1 1 460px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 7px;
  position: relative;
  min-width: auto;
  color: var(--muted);
  background: rgba(8, 127, 91, 0.08);
  border: none;
  padding: 7px 11px;
  border-radius: 999px;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.footer-category-link:hover,
.footer-category-link:focus-visible {
  transform: translateY(-2px);
  color: var(--text);
}

.footer-category-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.78;
}

.footer-category-link span {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-category-link:hover span,
.footer-category-link:focus-visible span {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .tag,
  .card-entry-link,
  .footer-category-link,
  .card-entry-link::after,
  .menu-toggle,
  .primary,
  .ghost,
  #fullscreen-button.primary,
  .description-collapse-button,
  .search button {
    transition: none;
  }

  button:hover,
  button:focus-visible,
  button:active,
  .tag:hover,
  .tag:active,
  .footer-category-link:hover,
  .footer-category-link:focus-visible,
  .game-card:hover .card-entry-link::after,
  .game-card:focus-visible .card-entry-link::after,
  .primary:hover,
  .primary:active,
  .ghost:hover,
  .ghost:active,
  #fullscreen-button.primary:hover,
  #fullscreen-button.primary:active,
  .description-collapse-button:hover,
  .description-collapse-button:active,
  .search button:hover,
  .search button:active {
    transform: none;
  }
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner > nav[aria-label="Footer"] {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

.delay-7 {
  animation-delay: 0.7s;
}

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

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .layout.layout-home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "center"
      "side";
    column-gap: 0;
    row-gap: 24px;
    padding-inline: 0;
  }

  .left-rail,
  .right-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .right-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .layout.layout-home .right-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .site-header {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 10px 12px;
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .page {
    margin-top: 0;
    margin-left: 0;
    padding: 20px 14px calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .header-left {
    width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .logo img {
    height: 38px;
    max-width: 148px;
  }

  .home-new-drops-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  .hot-tags {
    flex: 1;
    min-width: 0;
  }

  .header-right {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }

  .search {
    flex: 1;
    min-width: 0;
  }

  .search input {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-right: none;
    border-top: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar::-webkit-scrollbar {
    height: 0;
  }

  .category-list {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .category-list li {
    flex: 0 0 auto;
  }

  .category-list a {
    width: 44px;
    height: 44px;
  }

  .category-list a img {
    width: 24px;
    height: 24px;
  }

  .category-list .label {
    display: none;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .layout.layout-home .title-row {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
  }

  .title-row h1 {
    font-size: 1.7rem;
  }

  .title-row > div:first-child {
    width: 100%;
  }

  .quick-meta {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .quick-meta .dot {
    display: none;
  }

  .player-top {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .embed-frame {
    aspect-ratio: 16 / 9;
  }

  .center-column {
    gap: 24px;
  }

  .cta-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .primary,
  .ghost {
    white-space: nowrap;
  }

  #fullscreen-button.primary {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    margin-left: 0;
    padding: 22px 14px calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .footer-category-nav {
    flex-basis: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 14px;
  }

  .footer-inner > nav[aria-label="Footer"] {
    width: 100%;
    order: 4;
    justify-content: flex-start;
  }

  .footer-logo img {
    height: 38px;
    max-width: 148px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 8px 10px;
  }

  .header-left {
    display: flex;
    flex-wrap: wrap;
  }

  .hot-tags {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .search input {
    padding: 10px 62px 10px 32px;
  }

  .search button {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .embed-frame {
    aspect-ratio: 16 / 9;
  }

  .quick-meta {
    flex-wrap: wrap;
  }

  .description-card,
  .reviews-card,
  .static-hero,
  .static-card,
  .blog-hero,
  .post-article {
    padding: 18px;
  }

  .static-hero h1,
  .blog-hero h1,
  .post-header h1 {
    font-size: 1.65rem;
  }

  .strip-row {
    grid-auto-columns: minmax(160px, 1fr);
  }

  .layout.layout-home .game-card.side-list-card {
    --side-card-image-width: 132px;
    gap: 12px;
  }

  .layout.layout-home .game-card.side-list-card .side-card-copy {
    gap: 8px;
    padding: 10px 0;
  }

  .layout.layout-home .game-card.side-list-card .title {
    font-size: 0.94rem;
  }

  .side-tag,
  .layout.layout-home .category-badge {
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .logo img {
    height: 34px;
    max-width: 132px;
  }

  .tag {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .recommend-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-category-nav {
    gap: 12px;
  }

  .footer-category-link {
    min-width: 52px;
    column-gap: 6px;
  }

  .footer-category-link img {
    width: 24px;
    height: 24px;
  }

  .footer-category-link span {
    font-size: 0.68rem;
  }

  .home-new-drops-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout.layout-home .game-card.side-list-card {
    --side-card-image-width: 118px;
    gap: 10px;
  }

  .layout.layout-home .game-card.side-list-card .side-card-copy {
    gap: 6px;
    padding: 10px 0;
  }

  .layout.layout-home .category-badge {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .side-tag {
    font-size: 0.68rem;
  }

  .game-card.wide {
    min-width: 0;
  }

  .cta-group {
    width: 100%;
  }

  .primary,
  .ghost,
  #fullscreen-button.primary {
    width: 100%;
  }

  #fullscreen-button.primary {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .player-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .embed-ad-slot {
    padding: 10px 8px 8px;
  }

  .embed-ad-label {
    font-size: 0.58rem;
  }

}

@media (max-width: 400px) {
  .page {
    padding: 16px 10px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding: 20px 10px calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .search input {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Site-wide borderless visual treatment. Focus outlines remain for keyboard access. */
*,
*::before,
*::after {
  border: 0 !important;
}
