:root{
  --bg:rgba(18, 22, 45, 1);
  --bg-soft: rgba(20, 29, 75, 0.8);
  --panel: rgba(17, 24, 58, 0.78);
  --panel-strong: rgba(9, 15, 41, 0.94);
  --line: rgba(115, 143, 255, 0.16);
  --line-strong: rgba(69, 120, 255, 0.42);
  --text: #f4f7ff;
  --muted: #a9b4da;
  --accent: #16c8ff;
  --accent-2: #5979ff;
  --accent-3: #8f4fff;
  --shadow: 0 1.25rem 3.75rem rgba(5, 9, 25, 0.45);
  --radius-lg: 0.75rem;
  --radius-md: 1.25rem;
  --radius-sm: .875rem;
  --max-width: 80rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../image/bg.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  z-index: -2;
}

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

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

button,
input {
  font: inherit;
}

input,
button {
  border: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(6, 11, 29, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shell,
.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

body[data-page="play"] .header-bar {
  min-height: 52px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 10px 24px rgba(39, 127, 255, 0.4);
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.brand__mark::before {
  inset: 10px 12px;
}

.brand__mark::after {
  width: 10px;
  height: 10px;
  top: 8px;
  right: 8px;
}

.brand__name {
  font-size: 1.5rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border-radius: 0.875rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.menu-toggle span {
  display: block;
  width: 1.125rem;
  height: 0.125rem;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span + span {
  margin-top: 0;
}

.menu-toggle:hover {
  border-color: rgba(10, 211, 227, 0.4);
  background: rgba(10, 211, 227, 0.12);
}

.mobile-drawer-overlay,
.mobile-drawer {
  display: none;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(3, 8, 24, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 20rem);
  z-index: 40;
  background: linear-gradient(180deg, rgba(11, 17, 44, 0.98), rgba(8, 14, 34, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -1.25rem 0 2.5rem rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mobile-drawer__brand .brand {
  display: inline-flex;
}

.mobile-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 0.875rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-drawer__nav a[aria-current="page"] {
  background: rgba(10, 211, 227, 0.16);
  border: 1px solid rgba(10, 211, 227, 0.25);
}

body.sidebar-open .mobile-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open .mobile-drawer {
  transform: translateX(0);
}

.header-search {
  margin-left: auto;
  width: min(100%, 420px);
}

.search-form {
  position: relative;
}

.search-form__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: 0.9;
}

.search-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1.125rem 0 3.125rem;
  border-radius: 62.4375rem;
  color: var(--text);
  background:rgba(20, 29, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  transition: all 0.3s ease;
}

.search-form input::placeholder {
  color: rgba(214, 223, 255, 0.58);
}

.search-form input:hover {
  border-color: #0AD3E3;
  box-shadow: 0 0 0 2px rgba(10, 211, 227, 0.2);
}

.search-form input:focus {
  border-color: #0AD3E3;
  box-shadow: 0 0 0 4px rgba(10, 211, 227, 0.3);
}

.search-form input:focus::after {
  content: "|";
  color: #52B7DF;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.page-main {
  padding: 28px 0 72px;
}

.search-layout {
  padding-top: 2rem;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #0AD3E3;
  transform: translateY(-1px);
}

.come_back{
  background-image: url("../image/back.png");
  width: 1.875rem;
  height: 1.875rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.back-btn__text {
  font-size: 0.95rem;
}

.search-header__form {
  min-width: 800px;
}

.search-form--page {
  max-width: 500px;
}

.search-form--page input:hover {
  border-color: #0AD3E3;
  box-shadow: 0 0 0 2px rgba(10, 211, 227, 0.2);
}

.search-form--page input:focus {
  border-color: #0AD3E3;
  box-shadow: 0 0 0 4px rgba(10, 211, 227, 0.3);
}

@media (max-width: 900px) {
  .search-layout {
    padding-top: 1rem;
  }
  
  .search-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  
  .search-header__form {
    min-width: auto;
  }
  
  .search-form--page {
    max-width: none;
  }
}

body.sidebar-open {
  overflow: hidden !important;
}

.surface-panel,
.hero-card,
.detail-hero,
.page-banner,
.play-layout__stage,
.play-layout__sidebar,
.empty-state,
.legal-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 29, 75, 0.76), rgba(10, 16, 40, 0.92));
  box-shadow: var(--shadow);
  border-radius: 1.5rem;
}

.surface-panel,
.page-banner,
.legal-shell {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.surface-panel + .surface-panel,
.surface-panel + .page-banner,
.page-banner + .surface-panel,
.detail-stack > * + *,
.legal-richtext > * + * {
  margin-top: 24px;
}

.surface-panel--soft {
  background: linear-gradient(180deg, rgba(17, 25, 62, 0.72), rgba(10, 15, 38, 0.88));
}

body[data-page="home"] .surface-panel,
body[data-page="home"] .surface-panel--soft {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] #category-links {
  display: none;
}

.hero-card,
.detail-hero {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
}

.hero-card__visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 276px;
  padding: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 360px;
  min-height: 276px;
  padding: 38px 46px 34px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bcd0ff;
}

.hero-card h1,
.detail-hero h1,
.play-placeholder h1,
.page-banner h1,
.legal-shell h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

body[data-page="home"] .hero-card {
  border-radius: 14px;
  border: 1px solid rgba(122, 139, 255, 0.15);
}

body[data-page="home"] .hero-card__visual--home {
  background:
    linear-gradient(180deg, rgba(4, 7, 23, 0.08), rgba(4, 7, 23, 0.68)),
    linear-gradient(90deg, rgba(12, 16, 41, 0.92) 0%, rgba(12, 16, 41, 0.55) 40%, rgba(12, 16, 41, 0.15) 100%),
    radial-gradient(circle at 18% 30%, rgba(255, 161, 59, 0.42), transparent 20%),
    radial-gradient(circle at 76% 28%, rgba(147, 86, 255, 0.3), transparent 28%),
    linear-gradient(135deg, #1a2357 0%, #301760 40%, #171239 100%);
}

body[data-page="home"] .hero-card__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

body[data-page="home"] .hero-card__art::before {
  content: "";
  position: absolute;
  inset: 14px 12px 12px auto;
  width: 56%;
  background:
    linear-gradient(90deg, rgba(10, 14, 35, 0) 0%, rgba(10, 14, 35, 0.16) 30%, rgba(10, 14, 35, 0.46) 100%),
    url("../image/bg.webp") right center / contain no-repeat;
  opacity: 0.95;
}

body[data-page="home"] .hero-card__flare,
body[data-page="home"] .hero-card__planet {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

body[data-page="home"] .hero-card__flare--left {
  left: 6%;
  top: 14%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 170, 76, 0.56), rgba(255, 170, 76, 0.06) 62%, transparent 74%);
}

body[data-page="home"] .hero-card__flare--right {
  right: 9%;
  top: 6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(130, 72, 255, 0.42), rgba(130, 72, 255, 0.05) 58%, transparent 74%);
}

body[data-page="home"] .hero-card__planet {
  right: 18%;
  top: 14%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 35%, rgba(132, 182, 255, 0.95), rgba(94, 72, 255, 0.58) 48%, rgba(49, 39, 123, 0.08) 75%, transparent 76%);
  filter: blur(0);
  opacity: 0.9;
}

body[data-page="home"] .hero-card h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(2.05rem, 4vw, 3.3rem);
  line-height: 0.95;
}

body[data-page="home"] .hero-card p {
  margin: 16px 0 0;
  max-width: 330px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(226, 234, 255, 0.54);
}

.hero-card p,
.detail-hero__text,
.page-banner p,
.content-panel p,
.legal-richtext p,
.legal-richtext li,
.play-placeholder p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-card__actions,
.detail-hero__actions,
.panel-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 18px 36px rgba(45, 122, 255, 0.28);
}

.button--ghost {
  border: 1px solid rgba(173, 197, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button--full {
  width: 100%;
}

body[data-page="home"] .button {
  min-height: 36px;
  padding: 0 18px;
  font-size: 0.9rem;
}

body[data-page="home"] .button--ghost {
  background: rgba(255, 255, 255, 0.08)
}

.home-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.home-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(4, 7, 23, 0.85) 0%, rgb(4 7 23 / 0%) 50%, rgb(4 7 23 / 2%) 100%);
}

.home-banner__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 31.25rem;
  padding: 3rem 3.5rem;
  max-width: 32.5rem;
}

.home-banner__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.home-banner__desc {
  margin: 1.125rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(226, 234, 255, 0.75);
  max-width: 26.25rem;
}

.home-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: .875rem 2rem;
  background:linear-gradient(
    90deg,
    rgba(0, 238, 255, 1) 0,
    rgba(0, 132, 255, 1) 100%
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: .375rem;
  transition: all 0.25s ease;
  box-shadow: 0 .5rem 1.5rem rgba(0, 119, 255, 0.35);
  width: fit-content;
}

.home-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 2rem rgba(0, 119, 255, 0.45);
}

@media (max-width: 900px) {
  .home-banner__content {
    min-height: 23.75rem;
    padding: 2rem 1.75rem;
  }
}

.hero-card__stats,
.mini-stats {
  display: grid;
  gap: 14px;
  align-self: end;
}

body[data-page="home"] .hero-card__stats {
  display: none;
}

.stat-card,
.mini-stats div,
.page-summary {
  padding: 1.125rem 1.25rem;
  border-radius: 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 29, 0.55);
}

.stat-card span,
.mini-stats span,
.page-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong,
.mini-stats strong,
.page-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading__icon {
  width: 2.1875rem;
  height: 2.1875rem;
  object-fit: contain;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.95rem);
}

.section-heading__text {
  margin: 0;
  max-width: 32.5rem;
  color: var(--muted);
  text-align: right;
}

.category-strip,
.filter-chip-wrap,
.tag-list {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.category-strip {
  margin-bottom: 1.25rem;
}

.category-pill,
.filter-chip,
.tag-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.category-pill {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  min-width: 13.75rem;
  padding: 1rem 1.125rem;
  border-radius: 1.25rem;
}

.category-pill strong {
  font-size: 1rem;
}

.category-pill span,
.filter-chip,
.tag-chip {
  color: var(--muted);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 62.4375rem;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--text);
  border-color: rgba(22, 200, 255, 0.52);
  background: rgba(22, 200, 255, 0.12);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .625rem;
}

.games-grid--small {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .625rem;
}

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

.game-card__link {
  position: relative;
  display: block;
  aspect-ratio: 1.32 / 1;
  border-radius: .75rem;
  overflow: hidden;
  transform: translateZ(0);
}

.game-card__frame {
  position: absolute;
  inset: 0;
  background: url("../image/game_box.webp") center / 100% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.game-card__badge {
  position: absolute;
  right: 0;
  top: 0;
  width: 3.75rem;
  height: 2.75rem;
  background: url("../image/best_game.webp") center / contain no-repeat;
  z-index: 4;
}

.game-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .625rem;
  transition: transform 0.35s ease;
}

.game-card__overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: .3125rem;
  padding: 1.375rem .625rem .5rem;
  background: linear-gradient(180deg, rgba(8, 10, 20, 0), rgba(8, 10, 20, 0.45) 35%, rgba(8, 10, 20, 0.9));
  z-index: 3;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.game-card__title {
  font-size: 0.9rem;
  line-height: 1.25;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem .625rem;
  color: rgba(223, 230, 255, 0.74);
  font-size: 0.78rem;
}

.game-card__meta span {
  position: relative;
}

.game-card__meta span + span::before {
  content: "";
  display: inline-block;
  width: .25rem;
  height: .25rem;
  margin: 0 .625rem .125rem 0;
  border-radius: 50%;
  background: rgba(223, 230, 255, 0.54);
  vertical-align: middle;
}

.game-card__link:hover .game-card__image,
.game-card__link:focus-visible .game-card__image {
  transform: scale(1.06);
}

.game-card__link:hover .game-card__overlay,
.game-card__link:focus-visible .game-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="home"] .game-card__overlay {
  padding-top: 2.125rem;
}

body[data-page="home"] .game-card__link {
  box-shadow: 0 0 0 1px rgba(101, 67, 210, 0.36);
}

body[data-page="home"] .section-heading__text {
  display: none;
}

.page-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
}

.page-banner__copy {
  max-width: 55.5rem;
}

.page-banner__copy h1 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  margin-bottom: .75rem;
}

.page-summary {
  min-width: 11.25rem;
  text-align: center;
}

.search-layout {
  display: grid;
  gap: 1.5rem;
}

.search-input--large input {
  min-height: 3.75rem;
  border-color: rgba(22, 200, 255, 0.28);
}

.empty-state {
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.detail-stack,
.legal-stack {
  display: grid;
  gap: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.detail-hero__media {
  position: relative;
  min-height: 100%;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-hero__badge {
  position: absolute;
  left: 20px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(8, 14, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-hero__body {
  padding: 34px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.detail-metrics li {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.detail-metrics--stacked {
  grid-template-columns: 1fr;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.play-hero {
  display: grid;
  grid-template-columns: minmax(19rem, 28rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.play-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 22rem;
}

.play-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-hero__content {
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.content-panel {
  border-radius: 24px;
  padding: 24px;
}

.content-panel h2,
.content-panel h3,
.legal-richtext h2,
.legal-richtext h3 {
  margin: 0 0 14px;
}

.editorial-shell,
.site-footer__summary {
  display: grid;
  gap: 1rem;
}

.editorial-grid,
.feature-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.faq-item {
  padding: 1.25rem;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.feature-card h3,
.faq-item h3 {
  margin: 0 0 0.75rem;
}

.feature-card p,
.faq-item p,
.site-footer__summary p,
.trust-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-checks {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.content-checks li + li {
  margin-top: 8px;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.play-layout__stage {
  border-radius: 28px;
  overflow: hidden;
}



.play-layout__sidebar {
  display: block;
}

.play-layout__stage {
  min-height: 42.5rem;
}

.play-stage-launch {
  display: block;
  position: relative;
  min-height: 42.5rem;
}

.play-stage-launch--disabled {
  opacity: 0.72;
}

.play-stage-launch__poster {
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.play-stage-launch__content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  padding: 2rem;
}

.play-stage-launch__eyebrow,
.play-stage-launch__hint {
  color: rgba(244, 247, 255, 0.78);
}

.play-stage-launch__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-stage-launch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  width: fit-content;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 36px rgba(45, 122, 255, 0.28);
}

.play-stage-launch__button--disabled {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.inline-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.play-frame-wrap,
.play-placeholder {
  height: 100%;
}

.play-frame {
  width: 100%;
  min-height: 680px;
  border: 0;
  background: #05070f;
}

.mobile-play-shell {
  min-height: calc(100dvh - 1rem);
  margin: -0.5rem 0;
}

.mobile-play-back {
  position: fixed;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 10, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.mobile-play-back__icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url("../image/back.png") center / contain no-repeat;
}

.mobile-play-shell__frame {
  width: 100vw;
  height: 100dvh;
  margin-left: calc(50% - 50vw);
}

.mobile-play-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070f;
}

.mobile-play-placeholder {
  min-height: 100dvh;
  border-radius: 0;
}

.detail-redirect-page .site-footer,
.detail-redirect-page .site-header {
  display: none;
}

.detail-redirect {
  justify-content: center;
  min-height: 50vh;
}

.play-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-size: cover;
  background-position: center;
}

.play-placeholder__content {
  max-width: 540px;
  text-align: center;
}

.play-fallback-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.legal-shell {
  overflow: hidden;
}

.legal-hero {
  padding: 28px 28px 8px;
}

.legal-richtext {
  padding: 0 28px 28px;
}

.legal-richtext ul {
  padding-left: 20px;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 48px;
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 34, 0.84);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-consent--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 34, 0.96);
  box-shadow: var(--shadow);
}

.cookie-consent__text {
  color: var(--muted);
  line-height: 1.6;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__btn {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.cookie-consent__btn--ghost,
.cookie-consent__btn--settings {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent__btn--accept {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.noscript-note {
  margin: 16px auto 0;
  width: min(calc(100% - 32px), var(--max-width));
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 164, 0, 0.14);
  border: 1px solid rgba(255, 164, 0, 0.28);
}

@media (hover: none) {
  .game-card__overlay {
    opacity: 1;
    transform: translateY(0);
    padding-top: 56px;
  }
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-panels,
  .play-layout,
  .play-hero,
  .hero-card__visual,
  .detail-hero,
  .editorial-grid,
  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .play-layout__stage,
  .play-frame {
    min-height: 35rem;
  }
}

@media (max-width: 900px) {
  .header-bar,
  .page-banner,
  .footer-card,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .header-search {
    width: 100%;
    margin-left: 0;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }

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

  .games-grid--small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .shell,
  .page-shell,
  .noscript-note {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .site-header {
    position: static;
  }

  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 0.875rem;
    min-height: auto;
    padding: 1.125rem 0;
  }

  .primary-nav {
    gap: .375rem;
    display: none;
  }

  .menu-toggle,
  .mobile-drawer-overlay,
  .mobile-drawer {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav a {
    padding: .5rem .625rem;
    font-size: 0.92rem;
  }

  .brand {
    flex: initial;
    min-width: 0;
    align-self: center;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .menu-toggle {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
  }

  .surface-panel,
  .page-banner,
  .legal-shell {
    padding: 1.125rem;
    border-radius: 1.375rem;
  }

  .hero-card__visual,
  .detail-hero__body,
  .content-panel,
  .legal-hero,
  .legal-richtext {
    padding: 1.125rem;
  }

  .detail-hero__media img {
    min-height: 18.75rem;
  }

  .hero-card__visual {
    min-height: 15.25rem;
    padding: 0;
  }

  .hero-card__content {
    min-height: 15.25rem;
    padding: 24px 18px 18px;
  }

  body[data-page="home"] .hero-card__art::before {
    width: 68%;
    right: -8%;
  }

  body[data-page="home"] .hero-card__flare--left {
    width: 8.75rem;
    height: 8.75rem;
  }

  body[data-page="home"] .hero-card__flare--right {
    width: 11.25rem;
    height: 11.25rem;
  }

  body[data-page="home"] .hero-card__planet {
    width: 4.75rem;
    height: 4.75rem;
    right: 14%;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
  }

  .games-grid--small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
  }

  .category-pill {
    min-width: 100%;
  }

  .play-layout__stage,
  .play-frame {
    min-height: 22.5rem;
  }

  body[data-page="play"].is-mobile-player .site-header,
  body[data-page="play"].is-mobile-player .site-footer {
    display: none;
  }

  body[data-page="play"].is-mobile-player .page-main {
    padding: 0;
  }

  body[data-page="play"].is-mobile-player .page-shell {
    width: 100%;
    margin: 0;
  }

  body[data-page="play"].is-mobile-player .detail-stack {
    gap: 0;
  }

  .section-heading__text {
    text-align: left;
  }

  body[data-page="home"] .header-search {
    width: 100%;
  }

  body[data-page="home"] .search-form input {
    min-height: 2.625rem;
  }

  body[data-page="home"] .page-main {
    padding-top: 0.625rem;
  }

  .search-header__form {
    min-width: auto;
  }

  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}
