/* =========================================================
   WobbleKey Games: studio website
   ========================================================= */
:root {
  --night: #14112b;
  --night2: #221c4d;
  --cream: #fff9f0;
  --paper: #ffffff;
  --ink: #1f1b3d;
  --ink2: #5d5878;
  --line: #ece3d3;
  --key: #ffbf2e;
  --key-d: #e59c00;
  --pink: #ff4f86;
  --violet: #7c5cff;
  --mint: #22c39a;
  --sky: #3aa7ff;
  --r: 22px;
  --head: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 20px 50px rgba(20, 17, 43, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.5px; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- header ---------------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.site-head.solid, .site-head.light { background: rgba(255, 249, 240, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo svg { width: 38px; height: 38px; transform-origin: 34% 34%; }
.logo:hover svg { animation: wobble .7s ease-in-out; }
.logo b { font-family: var(--head); font-size: 21px; letter-spacing: -.3px; white-space: nowrap; }
.logo b span { color: var(--key); }
.site-head.solid .logo b span, .site-head.light .logo b span { color: var(--key-d); }
@keyframes wobble { 20% { transform: rotate(-16deg); } 45% { transform: rotate(11deg); } 70% { transform: rotate(-5deg); } 100% { transform: none; } }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 13px; border-radius: 12px; opacity: .86; }
.menu a:hover, .menu a[aria-current] { opacity: 1; background: rgba(255, 255, 255, .12); }
.site-head.solid .menu a:hover, .site-head.light .menu a:hover, .site-head.solid .menu a[aria-current], .site-head.light .menu a[aria-current] { background: #fff0cf; }
.menu .pill { background: var(--key); color: var(--night); opacity: 1; margin-left: 6px; box-shadow: 0 3px 0 var(--key-d); }
.menu .pill:hover { background: #ffcc55 !important; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: inherit; cursor: pointer; }
.site-head.solid .burger, .site-head.light .burger { background: #f1e9da; }
.burger svg { width: 22px; height: 22px; margin: auto; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 16px var(--body); text-decoration: none; padding: 15px 24px; border-radius: 16px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(3px); }
.btn-key { background: var(--key); color: var(--night); box-shadow: 0 5px 0 var(--key-d), 0 14px 30px rgba(255, 191, 46, .3); }
.btn-key:active { box-shadow: 0 2px 0 var(--key-d); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #000; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 150px 0 110px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.glow.g1 { width: 520px; height: 520px; background: #6b46ff; top: -160px; right: -80px; }
.glow.g2 { width: 420px; height: 420px; background: #ff3d7f; bottom: -200px; left: -120px; animation-delay: -5s; }
.glow.g3 { width: 300px; height: 300px; background: #ffb21f; top: 40%; left: 45%; opacity: .25; animation-delay: -9s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd76e; background: rgba(255, 191, 46, .12); border: 1px solid rgba(255, 191, 46, .3); padding: 7px 14px; border-radius: 99px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--key); box-shadow: 0 0 0 4px rgba(255, 191, 46, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 191, 46, 0); } }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--key), #ff8fb3 55%, #b7a2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9c4e6; max-width: 32em; margin-bottom: 32px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: #a9a3cf; font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 17px; height: 17px; color: var(--mint); }

/* phone mockup */
.stage { position: relative; justify-self: center; width: min(360px, 100%); }
.phone { position: relative; border-radius: 44px; padding: 11px; background: linear-gradient(160deg, #3b3570, #17132e); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.phone .screen { border-radius: 34px; overflow: hidden; aspect-ratio: 9 / 19.5; background: #f3e6ee; position: relative; }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #0d0b1c; border-radius: 20px; }
.hero .phone { transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-12px); } }
.bubble { position: absolute; z-index: 2; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.bubble b { font-family: var(--head); font-size: 18px; color: var(--pink); }
.bubble small { display: block; font-size: 12px; color: var(--ink2); font-weight: 600; }
.bubble .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.bubble.b1 { top: 16%; left: -18%; } .bubble.b1 .ic { background: #ffe7f0; }
.bubble.b2 { bottom: 18%; right: -16%; animation-delay: -2.5s; } .bubble.b2 .ic { background: #fff2cc; }
.bubble.b3 { bottom: -4%; left: -6%; animation-delay: -1.2s; } .bubble.b3 .ic { background: #e3fbf3; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* marquee */
.ticker { background: var(--key); color: var(--night); overflow: hidden; border-block: 3px solid var(--night); }
.ticker .track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.ticker span { font-family: var(--head); font-weight: 700; font-size: 22px; padding: 14px 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; }
.ticker span::after { content: "✦"; font-size: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.sec { padding: 110px 0; position: relative; }
.sec.tight { padding: 80px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.sec-title { font-size: clamp(34px, 4.6vw, 56px); margin: 12px 0 16px; }
.sec-lead { font-size: 18px; color: var(--ink2); max-width: 36em; }
.center { text-align: center; } .center .sec-lead { margin-inline: auto; }

/* featured game */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.feature .stage { width: min(330px, 100%); }
.feature .phone { transform: rotate(-3deg); }
.sound { position: absolute; z-index: 3; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(20, 17, 43, .75); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.sound svg { width: 22px; height: 22px; }
.game-logo { display: flex; align-items: center; gap: 16px; margin: 16px 0 18px; }
.game-logo img { width: 74px; height: 74px; border-radius: 20px; box-shadow: 0 10px 24px rgba(200, 40, 100, .25); }
.game-logo h3 { font-size: clamp(36px, 4vw, 52px); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: #fff0cf; padding: 5px 10px; border-radius: 99px; }
.feats { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 15px; color: var(--ink2); }
.feats li b { display: block; color: var(--ink); font-size: 15px; }
.feats .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.plat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #f1ecf9; color: var(--ink2); font-size: 14px; font-weight: 700; }
.plat svg { width: 18px; height: 18px; }

.game-hero { grid-template-columns: 1.1fr .9fr; }
.page-hero .kicker { white-space: nowrap; }

/* screenshot rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 22px; margin-top: 46px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail img { border-radius: 26px; box-shadow: var(--shadow); border: 6px solid var(--paper); aspect-ratio: 9 / 19.5; object-fit: cover; width: 100%; }
.rail figcaption { text-align: center; font-weight: 700; margin-top: 12px; color: var(--ink2); font-size: 15px; }

/* games grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.gcard { background: var(--paper); border-radius: 26px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; }
a.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gcard .cover { aspect-ratio: 16 / 11; position: relative; display: grid; place-items: center; overflow: hidden; }
.gcard .cover img.ico { width: 42%; border-radius: 24%; box-shadow: 0 16px 30px rgba(120, 20, 70, .35); transform: rotate(-5deg); }
.gcard .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard h3 { font-size: 26px; }
.gcard p { color: var(--ink2); font-size: 15px; }
.gcard .meta { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chipx { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); color: var(--ink2); }
.mystery { background: repeating-linear-gradient(135deg, #221c4d 0 18px, #1d1842 18px 36px); }
.mystery .q { font-family: var(--head); font-size: 90px; color: rgba(255, 255, 255, .14); }
.mystery .lock { position: absolute; bottom: 16px; left: 16px; color: #ffd76e; font-weight: 700; font-size: 13px; background: rgba(0, 0, 0, .3); padding: 6px 10px; border-radius: 10px; }

/* values */
.values { background: var(--night); color: #fff; border-radius: 40px; padding: 70px 60px; position: relative; overflow: hidden; }
.values .glow.g1 { top: -220px; right: -160px; opacity: .35; }
.values .sec-lead { color: #bdb7dd; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.vcard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 24px; }
.vcard .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 191, 46, .14); margin-bottom: 16px; }
.vcard h4 { font-size: 21px; margin-bottom: 8px; }
.vcard p { color: #bdb7dd; font-size: 15px; }

/* numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.num { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-align: center; }
.num b { display: block; font-family: var(--head); font-size: 50px; line-height: 1; color: var(--ink); }
.num span { color: var(--ink2); font-weight: 600; font-size: 15px; }

/* CTA band */
.cta { background: linear-gradient(120deg, #ffbf2e, #ff8fb3 60%, #a88bff); border-radius: 36px; padding: 60px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; color: var(--night); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); }
.cta p { margin-top: 10px; font-size: 18px; color: #3a2a4d; }
.cta .keyart { position: absolute; right: -30px; top: -40px; width: 220px; opacity: .18; transform: rotate(20deg); }

/* ---------------- footer ---------------- */
.foot { background: var(--night); color: #b9b3da; padding: 70px 0 40px; margin-top: 30px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot h5 { font: 800 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: #b9b3da; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }

/* ---------------- inner pages ---------------- */
.page-hero { background: var(--night); color: #fff; padding: 140px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 14px 0 14px; }
.page-hero p { color: #c9c4e6; font-size: 19px; max-width: 36em; }
.page-hero.pink { background: linear-gradient(135deg, #2a1440, #4b1c55 50%, #6b2a62); }
.doc { max-width: 780px; }
.doc h2 { font-size: 28px; margin: 44px 0 12px; }
.doc p, .doc li { color: #3c3858; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; margin: 20px 0; }
.mail { font-weight: 800; font-size: 20px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 12px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 10px; }
.facts-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.facts-table th, .facts-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 34%; color: var(--ink2); font-weight: 600; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.dl { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.dl .thumb { aspect-ratio: 4 / 3; border-radius: 12px; background: #f4eee3; display: grid; place-items: center; overflow: hidden; }
.dl .thumb img { max-height: 100%; object-fit: contain; }
.dl .thumb.dark { background: var(--night); }
.dl b { font-size: 15px; } .dl small { color: var(--ink2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--key); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.step h4 { font-size: 21px; margin-bottom: 6px; } .step p { color: var(--ink2); font-size: 15px; }

/* form */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { font: 16px var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.side { display: grid; gap: 16px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .hero .wrap, .feature, .split { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 80px; }
  .stage { width: min(300px, 80%); margin-top: 20px; }
  .bubble.b1 { left: -12%; } .bubble.b2 { right: -10%; }
  .vgrid, .nums { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .feature .stage { order: 2; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .values { padding: 50px 26px; border-radius: 30px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: grid; }
  .menu { position: fixed; inset: 72px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 12px; box-shadow: 0 24px 60px rgba(20, 17, 43, .3); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s; }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 14px 16px; font-size: 17px; opacity: 1; }
  .menu a:hover { background: #fff0cf; }
  .menu .pill { margin: 6px 0 0; text-align: center; }
  .sec { padding: 80px 0; }
  .feats { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 70%; }
  .form .row2 { grid-template-columns: 1fr; }
  .bubble { padding: 9px 12px; font-size: 13px; } .bubble .ic { width: 32px; height: 32px; font-size: 17px; }
  .bubble.b1 { left: -10%; top: 10%; } .bubble.b2 { right: -8%; }
}
@media (max-width: 480px) {
  .logo b { font-size: 18px; } .logo svg { width: 34px; height: 34px; }
  .nums, .vgrid { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; }
  .num b { font-size: 42px; }
}
.side .box { margin: 0; }

/* live "play on web" links */
.plat.live { background: #dff7ec; color: #0c7a55; text-decoration: none; box-shadow: inset 0 0 0 2px #9fe3c6; }
.plat.live:hover { background: #c9f0dd; }
.badge.live { color: #0c7a55; background: #dff7ec; }
.chipx.live { color: #0c7a55; background: #dff7ec; border-color: #9fe3c6; }
