/* ============================================================
   OneMoreGame — design tokens (ui-ux-pro-max design system)
   Dark gaming palette · Archivo / Space Grotesk · 8px rhythm
   ============================================================ */
:root {
  --bg: #0f0f23;
  --bg-2: #14142b;
  --card: #1e1c35;
  --card-2: #252244;
  --fg: #ededf5;
  --muted: #a7abc2;
  --primary: #7c3aed;
  --primary-soft: rgba(124, 58, 237, .16);
  --accent: #f43f5e;
  --gold: #f5c044;
  --border: rgba(255, 255, 255, .09);
  --radius: 18px;
  --font-display: "Space Grotesk", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 48px; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 12px 18px;
  border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 35, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1120px, 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; gap: 32px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 10px 2px; transition: color .2s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }

.lang-toggle {
  display: flex; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.lang-toggle a {
  border: 0; background: transparent; color: var(--muted); text-decoration: none;
  font: 700 13px var(--font-body); padding: 8px 16px; border-radius: 999px;
  cursor: pointer; min-height: 44px; min-width: 52px; display: inline-flex;
  align-items: center; justify-content: center; transition: all .2s var(--ease-out);
}
.lang-toggle a[aria-current="true"] { background: var(--primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px var(--font-body); text-decoration: none;
  padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
  min-height: 48px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9d4edd);
  color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 58, 237, .85); }
.btn-ghost { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: 88px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(124,58,237,.55), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(244,63,94,.4), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(50px, 36px) scale(1.08); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
  opacity: .5;
}

.hero-inner {
  position: relative; width: min(1120px, 100% - 48px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-title { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.02em; margin: 0 0 20px; }
.hero-title .char { display: inline-block; }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 480px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; margin: 0; padding: 0; }
.stat dd { font: 700 30px var(--font-display); margin: 0; color: var(--gold); }
.stat dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; order: 2; }
.stat { display: flex; flex-direction: column; }

/* floating art */
.hero-art { position: relative; min-height: 440px; }
.float-card {
  position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: var(--card);
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }
/* Studio board: brand tile + work samples + dish chips */
.card-logo { width: 47%; aspect-ratio: 1/1; left: 0; top: 10px; transform: rotate(-2deg); animation: floaty 8s ease-in-out infinite; background: linear-gradient(140deg, #7C3AED 0%, #4C1D95 72%); display: grid; place-items: center; z-index: 1; }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; }
.card-logo .logo-tile img { width: 56%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.9vw, 23px); color: #EDEDF5; }
.logo-word em { font-style: normal; color: #A7ABC2; }
.card-shot { width: 43%; aspect-ratio: 3/4; right: 0; top: 0; transform: rotate(3deg); animation: floaty 7s ease-in-out infinite reverse; z-index: 3; }
.card-shot img { object-position: top center; }
.card-feature { width: 66%; aspect-ratio: 1024/500; left: 5%; bottom: 0; transform: rotate(-1.5deg); animation: floaty 9s ease-in-out infinite; z-index: 2; }
.dish-chip { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); display: grid; place-items: center; z-index: 4; }
.dish-chip img { width: 44px; height: 44px; }
.chip-pho { left: 44%; top: -8px; animation: floaty 6s ease-in-out infinite; }
.chip-banhmi { left: -8px; top: 56%; animation: floaty 8s ease-in-out infinite reverse; }
.chip-goicuon { right: 16%; bottom: 23%; animation: floaty 7.5s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.chip {
  position: absolute; font: 700 13px var(--font-body); letter-spacing: .06em;
  background: var(--card-2); border: 1px solid var(--border); color: var(--fg);
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-card);
}
.chip-1 { right: 3%; bottom: 5%; animation: floaty 6.5s ease-in-out infinite; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: var(--muted); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Game cards ---------- */
.games { background: var(--bg-2); border-block: 1px solid var(--border); }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,.5); box-shadow: 0 28px 60px -18px rgba(124,58,237,.35); }
.game-media { position: relative; aspect-ratio: 1024/500; overflow: hidden; background: #0a0a18; }
.game-media-tall { aspect-ratio: 1024/560; }
.game-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease-out); }
.game-card:hover .game-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 16px; left: 16px;
  font: 700 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(15,15,35,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--border); color: var(--fg); padding: 8px 14px; border-radius: 999px;
}
.badge-hot { background: var(--accent); border-color: transparent; color: #fff; }

.game-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.game-head { display: flex; align-items: center; gap: 16px; }
.game-icon { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border); }
.game-head h3 { font-size: 24px; }
.game-genre { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.game-desc { color: var(--muted); margin: 0; flex: 1; }
.game-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.game-meta li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.game-meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.game-actions { margin-top: 8px; }

/* Platform availability row (Web / Android / iOS) */
.platforms { margin-top: 22px; }
.platforms-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.platform-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.platform { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: inherit; text-decoration: none; }
.platform-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
.platform-status { font-size: 13px; color: var(--muted); }
.platform-live { border-color: rgba(124,58,237,.55); background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(244,63,94,.16)); transition: transform .25s ease, border-color .25s ease; }
.platform-live .platform-status { color: #fff; font-weight: 600; }
.platform-live:hover { transform: translateY(-2px); border-color: var(--primary); }
.platform-live:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.platform-soon { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .platform-live { transition: none; } }

/* ---------- About ---------- */
.about-lead { color: var(--muted); font-size: 19px; max-width: 720px; margin: 0 0 48px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease-out), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(244,63,94,.45); }
.pillar svg { width: 36px; height: 36px; color: var(--primary); margin-bottom: 16px; }
.pillar:nth-child(2) svg { color: var(--accent); }
.pillar:nth-child(3) svg { color: var(--gold); }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); border-radius: 26px;
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.28), transparent 60%);
  pointer-events: none;
}
.contact-card h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; position: relative; }
.contact-card p { color: var(--muted); position: relative; }
.socials { display: flex; gap: 14px; justify-content: center; margin-top: 28px; position: relative; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 22px; min-height: 48px; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease-out), border-color .25s;
}
.social-btn:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; margin: 0; }
.to-top { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px; }
.to-top:hover { color: var(--fg); }

/* ---------- Motion: reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .38s var(--ease-out), transform .38s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] .word { display: inline-block; white-space: nowrap; }
.js [data-stagger] .char { opacity: 0; transform: translateY(18px) rotateX(-40deg); display: inline-block; }
.js [data-stagger].in .char { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js [data-stagger] .char { opacity: 1 !important; transform: none !important; transition: none !important; }
  .orb, .float-card, .chip, .scroll-hint { animation: none !important; }
  .game-card:hover, .pillar:hover, .btn:hover { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 380px; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 28px; }
  .hero-art { min-height: 300px; }
  .dish-chip { width: 46px; height: 46px; }
  .dish-chip img { width: 34px; height: 34px; }
  .card-shot { width: 46%; }
}

/* ---------- Home: card detail link ---------- */
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; color: #A78BFA; font-weight: 600; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { text-decoration: underline; }
.game-card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.35); }

/* ---------- Game detail page ---------- */
.detail { padding: 40px 0 88px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link:hover { color: #fff; }
.detail-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.detail-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.detail-media img { display: block; width: 100%; height: auto; }
.detail-info h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 4px; }
.detail-gallery { margin-top: 72px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; justify-items: center; }
.gallery-grid figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0a0a18; }
.gallery-grid img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; }
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 88px; }
.container-narrow { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal-intro { font-size: 17px; line-height: 1.7; margin: 0 0 36px; }
.legal section { margin-bottom: 28px; }
.legal h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; }
.legal section p { color: var(--muted); line-height: 1.8; margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 4px; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
.legal section a { color: #A78BFA; text-underline-offset: 3px; }
.legal section a:hover { color: #C4B5FD; }

/* Game screenshots strip */
.shots-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; scrollbar-width: thin; }
.shots-strip figure { flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: start; }
.shots-strip img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--card); }
@media (max-width: 560px) { .shots-strip figure { width: 200px; } }

/* Dish collection */
.detail-dishes { margin-top: 8px; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.dish { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 8px 12px; text-align: center; }
.dish img { width: 76px; height: 76px; }
.dish-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-top: 9px; line-height: 1.3; }
.dish-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
