/* DevLabyrinth — site styles, built on Main Street Tycoon's own look:
   Lilita One + Nunito, chunky ink outlines, hard drop shadows and a bright palette. */
:root {
  --ink: #0e5f73;
  --navy: #17324d;
  --soft: #3d5a6c;
  --aqua: #22c3c9;
  --aqua-deep: #14959b;
  --pink: #ff5fa8;
  --pink-deep: #c93a80;
  --sun: #ffd24a;
  --sun-deep: #c98a00;
  --mint: #7ee0c3;
  --grass: #6cc644;
  --blue: #2f80d1;
  --purple: #8a4fd8;
  --orange: #ff8a3d;
  --sky: #c9f5f6;
  --cream: #fff8e6;
  --lilac: #f1e8ff;
  --mint-l: #e1f6ea;
  --sun-l: #fff3c4;
  --pink-l: #ffe4f0;
  --blue-l: #e3f1ff;
  --white: #ffffff;
  --rim: 3px solid var(--ink);
  --drop: 0 6px 0 var(--ink);
  --glow: 0 30px 50px -24px rgb(14 95 115 / 0.45);
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: Nunito, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  --max: 1400px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 500 17px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 50; padding: 10px 16px; background: var(--sun); border: var(--rim); border-radius: 12px; font-weight: 900; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.02; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.5rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.1; }
p { color: var(--soft); }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.6; max-width: 60ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.section-head .lede { margin-top: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 8px 15px; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); font: 900 0.8rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--white); transform: rotate(-1.5deg); }
.kicker svg { width: 1em; height: 1em; }
.kicker-aqua { background: var(--aqua); }
.kicker-pink { background: var(--pink); color: var(--white); }
.kicker-sun { background: var(--sun); }
.kicker-purple { background: var(--purple); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--ink); border-bottom: 3px solid var(--sun); padding-bottom: 1px; transition: border-color 0.2s, color 0.2s; }
.text-link:hover { border-color: var(--pink); color: var(--pink-deep); }
.chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font: 900 0.78rem/1.2 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }

/* Logo lettering, styled like the game's own title */
.logo-type { display: flex; flex-direction: column; align-items: flex-start; line-height: 0.9; margin: 4px 0 6px; }
.logo-type span { display: block; --o: 4px; text-shadow: var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink), var(--o) var(--o) 0 var(--ink), calc(var(--o) * -1) var(--o) 0 var(--ink), var(--o) calc(var(--o) * -1) 0 var(--ink), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink), 0 calc(var(--o) * 2.6) 0 var(--ink); }
.lt-top { color: var(--white); font-size: clamp(3rem, 6.6vw, 6.4rem); animation: pop 0.8s var(--bounce) both; }
.lt-bottom { color: var(--sun); font-size: clamp(3.8rem, 8.6vw, 8.4rem); transform: rotate(-3deg); margin-left: 0.08em; animation: pop 0.8s var(--bounce) 0.15s both; }
.logo-sm .lt-top { font-size: clamp(2.4rem, 4.4vw, 4rem); --o: 3px; }
.logo-sm .lt-bottom { font-size: clamp(3rem, 5.6vw, 5.2rem); --o: 3px; }
.tagline { font: 400 clamp(1.3rem, 2.1vw, 1.9rem)/1.15 var(--display); color: var(--pink-deep); margin-top: 18px; }

/* ---------- buttons: chunky, like the game's */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: var(--rim); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); font: 400 1.15rem/1 var(--display); letter-spacing: 0.02em; color: var(--navy); white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 1em; height: 1em; }
.btn-xl { min-height: 66px; padding: 0 30px; font-size: 1.45rem; border-radius: 20px; }
.btn-lg { min-height: 60px; padding: 0 26px; font-size: 1.25rem; border-radius: 18px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1rem; border-radius: 13px; box-shadow: 0 4px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: #ffdc6e; }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-white { background: var(--white); }
.btn-white:hover { background: #f2fdfd; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #127189; }
.shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.85) 50%, transparent 65%); transform: translateX(-130%); animation: shine 3.6s ease-in-out 1.2s infinite; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- cards and tiles */
.card { background: var(--white); border: var(--rim); border-radius: 22px; box-shadow: var(--drop); padding: 30px; transition: transform 0.3s var(--bounce); }
.card:hover { transform: translateY(-5px) rotate(-0.4deg); }
.card h3 { margin: 18px 0 10px; }
.icon-tile { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; border: var(--rim); box-shadow: 0 4px 0 var(--ink); color: var(--navy); }
.icon-tile svg { width: 28px; height: 28px; stroke-width: 2.3; }
.tile-pink { background: var(--pink); color: var(--white); }
.tile-sun { background: var(--sun); }
.tile-aqua { background: var(--aqua); }
.tile-purple { background: var(--purple); color: var(--white); }
.num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: var(--rim); box-shadow: 0 4px 0 var(--ink); font: 400 1.35rem/1 var(--display); color: var(--navy); }
.num-pink { background: var(--pink); color: var(--white); }
.num-sun { background: var(--sun); }
.num-aqua { background: var(--aqua); }
.num-purple { background: var(--purple); color: var(--white); }
.tone-pink { --face: var(--pink-l); --edge: var(--pink); }
.tone-grass { --face: #e6f8d8; --edge: var(--grass); }
.tone-purple { --face: var(--lilac); --edge: var(--purple); }
.tone-blue { --face: var(--blue-l); --edge: var(--blue); }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(170%) blur(12px); -webkit-backdrop-filter: saturate(170%) blur(12px); border-bottom: var(--rim); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 400 1.5rem/1 var(--display); color: var(--navy); }
.brand img { border-radius: 11px; transition: transform 0.4s var(--bounce); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.site-head nav { display: flex; gap: 6px; margin-left: auto; }
.site-head nav a { padding: 9px 16px; border-radius: 999px; border: 2.5px solid transparent; font-weight: 900; color: var(--soft); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.site-head nav a:hover { background: var(--sky); color: var(--navy); }
.site-head nav a[aria-current] { background: var(--aqua); color: var(--navy); border-color: var(--ink); }

/* ---------- screenshot frames */
.frame { position: relative; overflow: hidden; border: var(--rim); border-radius: 18px; background: var(--white); box-shadow: 0 8px 0 var(--ink), var(--glow); }
.frame img { width: 100%; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: var(--white); border-bottom: var(--rim); }
.frame-bar i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); }
.frame-bar i:nth-child(2) { background: var(--sun); }
.frame-bar i:nth-child(3) { background: var(--aqua); }
.frame-title { flex: 1; max-width: 340px; margin: 0 auto; padding: 3px 12px; border-radius: 9px; background: var(--sky); font-size: 0.78rem; font-weight: 900; color: var(--ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-window .frame-bar { background: #f3fbfc; }
.frame-window .frame-title { background: transparent; text-align: left; margin: 0; padding-left: 4px; }

/* ---------- decorations */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles span { position: absolute; bottom: -90px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.95); background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / 0.95) 0 9%, rgb(255 255 255 / 0.12) 11% 62%, rgb(255 255 255 / 0.4) 100%); animation: bubble var(--d) linear var(--delay) infinite; }
.wave { position: absolute; left: 0; bottom: -1px; z-index: 2; display: block; width: 100%; height: clamp(36px, 5.5vw, 84px); pointer-events: none; stroke: none; }
.wave-flip { bottom: calc(100% - 1px); }
.wave-white { fill: var(--white); }
.wave-cream { fill: var(--cream); }
.wave-sky { fill: var(--sky); }
.wave-lilac { fill: var(--lilac); }
.wave-mint { fill: var(--mint-l); }

/* ---------- home hero */
.hero { position: relative; background: radial-gradient(40% 50% at 85% 20%, rgb(255 95 168 / 0.2), transparent 70%), radial-gradient(35% 45% at 5% 85%, rgb(255 210 74 / 0.35), transparent 70%), linear-gradient(180deg, #a6ecf0 0%, var(--sky) 55%, #eafdfd 100%); padding: clamp(34px, 5vw, 70px) 0 clamp(110px, 12vw, 170px); }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.hero .lede { margin-top: 16px; color: var(--soft); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 900; color: var(--ink); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--grass); color: var(--white); border: 2px solid var(--ink); }
.hero-stage { position: relative; padding: 26px 10px 0; }
.stage-tilt { transform: perspective(1500px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, -6deg)); transition: transform 0.6s var(--ease); }
.hero-stage .stage-tilt { animation: rise 1s var(--ease) 0.2s both; }
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: kenburns 6.5s ease-out both; }
.sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: var(--rim); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); font: 400 1.15rem/1 var(--display); color: var(--navy); white-space: nowrap; }
.sticker b { font-weight: 400; font-size: 1.6em; }
.sticker svg { width: 1.2em; height: 1.2em; }
.sticker-pink { background: var(--pink); color: var(--white); top: -4px; left: -18px; --r: -8deg; }
.sticker-sun { background: var(--sun); right: -22px; top: 44%; --r: 6deg; }
.sticker-aqua { background: var(--aqua); left: -26px; bottom: 120px; --r: -4deg; }
.float-a { animation: pop 0.7s var(--bounce) 0.6s both, bob 4.5s ease-in-out 1.3s infinite; }
.float-b { animation: pop 0.7s var(--bounce) 0.8s both, bob 5.2s ease-in-out 1.5s infinite; }
.float-c { animation: pop 0.7s var(--bounce) 1s both, bob 4.8s ease-in-out 1.7s infinite; }
.town-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.town-dot { position: relative; overflow: hidden; display: grid; gap: 2px; text-align: left; padding: 10px 12px 12px; border: var(--rim); border-radius: 14px; background: var(--white); box-shadow: 0 4px 0 var(--ink); transition: transform 0.2s var(--bounce), background 0.2s; }
.town-dot b { font: 900 0.72rem/1 var(--body); color: var(--soft); }
.town-dot span { font: 400 0.98rem/1.1 var(--display); color: var(--navy); }
.town-dot i { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--edge); }
.town-dot:hover { transform: translateY(-3px); }
.town-dot.is-active { background: var(--face); }
.town-dot.is-active i { animation: progress 5s linear both; }
.paused .town-dot.is-active i { animation-play-state: paused; }

/* marquee */
.marquee { position: relative; background: var(--white); padding: 0 0 clamp(40px, 5vw, 70px); overflow: hidden; }
.awning { height: 34px; margin: -6px 0 40px; background: repeating-linear-gradient(90deg, var(--pink) 0 56px, var(--white) 56px 112px); border-block: var(--rim); box-shadow: 0 5px 0 rgb(14 95 115 / 0.18); }
.marquee-track { display: flex; gap: 20px; width: max-content; padding: 6px 0 10px; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { width: clamp(240px, 26vw, 360px); flex: none; }
.marquee li:nth-child(odd) { transform: rotate(-1.5deg); }
.marquee li:nth-child(even) { transform: rotate(1.5deg) translateY(8px); }
.marquee img { aspect-ratio: 16 / 9; object-fit: cover; border: var(--rim); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }

/* ---------- sections */
.section { position: relative; padding: clamp(70px, 9vw, 130px) 0; }

.town-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.town-card { display: flex; flex-direction: column; background: var(--face); border: var(--rim); border-radius: 24px; box-shadow: var(--drop); overflow: hidden; transition: transform 0.35s var(--bounce), box-shadow 0.35s; }
.town-card:hover { transform: translateY(-8px) rotate(-0.8deg); box-shadow: 0 12px 0 var(--ink); }
.town-card:nth-child(even):hover { transform: translateY(-8px) rotate(0.8deg); }
.town-shot { position: relative; border-bottom: var(--rim); overflow: hidden; }
.town-shot img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.town-card:hover .town-shot img { transform: scale(1.08); }
.town-num { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: var(--rim); background: var(--edge); color: var(--white); box-shadow: 0 4px 0 var(--ink); font: 400 1.25rem/1 var(--display); }
.town-copy { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; flex: 1; }
.town-copy h3 { font-size: 1.7rem; }
.town-copy p { font-size: 0.98rem; }
.builds { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 900; color: var(--ink); }
.builds svg { width: 22px; height: 22px; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

.stats-band { position: relative; background: linear-gradient(120deg, var(--aqua) 0%, #39d0c0 50%, var(--mint) 100%); padding: clamp(56px, 7vw, 96px) 0; border-block: var(--rim); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: grid; gap: 6px; align-content: start; padding: 24px 24px 26px; background: var(--white); border: var(--rim); border-radius: 22px; box-shadow: var(--drop); }
.stat b { font: 400 clamp(2.8rem, 4.6vw, 4.2rem)/1 var(--display); --o: 3px; text-shadow: var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink), var(--o) var(--o) 0 var(--ink), calc(var(--o) * -1) var(--o) 0 var(--ink), var(--o) calc(var(--o) * -1) 0 var(--ink), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink), 0 6px 0 var(--ink); }
.stat-pink b { color: var(--pink); }
.stat-sun b { color: var(--sun); }
.stat-aqua b { color: var(--aqua); }
.stat-purple b { color: #b48bf0; }
.stat span { font-weight: 800; color: var(--soft); }

.apps { background: var(--white); }
.apps-page { background: var(--cream); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { --tint: var(--sky); --accent: var(--aqua); display: flex; flex-direction: column; background: var(--white); border: var(--rim); border-radius: 24px; box-shadow: var(--drop); overflow: hidden; transition: transform 0.35s var(--bounce), box-shadow 0.35s; }
.app-card:hover { transform: translateY(-8px); box-shadow: 0 12px 0 var(--ink); }
.app-shot { display: block; padding: 30px 26px 0; background: var(--tint); border-bottom: var(--rim); overflow: hidden; }
.app-shot .frame { margin-bottom: -40px; box-shadow: 0 6px 0 var(--ink); transition: transform 0.5s var(--bounce); }
.app-card:hover .app-shot .frame { transform: translateY(-10px) rotate(-1deg); }
.app-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; flex: 1; }
.app-id { display: flex; align-items: center; gap: 12px; font: 900 0.8rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.app-id img { border-radius: 13px; border: 2.5px solid var(--ink); }
.app-body h2, .app-body h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 800; font-size: 0.98rem; color: var(--navy); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent, var(--mint)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.5' fill='none' stroke='%2317324d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: auto; padding-top: 10px; }
.page-cadence { --accent: var(--mint); }
.page-iptv { --accent: #ffb25e; }
.page-optimizer { --accent: #c3a6ff; }
.app-cadence { --tint: linear-gradient(160deg, #d6f5e4, #9fe3c3); --accent: var(--mint); --tagline: #1d8a5c; }
.app-iptv { --tint: linear-gradient(160deg, #ffe7cc, #ffc48f); --accent: #ffb25e; --tagline: #c25f00; }
.app-optimizer { --tint: linear-gradient(160deg, #efe5ff, #cfb6ff); --accent: #c3a6ff; --tagline: #6a3fd0; }

.capabilities { background: var(--white); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-grid .card p { font-size: 0.98rem; }

.principles { background: var(--mint-l); border-top: var(--rim); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principles .card:hover .icon-tile { animation: wiggle 0.5s ease-in-out; }

.contact-band { position: relative; background: linear-gradient(120deg, var(--pink) 0%, #ff7fb7 55%, #ffa0c6 100%); padding: clamp(70px, 8vw, 110px) 0 clamp(110px, 11vw, 160px); border-top: var(--rim); }
.contact-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px 60px; align-items: end; }
.contact-band h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); color: var(--white); --o: 3px; text-shadow: var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink), var(--o) var(--o) 0 var(--ink), calc(var(--o) * -1) var(--o) 0 var(--ink), var(--o) calc(var(--o) * -1) 0 var(--ink), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink), 0 7px 0 var(--ink); }
.contact-band p:not(.kicker) { margin-top: 18px; font-size: 1.15rem; font-weight: 700; color: var(--white); max-width: 46ch; }
.contact-actions { display: grid; gap: 18px; justify-items: start; }
.contact-actions .btn { white-space: normal; text-align: left; }
.contact-band .text-link { color: var(--white); border-color: var(--sun); }

/* ---------- footer */
.site-foot { position: relative; background: var(--sky); padding: 30px 0 30px; color: var(--soft); }
.foot-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 30px 0 46px; border-bottom: 3px dashed rgb(14 95 115 / 0.35); }
.foot-brand { display: grid; gap: 18px; justify-items: start; max-width: 380px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot-cols div { display: grid; gap: 9px; align-content: start; }
.foot-cols strong { font: 400 1.25rem/1 var(--display); color: var(--navy); margin-bottom: 6px; }
.foot-cols a { font-weight: 700; transition: color 0.2s, transform 0.2s; }
.foot-cols a:hover { color: var(--pink-deep); transform: translateX(3px); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-weight: 700; font-size: 0.92rem; }

/* studio doors: games + apps */
.doors { background: var(--white); padding-top: clamp(30px, 4vw, 60px); }
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); }
.door { position: relative; display: flex; flex-direction: column; overflow: hidden; border: var(--rim); border-radius: 30px; box-shadow: var(--drop); background: var(--face); transition: transform 0.35s var(--bounce), box-shadow 0.35s; }
.door:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 12px 0 var(--ink); }
.door-apps:hover { transform: translateY(-8px) rotate(0.6deg); }
.door-games { --face: linear-gradient(170deg, #a6ecf0, #e6fcfc 70%); }
.door-apps { --face: linear-gradient(170deg, #dcc8ff, #f6f0ff 70%); }
.door-art { position: relative; height: clamp(220px, 22vw, 300px); margin: 28px 26px 0; }
.door-art img { position: absolute; width: 56%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--rim); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); transition: transform 0.5s var(--bounce); }
.door-art img:nth-child(1) { left: 0; top: 18%; transform: rotate(-7deg); }
.door-art img:nth-child(2) { left: 22%; top: 0; width: 60%; z-index: 2; transform: rotate(1deg); }
.door-art img:nth-child(3) { right: 0; top: 24%; transform: rotate(6deg); }
.door:hover .door-art img:nth-child(1) { transform: rotate(-11deg) translate(-12px, 6px); }
.door:hover .door-art img:nth-child(2) { transform: rotate(0deg) translateY(-12px) scale(1.04); }
.door:hover .door-art img:nth-child(3) { transform: rotate(10deg) translate(12px, 6px); }
.door-copy { position: relative; flex: 1; display: grid; gap: 12px; justify-items: start; align-content: start; padding: 26px 32px 32px; margin-top: 30px; background: var(--white); border-top: var(--rim); }
.door-copy .text-link { margin-top: 6px; }
.door-copy h3 { font-size: clamp(2.6rem, 4.4vw, 4rem); }
.door-meta { display: grid; gap: 6px; font-weight: 800; color: var(--soft); }
.door-meta b { color: var(--navy); }
.door-icons { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.door-icons li { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--navy); }
.door-icons img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); }

/* our work */
.work { background: var(--cream); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 4vw, 50px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: var(--rim); border-radius: 999px; background: var(--white); box-shadow: 0 4px 0 var(--ink); font: 400 1.05rem/1 var(--display); color: var(--navy); transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.2s; }
.filters button:hover { transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--sun); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.filters b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--white); font: 900 0.8rem/1 var(--body); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-grid .app-card { position: relative; }
.work-grid .is-hidden { display: none; }
.work-grid .is-shown { animation: pop 0.45s var(--bounce) both; }
.type-badge { position: absolute; top: 16px; right: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: var(--rim); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); font: 400 0.95rem/1 var(--display); transform: rotate(3deg); }
.type-badge svg { width: 0.95em; height: 0.95em; }
.badge-game { background: var(--sun); color: var(--navy); }
.badge-app { background: var(--purple); color: var(--white); }
.app-game { --tint: linear-gradient(160deg, #bff3f5, #7fe0e6); --accent: var(--aqua); }
.app-game .app-id img { border-radius: 13px; }

/* ---------- interior heroes */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0 0; font-size: 0.92rem; font-weight: 800; color: var(--soft); }
.crumbs a:hover { color: var(--pink-deep); text-decoration: underline; }
.crumbs i { opacity: 0.5; font-style: normal; }
.crumbs span { color: var(--navy); }
.page-hero { position: relative; padding-bottom: clamp(110px, 11vw, 160px); }
.page-hero-copy { padding-top: clamp(30px, 5vw, 70px); max-width: 1000px; }
.page-hero h1 { animation: pop 0.7s var(--bounce) both; }
.page-hero .lede { margin-top: 22px; }
.hero-sky { background: linear-gradient(180deg, #a6ecf0, var(--sky) 60%, #e6fcfc); }
.hero-lilac { background: linear-gradient(180deg, #dcc8ff, var(--lilac)); }
.hero-sun { background: linear-gradient(180deg, #ffe07a, var(--sun-l)); }
.hero-mint { background: linear-gradient(180deg, #a9ebcc, var(--mint-l)); }
.hero-pink { background: linear-gradient(180deg, #ffb6d6, var(--pink-l)); }
.not-found { min-height: 62vh; }

/* app detail */
.app-hero { position: relative; background: var(--tint); padding-bottom: clamp(110px, 11vw, 160px); }
.app-hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-top: clamp(30px, 4vw, 64px); }
.app-hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); margin-top: 20px; animation: pop 0.7s var(--bounce) both; }
.app-hero .app-id { color: var(--navy); }
.app-hero .tagline { color: var(--tagline); }
.app-hero .lede { margin-top: 14px; }
.app-hero .stage-tilt { animation: rise 1s var(--ease) 0.15s both; }
.ticks-inline { grid-template-columns: 1fr 1fr; margin-top: 30px; gap: 10px 20px; }
.format-strip { background: var(--white); }
.format-strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 6px 0 10px; font-weight: 900; }
.format-strip span { padding: 6px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: #ffe7cc; box-shadow: 0 3px 0 var(--ink); }
.tour { background: var(--white); }
.tour-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.tour-row + .tour-row { margin-top: clamp(60px, 7vw, 110px); }
.tour-row:nth-of-type(even) { grid-template-columns: 1fr 1.45fr; }
.tour-row:nth-of-type(even) > :first-child { order: 2; }
.tour-row h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin: 18px 0 12px; }
.tour-row p { font-size: 1.1rem; max-width: 46ch; }
.zoom { display: block; cursor: zoom-in; }
.zoom .frame { transition: transform 0.4s var(--bounce); }
.zoom:hover .frame { transform: rotate(-0.8deg) scale(1.02); }
.tour-row:nth-of-type(even) .zoom:hover .frame { transform: rotate(0.8deg) scale(1.02); }
.app-info { background: var(--cream); border-top: var(--rim); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.facts { display: grid; margin: 30px 0 24px; background: var(--white); border: var(--rim); border-radius: 20px; box-shadow: var(--drop); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 15px 20px; }
.facts div + div { border-top: 2px dashed rgb(14 95 115 / 0.25); }
.facts dt { color: var(--soft); font-weight: 800; }
.facts dd { font-weight: 800; }
.facts a, .inline-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 900; }
.faq h3 { margin-bottom: 18px; font-size: 1.9rem; }
.faq details { border-radius: 18px; background: var(--white); border: var(--rim); box-shadow: 0 4px 0 var(--ink); margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 900; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--sun); font: 400 1.3rem/1 var(--display); transition: transform 0.3s var(--bounce); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--pink); color: var(--white); }
.faq details p { padding: 0 22px 20px; }
.more-apps { background: var(--white); border-top: var(--rim); padding: 36px 0 90px; }
.more-apps .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.more-apps strong { font: 400 1.4rem/1 var(--display); }
.more-apps .wrap > div { display: flex; flex-wrap: wrap; gap: 14px; }
.more-apps a { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; border: var(--rim); box-shadow: 0 4px 0 var(--ink); background: var(--white); transition: transform 0.25s var(--bounce), background 0.2s; }
.more-apps a:hover { transform: translateY(-3px); background: var(--sky); }
.more-apps img { border-radius: 11px; border: 2px solid var(--ink); }
.more-apps span { display: grid; font-weight: 900; }
.more-apps small { color: var(--soft); font-weight: 700; }

/* compare demo */
.compare-section { background: var(--lilac); }
.compare-section .lede { margin-top: 20px; }
.compare-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.compare-frame { --position: 50%; position: relative; overflow: hidden; border: var(--rim); border-radius: 20px; aspect-ratio: 16 / 9; touch-action: none; cursor: ew-resize; box-shadow: 0 8px 0 var(--ink), var(--glow); }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.small-layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare-rule { position: absolute; top: 0; bottom: 0; left: var(--position); width: 4px; background: var(--white); border-inline: 1px solid var(--ink); transform: translateX(-2px); }
.compare-rule b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: var(--rim); background: var(--sun); box-shadow: 0 4px 0 var(--ink); font-size: 1.2rem; }
.chip-left, .chip-right { position: absolute; bottom: 14px; }
.chip-left { left: 14px; }
.chip-right { right: 14px; }
.compare-box input { width: 100%; margin-top: 20px; accent-color: var(--purple); }
.compare-box figcaption { margin-top: 8px; font-weight: 700; color: var(--soft); font-size: 0.95rem; }

/* games */
.games-page { background: var(--cream); }
.poster { position: relative; overflow: hidden; border: var(--rim); border-radius: 28px; box-shadow: 0 10px 0 var(--ink), var(--glow); min-height: clamp(480px, 46vw, 660px); display: flex; align-items: flex-end; margin-bottom: 34px; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.poster:hover .poster-img { transform: scale(1.04); }
.poster-copy { position: relative; margin: clamp(18px, 3vw, 36px); padding: clamp(24px, 3vw, 38px); max-width: 560px; background: rgb(255 255 255 / 0.94); border: var(--rim); border-radius: 22px; box-shadow: var(--drop); }
.poster-copy p:not(.kicker) { margin-top: 14px; font-size: 1.1rem; }
.platform-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.platform-row .card { display: grid; gap: 10px; justify-items: start; }
.platform-row svg { width: 34px; height: 34px; color: var(--pink); }
.platform-row strong { font: 400 1.7rem/1 var(--display); }

/* game detail */
.game-hero { position: relative; background: radial-gradient(40% 50% at 90% 10%, rgb(255 95 168 / 0.18), transparent 70%), linear-gradient(180deg, #a6ecf0, var(--sky) 60%, #eafdfd); padding-bottom: clamp(110px, 11vw, 160px); }
.game-hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-top: clamp(26px, 4vw, 56px); }
.game-hero .stage-tilt { animation: rise 1s var(--ease) 0.15s both; }
.game-hero .lede { margin-top: 14px; }
.small-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; }
.game-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 70px); }
.game-facts div { padding: 16px 20px; background: var(--white); border: var(--rim); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.game-facts dt { font: 900 0.74rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.game-facts dd { margin-top: 8px; font-weight: 900; font-size: 1.05rem; }
.how { background: var(--white); }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.how .lede { margin-top: 20px; }
.how figcaption { margin-top: 18px; font-weight: 700; color: var(--soft); }
.controls { display: grid; gap: 12px; margin-top: 30px; }
.controls div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 18px; border: var(--rim); background: var(--cream); }
.controls dt { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.controls .icon-tile { width: 46px; height: 46px; border-radius: 13px; }
.controls .icon-tile svg { width: 22px; height: 22px; }
.controls dd { font-weight: 700; color: var(--soft); }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--white); border: 2px solid var(--ink); border-bottom-width: 4px; font: 400 0.95rem/1 var(--display); color: var(--navy); }
.towns-section { background: var(--cream); }
.town-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.town-row + .town-row { margin-top: clamp(60px, 7vw, 110px); }
.town-row:nth-of-type(even) { grid-template-columns: 1fr 1.4fr; }
.town-row:nth-of-type(even) > :first-child { order: 2; }
.town-row .frame { transition: transform 0.4s var(--bounce); }
.town-row:hover .frame { transform: rotate(-0.8deg) scale(1.01); }
.town-row .town-num { position: static; }
.town-row h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); margin: 16px 0 12px; }
.town-row .chip { background: var(--face); margin-bottom: 14px; }
.town-row p:last-child { font-size: 1.08rem; max-width: 46ch; }
.dev-note { background: var(--pink-l); border-top: var(--rim); }
.dev-note blockquote { position: relative; max-width: 1100px; margin-inline: auto; padding: clamp(30px, 4vw, 56px); background: var(--white); border: var(--rim); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); }
.dev-note blockquote::before { content: "“"; position: absolute; top: -40px; left: 30px; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: var(--rim); background: var(--pink); color: var(--white); box-shadow: 0 4px 0 var(--ink); font: 400 4rem/1.4 var(--display); }
.dev-note blockquote p { font: 400 clamp(1.4rem, 2.5vw, 2.2rem)/1.3 var(--display); color: var(--navy); text-wrap: pretty; }
.dev-note footer { margin-top: 22px; font-weight: 900; color: var(--pink-deep); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.play-band { position: relative; background: linear-gradient(120deg, var(--aqua), var(--mint)); padding: clamp(70px, 8vw, 110px) 0 clamp(110px, 11vw, 160px); border-top: var(--rim); }
.play-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.play-band h2 { color: var(--white); --o: 3px; text-shadow: var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink), var(--o) var(--o) 0 var(--ink), calc(var(--o) * -1) var(--o) 0 var(--ink), var(--o) calc(var(--o) * -1) 0 var(--ink), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink), 0 7px 0 var(--ink); }

/* studio */
.studio-intro { background: var(--white); padding-top: clamp(30px, 4vw, 60px); padding-bottom: 0; }
.studio-split { background: var(--white); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-card { display: flex; flex-direction: column; border: var(--rim); border-radius: 26px; overflow: hidden; background: var(--face); box-shadow: var(--drop); transition: transform 0.35s var(--bounce); }
.split-card:hover { transform: translateY(-6px); }
.split-card > a { overflow: hidden; border-bottom: var(--rim); }
.split-card > a img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.7s var(--ease); }
.split-card > a:hover img { transform: scale(1.05); }
.split-card > div:last-child { padding: 30px; display: grid; gap: 12px; justify-items: start; }
.split-card .kicker { margin-bottom: 0; }
.split-icons { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 34px); aspect-ratio: 16 / 9; background: linear-gradient(140deg, #d9c6ff, #f6efff); border-bottom: var(--rim); }
.split-icons img { width: clamp(64px, 8vw, 104px); height: auto; border-radius: 24%; border: var(--rim); box-shadow: 0 6px 0 var(--ink); animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }

/* support */
.support-page { background: var(--cream); }
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.support-products h2, .support-game h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); margin-bottom: 22px; }
.support-products .card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px; margin-bottom: 16px; }
.support-products .card h3 { margin: 0; }
.support-products img { border-radius: 13px; border: 2.5px solid var(--ink); }
.support-products p { font-weight: 700; font-size: 0.95rem; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 900; font-size: 0.93rem; }
.support-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.support-game { display: grid; gap: 14px; justify-items: start; background: var(--sky); }
.support-game h2 { margin-bottom: 0; }
.support-game img { border-radius: 18px; border: var(--rim); }

/* app page: pricing chip, features, pricing table, audience */
.price-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--white); box-shadow: 0 3px 0 var(--ink); font-weight: 900; font-size: 0.95rem; color: var(--navy); }
.price-chip svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--grass); color: var(--white); stroke-width: 3; }
.app-features { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-group h3 { margin: 0 0 16px; }
.feature-group .ticks li { font-weight: 700; color: var(--soft); }
.app-pricing { background: var(--white); }
.table-wrap { overflow-x: auto; border: var(--rim); border-radius: 22px; box-shadow: var(--drop); background: var(--white); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.98rem; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.compare-table thead th { font: 400 1.3rem/1 var(--display); background: var(--sky); border-bottom: var(--rim); }
.compare-table thead th:last-child { background: var(--sun); }
.compare-table thead span { font: 900 0.72rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); margin-left: 6px; vertical-align: middle; }
.compare-table tbody th { font-weight: 900; color: var(--navy); width: 34%; }
.compare-table td { color: var(--soft); font-weight: 700; }
.compare-table td:last-child { color: var(--navy); background: #fffbea; }
.compare-table tbody tr + tr > * { border-top: 2px dashed rgb(14 95 115 / 0.18); }
.pricing-row { display: grid; grid-template-columns: 1.3fr auto; gap: 30px 60px; align-items: center; padding: clamp(26px, 4vw, 44px); border: var(--rim); border-radius: 26px; box-shadow: var(--drop); background: linear-gradient(120deg, var(--sun-l), var(--white)); }
.pricing-row h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.pricing-row .lede { margin-top: 14px; font-size: 1.05rem; }
.app-audience { background: var(--white); padding-top: 0; }
.app-audience .card h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 16px; }
.who-list { display: grid; gap: 12px; }
.who-list li { padding: 12px 16px; border-radius: 14px; background: var(--cream); border: 2px solid rgb(14 95 115 / 0.15); color: var(--soft); font-weight: 600; }
.who-list b { color: var(--navy); }
.privacy-card { background: var(--lilac); }
.privacy-card p { margin-bottom: 16px; font-size: 1.05rem; }
.app-guides { background: var(--lilac); }

/* guide cards and hub */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.guide-card { --tint: var(--sky); display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--white); border: var(--rim); border-radius: 22px; box-shadow: var(--drop); transition: transform 0.3s var(--bounce), box-shadow 0.3s; }
.guide-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 10px 0 var(--ink); }
.guide-card h3 { font-size: 1.45rem; }
.guide-card p { font-size: 0.98rem; flex: 1; }
.guide-app { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--tint); border: 2px solid var(--ink); font: 900 0.8rem/1 var(--body); color: var(--navy); }
.guide-app img { border-radius: 8px; }
.guide-card.app-cadence { --tint: #d6f5e4; }
.guide-card.app-iptv { --tint: #ffe7cc; }
.guide-card.app-optimizer { --tint: #efe5ff; }
.guides-page { background: var(--cream); }
.guide-group + .guide-group { margin-top: clamp(50px, 6vw, 80px); }
.guide-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 24px; }
.guide-group-head img { border-radius: 13px; border: 2.5px solid var(--ink); }
.guide-group-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

/* guide article */
.guide-page .page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); }
.guide-body { background: var(--white); padding-top: clamp(30px, 4vw, 50px); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.guide-article { display: grid; gap: clamp(34px, 4vw, 50px); max-width: 820px; }
.guide-article h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.guide-article p { font-size: 1.08rem; }
.guide-article p + p { margin-top: 14px; }
.guide-section .ticks li { font-weight: 600; color: var(--soft); }
.answer-box { padding: 24px 26px; border: var(--rim); border-radius: 22px; background: var(--sun-l); box-shadow: var(--drop); }
.answer-box > b { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--sun); border: 2px solid var(--ink); font: 400 1rem/1.2 var(--display); }
.answer-box p { color: var(--navy); font-weight: 600; }
.steps-list { display: grid; gap: 14px; }
.steps-list .step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 18px 20px; border: var(--rim); border-radius: 20px; background: var(--cream); }
.steps-list h3 { font-size: 1.4rem; margin-bottom: 6px; }
.steps-list p { font-size: 1rem; }
.guide-shot figcaption { margin-top: 14px; font-weight: 700; color: var(--soft); font-size: 0.95rem; }
.ui { display: inline-block; padding: 0 7px; border-radius: 7px; border: 1.5px solid rgb(14 95 115 / 0.45); background: var(--sky); color: var(--navy); font-weight: 800; font-size: 0.92em; line-height: 1.5; white-space: nowrap; }
.pro-tag { display: inline-block; padding: 1px 7px; margin-left: 2px; border-radius: 6px; background: var(--purple); color: var(--white); font: 900 0.7rem/1.5 var(--body); text-transform: uppercase; letter-spacing: 0.06em; vertical-align: 2px; }
.guide-side { position: sticky; top: 100px; }
.side-app { display: grid; gap: 12px; justify-items: start; background: var(--tint, var(--sky)); }
.side-app img { border-radius: 16px; border: var(--rim); }
.side-app h3 { margin: 0; font-size: 1.8rem; }
.side-app .price-chip { margin-top: 0; }
.side-app .btn { width: 100%; white-space: normal; text-align: center; padding: 10px 16px; line-height: 1.15; }
.side-app.app-cadence { --tint: #e6f8ee; }
.side-app.app-iptv { --tint: #fff0de; }
.side-app.app-optimizer { --tint: #f3ecff; }
.guide-article .faq h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* in-page game player */
.player { position: relative; z-index: 2; }
.player .frame-bar { padding-right: 6px; }
.frame-btn { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 8px; border: 2px solid var(--ink); background: var(--sun); color: var(--navy); transition: transform 0.2s var(--bounce); }
.frame-btn:hover { transform: scale(1.1); }
.frame-btn svg { width: 16px; height: 16px; stroke-width: 2.6; }
.frame-browser .frame-title + .frame-btn { margin-left: 10px; }
.player-screen { position: relative; aspect-ratio: 16 / 9; background: var(--sky); overflow: hidden; }
.player-screen > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transition: transform 0.6s var(--ease), filter 0.4s; }
.player-start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; background: radial-gradient(circle at center, rgb(14 95 115 / 0.2), rgb(14 95 115 / 0.55)); color: var(--white); }
.player-start b { font: 400 clamp(1.4rem, 2.4vw, 2.1rem)/1.05 var(--display); --o: 3px; text-shadow: var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink), 0 5px 0 var(--ink); }
.player-start small { font-weight: 900; font-size: 0.95rem; padding: 4px 12px; border-radius: 999px; background: rgb(14 95 115 / 0.75); }
.play-disc { display: grid; place-items: center; width: clamp(78px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; border: var(--rim); background: var(--sun); color: var(--navy); box-shadow: 0 6px 0 var(--ink); margin-bottom: 8px; animation: pulse-disc 2.2s ease-in-out infinite; transition: transform 0.2s var(--bounce); }
.play-disc svg { width: 44%; height: 44%; margin-left: 8%; }
.player-start:hover .play-disc { transform: scale(1.08); }
.player-screen:hover > img { transform: scale(1.04); }
.player-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--sky); }
.player.is-playing .player-start, .player.is-playing .player-screen > img { display: none; }
.player:fullscreen .frame, .player .frame:fullscreen { border-radius: 0; border: 0; }
.player-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; font-size: 0.92rem; }
.player-note svg { width: 18px; height: 18px; }
.player-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
@keyframes pulse-disc { 0%, 100% { box-shadow: 0 6px 0 var(--ink), 0 0 0 0 rgb(255 210 74 / 0.7); } 50% { box-shadow: 0 6px 0 var(--ink), 0 0 0 16px rgb(255 210 74 / 0); } }

/* full-screen play page */
.play-body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--sky); }
.play-bar { flex: none; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px clamp(12px, 3vw, 28px); background: var(--white); border-bottom: var(--rim); }
.play-bar .brand { font-size: 1.25rem; }
.play-bar .brand img { width: 32px; height: 32px; }
.play-title { font: 400 1.25rem/1 var(--display); color: var(--pink-deep); padding-left: 16px; border-left: 3px solid var(--sky); }
.play-actions { display: flex; gap: 10px; margin-left: auto; }
.play-stage { position: relative; flex: 1; }
.play-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .play-title, .play-actions span { display: none; }
  .play-actions .btn { padding: 0 12px; }
  .play-bar { min-height: 52px; }
}

/* image viewer */
.image-viewer { padding: 0; border: var(--rim); border-radius: 18px; background: var(--white); max-width: min(94vw, 1500px); max-height: 92vh; overflow: hidden; }
.image-viewer::backdrop { background: rgb(14 95 115 / 0.6); backdrop-filter: blur(5px); }
.image-viewer img { max-height: 90vh; width: auto; }
.image-viewer .close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--rim); background: var(--sun); box-shadow: 0 3px 0 var(--ink); }

/* ---------- motion */
@keyframes pop { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.5)); } }
@keyframes bubble { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(var(--w), -55vh) scale(1); } 100% { transform: translate(0, -115vh) scale(1.1); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.sticker { transform: rotate(var(--r, 0deg)); }
.js .reveal { opacity: 0; translate: 0 36px; scale: 0.97; transition: opacity 0.7s var(--ease), translate 0.7s var(--bounce), scale 0.7s var(--bounce); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.visible { opacity: 1; translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .bubbles { display: none; }
}

/* ---------- responsive */
@media (max-width: 1100px) {
  .town-grid, .cap-grid { grid-template-columns: 1fr 1fr; }
  .door-art { margin: 22px 18px 0; }
    .app-grid { grid-template-columns: 1fr 1fr; }
  .app-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .contact-in, .app-hero-grid, .tour-row, .tour-row:nth-of-type(even), .info-grid, .compare-layout, .game-hero-grid, .how-grid, .town-row, .town-row:nth-of-type(even), .split-grid, .support-grid, .foot-top { grid-template-columns: 1fr; }
  .tour-row:nth-of-type(even) > :first-child, .town-row:nth-of-type(even) > :first-child { order: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; }
  .game-facts { grid-template-columns: 1fr 1fr; }
  .stage-tilt { --rx: 0deg; --ry: 0deg; }
  .hero-stage { padding: 20px 4px 0; }
  .sticker { font-size: 0.95rem; padding: 8px 12px; }
  .sticker-pink { left: -4px; top: 0; }
  .sticker-sun { right: -4px; top: auto; bottom: 120px; }
  .sticker-aqua { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding: 10px 0 0; }
  .head-cta { margin-left: auto; }
  .site-head nav { order: 3; width: 100%; margin: 8px 0 0; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 10px; }
  .site-head nav a { padding: 6px 10px; font-size: 0.92rem; }
  .site-head nav { gap: 0; justify-content: space-between; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; }
  .town-grid, .cap-grid, .app-grid, .door-grid, .work-grid { grid-template-columns: 1fr; }
  .app-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .town-dots { grid-template-columns: 1fr 1fr; }
  .ticks-inline { grid-template-columns: 1fr; }
  .facts div, .controls div { grid-template-columns: 1fr; gap: 6px; }
  .support-products .card { grid-template-columns: auto 1fr; }
  .support-links { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .platform-row { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .ui { white-space: normal; }
  .player-note { font-size: 0.85rem; }
  .cta-row .btn { flex: 1 1 auto; }
  .btn-xl { min-height: 60px; font-size: 1.25rem; padding: 0 22px; }
  .poster { min-height: 0; flex-direction: column; align-items: stretch; }
  .poster-img { position: static; aspect-ratio: 16 / 10; border-bottom: var(--rim); }
  .poster-copy { margin: 0; border: 0; border-radius: 0; box-shadow: none; max-width: none; }
}
@media (max-width: 520px) {
  .stats, .game-facts { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .head-cta { padding: 0 12px; }
  .app-shot { padding: 22px 16px 0; }
  .app-body, .card { padding: 22px; }
  .town-dot span { font-size: 0.9rem; }
  .logo-type span { --o: 3px; }
}
