/* Aravana Soft — styles. No external fonts or libraries. */
:root {
  --bg: #0b0c16;
  --bg2: #10122200;
  --panel: #151833;
  --panel2: #1b1f40;
  --line: #2a2f5a;
  --text: #e8ebf8;
  --muted: #a3aad0;
  --accent: #2ee6f6;
  --accent2: #ff3cc7;
  --ink: #0b0c16;
  --radius: 14px;
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}
.t-volt { --accent: #2ee6f6; --accent2: #ff3cc7; }
.t-quest { --accent: #f0961e; --accent2: #a86bff; }
.t-noir { --accent: #e0aa5c; --accent2: #d0453a; }
.t-gothic { --accent: #7fd1c4; --accent2: #e0604a; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255, 60, 199, .10), transparent 60%),
                    radial-gradient(900px 500px at -5% 0%, rgba(46, 230, 246, .09), transparent 60%);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.muted { color: var(--muted); }
section { padding: 56px 0; }
[id] { scroll-margin-top: 84px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 22, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; background: var(--panel); }
.langs { display: flex; gap: 4px; }
.langs a { font-family: var(--mono); font-size: .8rem; font-weight: 700; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.langs a:hover { color: #fff; border-color: var(--accent); }
.langs a[aria-current="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; color: var(--ink); }
.btn-primary:hover { color: var(--ink); border-color: transparent; filter: brightness(1.1); }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 9px; box-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Home hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: #cfd5f2; max-width: 60ch; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; list-style: none; padding: 0; }
.badges li { font-family: var(--mono); font-size: .8rem; border: 1px solid var(--line); background: rgba(21, 24, 51, .7); padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-3deg); }
.collage a { display: block; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s, border-color .2s; }
.collage a:nth-child(2) { transform: translateY(18px); }
.collage a:nth-child(4) { transform: translateY(18px); }
.collage a:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent); }
.collage img { width: 100%; aspect-ratio: 630 / 500; object-fit: cover; image-rendering: pixelated; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.games-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent) inset; }
.card-img { display: block; aspect-ratio: 630 / 500; background: #000; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 0; list-style: none; }
.chip { font-family: var(--mono); font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(11, 12, 22, .6); }
.chip.price { border-color: var(--accent); color: var(--accent); }
.chip.adult { border-color: #ff5d6c; color: #ff8793; font-weight: 700; }

/* Why / universe */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.why div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why h3 { font-size: 1.1rem; color: var(--accent); }
.why p { margin: 0; color: var(--muted); font-size: .96rem; }
.universe { background: linear-gradient(135deg, rgba(46, 230, 246, .10), rgba(255, 60, 199, .10)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.universe p { max-width: 75ch; }

/* Prose */
.prose { max-width: 74ch; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 74ch; }
.prose p { color: #d6dbf3; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { position: relative; padding: 14px 16px 14px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: #d6dbf3; }
.features li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 14px; height: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Game page hero */
.game-hero { position: relative; padding: 36px 0 48px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(1.1); image-rendering: pixelated; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 22, .96) 0%, rgba(11, 12, 22, .75) 55%, rgba(11, 12, 22, .35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.game-hero .wrap { position: relative; z-index: 2; }
.crumbs { font-size: .88rem; margin-bottom: 22px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.game-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; }
.game-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); margin-bottom: 6px; }
.game-hero .sub { font-family: var(--mono); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.tagline { font-size: 1.28rem; font-weight: 600; color: #fff; max-width: 40ch; margin-bottom: 14px; }
.cover-frame { border: 2px solid var(--accent); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 20px 50px rgba(0, 0, 0, .6), 0 0 60px -10px var(--accent); transform: rotate(2deg); }
.cover-frame img { width: 100%; image-rendering: pixelated; }

/* Embed */
.embed-wrap { padding-top: 40px; }
.embed { position: relative; width: 100%; aspect-ratio: 1280 / 740; background: #000; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 50px rgba(0, 0, 0, .5); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: #fff; font: inherit; }
.embed-play img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .25s, transform .4s; image-rendering: pixelated; }
.embed-play:hover img { opacity: .8; transform: scale(1.02); }
.embed-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px; }
.play-ico { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .6); transition: transform .2s; }
.embed-play:hover .play-ico { transform: scale(1.1); }
.play-ico::after { content: ""; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent var(--ink); margin-left: 7px; }
.embed-label { font-weight: 800; font-size: 1.4rem; text-shadow: 0 2px 8px #000; }
.embed-gate { font-size: .92rem; max-width: 46ch; color: #ffd0d4; text-shadow: 0 1px 6px #000; }
.embed-note { font-size: .92rem; color: var(--muted); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; transition: border-color .2s, transform .2s; }
.gallery a:hover { border-color: var(--accent); transform: translateY(-3px); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.preview { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 640px; margin-bottom: 28px; }
.preview img { width: 100%; image-rendering: pixelated; }
dialog.lightbox { max-width: min(96vw, 1280px); width: 100%; background: #000; border: 2px solid var(--accent); border-radius: 12px; padding: 0; color: #fff; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 6, 12, .88); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; image-rendering: pixelated; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .92rem; background: var(--panel); border-radius: 0 0 10px 10px; }
.lb-bar span { flex: 1; color: var(--muted); }
.lb-bar button { background: var(--panel2); color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font: inherit; cursor: pointer; }
.lb-bar button:hover { border-color: var(--accent); }

/* Tables, facts, FAQ */
.kv { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv th, .kv td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { color: var(--muted); font-weight: 600; width: 40%; }
kbd { font-family: var(--mono); font-size: .86em; background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 2px 8px; color: #fff; white-space: nowrap; }
.notice { border: 1px solid #7c2a35; background: rgba(255, 93, 108, .08); border-radius: 12px; padding: 18px 20px; color: #ffd6da; }
.notice h3 { color: #ff8793; margin-bottom: 8px; }
.notice p { margin: 0; }
.ai-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; margin-top: 22px; }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq[open] { border-color: var(--accent); }
details.faq p { padding: 0 20px 18px; margin: 0; color: #cfd5f2; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, rgba(46, 230, 246, .12), rgba(255, 60, 199, .12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #080913; padding: 44px 0 30px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd5f2; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }

/* Language suggestion */
.langbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 520px; margin: 0 auto; background: var(--panel2); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); font-size: .95rem; }
.langbar span { flex: 1; }
.langbar button { border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px 8px; }

.e404 { text-align: center; padding: 110px 0; }
.e404 h1 { font-size: clamp(3rem, 12vw, 7rem); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .game-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .collage { max-width: 440px; transform: rotate(-2deg); margin: 0 auto; }
  .cover-frame { max-width: 360px; transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  .bar { gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .langs { margin-left: auto; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .play-ico { width: 68px; height: 68px; }
  .play-ico::after { border-width: 12px 0 12px 20px; margin-left: 5px; }
  .embed-label { font-size: 1.05rem; }
  .embed-gate { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band, .universe { padding: 24px; }
  .kv th { width: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
