/* Playtime Studios: premium dark theme */
:root {
  --bg: #07080d;
  --bg-2: #0c0e17;
  --text: #f1f2f8;
  --muted: #9ba2b8;
  --soft: #c6cbdc;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .04);
  --c1: #ff7a59;
  --c2: #8b7cff;
  --c3: #3de0b5;
  --c4: #ffc857;
  --grad: linear-gradient(100deg, #ff7a59 0%, #a78bff 55%, #3de0b5 100%);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pagein .6s ease both;
}
a { color: var(--c1); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 .5em; font-weight: 800; font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1 { font-size: clamp(2.9rem, 7.4vw, 5.8rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap, .container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--soft); max-width: 50ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 12px var(--c3); animation: pulse 2s ease-in-out infinite; }

/* Ambient background */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% -5%, rgba(139, 124, 255, .20), transparent 70%),
    radial-gradient(45% 40% at 95% 8%, rgba(255, 122, 89, .13), transparent 70%),
    radial-gradient(60% 45% at 60% 105%, rgba(61, 224, 181, .08), transparent 70%); }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(7, 8, 13, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 1.18rem; white-space: nowrap; font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, sans-serif; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 6px 18px rgba(139, 124, 255, .35)); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 4px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); background: var(--glass); }
.nav nav a.nav-cta { color: #0a0b12; background: var(--text); margin-left: 8px; font-weight: 700; }
.nav nav a.nav-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255, 255, 255, .18); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; will-change: transform; }
.btn.primary { background: var(--grad); color: #0a0b12; box-shadow: 0 12px 40px rgba(255, 122, 89, .28); }
.btn.primary:hover { box-shadow: 0 16px 52px rgba(139, 124, 255, .45); }
.btn.ghost { background: var(--glass); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .07); }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; transform: scale(1.04); will-change: transform; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 8, 13, .88) 26%, rgba(7, 8, 13, .25) 55%, transparent 75%),
    linear-gradient(180deg, rgba(7, 8, 13, .55) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: .32em; text-shadow: 0 6px 40px rgba(7, 8, 13, .7); }
.hero h1 .line { display: block; }
.hero .lead { color: #c9cee0; text-shadow: 0 2px 18px rgba(7, 8, 13, .9); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 38px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 10px var(--c3); }
.w { display: inline-block; opacity: 0; transform: translateY(42%) rotate(2deg); filter: blur(8px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
.fade-up { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, .2s); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; z-index: 1; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: scrolldot 1.8s ease-in-out infinite; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: rgba(10, 12, 20, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding: 22px 14px; font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; color: rgba(241, 242, 248, .75); white-space: nowrap; }
.marquee span::after { content: "✦"; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .9em; }

/* Sections */
.section { padding: clamp(76px, 11vw, 140px) 0; }
.section.tight-top { padding-top: 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--muted); }

/* Featured game */
.game { position: relative; border-radius: 36px; padding: 1px; background: linear-gradient(140deg, rgba(255, 122, 89, .55), rgba(139, 124, 255, .35) 45%, rgba(61, 224, 181, .45)); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.game-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 24px; align-items: center; border-radius: 35px; padding: clamp(32px, 5vw, 64px); overflow: hidden;
  background: radial-gradient(70% 90% at 90% 20%, rgba(255, 200, 87, .10), transparent 65%), radial-gradient(60% 80% at 0% 100%, rgba(139, 124, 255, .16), transparent 65%), #0b0d16; }
.game-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); margin-bottom: 26px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c3); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(61, 224, 181, .35); background: rgba(61, 224, 181, .08); margin-bottom: 16px; }
.game h3 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: .35em; }
.game p { color: var(--soft); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.tags li { font-size: .84rem; font-weight: 700; color: var(--soft); padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.phones { position: relative; height: clamp(360px, 46vw, 560px); }
.phone { position: absolute; width: clamp(150px, 19vw, 232px); aspect-ratio: 560 / 1216; padding: 7px; border-radius: 34px; background: linear-gradient(160deg, #20233a, #0c0e17); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .6s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 14px; margin-left: -15%; border-radius: 10px; background: #05060a; z-index: 2; }
.phone.a { left: 50%; top: 0; margin-left: calc(clamp(150px, 19vw, 232px) / -2); z-index: 3; transform: translateY(0); }
.phone.b { left: 2%; top: 9%; z-index: 2; transform: rotate(-7deg); }
.phone.c { right: 2%; top: 13%; z-index: 1; transform: rotate(7deg); }
.phones:hover .phone.b { transform: rotate(-10deg) translateX(-8px); }
.phones:hover .phone.c { transform: rotate(10deg) translateX(8px); }
.phones:hover .phone.a { transform: translateY(-8px); }
.soon { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 22px 28px; border-radius: 22px; border: 1px dashed var(--line-2); background: var(--glass); color: var(--muted); }
.soon img { width: 48px; height: 48px; opacity: .9; }
.soon strong { color: var(--text); display: block; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 36px 30px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 124, 255, .22), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .num { position: absolute; top: 28px; right: 30px; font-size: .82rem; font-weight: 800; letter-spacing: .12em; color: rgba(255, 255, 255, .28); }
.card .ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 26px; color: #0a0b12; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.card:nth-child(1) .ico { background: linear-gradient(135deg, #ff9a7e, #ff5a3d); }
.card:nth-child(2) .ico { background: linear-gradient(135deg, #a99aff, #6a4de6); color: #fff; }
.card:nth-child(3) .ico { background: linear-gradient(135deg, #5df2cc, #17c49c); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-top: 28px; }
.card .ico + h3 { margin-top: 0; }
.statement { font-size: clamp(1.9rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.16; max-width: 24em; font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, sans-serif; }
.statement .sw { color: rgba(241, 242, 248, .2); transition: color .35s; }
.statement .sw.lit { color: var(--text); }

/* CTA */
.cta { position: relative; border-radius: 36px; padding: 1px; background: linear-gradient(135deg, rgba(255, 122, 89, .65), rgba(139, 124, 255, .5), rgba(61, 224, 181, .55)); }
.cta-inner { position: relative; border-radius: 35px; padding: clamp(44px, 8vw, 96px) clamp(24px, 6vw, 80px); text-align: center; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, rgba(139, 124, 255, .22), transparent 70%), #0a0c14; }
.cta-inner > * { position: relative; }
.cta-mark { width: 92px; height: 92px; margin: 0 auto 26px; filter: drop-shadow(0 16px 36px rgba(139, 124, 255, .4)); animation: bob 3.6s ease-in-out infinite; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 16ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.cta .btns { justify-content: center; }

/* Inner pages */
.page-hero { padding: clamp(150px, 20vw, 210px) 0 clamp(36px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); max-width: 16ch; }
.page-hero.split .wrap, .page-hero.split .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.page-hero .art { width: min(100%, 340px); justify-self: end; filter: drop-shadow(0 30px 60px rgba(139, 124, 255, .35)); animation: bob 4.2s ease-in-out infinite; }
.big-mail { display: inline-block; font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; margin: 8px 0 28px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }
.doc-wrap { padding-bottom: 24px; }
.doc { max-width: 72ch; padding-bottom: 80px; }
.doc h2 { margin-top: 1.9em; font-size: 1.3rem; letter-spacing: -0.02em; }
.doc ul, .doc ol { padding-left: 1.3em; color: var(--muted); }
.doc li { margin-bottom: .35em; }
.doc p { color: #c5cadb; }
.notice { background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .35); border-radius: 14px; padding: 14px 18px; margin: 8px 0 24px; color: var(--text); }
.container.doc { max-width: var(--max); }
.container.doc > * { max-width: 72ch; }
.page-hero .container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.page-hero .container > .eyebrow, .page-hero .container > h1 { grid-column: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); font-size: .95rem; background: rgba(7, 8, 13, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.foot-brand p { margin: 16px 0 0; max-width: 28ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin: 0 0 6px; font-family: inherit; font-weight: 800; }
.foot-col a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--text); text-decoration: none; font-weight: 600; }

/* Reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .game-inner { grid-template-columns: 1fr; }
  .phones { height: clamp(380px, 92vw, 520px); }
  .phone { width: clamp(140px, 36vw, 210px); }
  .phone.a { margin-left: calc(clamp(140px, 36vw, 210px) / -2); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .page-hero.split .wrap, .page-hero.split .container { grid-template-columns: 1fr; }
  .page-hero .art { justify-self: start; width: 180px; }
}
@media (max-width: 760px) {
  .nav { min-height: 66px; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .nav nav a { padding: 8px 11px; }
  .nav nav a[href$="#games"] { display: none; }
  .hero { align-items: flex-end; padding: 110px 0 70px; min-height: 100svh; }
  .hero-art img { object-position: 74% 18%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(7, 8, 13, .4) 0%, transparent 18%, rgba(7, 8, 13, .55) 46%, var(--bg) 78%); }
  .hero-copy { padding-top: 38vh; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .w, .fade-up { animation: none; opacity: 1; transform: none; filter: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .eyebrow .dot, .scroll-hint::after, .cta-mark, .page-hero .art { animation: none; }
  .card, .btn, .phone { transition: none; }
  .progress { display: none; }
}

/* Polish */
::selection { background: rgba(139, 124, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); pointer-events: none; }
