/* Deevlo — bright, chunky, toy-box. Unbounded (display) + Nunito (body). Each game keeps its own colour world. */
:root {
  --ink: #1E242B;          /* Deevlo logo charcoal */
  --ink-soft: #4A5360;
  --bg: #FFFFFF;
  --sky: #EAF3FF;
  --sun: #FFC83D;
  --sun-edge: #E09A00;
  --red: #FF5A4E;  --red-edge: #C93A30;
  --blue: #3D7BFF; --blue-edge: #2353C4;
  --green: #22C38E; --green-edge: #128A62;
  --purple: #9B5CFF;
  --dn: #0F3B3D;  --dn-2: #145052;   /* Dominoodle teal */
  --pl: #1A1F4B;  --pl-2: #2A2F6B;   /* Porchlight twilight */
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --r: 32px;
  --pad: clamp(16px, 4vw, 48px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ---------- buttons: chunky game-style ---------- */
.btn { --face: #fff; --edge: #C9D3E0; --txt: var(--ink); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px 14px; border: 0; border-radius: 18px; background: var(--face); color: var(--txt); font: 800 17px/1 var(--body); text-decoration: none; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 6px 0 var(--edge), 0 14px 24px -10px rgba(30, 36, 43, .35); transform: translateY(0); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 18px 28px -12px rgba(30, 36, 43, .4); filter: brightness(1.04); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 6px 12px -8px rgba(30, 36, 43, .4); }
.btn .arr { transition: transform .25s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sun { --face: var(--sun); --edge: var(--sun-edge); }
.btn-glass { --face: rgba(255, 255, 255, .14); --edge: rgba(0, 0, 0, .25); --txt: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 0 rgba(0,0,0,.22), inset 0 0 0 2px rgba(255,255,255,.28); }
.btn-glass:hover { box-shadow: 0 6px 0 rgba(0,0,0,.22), inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-sm { padding: 11px 18px 10px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--edge); }
.btn-sm:hover { box-shadow: 0 6px 0 var(--edge); }
.btn-lg { padding: 19px 32px 18px; font-size: 19px; }

/* ---------- nav: floating pill ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 var(--pad); pointer-events: none; }
.nav-pill { pointer-events: auto; width: min(1180px, 100%); display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-radius: 22px; box-shadow: 0 4px 0 rgba(30,36,43,.08), 0 18px 40px -18px rgba(30,36,43,.35); }
.brand img { height: 24px; width: auto; }
.nav nav { display: flex; gap: 6px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 800; font-size: 16px; color: var(--ink-soft); padding: 9px 14px; border-radius: 12px; transition: background .2s, color .2s; }
.nav nav a:hover { background: var(--sky); color: var(--ink); }

/* ---------- stage (hero) ---------- */
.stage { padding: 10px; height: 100svh; min-height: 640px; }
.stage-frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; isolation: isolate; background: var(--dn) url("/assets/img/hero-dn.jpg") center / cover; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-active { opacity: 1; }
.slide video { width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 16, 24, .72) 0%, rgba(10, 16, 24, .35) 38%, transparent 62%), linear-gradient(0deg, rgba(10,16,24,.55) 0%, transparent 35%); }
.pitch { position: absolute; z-index: 2; left: clamp(24px, 6vw, 88px); top: 50%; width: min(560px, calc(100% - 48px)); transform: translateY(-46%); opacity: 0; visibility: hidden; transition: opacity .5s ease, transform .7s var(--ease), visibility 0s .5s; color: #fff; }
.pitch.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .6s ease .25s, transform .9s var(--spring) .2s, visibility 0s; }
.pitch-logo { width: min(520px, 100%); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.pitch-logo-pl { width: min(380px, 80%); margin-left: -18px; }
.pitch-tag { margin: 22px 0 30px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.pitch-tag b { color: var(--sun); }
.pitch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; font-weight: 800; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #3BE08F; box-shadow: 0 0 0 4px rgba(59,224,143,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(59,224,143,0); } }

.switcher { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 5px 0 rgba(0,0,0,.18), 0 24px 40px -16px rgba(0,0,0,.5); }
.sw { all: unset; cursor: pointer; position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 20px; font: 800 16px/1 var(--body); color: var(--ink-soft); transition: background .25s, color .25s; }
.sw img { width: 44px; height: 44px; border-radius: 13px; }
.sw .ring { position: absolute; left: 2px; top: 2px; width: 52px; height: 52px; transform: rotate(-90deg); pointer-events: none; }
.sw .ring circle { fill: none; stroke: var(--sun-edge); stroke-width: 3.5; stroke-dasharray: 151; stroke-dashoffset: 151; stroke-linecap: round; }
.sw.is-on { background: var(--sky); color: var(--ink); }
.sw:hover { color: var(--ink); }
.pause { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; color: var(--ink-soft); }
.pause:hover { background: var(--sky); color: var(--ink); }
.pause svg { width: 18px; height: 18px; fill: currentColor; }
.pause .i-play, .pause[aria-pressed="true"] .i-pause { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }

/* ---------- statement ---------- */
.eyebrow { margin: 0 0 18px; font: 800 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.statement { padding: clamp(90px, 12vw, 160px) var(--pad) clamp(70px, 9vw, 120px); text-align: center; max-width: 1180px; margin: 0 auto; }
.big { margin: 0; font: 900 clamp(40px, 7.4vw, 104px)/1.12 var(--display); letter-spacing: -.035em; }
.tile { display: inline-block; padding: .02em .22em .08em; margin: 0 .04em; border-radius: .22em; color: #fff; transform: rotate(-2deg); box-shadow: 0 .09em 0 var(--edge); }
.t-red { background: var(--red); --edge: var(--red-edge); }
.t-blue { background: var(--blue); --edge: var(--blue-edge); transform: rotate(2deg); }
.t-yellow { background: var(--sun); --edge: var(--sun-edge); color: var(--ink); transform: rotate(-1.5deg); }
.lead { max-width: 640px; margin: 34px auto 0; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); }

/* ---------- games ---------- */
.games { padding: 0 var(--pad) clamp(80px, 10vw, 140px); max-width: 1260px; margin: 0 auto; }
.games-head { margin: 0 0 clamp(70px, 8vw, 110px); }
h2 { margin: 0; font: 900 clamp(32px, 4.6vw, 62px)/1.08 var(--display); letter-spacing: -.03em; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }

.card { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 64px); border-radius: 40px; color: #fff; isolation: isolate; margin-bottom: clamp(28px, 4vw, 44px); box-shadow: 0 10px 0 rgba(0,0,0,.12), 0 40px 80px -40px rgba(30,36,43,.6); }
.card-dn { background: radial-gradient(90% 120% at 85% 20%, var(--dn-2), var(--dn) 60%); }
.card-dn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2.5px); background-size: 26px 26px; }
.card-pl { background: var(--pl); overflow: hidden; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card-pl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 24, 60, .92) 0%, rgba(20,24,60,.7) 45%, rgba(20,24,60,.35) 100%); }
.mascot { position: absolute; width: clamp(130px, 15vw, 210px); right: clamp(10px, 3vw, 40px); top: clamp(-90px, -7vw, -60px); z-index: 3; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.app-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.badge { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.badge-live { background: #3BE08F; color: #0C3B26; }
.card-logo { width: min(440px, 100%); height: auto; margin-left: -6px; filter: drop-shadow(0 8px 0 rgba(0,0,0,.18)); }
.card-logo-pl { width: min(300px, 72%); margin: -18px 0 -10px -16px; }
.card-kicker { margin: 16px 0 10px; font: 800 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.card-text { margin: 0 0 24px; font-size: 18px; color: rgba(255,255,255,.86); max-width: 520px; }
.chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); font-size: 15px; font-weight: 700; }
.chips b { font: 900 18px/1 var(--display); color: #fff; margin-right: 4px; }
.card-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.card-media { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: min(290px, 70%); aspect-ratio: 1320 / 2868; padding: 12px; border-radius: 48px; background: #11161B; box-shadow: 0 0 0 3px #2B333C, 0 12px 0 rgba(0,0,0,.25), 0 40px 70px -20px rgba(0,0,0,.6); transform: rotate(5deg); transition: transform .8s var(--spring); }
.card-dn:hover .phone { transform: rotate(2deg) translateY(-6px); }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #0d2b2c; }
.phone-island { position: absolute; top: 22px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 20px; background: #11161B; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s var(--ease); }
.shots img.on { opacity: 1; transform: none; }
.tablet { width: 100%; padding: 12px; border-radius: 30px; background: #0E1230; box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 12px 0 rgba(0,0,0,.25), 0 40px 70px -20px rgba(0,0,0,.6); transform: rotate(-3deg); transition: transform .8s var(--spring); }
.card-pl:hover .tablet { transform: rotate(-1deg) translateY(-6px); }
.tablet video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: #20301f; }
.real { position: absolute; right: 14px; bottom: -14px; margin: 0; padding: 7px 12px; border-radius: 10px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 900; transform: rotate(3deg); box-shadow: 0 4px 0 var(--sun-edge); }

/* ---------- promise ---------- */
.promise { background: var(--sky); padding: clamp(80px, 10vw, 130px) var(--pad); text-align: center; }
.promise h2 { margin-bottom: clamp(40px, 5vw, 60px); }
.deal { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.d { --c: var(--red); --e: var(--red-edge); background: #fff; border-radius: 28px; padding: 28px 24px 26px; box-shadow: 0 7px 0 #CFDDF2; transition: transform .35s var(--spring); }
.d:hover { transform: translateY(-6px) rotate(-1deg); }
.d2 { --c: var(--blue); --e: var(--blue-edge); } .d3 { --c: var(--purple); --e: #6E35C9; } .d4 { --c: var(--green); --e: var(--green-edge); }
.d-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 5px 0 var(--e); margin-bottom: 22px; }
.d-ico svg { width: 32px; height: 32px; }
.d h3 { margin: 0 0 8px; font: 800 21px/1.2 var(--display); letter-spacing: -.02em; }
.d p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact { padding: clamp(110px, 12vw, 160px) var(--pad); }
.contact-card { position: relative; max-width: 960px; margin: 0 auto; text-align: center; padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: 40px; background: var(--sun); box-shadow: 0 10px 0 var(--sun-edge), 0 40px 70px -30px rgba(224,154,0,.6); }
.contact-card h2 { font-size: clamp(30px, 4.4vw, 56px); }
.contact-card p { margin: 16px auto 32px; max-width: 520px; font-size: 19px; color: rgba(30,36,43,.8); }
.contact-card .btn-sun { --face: var(--ink); --edge: #000; --txt: #fff; }
.contact-pip { position: absolute; width: clamp(96px, 11vw, 140px); left: clamp(-20px, -2vw, -10px); top: clamp(-70px, -6vw, -50px); transform: rotate(-14deg); filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px var(--pad) 36px; }
.foot { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 16px; }
.foot-col h4 { margin: 0 0 14px; font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.foot-col a { display: block; padding: 6px 0; text-decoration: none; color: rgba(255,255,255,.75); font-size: 16px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-legal { max-width: 1180px; margin: 48px auto 0; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-legal p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); font-weight: 600; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--spring) var(--d, 0s); }
.rv.seen { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card { grid-template-columns: 1fr; }
  .card-media { order: -1; }
  .deal { grid-template-columns: 1fr 1fr; }
  .shade { background: linear-gradient(0deg, rgba(10,16,24,.82) 0%, rgba(10,16,24,.45) 50%, rgba(10,16,24,.15) 100%); }
  .pitch { top: auto; bottom: 110px; transform: translateY(12px); }
  .pitch.is-on { transform: none; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav { inset: 10px 0 auto; padding: 0 10px; }
  .nav-pill { padding: 8px 8px 8px 16px; gap: 12px; }
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .brand img { height: 20px; }
  .stage { padding: 6px; min-height: 600px; }
  .stage-frame { border-radius: 26px; }
  .pitch { left: 18px; width: calc(100% - 36px); bottom: 96px; }
  .pitch-tag { margin: 14px 0 20px; font-size: 17px; }
  .pill-note { font-size: 12px; }
  .switcher { bottom: 14px; gap: 4px; padding: 6px; }
  .sw span { display: none; }
  .sw { padding: 6px; }
  .card { padding: 26px 20px 30px; border-radius: 30px; }
  .mascot { width: 110px; top: -54px; right: 8px; }
  .phone { width: 62%; }
  .deal { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .contact-pip { left: 50%; margin-left: -48px; top: -64px; transform: rotate(-8deg); }
  .contact-card { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
.pill-link { text-decoration: none; color: #fff; transition: background .2s; }
.pill-link:hover { background: rgba(0,0,0,.55); }
.btn .apple { width: 20px; height: 20px; fill: currentColor; margin-top: -3px; }
.store-badge { display: inline-flex; align-items: center; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 54px; width: auto; }
