/* Kubb game page: /games/kubb/ (en) and /games/kubb/sv/. Self-contained (its own reset, tokens and fonts).
   The look follows the game: a summer lawn under a blue sky, chunky outlined buttons with a lip, white Lilita One
   capitals with a dark keyline and a hard drop, DGV teal popups with sage wells, rarity colours from the shop.
   Motion has a job: the wordmark lands like the game's splash, clips play only while they are seen, and nothing
   moves at all for prefers-reduced-motion. The store state (coming soon or live, per store) is set in store.js:
   html.kb-live (App Store) and html.kb-play-live (Google Play). */

@font-face{font-family:"Lilita One";src:url("fonts/LilitaOne-Regular.woff2") format("woff2"),url("fonts/LilitaOne-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Geist";src:url("fonts/Geist-Medium-latin.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Geist";src:url("fonts/Geist-Bold-latin.woff2") format("woff2");font-weight:700;font-display:swap}

:root{
  --display:"Lilita One","Arial Rounded MT Bold",ui-rounded,system-ui,sans-serif;
  --sans:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ink:#141821;                 /* the game's outline and text stroke */
  --sky:#2f7fe0;--sky-hi:#6fb6ff;--sky-deep:#1f63c4;
  --lawn:#3c9a3f;--lawn-hi:#4fb24c;--lawn-deep:#2a7a33;--lawn-dark:#1f5f28;
  --gold:#ffd23f;--gold-lip:#c98a12;
  --cream:#fff7e3;--cream-lip:#d9c79a;
  --cherry:#e2574c;--cherry-lip:#9c2f27;
  --teal:#386062;--teal-hi:#4c8083;--teal-lip:#254446;--sage:#9ebdbf;
  --purple:#8c52e0;--purple-lip:#4b2595;
  --slate:#6b7789;--slate-lip:#3f4858;
  --navy:#17214a;
  --content:1200px;--pad:clamp(20px,5vw,56px);
  --ease:cubic-bezier(.22,1,.36,1);--pop:cubic-bezier(.34,1.56,.64,1);
}

/* ===================== RESET ===================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--ink)}
body{min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,picture,video,svg{display:block;max-width:100%}
button,input{font:inherit;color:inherit;background:none;border:0}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
[hidden]{display:none!important}

/* ===================== BASE ===================== */
body.kb{background:var(--lawn-deep);color:#fff;font-family:var(--sans);font-weight:500;font-size:18px;line-height:1.55;overflow-x:clip}
.kb ::selection{background:var(--gold);color:var(--ink)}
.kb-wrap{max-width:calc(var(--content) + var(--pad) * 2);margin:0 auto;padding-inline:var(--pad)}
.kb a:focus-visible,.kb button:focus-visible,.kb summary:focus-visible,.kb [tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:10px}
.kb-skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--gold);color:var(--ink);font-weight:700;padding:10px 16px;border-radius:12px;transition:top .2s}
.kb-skip:focus{top:12px}
.kb-nw{white-space:nowrap}
.kb-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* chunky capitals: white face, dark keyline, hard drop, like the game's labels */
.kb-h2,.kb-h1-sub,.kb-sticker,.kb-chunk,.kb-mode h3,.kb-step h3,.kb-venue-name,.kb-popup-h,.kb-btn,.kb-ticket,.kb-stats b{
  font-family:var(--display);font-weight:400;text-transform:uppercase;letter-spacing:.01em}
.kb-h2{font-size:clamp(38px,5.4vw,68px);line-height:1.02;color:#fff;text-wrap:balance;
  -webkit-text-stroke:7px var(--ink);paint-order:stroke fill;text-shadow:0 6px 0 var(--ink)}
.kb-hl{color:var(--gold)}
.kb-lead{font-size:clamp(18px,1.5vw,21px);line-height:1.55;max-width:50ch;margin-top:clamp(14px,2vh,22px);text-wrap:pretty}
.kb-sec{position:relative;padding:clamp(72px,11vh,128px) 0;isolation:isolate}
.kb-head{text-align:center}
.kb-head .kb-lead{margin-inline:auto}
.kb-kicker{display:inline-block;margin-bottom:14px;font-weight:700;font-size:15px;letter-spacing:.02em;color:var(--ink);background:var(--gold);
  padding:5px 13px;border-radius:999px;box-shadow:0 0 0 2.5px var(--ink)}

/* the chunky button: flat face, dark outline, darker lip, a light band along the top */
.kb-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:19px;line-height:1;letter-spacing:.02em;
  color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;padding:15px 24px 16px;border-radius:16px;background:var(--gold);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.55),0 0 0 3px var(--ink),0 6px 0 3px var(--gold-lip),0 6px 0 6px var(--ink);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);white-space:nowrap}
.kb-btn:hover{transform:translateY(-2px)}
.kb-btn:active{transform:translateY(3px);box-shadow:inset 0 3px 0 rgba(255,255,255,.55),0 0 0 3px var(--ink),0 3px 0 3px var(--gold-lip),0 3px 0 6px var(--ink)}
.kb-btn-sky{background:#4aa3f5;box-shadow:inset 0 3px 0 rgba(255,255,255,.45),0 0 0 3px var(--ink),0 6px 0 3px #1c56b0,0 6px 0 6px var(--ink)}
.kb-btn-sky:active{box-shadow:inset 0 3px 0 rgba(255,255,255,.45),0 0 0 3px var(--ink),0 3px 0 3px #1c56b0,0 3px 0 6px var(--ink)}
.kb-btn-ico{width:22px;height:22px;flex:none}
.kb-round{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--gold);flex:none;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.55),0 0 0 3px var(--ink),0 4px 0 3px var(--gold-lip),0 4px 0 6px var(--ink);transition:transform .2s var(--ease),opacity .2s}
.kb-round:hover{transform:translateY(-2px)}
.kb-round:disabled{opacity:.45;cursor:default;transform:none}
.kb-round svg{width:22px;height:22px}

/* stickers: a caption stuck on a clip, slightly crooked */
.kb-sticker{position:absolute;left:14px;bottom:-16px;z-index:3;font-size:clamp(20px,2vw,25px);line-height:1;padding:10px 15px 11px;border-radius:14px;color:#fff;
  -webkit-text-stroke:4.5px var(--ink);paint-order:stroke fill;background:var(--gold);transform:rotate(-3deg);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 0 0 3px var(--ink),0 5px 0 3px rgba(20,24,33,.85)}
.kb-sticker.cherry{background:var(--cherry)}
.kb-sticker.purple{background:var(--purple)}
.kb-sticker.sky{background:#4aa3f5}
.kb-sticker.grass{background:var(--lawn-hi)}

/* a looping clip: rounded, outlined, with a lip; its pause button sits in the corner */
.kb-loop,.kb-still{width:100%;height:auto;background:#5f9fd8;border-radius:26px;object-fit:cover;
  box-shadow:0 0 0 4px var(--ink),0 9px 0 4px rgba(20,24,33,.55)}
.kb-pp{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:rgba(20,24,33,.62);box-shadow:0 0 0 2px rgba(255,255,255,.75);opacity:0;transition:opacity .25s,transform .2s var(--ease)}
.kb-pp svg{width:18px;height:18px}
figure:hover .kb-pp,.kb-pp:focus-visible,.kb-phone:hover .kb-pp,.kb-pp.is-paused{opacity:1}
@media (hover:none){.kb-pp{opacity:.8;width:34px;height:34px;top:10px;right:10px}.kb-pp svg{width:15px;height:15px}}
.kb-pp:hover{transform:scale(1.08)}
figure{position:relative}

/* ---- the store badges: Apple's and Google's, greyed and unlinked with one "coming soon" line until store.js
   marks a store live (html.kb-live, html.kb-play-live) ---- */
.kb-stores{display:flex;flex-direction:column;gap:9px}
.kb-badges{display:flex;flex-wrap:wrap;gap:12px}
.kb-badge{display:inline-flex;line-height:0;border-radius:10px;transition:transform .25s var(--ease)}
.kb-badge img{height:var(--badge-h,54px);width:auto}
html:not(.kb-live) .kb-apple,html:not(.kb-play-live) .kb-gplay{cursor:default}
html:not(.kb-live) .kb-apple img,html:not(.kb-play-live) .kb-gplay img{opacity:.5;filter:grayscale(1)}
.kb-live a.kb-apple:hover,.kb-play-live a.kb-gplay:hover{transform:translateY(-2px)}
.kb-store-cap{font-weight:700;font-size:14.5px;line-height:1.3;color:#fff}
.kb-store-cap>span{display:none}
/* a platform that is on its way (Steam): a small tag and a line under the badges */
.kb-steam-soon{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:700;font-size:14.5px;line-height:1.3;color:#fff}
.kb-steam-soon b{font-size:12px;letter-spacing:.05em;background:#171a21;color:#fff;border-radius:6px;padding:3px 7px}
html:not(.kb-live):not(.kb-play-live) .kb-cap-both,
html.kb-live:not(.kb-play-live) .kb-cap-play,
html.kb-play-live:not(.kb-live) .kb-cap-apple,
html.kb-live.kb-play-live .kb-cap-live{display:inline}
.kb-live .kb-soon,.kb-play-live .kb-play-soon{display:none!important}
html:not(.kb-live) .kb-live-only,html:not(.kb-play-live) .kb-play-live-only{display:none!important}
html:is(.kb-live,.kb-play-live) .kb-both-soon{display:none!important}
html:not(.kb-live):not(.kb-play-live) .kb-any-live{display:none!important}

/* ===================== NAV ===================== */
.kb-nav{position:fixed;top:0;left:0;right:0;z-index:60;padding:14px calc(var(--pad) - 18px);transition:padding .4s var(--ease)}
.kb-nav-bar{display:flex;align-items:center;gap:18px;max-width:calc(var(--content) + 36px);margin:0 auto;padding:8px 18px;border-radius:20px;
  transition:background .4s var(--ease),box-shadow .4s var(--ease)}
.kb-nav.is-scrolled{padding-top:10px}
.kb-nav.is-scrolled .kb-nav-bar,.kb-nav.is-open .kb-nav-bar{background:rgba(20,24,33,.9);backdrop-filter:saturate(150%) blur(14px);-webkit-backdrop-filter:saturate(150%) blur(14px);
  box-shadow:0 0 0 2px rgba(255,255,255,.14),0 14px 36px rgba(0,0,0,.3)}
.kb-brand{display:flex;align-items:center;gap:14px;flex:none}
.kb-ll{display:inline-flex;line-height:0;filter:drop-shadow(0 1px 3px rgba(20,24,33,.6))}
.kb-ll img{height:19px;width:auto}
.kb-crumb{font-weight:700;font-size:16px;color:#fff;padding-left:14px;border-left:2px solid rgba(255,255,255,.45);text-shadow:0 1px 3px rgba(20,24,33,.7)}
.kb-mark{display:inline-flex;line-height:0;margin-left:2px;transition:opacity .3s,transform .4s var(--pop)}
.kb-nav:not(.is-scrolled) .kb-mark{opacity:0;transform:translateY(-6px) scale(.8);pointer-events:none}
.kb-mark img{height:34px;width:auto}
.kb-links{display:flex;align-items:center;gap:2px;margin-left:auto}
.kb-links a{font-weight:700;font-size:15.5px;color:#fff;padding:8px 11px;border-radius:10px;white-space:nowrap;text-shadow:0 1px 3px rgba(20,24,33,.7);transition:color .2s}
.kb-links a:hover,.kb-links a.is-here{color:var(--gold)}
.kb-lang{position:relative;flex:none}
.kb-lang summary{list-style:none;display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;font-weight:700;font-size:15.5px;color:#fff;cursor:pointer;white-space:nowrap;text-shadow:0 1px 3px rgba(20,24,33,.7)}
.kb-lang summary::-webkit-details-marker{display:none}
.kb-globe{width:20px;height:20px;flex:none}
.kb-lang-list{position:absolute;right:0;top:calc(100% + 8px);min-width:160px;padding:8px;border-radius:14px;background:var(--ink);box-shadow:0 0 0 2px rgba(255,255,255,.16),0 16px 36px rgba(0,0,0,.4)}
.kb-lang-list a{display:block;padding:9px 12px;border-radius:9px;font-weight:700;font-size:16px;color:#fff}
.kb-lang-list a:hover{background:rgba(255,255,255,.1)}
.kb-lang-list a[aria-current]{color:var(--gold)}
.kb-nav-cta{font-size:16px;padding:11px 18px 12px;border-radius:14px;-webkit-text-stroke-width:3.5px}
.kb-burger{display:none;width:44px;height:44px;border-radius:12px;position:relative;flex:none}
.kb-burger span{position:absolute;left:11px;right:11px;height:3px;border-radius:2px;background:#fff;box-shadow:0 1px 2px rgba(20,24,33,.5);transition:transform .3s var(--ease),opacity .2s}
.kb-burger span:nth-child(1){top:14px}.kb-burger span:nth-child(2){top:21px}.kb-burger span:nth-child(3){top:28px}
.kb-nav.is-open .kb-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.kb-nav.is-open .kb-burger span:nth-child(2){opacity:0}
.kb-nav.is-open .kb-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.kb-menu{display:none}

/* ===================== HERO =====================
   The header scene on a stage that covers the art box (the people stay centred), the game's wordmark between the
   scene and a cut-out of the three people and the baton, so the word sits in the picture: the baton crosses in front
   of it and, as the page scrolls, the friends rise in front of the letters. */
.kb-hero{position:relative;background:var(--lawn-deep)}
.kb-art{position:relative;height:var(--art-h);min-height:400px;overflow:hidden;container-type:size;background:#86bfee;--ar:3840/1646;
  --art-h:min(80svh,max(42.9vw,58svh))}
.kb-stage{position:absolute;left:50%;bottom:0;width:max(100cqw,calc(100cqh * 3840 / 1646));aspect-ratio:var(--ar);transform:translate3d(-50%,var(--sy,0px),0)}
.kb-stage picture,.kb-stage img{display:block;width:100%;height:100%}
.kb-stage-scene{z-index:1}
.kb-stage-people{z-index:3;pointer-events:none}
.kb-word{position:absolute;aspect-ratio:1600/644}
.kb-word-hero{z-index:2;left:50%;top:max(80px,12cqh);width:min(76cqh,54cqw,760px);transform:translate3d(-50%,var(--wy,0px),0)}
.kb-l{position:absolute;left:var(--x);top:var(--y);width:var(--w);transform-origin:50% 100%}
.kb-l img{width:100%;height:auto}
.kb-l-crown{transform-origin:40% 90%}
/* a soft warm shade under the word, as the game sets it, so the cream sides hold on bright sky and leaves */
.kb-word-shade{position:absolute;left:-6%;right:-6%;top:6%;bottom:-14%;border-radius:50%;background:radial-gradient(closest-side,rgba(40,22,10,.42),rgba(40,22,10,0));filter:blur(10px);opacity:.85}

.kb-hero-band{position:relative;z-index:4;background:var(--lawn-deep)}
/* the lawn's edge: a fringe of grass blades over the picture's foot */
.kb-hero-band::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:30px;margin-bottom:-1px;background:var(--lawn-deep);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 30V19q4-9 8 1 3-14 8-1 4-8 7 2 4-17 9-3 3-7 6 3 5-12 9 0 3-10 7 1 5-16 9-2 3-6 6 3 4-13 9 0 3-8 7 1 4-15 9-1 3-7 6 2 4-11 8 1V30z'/%3E%3C/svg%3E") 0 100%/120px 30px repeat-x;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 30V19q4-9 8 1 3-14 8-1 4-8 7 2 4-17 9-3 3-7 6 3 5-12 9 0 3-10 7 1 5-16 9-2 3-6 6 3 4-13 9 0 3-8 7 1 4-15 9-1 3-7 6 2 4-11 8 1V30z'/%3E%3C/svg%3E") 0 100%/120px 30px repeat-x}
.kb-hero-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px clamp(28px,4vw,64px);align-items:center;padding-top:clamp(6px,1.2vh,14px);padding-bottom:clamp(30px,5vh,52px)}
.kb-chip{display:inline-block;font-weight:700;font-size:15px;letter-spacing:.01em;color:var(--ink);background:var(--gold);padding:5px 12px;border-radius:999px;box-shadow:0 0 0 2.5px var(--ink)}
.kb-h1{margin-top:12px;line-height:0}
.kb-h1-sub{display:block;font-size:clamp(36px,3.7vw,56px);line-height:1;color:#fff;-webkit-text-stroke:7px var(--ink);paint-order:stroke fill;text-shadow:0 6px 0 var(--ink);text-wrap:balance}
.kb-pitch{font-size:clamp(18px,1.45vw,21px);line-height:1.5;max-width:44ch;margin-top:14px;text-wrap:pretty}
.kb-hero-get{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.kb-hero-get .kb-stores{--badge-h:52px}

/* the trailer: a thumbnail with a big play button, like the game's own cards */
.kb-trailer-btn{display:inline-flex;align-items:center;gap:14px;padding:8px 18px 8px 8px;border-radius:20px;background:var(--cream);color:var(--ink);text-align:left;
  box-shadow:0 0 0 3px var(--ink),0 6px 0 3px var(--cream-lip),0 6px 0 6px var(--ink);transition:transform .25s var(--ease)}
.kb-trailer-btn:hover{transform:translateY(-3px) rotate(-1deg)}
.kb-trailer-thumb{position:relative;flex:none;width:76px;height:76px;border-radius:14px;overflow:hidden;box-shadow:0 0 0 2.5px var(--ink)}
.kb-trailer-thumb img{width:100%;height:100%;object-fit:cover}
.kb-play-dot{position:absolute;inset:0;display:grid;place-items:center;background:rgba(20,24,33,.18)}
.kb-play-dot svg{width:36px;height:36px;filter:drop-shadow(0 2px 0 var(--ink))}
.kb-trailer-txt{display:flex;flex-direction:column;gap:2px}
.kb-trailer-txt span{font-family:var(--display);text-transform:uppercase;font-size:20px;line-height:1.05;letter-spacing:.01em}
.kb-trailer-txt small{font-weight:700;font-size:14px;color:#4a5263}

/* ===================== HOW TO PLAY: the throw on a phone, its three steps lighting up with the clip ===================== */
.kb-stripes{background:
  repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 clamp(60px,9vw,120px),rgba(0,0,0,.035) clamp(60px,9vw,120px) clamp(120px,18vw,240px)),
  linear-gradient(180deg,var(--lawn-deep) 0%,var(--lawn-dark) 100%)}
.kb-play{background:
  repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 clamp(60px,9vw,120px),rgba(0,0,0,.035) clamp(60px,9vw,120px) clamp(120px,18vw,240px)),
  linear-gradient(180deg,var(--lawn-deep) 0%,var(--lawn-dark) 100%)}
.kb-play-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,6vw,96px);align-items:center}
.kb-steps{display:grid;gap:16px;margin-top:clamp(26px,4vh,40px);counter-reset:s}
.kb-step{display:flex;gap:18px;align-items:center;padding:16px 20px;border-radius:20px;background:var(--cream);color:var(--ink);
  box-shadow:0 0 0 3px var(--ink),0 6px 0 3px var(--cream-lip),0 6px 0 6px var(--ink);transition:transform .35s var(--pop),background-color .3s,box-shadow .3s}
.kb-step-n{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font:400 25px/1 var(--display);color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;
  background:var(--sky);box-shadow:0 0 0 3px var(--ink);transition:background-color .3s,transform .35s var(--pop)}
.kb-step h3{font-size:24px;line-height:1.05;color:var(--ink)}
.kb-step p{margin-top:4px;font-size:17px;line-height:1.45;color:#2b3140}
.kb-step.is-on{background:var(--gold);transform:translateX(10px) rotate(-1deg);box-shadow:0 0 0 3px var(--ink),0 6px 0 3px var(--gold-lip),0 6px 0 6px var(--ink)}
.kb-step.is-on .kb-step-n{background:var(--cherry);transform:scale(1.12) rotate(-8deg)}
.kb-phone-wrap{display:flex;justify-content:center}
.kb-phone{position:relative;width:min(330px,76vw);padding:11px;border-radius:48px;background:var(--ink);
  box-shadow:0 0 0 3px rgba(255,255,255,.22),0 30px 60px rgba(8,36,12,.5);transform:rotate(2.5deg)}
.kb-phone::before{content:"";position:absolute;top:22px;left:50%;width:74px;height:8px;margin-left:-37px;border-radius:8px;background:rgba(255,255,255,.12);z-index:2}
.kb-phone .kb-loop{border-radius:38px;box-shadow:none;aspect-ratio:540/1168}
.kb-phone .kb-pp{top:auto;bottom:18px;right:18px}

/* ===================== THE KING FALLS: the end of a real match, in three clips ===================== */
.kb-king{background:linear-gradient(180deg,var(--sky) 0%,var(--sky-deep) 100%);overflow:hidden}
.kb-clouds{position:absolute;inset:0;z-index:-1;pointer-events:none;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 96'%3E%3Cpath fill='%23fff' d='M28 90C10 90 4 76 8 64c4-12 16-17 28-15 1-19 17-31 35-27 9-15 31-20 46-8 13-14 39-13 50 6 21-3 37 11 36 30 14 4 18 18 10 30-5 7-12 10-20 10z'/%3E%3Cpath fill='%23dceaf8' d='M12 76c6 9 12 14 22 14h158c8 0 15-3 20-10-4 4-10 6-17 6H34c-9 0-16-4-22-10z'/%3E%3C/svg%3E") no-repeat left -70px top 26px/280px auto,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 96'%3E%3Cpath fill='%23fff' d='M28 90C10 90 4 76 8 64c4-12 16-17 28-15 1-19 17-31 35-27 9-15 31-20 46-8 13-14 39-13 50 6 21-3 37 11 36 30 14 4 18 18 10 30-5 7-12 10-20 10z'/%3E%3Cpath fill='%23dceaf8' d='M12 76c6 9 12 14 22 14h158c8 0 15-3 20-10-4 4-10 6-17 6H34c-9 0-16-4-22-10z'/%3E%3C/svg%3E") no-repeat right -90px top 64px/340px auto,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 96'%3E%3Cpath fill='%23fff' d='M28 90C10 90 4 76 8 64c4-12 16-17 28-15 1-19 17-31 35-27 9-15 31-20 46-8 13-14 39-13 50 6 21-3 37 11 36 30 14 4 18 18 10 30-5 7-12 10-20 10z'/%3E%3Cpath fill='%23dceaf8' d='M12 76c6 9 12 14 22 14h158c8 0 15-3 20-10-4 4-10 6-17 6H34c-9 0-16-4-22-10z'/%3E%3C/svg%3E") no-repeat left 6% bottom 60px/230px auto,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 96'%3E%3Cpath fill='%23fff' d='M28 90C10 90 4 76 8 64c4-12 16-17 28-15 1-19 17-31 35-27 9-15 31-20 46-8 13-14 39-13 50 6 21-3 37 11 36 30 14 4 18 18 10 30-5 7-12 10-20 10z'/%3E%3Cpath fill='%23dceaf8' d='M12 76c6 9 12 14 22 14h158c8 0 15-3 20-10-4 4-10 6-17 6H34c-9 0-16-4-22-10z'/%3E%3C/svg%3E") no-repeat right 10% bottom 18px/200px auto}
.kb-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3.4vw,48px);margin-top:clamp(40px,6vh,64px);align-items:start}
.kb-clipcard figure{transition:transform .5s var(--pop)}
.kb-tilt-0 figure{transform:rotate(-2.5deg)}
.kb-tilt-1 figure{transform:rotate(1.5deg) translateY(28px)}
.kb-tilt-2 figure{transform:rotate(3deg)}
.kb-clipcard figure:hover{transform:rotate(0) translateY(-6px)}

/* ===================== VENUES: a year of kubb, the section's colour following the venue in view ===================== */
.kb-venues{background:var(--vbg-now,#2a7a33);transition:background-color .9s var(--ease);overflow:hidden}
.kb-venues::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.14),transparent 60%),linear-gradient(180deg,transparent 60%,rgba(0,0,0,.18))}
.kb-rail-head,.kb-shots-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.kb-rail-ctrl{display:flex;gap:12px;flex:none;padding-bottom:6px}
.kb-rail,.kb-shots-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  padding:30px max(var(--pad),calc((100vw - var(--content)) / 2)) 40px;scroll-padding-inline:max(var(--pad),calc((100vw - var(--content)) / 2))}
.kb-rail::-webkit-scrollbar,.kb-shots-viewport::-webkit-scrollbar{display:none}
.kb-rail-track{display:flex;gap:clamp(18px,2.2vw,30px);width:max-content}
.kb-venue{flex:none;width:clamp(230px,23vw,292px);scroll-snap-align:start}
.kb-venue figure{transition:transform .5s var(--pop)}
.kb-venue .kb-loop,.kb-venue .kb-still{aspect-ratio:480/746}
.kb-venue figcaption{display:flex;flex-direction:column;gap:4px;margin-top:22px}
.kb-venue-n{align-self:flex-start;font-weight:700;font-size:13px;letter-spacing:.04em;padding:3px 9px;border-radius:999px;background:rgba(20,24,33,.55);box-shadow:0 0 0 1.5px rgba(255,255,255,.5)}
.kb-venue-name{font-size:clamp(24px,2.1vw,28px);line-height:1.05;color:#fff;-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;text-shadow:0 4px 0 var(--ink)}
.kb-venue-line{font-size:16px;line-height:1.4;color:rgba(255,255,255,.94)}
.kb-venue.is-here figure{transform:translateY(-8px) rotate(-1deg)}
.kb-still{animation:none}
/* the year: a strip from midsummer green to winter blue with a dot that follows the rail */
.kb-year{position:relative;max-width:min(560px,calc(100% - 2 * var(--pad)));height:12px;margin:2px auto 0;border-radius:999px;
  background:linear-gradient(90deg,#4fb24c,#7cc35a 18%,#e6c27a 36%,#4aa3f5 52%,#9aa0ad 66%,#e8823a 82%,#cfe6ff);box-shadow:0 0 0 3px var(--ink)}
.kb-year-dot{position:absolute;top:50%;left:var(--yp,0%);width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--ink),0 3px 0 3px var(--ink);transition:left .25s linear}

/* ===================== CELEBRATE: victory emotes on a sunburst ===================== */
.kb-party{background:radial-gradient(120% 90% at 50% 30%,#ffe479 0%,#ffcc33 45%,#f6a91b 100%);color:var(--ink);overflow:hidden}
.kb-sun{position:absolute;left:50%;top:44%;width:2200px;height:2200px;margin:-1100px 0 0 -1100px;z-index:-1;pointer-events:none;border-radius:50%;
  background:repeating-conic-gradient(rgba(255,255,255,.26) 0 7.5deg,rgba(255,255,255,0) 7.5deg 15deg);
  -webkit-mask:radial-gradient(closest-side,#000 18%,transparent 72%);mask:radial-gradient(closest-side,#000 18%,transparent 72%);transform:rotate(var(--rot,0deg))}
.kb-party .kb-hl{color:#4aa3f5}
.kb-party .kb-lead{color:var(--ink);font-weight:500}
.kb-celes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(14px,2vw,28px);margin-top:clamp(40px,6vh,64px);align-items:start}
.kb-cele figure{transform:rotate(var(--tilt));transition:transform .5s var(--pop)}
.kb-cele:nth-child(even) figure{margin-top:34px}
.kb-cele figure:hover{transform:rotate(0) translateY(-6px) scale(1.03)}
.kb-cele .kb-loop{aspect-ratio:480/600;border-radius:22px}
.kb-cele .kb-sticker{left:50%;bottom:-18px;transform:translateX(-50%) rotate(-2deg);white-space:nowrap;font-size:clamp(17px,1.5vw,21px);padding:9px 12px 10px}

/* ===================== SEASON 1: the pass and its 30 hats ===================== */
.kb-season{background:radial-gradient(120% 80% at 50% 0%,#2c3f8e 0%,#1d2a63 45%,var(--navy) 100%);overflow:hidden}
.kb-stars{position:absolute;inset:0;z-index:-1;opacity:.55;background:
  radial-gradient(2px 2px at 12% 18%,#fff 99%,#0000),radial-gradient(2px 2px at 28% 8%,#fff 99%,#0000),radial-gradient(1.5px 1.5px at 44% 22%,#fff 99%,#0000),
  radial-gradient(2px 2px at 66% 12%,#fff 99%,#0000),radial-gradient(1.5px 1.5px at 81% 26%,#fff 99%,#0000),radial-gradient(2px 2px at 92% 9%,#fff 99%,#0000),
  radial-gradient(1.5px 1.5px at 7% 46%,#fff 99%,#0000),radial-gradient(1.5px 1.5px at 95% 52%,#fff 99%,#0000)}
.kb-ticket{display:inline-block;position:relative;margin-bottom:16px;font-size:22px;line-height:1;padding:9px 22px 10px;color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;
  background:var(--gold);border-radius:8px;transform:rotate(-2deg);box-shadow:0 0 0 3px var(--ink),0 5px 0 3px var(--ink);
  -webkit-mask:radial-gradient(8px at 0 50%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(8px at 100% 50%,#0000 98%,#000) right/51% 100% no-repeat;
          mask:radial-gradient(8px at 0 50%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(8px at 100% 50%,#0000 98%,#000) right/51% 100% no-repeat}
.kb-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:28px}
.kb-stats li{display:flex;flex-direction:column;align-items:center;min-width:132px;padding:12px 18px 13px;border-radius:18px;background:rgba(255,255,255,.08);box-shadow:0 0 0 2.5px rgba(255,255,255,.28)}
.kb-stats b{font-size:clamp(36px,4vw,46px);line-height:1;white-space:nowrap;color:var(--gold);-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;text-shadow:0 4px 0 var(--ink)}
.kb-stats span{margin-top:6px;font-weight:700;font-size:15px;color:#e6ebff}
.kb-hat-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin:clamp(40px,6vh,60px) 0 22px}
.kb-seg{display:inline-flex;align-items:center;gap:6px;padding:6px;border-radius:16px;background:rgba(0,0,0,.28);box-shadow:0 0 0 2.5px rgba(255,255,255,.22)}
.kb-seg-label{font-weight:700;font-size:14.5px;color:#cfd8ff;padding:0 8px 0 10px}
.kb-seg button{font-weight:700;font-size:15.5px;padding:9px 16px;border-radius:11px;color:#fff;transition:background-color .25s,color .25s}
.kb-seg button[aria-pressed="true"]{background:var(--gold);color:var(--ink);box-shadow:0 0 0 2.5px var(--ink),0 3px 0 2.5px var(--ink)}
.kb-hat-hint{font-size:15.5px;color:#dfe5ff}
.kb-hats{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:22px 14px}
.kb-hat{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.kb-hat button{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:20px;overflow:hidden;
  background:radial-gradient(70% 70% at 50% 38%,var(--r-light) 0%,var(--r) 62%,var(--r-deep) 100%);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.35),0 0 0 3px var(--ink),0 5px 0 3px var(--ink);transition:transform .35s var(--pop)}
.kb-hat button:hover{transform:translateY(-4px) rotate(var(--wob,-3deg))}
.kb-hat:nth-child(even) button{--wob:3deg}
.kb-hat img{position:absolute;inset:4% 2% 0;width:96%;height:96%;object-fit:contain;object-position:50% 100%;transition:transform .18s ease-in}
.kb-hat button.is-turning img{transform:scaleX(0)}
.kb-hat-tier{position:absolute;top:7px;left:7px;z-index:2;min-width:25px;height:25px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
  font:400 14px/1 var(--display);color:#fff;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;background:rgba(20,24,33,.45);box-shadow:0 0 0 2px rgba(255,255,255,.55)}
.kb-hat-name{max-width:100%;font-weight:700;font-size:13.5px;line-height:1.2;text-align:center;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kb-hat.common{--r:#3e8edb;--r-deep:#163f78;--r-light:#d8ecff}
.kb-hat.rare{--r:#3dae4a;--r-deep:#175a22;--r-light:#d8ffc8}
.kb-hat.epic{--r:#8c52e0;--r-deep:#3a1878;--r-light:#f0e2ff}

/* ===================== MODES ===================== */
.kb-modes{background:
  repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 clamp(60px,9vw,120px),rgba(0,0,0,.035) clamp(60px,9vw,120px) clamp(120px,18vw,240px)),
  linear-gradient(180deg,var(--lawn-deep) 0%,var(--lawn-dark) 100%)}
.kb-mode-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;margin-top:clamp(36px,5vh,56px)}
.kb-mode{grid-column:span 3;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--cream);color:var(--ink);
  box-shadow:0 0 0 3px var(--ink),0 7px 0 3px var(--cream-lip),0 7px 0 6px var(--ink);transition:transform .35s var(--pop)}
.kb-mode:nth-child(n+5){grid-column:span 4}
.kb-mode:hover{transform:translateY(-4px) rotate(-.6deg)}
.kb-mode h3{display:flex;align-items:center;gap:12px;padding:14px 16px 13px;font-size:24px;line-height:1.05;color:#fff;-webkit-text-stroke:4.5px var(--ink);paint-order:stroke fill;border-bottom:3px solid var(--ink)}
.kb-ico{flex:none;width:32px;height:32px}
.kb-mode p{padding:15px 18px 19px;font-size:17px;line-height:1.5;color:#2b3140}
.kb-mode.gold h3{background:var(--gold)}
.kb-mode.sky h3{background:#4aa3f5}
.kb-mode.grass h3{background:var(--lawn-hi)}
.kb-mode.cherry h3{background:var(--cherry)}
.kb-mode.purple h3{background:var(--purple)}
.kb-mode.slate h3{background:var(--slate)}
.kb-mode.teal h3{background:var(--teal-hi)}
.kb-rules{display:flex;justify-content:center;margin-top:34px}
.kb-rules>span{font-weight:700;font-size:16.5px;padding:10px 18px;border-radius:999px;background:var(--ink);color:#fff;box-shadow:0 0 0 2.5px rgba(255,255,255,.3)}

/* ===================== FRIENDS: a teal popup with sage wells, like the game's ===================== */
.kb-friends{background:linear-gradient(180deg,var(--sky-deep) 0%,var(--sky) 100%);overflow:hidden}
.kb-friends-grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(36px,6vw,88px);align-items:center}
.kb-friends-clip{max-width:340px;justify-self:center;transform:rotate(-2.5deg)}
.kb-friends-clip .kb-loop{aspect-ratio:480/746}
.kb-popup{border-radius:26px;overflow:hidden;background:var(--teal);box-shadow:0 0 0 3px var(--ink),0 8px 0 3px var(--teal-lip),0 8px 0 6px var(--ink)}
.kb-popup-h{padding:18px 24px 16px;font-size:clamp(30px,3.4vw,44px);line-height:1.02;color:#fff;-webkit-text-stroke:6px var(--ink);paint-order:stroke fill;text-shadow:0 4px 0 var(--ink);
  background:var(--teal-hi);border-bottom:3px solid var(--ink);text-wrap:balance}
.kb-popup-lead{padding:18px 24px 0;font-size:18px;line-height:1.55;color:#fff}
.kb-wells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 20px 22px}
.kb-well{display:flex;gap:13px;align-items:flex-start;padding:14px 15px 15px;border-radius:16px;background:var(--sage);color:#14292b}
.kb-well .kb-ico{width:34px;height:34px}
.kb-well h3{font-size:17px;line-height:1.25;font-weight:700}
.kb-well p{margin-top:3px;font-size:15.5px;line-height:1.45;color:#1d3436}

/* ===================== SCREENSHOTS ===================== */
.kb-shots{background:var(--cream);color:var(--ink)}
.kb-shots .kb-lead{color:#2b3140}
.kb-shots-track{display:flex;gap:22px;width:max-content}
.kb-shot{scroll-snap-align:start;flex:none}
.kb-shot button{display:block;width:clamp(200px,21vw,252px);border-radius:24px;overflow:hidden;line-height:0;box-shadow:0 0 0 3px var(--ink),0 8px 0 3px rgba(20,24,33,.3);cursor:zoom-in;transition:transform .3s var(--pop)}
.kb-shot button:hover{transform:translateY(-5px) rotate(-1deg)}
.kb-shot img{width:100%;height:auto}
.kb-lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(20,24,33,.94);overflow:hidden}
.kb-lightbox[open]{display:flex;align-items:center;justify-content:center}
.kb-lightbox:focus{outline:none}
.kb-lightbox::backdrop{background:rgba(20,24,33,.6)}
.kb-lb-fig{display:flex;flex-direction:column;align-items:center;gap:12px}
.kb-lb-fig img{max-height:86vh;max-width:86vw;width:auto;height:auto;border-radius:22px;box-shadow:0 0 0 3px rgba(255,255,255,.2)}
.kb-lb-count{font-weight:700;font-size:15px;color:#fff}
.kb-lb-close,.kb-trailer-close{position:absolute;top:18px;right:18px}
.kb-lb-prev{position:absolute;left:18px;top:50%;margin-top:-25px}
.kb-lb-next{position:absolute;right:18px;top:50%;margin-top:-25px}

/* the trailer in its own dialog, the size of a phone held up */
.kb-trailer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(20,24,33,.94);overflow:hidden}
.kb-trailer[open]{display:grid;place-items:center}
.kb-trailer:focus{outline:none}
.kb-trailer::backdrop{background:rgba(20,24,33,.6)}
.kb-trailer-frame{height:min(88vh,calc(92vw * 1170 / 540));aspect-ratio:540/1170;border-radius:30px;overflow:hidden;background:#000;box-shadow:0 0 0 4px var(--ink),0 0 0 7px rgba(255,255,255,.18)}
.kb-trailer-frame video{width:100%;height:100%;object-fit:cover}

/* ===================== FAQ ===================== */
.kb-faq{background:var(--lawn-deep)}
.kb-faq-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,72px);align-items:start}
.kb-faq-mail{margin-top:18px;font-size:17px;max-width:32ch}
.kb-faq-mail a,.kb-qa-a a{text-decoration:underline;text-underline-offset:3px}
.kb-qa{display:grid;gap:14px}
.kb-qa details{border-radius:18px;background:var(--cream);color:var(--ink);box-shadow:0 0 0 3px var(--ink),0 5px 0 3px var(--cream-lip),0 5px 0 6px var(--ink)}
.kb-qa summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;font-weight:700;font-size:18px;line-height:1.3;cursor:pointer}
.kb-qa summary::-webkit-details-marker{display:none}
.kb-qa summary i{flex:none;position:relative;width:18px;height:18px}
.kb-qa summary i::before,.kb-qa summary i::after{content:"";position:absolute;left:0;right:0;top:7.5px;height:3px;border-radius:2px;background:var(--ink);transition:transform .25s var(--ease)}
.kb-qa summary i::after{transform:rotate(90deg)}
.kb-qa details[open] summary i::after{transform:none}
.kb-qa-a{padding:0 20px 18px;font-size:17px;line-height:1.55;color:#2b3140}

/* ===================== THE LAST CALL: the title screen again, the word landing on a blue sky ===================== */
.kb-cta{position:relative;text-align:center;padding:clamp(80px,13vh,140px) 0 clamp(84px,13vh,140px);overflow:hidden;isolation:isolate;
  background:radial-gradient(110% 80% at 50% 35%,#8fcaff 0%,var(--sky) 55%,var(--sky-deep) 100%)}
.kb-cta .kb-sun{top:38%}
.kb-cta-in{position:relative;display:flex;flex-direction:column;align-items:center}
.kb-word-cta{position:relative;width:min(560px,82vw);margin-bottom:6px}
.kb-cta .kb-lead{margin-inline:auto;font-weight:500}
.kb-cta-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:22px 30px;margin-top:30px}
.kb-cta-row .kb-stores{align-items:center;--badge-h:56px}
.kb-cta-row .kb-btn{margin-top:4px}
.kb-confetti{position:absolute;inset:0;pointer-events:none;z-index:2}
.kb-confetti i{position:absolute;left:50%;top:30%;width:12px;height:18px;border-radius:3px;opacity:0;box-shadow:0 0 0 2px var(--ink)}
.kb-confetti i:nth-child(4n+1){background:var(--gold)}
.kb-confetti i:nth-child(4n+2){background:var(--cherry)}
.kb-confetti i:nth-child(4n+3){background:#fff}
.kb-confetti i:nth-child(4n+4){background:var(--lawn-hi)}

/* ===================== FOOTER ===================== */
.kb-foot{background:var(--ink);color:#fff;padding:34px 0 30px}
.kb-foot-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.kb-foot-mark{line-height:0}
.kb-foot-mark img{height:19px;width:auto}
.kb-foot-links,.kb-langs{display:flex;flex-wrap:wrap;gap:6px 20px;font-weight:700;font-size:15.5px}
.kb-foot-links{margin-left:auto}
.kb-foot-links a:hover,.kb-langs a:hover{color:var(--gold)}
.kb-langs a[aria-current]{color:var(--gold)}
.kb-foot-legal{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.7)}

/* ===================== MOTION (only for those who have not asked for less) ===================== */
@media (prefers-reduced-motion:no-preference){
  /* the wordmark lands like the game's splash: each letter stamped down from big and tilted, squashing onto its foot
     with a white flash, the crown dropped onto the K last; then a slow wave runs along the word a few times */
  .js .kb-word.is-go .kb-l{animation:kb-stamp .66s cubic-bezier(.3,.6,.4,1) calc(.12s + var(--i) * .09s) both,kb-wave 2.2s ease-in-out calc(1.5s + var(--i) * .26s) 4 alternate}
  .js .kb-word.is-go .kb-l-crown{animation:kb-crown .9s cubic-bezier(.3,.6,.4,1) .7s both,kb-wave 2.2s ease-in-out 1.6s 4 alternate}
  .js .kb-word:not(.is-go) .kb-l{opacity:0}
  .js .kb-l:nth-child(odd){--s:1}.js .kb-l:nth-child(even){--s:-1}
  .js .kb-word.is-go .kb-word-shade{animation:kb-fade .6s ease .2s both}
  /* reveal on scroll: rise and settle with a little overshoot */
  .js .kb-rv{opacity:0;transform:translateY(26px) scale(.98);transition:opacity .7s var(--ease),transform .8s var(--pop)}
  .js .kb-rv.is-in{opacity:1;transform:none}
  .js .kb-clipcard,.js .kb-cele,.js .kb-mode,.js .kb-hat,.js .kb-step,.js .kb-well{opacity:0;translate:0 30px;transition:opacity .6s var(--ease) calc(var(--i,0) * 70ms),translate .7s var(--pop) calc(var(--i,0) * 70ms)}
  .js .is-in .kb-clipcard,.js .is-in .kb-cele,.js .is-in .kb-mode,.js .is-in .kb-hat,.js .is-in .kb-step,.js .is-in .kb-well{opacity:1;translate:0 0}
  .js .is-in .kb-hat{transition-delay:calc(var(--i,0) * 22ms)}
  .js .kb-cta.is-in .kb-confetti i{animation:kb-confetti 1.6s cubic-bezier(.2,.7,.3,1) calc(.75s + var(--i) * 18ms) both}
}
@keyframes kb-stamp{
  0%{opacity:0;transform:translateY(-14%) scale(1.7) rotate(calc(var(--s,1) * 8deg))}
  20%{opacity:1;transform:none;filter:brightness(1.9)}
  32%{transform:scale(1.22,.76);filter:brightness(1.35)}
  46%{transform:scale(.9,1.12);filter:none}
  60%{transform:scale(1.06,.95)}
  76%{transform:scale(.98,1.02)}
  100%{transform:none}
}
@keyframes kb-crown{
  0%{opacity:0;transform:translate(-12%,-160%) rotate(-30deg) scale(1.3)}
  30%{opacity:1;transform:none;filter:brightness(1.8)}
  44%{transform:rotate(12deg);filter:none}
  58%{transform:rotate(-7deg)}
  72%{transform:rotate(4deg)}
  86%{transform:rotate(-1.5deg)}
  100%{transform:none}
}
@keyframes kb-wave{from{translate:0 0}to{translate:0 -3.5%}}
@keyframes kb-fade{from{opacity:0}to{opacity:.85}}
@keyframes kb-confetti{
  0%{opacity:0;transform:translate(-50%,0) rotate(0)}
  12%{opacity:1}
  100%{opacity:0;transform:translate(calc(-50% + (var(--i) - 8.5) * 46px),calc(-180px + mod(var(--i) * 37, 120) * 4px)) rotate(calc(var(--i) * 97deg))}
}

/* ===================== RESPONSIVE ===================== */
@media(max-width:1180px){
  .kb-links a{padding:8px 8px;font-size:15px}
  .kb-hats{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:1080px){
  .kb-links{display:none}
  .kb-lang{margin-left:auto}
  .kb-hero-copy{grid-template-columns:1fr}
  .kb-hero-get{flex-direction:row;align-items:center;flex-wrap:wrap;gap:18px 28px}
  .kb-mode,.kb-mode:nth-child(n+5){grid-column:span 6}
  .kb-mode:last-child{grid-column:3 / span 8}
  .kb-celes{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(var(--pad) * -1);padding:12px var(--pad) 40px}
  .kb-celes::-webkit-scrollbar{display:none}
  .kb-cele{scroll-snap-align:center}
}
@media(max-width:860px){
  .kb-play-grid,.kb-faq-grid,.kb-friends-grid{grid-template-columns:1fr}
  .kb-phone-wrap{order:-1}
  .kb-trio{grid-template-columns:repeat(3,minmax(240px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(var(--pad) * -1);padding:16px var(--pad) 56px}
  .kb-trio::-webkit-scrollbar{display:none}
  .kb-clipcard{scroll-snap-align:center}
  .kb-tilt-1 figure{transform:rotate(1.5deg)}
  .kb-friends-clip{max-width:300px}
}
@media(max-width:760px){
  body.kb{font-size:17px}
  .kb-nav{padding:8px}
  .kb-nav-bar{gap:10px;padding:6px 8px 6px 14px;flex-wrap:wrap;row-gap:0}
  .kb-lang,.kb-nav-cta{display:none}
  .kb-burger{display:block;margin-left:auto}
  .kb-brand{gap:10px}
  .kb-crumb{padding-left:10px}
  .kb-mark img{height:28px}
  .kb-menu{flex-basis:100%;overflow:hidden}
  .kb-nav.is-open .kb-menu{display:block}
  .kb-menu-in{display:flex;flex-direction:column;gap:2px;padding:10px 4px 12px}
  .kb-menu-link{padding:11px 10px;border-radius:10px;font-weight:700;font-size:18px;color:#fff}
  .kb-menu .kb-langs{padding:12px 10px 16px}
  .kb-menu .kb-btn{align-self:flex-start;margin:0 10px 8px}
  /* phones: the middle of the scene, the three friends from edge to edge, the word above their heads */
  .kb-art{--ar:1550/1646;--art-h:min(122vw,66svh);min-height:0}
  .kb-stage{width:max(100cqw,calc(100cqh * 1550 / 1646))}
  .kb-word-hero{top:max(66px,14cqh);width:min(82cqw,340px)}
  .kb-hero-copy{gap:20px;padding-top:2px;padding-bottom:36px}
  .kb-h1-sub{margin-top:2px;font-size:clamp(30px,9vw,40px);-webkit-text-stroke-width:6px;text-shadow:0 4px 0 var(--ink)}
  .kb-chip{font-size:14px}
  .kb-hero-get{flex-direction:column;align-items:flex-start;gap:20px}
  .kb-hero-get .kb-stores{--badge-h:46px}
  .kb-h2{-webkit-text-stroke-width:5.5px;text-shadow:0 4px 0 var(--ink)}
  .kb-step{padding:14px 16px}
  .kb-step.is-on{transform:translateX(4px) rotate(-1deg)}
  .kb-phone{width:min(300px,74vw)}
  .kb-rail-ctrl{display:none}
  .kb-venue{width:min(66vw,270px)}
  .kb-hats{grid-template-columns:none;grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:min(31vw,128px);overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;margin-inline:calc(var(--pad) * -1);padding:8px var(--pad) 18px;scroll-padding-inline:var(--pad)}
  .kb-hats::-webkit-scrollbar{display:none}
  .kb-hat{scroll-snap-align:start}
  .kb-hat-bar{justify-content:center;text-align:center}
  .kb-mode-grid{gap:20px}
  .kb-mode,.kb-mode:nth-child(n+5),.kb-mode:last-child{grid-column:1 / -1}
  .kb-wells{grid-template-columns:1fr}
  .kb-popup-h{padding:16px 18px 14px}
  .kb-popup-lead{padding:16px 18px 0}
  .kb-wells{padding:16px 14px 18px}
  .kb-shot button{width:min(62vw,240px)}
  .kb-clouds{background-size:170px auto,200px auto,150px auto,0 0;background-position:left -60px top 6px,right -70px top 20px,left -30px bottom 30px,0 0}
  .kb-lb-prev,.kb-lb-next{top:auto;bottom:18px;margin-top:0}
  .kb-foot-links{margin-left:0}
  .kb-stats{gap:10px}
  .kb-stats li{min-width:0;flex:1 1 0;padding:10px 4px 11px}
  .kb-stats b{font-size:clamp(25px,7.4vw,34px);-webkit-text-stroke-width:4px;text-shadow:0 3px 0 var(--ink)}
  .kb-stats span{font-size:13.5px;text-align:center}
  .kb-cta-row .kb-stores{--badge-h:48px}
}
@media(min-width:761px){
  .kb-menu{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .kb *,.kb *::before,.kb *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
  .kb-step.is-on,.kb-clipcard figure,.kb-cele figure,.kb-hat button,.kb-venue.is-here figure{transform:none}
}

/* phones and tablets: the step in play is written on the phone itself, since the list sits below it */
.kb-phone-cap{display:none}
@media(max-width:860px){
  .kb-phone-cap{display:block;position:absolute;left:50%;bottom:44px;z-index:3;transform:translateX(-50%) rotate(-2deg);white-space:nowrap}
  .kb-phone-cap span{display:none;align-items:center;gap:9px;font:400 21px/1 var(--display);text-transform:uppercase;color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;
    padding:9px 14px 10px 9px;border-radius:14px;background:var(--gold);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 0 0 3px var(--ink),0 5px 0 3px var(--ink)}
  .kb-phone-cap span.is-on{display:inline-flex}
  .kb-phone-cap b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--cherry);box-shadow:0 0 0 2.5px var(--ink);font-weight:400}
}
