/* Shared styles for inner pages (games, about, contact, legal). Mirrors the homepage tokens. */
:root {
  --bg: #0b0a10;
  --surface: #15131c;
  --surface-2: #1d1a27;
  --line: rgba(255,255,255,.08);
  --text: #f4f1f7;
  --muted: #a49fb0;
  --pink: #e91e7a;
  --pink-soft: #f8a0cf;
  --violet: #8b3dff;
  --grad: linear-gradient(100deg, #e91e7a 0%, #c02ad6 55%, #8b3dff 100%);
  --radius: 28px;
  --smooth: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.display { font-stretch: 72%; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* nav */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-inner {
  pointer-events: auto; width: min(1240px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px; border-radius: 999px;
  background: rgba(21,19,28,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); transition: transform .6s var(--smooth);
}
.nav.hide .nav-inner { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: transform .9s var(--smooth); }
.brand:hover img { transform: rotate(360deg); }
.brand span { font-stretch: 80%; font-size: 20px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: rgba(255,255,255,.06); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--grad); background-size: 200% 100%; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(233,30,122,.7);
  transition: background-position .6s var(--smooth), transform .6s var(--smooth);
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.07); box-shadow: none; border: 1px solid var(--line); }
.store {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 14px; font-weight: 700;
  transition: background .4s var(--smooth), color .4s var(--smooth), transform .6s var(--smooth);
}
.store:hover { background: #fff; color: #111; transform: translateY(-3px); }
.store svg { width: 18px; height: 18px; }
.store.big { padding: 14px 22px; font-size: 15px; border-radius: 16px; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; line-height: 1; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }

/* breadcrumbs */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* generic page hero */
.page-hero { position: relative; padding: 150px 0 50px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -30%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(circle, rgba(233,30,122,.22), rgba(139,61,255,.1) 40%, transparent 65%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(56px, 9vw, 128px); margin-top: 18px; }
.page-hero p.lead { color: var(--muted); max-width: 600px; margin-top: 18px; font-size: 18px; line-height: 1.6; }

/* ---------- GAME PAGE ---------- */
.g-hero { position: relative; padding: 130px 0 70px; overflow: hidden; }
.g-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 25% 40%, color-mix(in srgb, var(--c1) 35%, transparent), transparent 70%),
              radial-gradient(ellipse 40% 50% at 80% 30%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%);
}
.g-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.g-icon {
  width: 120px; height: 120px; border-radius: 30px; overflow: hidden; margin-top: 26px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
  animation: iconIn 1.1s var(--smooth) both, bob 6s 1.1s ease-in-out infinite;
}
.g-icon img { width: 100%; height: 100%; object-fit: cover; }
.g-hero h1 { font-size: clamp(52px, 7vw, 104px); margin-top: 22px; animation: rise 1s .1s var(--smooth) both; }
.g-tag { font-size: 20px; line-height: 1.5; color: #d9d4e2; max-width: 520px; margin-top: 16px; animation: rise 1s .2s var(--smooth) both; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; animation: rise 1s .3s var(--smooth) both; }
.chip { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.chip.hl { color: var(--pink-soft); }
.g-hero .stores { margin-top: 26px; animation: rise 1s .4s var(--smooth) both; }

.phones { position: relative; height: 560px; perspective: 1400px; }
.phone {
  position: absolute; top: 50%; left: 50%; width: 230px; aspect-ratio: 9 / 19.5; margin: -250px 0 0 -115px;
  border-radius: 34px; overflow: hidden; background: #000;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.9), 0 0 0 6px #1b1922, 0 0 0 7px rgba(255,255,255,.12);
  transition: transform .9s var(--smooth);
  will-change: transform;
  animation: phoneIn 1.2s var(--smooth) both;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(1) { transform: translateX(-150px) translateY(30px) rotate(-10deg) scale(.88); animation-delay: .35s; z-index: 1; }
.phone:nth-child(2) { transform: translateY(0) rotate(0deg); animation-delay: .2s; z-index: 3; }
.phone:nth-child(3) { transform: translateX(150px) translateY(30px) rotate(10deg) scale(.88); animation-delay: .45s; z-index: 2; }
.phones:hover .phone:nth-child(1) { transform: translateX(-190px) translateY(18px) rotate(-13deg) scale(.9); }
.phones:hover .phone:nth-child(3) { transform: translateX(190px) translateY(18px) rotate(13deg) scale(.9); }
.phones:hover .phone:nth-child(2) { transform: translateY(-12px) scale(1.02); }
.art-panel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); animation: phoneIn 1.2s .2s var(--smooth) both; }
.art-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--smooth); }
.art-panel:hover img { transform: scale(1.05); }

.g-section { padding: 70px 0 0; }
.g-section h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 26px; }
.g-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.g-about .prose p { font-size: 19px; line-height: 1.7; color: #ddd8e4; }
.g-about .prose p + p { margin-top: 16px; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px 22px; }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { font-weight: 700; text-align: right; }

.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 34px; margin-bottom: 20px; }
.steps { list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; font-size: 16px; line-height: 1.45; }
.steps li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-stretch: 75%; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--pink)), var(--c2, var(--violet)));
}
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: "✦"; color: var(--pink-soft); font-size: 18px; line-height: 1.3; }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; }
.gallery figure { flex: 0 0 auto; scroll-snap-align: start; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); transition: transform .7s var(--smooth); }
.gallery figure:hover { transform: translateY(-6px); }
.gallery figure.shot { width: 250px; aspect-ratio: 9 / 19.5; }
.gallery figure.wide { width: 560px; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; transition: border-color .4s var(--smooth); }
.faq details[open] { border-color: rgba(248,160,207,.3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--pink-soft); transition: transform .5s var(--smooth); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 0 20px; color: var(--muted); line-height: 1.65; font-size: 16px; }

.g-cta {
  position: relative; overflow: hidden; border-radius: 36px; padding: 50px; margin-top: 80px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 55%),
              radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 55%), var(--surface-2);
  border: 1px solid var(--line);
}
.g-cta img { width: 110px; height: 110px; border-radius: 28px; object-fit: cover; transition: transform .9s var(--smooth); }
.g-cta:hover img { transform: rotate(-6deg) scale(1.05); }
.g-cta h2 { font-size: clamp(34px, 4vw, 54px); }
.g-cta p { color: var(--muted); margin-top: 8px; }

/* cards (related + games index) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.gcard2 {
  --c1: #e91e7a; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .7s var(--smooth), border-color .5s var(--smooth);
}
.gcard2::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 55%, transparent), transparent 65%); opacity: .35; transition: opacity .6s var(--smooth);
}
.gcard2:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); }
.gcard2:hover::before { opacity: .7; }
.gcard2 .top { display: flex; gap: 14px; align-items: center; position: relative; }
.gcard2 .top img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 22px -10px rgba(0,0,0,.8); transition: transform .8s var(--smooth); }
.gcard2:hover .top img { transform: rotate(-5deg) scale(1.06); }
.gcard2 h3 { font-size: 22px; font-stretch: 80%; font-weight: 900; text-transform: uppercase; line-height: 1.02; }
.gcard2 .genre { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.gcard2 p { position: relative; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.gcard2 .meta { position: relative; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.gcard2 .meta span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.gcard2 .meta .dl { color: var(--pink-soft); }
.gcard2 .go { position: relative; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: gap .5s var(--smooth), color .4s; }
.gcard2:hover .go { gap: 12px; color: var(--pink-soft); }
.gcard2.hidden { display: none; }
.gcard2.pop { animation: popIn .7s var(--smooth) both; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  transition: color .3s, background .3s, transform .5s var(--smooth);
}
.filters button:hover { color: var(--text); transform: translateY(-2px); }
.filters button.on { color: #fff; background: var(--grad); border-color: transparent; }
.group-title { font-size: 40px; margin: 56px 0 18px; }

/* about / contact */
.statement { font-size: clamp(30px, 4.2vw, 58px); font-weight: 800; font-stretch: 85%; line-height: 1.1; max-width: 1100px; }
.statement .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.pillar { padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .7s var(--smooth); }
.pillar:hover { transform: translateY(-6px); }
.pillar .no { font-stretch: 72%; font-weight: 900; font-size: 80px; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(248,160,207,.4); transition: color .5s var(--smooth); }
.pillar:hover .no { color: var(--pink); }
.pillar h3 { font-size: 30px; margin-top: 20px; }
.pillar p { color: var(--muted); line-height: 1.6; margin-top: 10px; }
.pillar a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .num { font-size: clamp(60px, 7vw, 110px); }
.stat .lbl { color: var(--muted); margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.form-card { padding: 40px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 120%, rgba(233,30,122,.35), transparent 55%), var(--surface-2); }
form.say { display: flex; flex-direction: column; gap: 14px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); padding: 24px 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.25); outline: none; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 17px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--smooth), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(233,30,122,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); color: var(--pink-soft); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.topics legend { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); transition: all .3s var(--smooth); }
.topics input:checked + label { background: var(--grad); color: #fff; border-color: transparent; }
.topics input:focus-visible + label { outline: 2px solid var(--pink-soft); outline-offset: 2px; }
form.say .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); }
.info { display: grid; gap: 14px; }
.info .panel h3 { font-size: 26px; margin-bottom: 10px; }
.info .panel p, .info .panel li { color: var(--muted); line-height: 1.6; }
.info .panel a { color: var(--pink-soft); }
.info ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }

/* legal */
.legal { max-width: 820px; padding-bottom: 40px; }
.legal h2 { font-size: 28px; font-weight: 800; margin: 36px 0 12px; }
.legal h3 { font-size: 20px; font-weight: 800; margin: 26px 0 10px; }
.legal p, .legal li { color: #d6d1de; line-height: 1.75; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 10px 0; }
.legal a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.legal td, .legal th { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }

/* footer */
footer.site { padding: 110px 0 0; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h5 { color: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { margin-top: 16px; line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); transition: background .4s var(--smooth), transform .6s var(--smooth); }
.socials a:hover { background: var(--pink); transform: translateY(-4px) rotate(-8deg); }
.socials svg { width: 18px; height: 18px; }
.foot-stores { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wordmark { margin-top: 80px; text-align: center; user-select: none; font-size: clamp(64px, 17vw, 260px); font-stretch: 72%; font-weight: 900; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.12); background: var(--grad); -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1.4s var(--smooth); }
.wordmark.in, .wordmark:hover { background-size: 100% 100%; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 36px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 13px; }

/* reveal + keyframes */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--smooth), transform 1.1s var(--smooth); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes iconIn { from { opacity: 0; transform: scale(.6) rotate(-14deg); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes phoneIn { from { opacity: 0; translate: 0 120px; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .g-hero-in, .g-about, .g-split, .contact-grid { grid-template-columns: 1fr; }
  .phones { height: 480px; }
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .g-hero { padding-top: 110px; }
  .phones { height: 400px; }
  .phone { width: 170px; margin: -185px 0 0 -85px; border-radius: 26px; }
  .phone:nth-child(1) { transform: translateX(-105px) translateY(24px) rotate(-10deg) scale(.86); }
  .phone:nth-child(3) { transform: translateX(105px) translateY(24px) rotate(10deg) scale(.86); }
  .cards, .cards.four, .stats-row { grid-template-columns: 1fr; }
  .g-cta { grid-template-columns: 1fr; padding: 32px 24px; text-align: left; }
  .gallery figure.shot { width: 200px; }
  .gallery figure.wide { width: 320px; }
  .form-card { padding: 26px 20px; }
  .brand small { display: none; }
  .nav .btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
