/* REJECT ALL — styles. Sections: base · HUD · fake site · overlays · title · results · banners (per level) · keyframes */
:root {
  --ink: #14122b; --cream: #fff4e0; --cookie: #f0a83c; --mint: #37e2a6; --pink: #ff4d79; --yellow: #ffd23f; --blue: #4d7cff;
  --hud: 60px;
  --f-disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--cream); font-family: var(--f-ui); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ------------------------------------------------------------ HUD */
#hud { display: flex; align-items: center; gap: 16px; min-height: var(--hud); padding: 0 16px; background: #0e0c22; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 20; }
.brand { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; font: 800 19px var(--f-disp); letter-spacing: .04em; color: var(--cream); }
.brand:focus-visible { outline: 3px solid var(--blue); border-radius: 8px; }
.brand-ck { font-size: 22px; }
.pips { flex: 1; display: flex; gap: 6px; justify-content: center; }
.pips i { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--f-mono); font-style: normal; background: rgba(255,255,255,.08); color: rgba(255,244,224,.55); transition: .25s; }
.pips i.done { background: var(--mint); color: #053b28; }
.pips i.cur { background: var(--yellow); color: #3b2210; box-shadow: 0 0 0 4px rgba(255,210,63,.25); animation: pulse2 1.2s infinite; }
.hud-right { display: flex; align-items: center; gap: 10px; }
.oops { font: 700 13px var(--f-mono); color: #ff9db5; }
.timer { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; min-width: 108px; }
.timer small { font: 700 9px var(--f-mono); letter-spacing: .22em; opacity: .55; margin-bottom: 3px; }
.timer span { font: 700 27px var(--f-mono); color: var(--cream); font-variant-numeric: tabular-nums; }
.ib { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); cursor: pointer; font-size: 16px; color: #fff; }
.ib:hover { background: rgba(255,255,255,.14); }

.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.site { position: absolute; inset: 0; overflow: hidden; filter: blur(2.5px) saturate(.95); transform: scale(1.03); }
.scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(12,9,34,.30), rgba(12,9,34,.66)); }
.layer { position: absolute; inset: 0; display: flex; padding: 14px; overflow: auto; overscroll-behavior: contain; }
.layer > * { margin: auto; }
.layer.pos-bottom > * { margin: auto auto 0; }
.layer.lv10 { padding: 0; }
.layer.lv10 > * { margin: 0; }
.stage.shake { animation: shake .45s; }

/* -------------------------------------------------------- fake site */
.fsite { position: absolute; inset: 0; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); overflow: hidden; }
.fsite-inner { max-width: 1120px; margin: 0 auto; padding: 18px 28px; }
.fs-nav { display: flex; align-items: center; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid rgba(128,128,128,.18); }
.fs-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.fs-logo span { font-size: 28px; }
.fs-links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; opacity: .75; }
.fs-cta { background: var(--s-accent); color: #fff; padding: 9px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.fs-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding: 44px 0 30px; }
.fs-copy small { font: 700 12px var(--f-mono); letter-spacing: .2em; color: var(--s-accent); }
.fs-copy h1 { margin: 10px 0; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.fs-copy p { font-size: 19px; opacity: .8; max-width: 520px; }
.fs-btns { display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.fs-btns b { background: var(--s-ink); color: var(--s-bg); padding: 13px 24px; border-radius: 12px; }
.fs-btns u { font-weight: 700; }
.fs-art { aspect-ratio: 1.1; border-radius: 34px; display: grid; place-items: center; background: linear-gradient(140deg, var(--s-accent2), var(--s-accent)); box-shadow: 0 30px 60px rgba(0,0,0,.2); transform: rotate(3deg); }
.fs-art span { font-size: clamp(90px, 14vw, 190px); filter: drop-shadow(0 12px 12px rgba(0,0,0,.25)); }
.fs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fs-cards article { background: rgba(255,255,255,.55); border: 1px solid rgba(128,128,128,.2); border-radius: 20px; padding: 16px; }
.fs-thumb { height: 92px; border-radius: 14px; display: grid; place-items: center; font-size: 50px; background: var(--s-accent2); margin-bottom: 10px; }
.fs-cards h3 { margin: 6px 0; font-size: 18px; }
.sk { display: block; height: 9px; border-radius: 5px; background: rgba(128,128,128,.24); margin: 9px 0; }
.fs-text { padding: 26px 0; max-width: 780px; }

/* ---------------------------------------------------------- overlays */
.overlay { position: absolute; inset: 0; z-index: 30; opacity: 0; transition: opacity .3s; display: flex; }
.overlay.show { opacity: 1; }
.overlay.title, .overlay.results { z-index: 40; }
.hint { position: absolute; left: 50%; top: 12px; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; background: var(--cream); color: #3b2210; padding: 10px 16px; border-radius: 14px; width: max-content; max-width: min(660px, calc(100% - 24px)); font-size: 13.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 26; transition: opacity .25s, transform .25s; }
.hint.show { opacity: 1; transform: translate(-50%, 0); }
.stage[data-level="10"] .hint { top: auto; bottom: 12px; }
.toast { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 10px); opacity: 0; background: #14122b; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 27; max-width: calc(100% - 24px); text-align: center; pointer-events: none; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { animation: toast 2.6s forwards; }

.intro { background: rgba(10,8,30,.86); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.in-card { text-align: center; max-width: 680px; padding: 24px; animation: rise .5s cubic-bezier(.2,1.2,.4,1) both; }
.in-num { font: 700 14px var(--f-mono); letter-spacing: .24em; color: var(--pink); }
.in-title { font: 800 clamp(36px, 8vw, 76px)/.98 var(--f-disp); margin: 10px 0 12px; letter-spacing: -.02em; }
.in-sub { font-size: clamp(15px, 2.4vw, 20px); opacity: .85; margin: 0; }
.in-pattern { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px 0 0; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.in-pattern span { font: 700 10px var(--f-mono); letter-spacing: .18em; color: var(--pink); }
.in-pattern b { font-weight: 700; }
.in-pattern em { font-style: normal; letter-spacing: .1em; font-size: 12px; color: rgba(255,255,255,.35); }
.in-goal { margin: 14px 0 18px; font-weight: 600; color: var(--yellow); font-size: 15px; }
.btn-go { background: var(--cream); font-size: 16px; padding: 13px 26px; }
.in-bar { height: 4px; background: rgba(255,255,255,.15); margin: 20px auto 0; width: 200px; border-radius: 2px; overflow: hidden; }
.in-bar i { display: block; height: 100%; background: var(--mint); animation: load 3.4s linear forwards; }

.accepted { background: rgba(122,10,44,.9); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ac-card { text-align: center; padding: 24px; max-width: 580px; animation: rise .35s cubic-bezier(.2,1.4,.4,1) both; }
.ac-crumb svg { width: 120px; animation: bob 1s infinite; }
.ac-big { font: 800 clamp(32px, 7vw, 60px)/1 var(--f-disp); color: #ffd6de; margin: 6px 0 10px; }
.ac-card p { font-size: 18px; margin: 0 0 8px; }
.ac-card small { opacity: .7; }

.stampo { background: rgba(10,8,30,.55); align-items: center; justify-content: center; pointer-events: none; }
.st-card { text-align: center; padding: 20px; }
.st-stamp { display: inline-block; font: 800 clamp(46px, 11vw, 120px)/1 var(--f-disp); color: var(--mint); border: 8px solid var(--mint); border-radius: 18px; padding: 6px 26px; transform: rotate(-6deg); letter-spacing: .04em; animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both; text-shadow: 0 0 40px rgba(55,226,166,.5); }
.st-time { font: 700 20px var(--f-mono); margin-top: 22px; }
.st-card p { margin: 8px auto 0; max-width: 460px; opacity: .85; font-size: 16px; }
.crumbp { position: absolute; pointer-events: none; z-index: 35; }

/* ----------------------------------------------------------- buttons */
.btn { font: 700 15px var(--f-ui); border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; color: #1c1b2e; background: #e9e7f5; transition: transform .12s, filter .12s, box-shadow .12s; touch-action: manipulation; }
.btn:hover { filter: brightness(.96); }
.btn:active { transform: translateY(2px); }
.btn:disabled { cursor: not-allowed; }
.btn-accept { background: linear-gradient(180deg, #3fe8ab, #1fbf83); color: #053b28; box-shadow: 0 5px 0 #148a5e, 0 12px 24px rgba(31,191,131,.35); }
.btn-accept:active { box-shadow: 0 2px 0 #148a5e; }
.btn-xl { width: 100%; font-size: 18px; padding: 16px 20px; }
.pulse { animation: pulse 1.5s infinite; }

/* ------------------------------------------------------------ title */
.title { background: radial-gradient(1200px 760px at 50% 26%, #43206f 0%, #1c1244 52%, #0c0a20 100%); overflow: auto; }
.t-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ghost { position: absolute; display: flex; flex-direction: column; gap: 7px; min-width: 150px; background: rgba(255,255,255,.92); color: #1c1b2e; padding: 12px 14px; border-radius: 14px; font: 700 13px var(--f-ui); box-shadow: 0 14px 40px rgba(0,0,0,.4); opacity: .2; animation: float 12s ease-in-out infinite; --r: -6deg; }
.ghost i { font-style: normal; background: #2bd196; color: #04331f; padding: 7px 12px; border-radius: 9px; text-align: center; }
.g1 { left: 4%; top: 10%; --r: -9deg; } .g2 { left: 72%; top: 8%; --r: 7deg; animation-delay: -3s; }
.g3 { left: 10%; top: 62%; --r: 6deg; animation-delay: -5s; } .g4 { left: 78%; top: 58%; --r: -5deg; animation-delay: -7s; }
.g5 { left: 44%; top: 3%; --r: 3deg; animation-delay: -2s; opacity: .12; } .g6 { left: 18%; top: 88%; --r: -4deg; animation-delay: -9s; opacity: .14; }
.g7 { left: 66%; top: 90%; --r: 8deg; animation-delay: -4s; opacity: .14; } .g8 { left: -2%; top: 36%; --r: -3deg; animation-delay: -6s; opacity: .13; }
.cr { position: absolute; font-size: 36px; opacity: .35; animation: float 9s ease-in-out infinite; }
.c1 { left: 20%; top: 20%; font-size: 30px; } .c2 { left: 85%; top: 32%; font-size: 44px; animation-delay: -2s; } .c3 { left: 7%; top: 48%; font-size: 22px; animation-delay: -4s; }
.c4 { left: 66%; top: 72%; font-size: 30px; animation-delay: -6s; } .c5 { left: 38%; top: 90%; font-size: 40px; animation-delay: -1s; } .c6 { left: 92%; top: 84%; font-size: 24px; animation-delay: -5s; }
.t-inner { position: relative; text-align: center; padding: 20px 22px 26px; max-width: 780px; margin: auto; }
.t-mascot svg { width: clamp(96px, 18vh, 160px); animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }
.t-logo { margin: 4px 0 0; font: 800 clamp(64px, 15.5vw, 158px)/.84 var(--f-disp); letter-spacing: -.035em; display: flex; flex-direction: column; align-items: center; }
.t-logo span { display: block; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.t-logo span:first-child { background-image: linear-gradient(180deg, #fff8ea 20%, #ffc98a); }
.t-logo span:last-child { background-image: linear-gradient(180deg, #ffa3b8, #ff3d6b); transform: rotate(-2.5deg); filter: drop-shadow(0 6px 0 rgba(120,0,40,.35)); }
.t-tag { margin: 18px 0 6px; font: 700 clamp(18px, 3vw, 26px) var(--f-disp); color: var(--yellow); }
.t-sub { margin: 0 auto 22px; max-width: 520px; font-size: clamp(14px, 2vw, 17px); opacity: .85; line-height: 1.5; }
.t-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-start { font-size: 21px; padding: 17px 38px; background: linear-gradient(180deg, #3fe8ab, #1fbf83); color: #053b28; box-shadow: 0 7px 0 #148a5e, 0 18px 40px rgba(31,191,131,.4); animation: pulse 1.6s infinite; }
.btn-start:active { box-shadow: 0 3px 0 #148a5e; }
.btn-how { background: rgba(255,255,255,.1); color: var(--cream); border: 1px solid rgba(255,255,255,.25); padding: 17px 24px; font-size: 16px; }
.t-how { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.t-how.open { max-height: 420px; }
.t-how ol { text-align: left; margin: 18px auto 0; max-width: 500px; padding: 14px 18px 14px 36px; background: rgba(255,255,255,.07); border-radius: 14px; font-size: 14px; line-height: 1.55; }
.t-best { margin: 20px 0 4px; font: 600 13px var(--f-mono); color: var(--mint); }
.t-foot { margin: 4px 0 0; font-size: 12px; opacity: .55; }

/* ---------------------------------------------------------- results */
.results { background: radial-gradient(1200px 700px at 30% 0%, #43206f 0%, #1c1244 55%, #0c0a20 100%); overflow: auto; align-items: flex-start; }
.res-wrap { max-width: 1180px; width: 100%; margin: 0 auto; padding: 22px 20px 40px; }
.res-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.res-crumb svg { width: 110px; animation: bob 2s infinite; }
.res-kicker { font: 700 14px var(--f-mono); letter-spacing: .22em; color: var(--mint); }
.res-time { font: 700 clamp(58px, 11vw, 124px)/1 var(--f-mono); background: linear-gradient(90deg, var(--mint), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.res-sub { font-size: 15px; opacity: .85; }
.res-cols { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.35fr); gap: 26px; margin-top: 22px; }
.res-cols h3 { margin: 0 0 10px; font: 800 18px var(--f-disp); letter-spacing: .03em; color: var(--yellow); }
.sp-row { display: grid; grid-template-columns: 30px 1fr 90px 76px; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; font-size: 14px; }
.sp-row:nth-child(even) { background: rgba(255,255,255,.04); }
.sp-row.nasty { background: rgba(255,77,121,.17); outline: 1px solid rgba(255,77,121,.6); }
.sp-n { font: 700 12px var(--f-mono); opacity: .6; }
.sp-t em { font-style: normal; color: #ff9db5; font-size: 12px; font-weight: 700; }
.sp-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--mint); border-radius: 4px; }
.nasty .sp-bar i { background: var(--pink); }
.sp-v { font: 600 13px var(--f-mono); text-align: right; }
.sp-v small { color: #ff9db5; }
#shareCanvas { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: block; background: #1a1036; }
.res-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.btn-dl { background: var(--yellow); } .btn-copy { background: var(--cream); }
.btn-again { background: transparent; color: var(--cream); border: 2px solid rgba(255,255,255,.3); }
.share-text { width: 100%; background: rgba(255,255,255,.07); color: var(--cream); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px; font: 500 13px/1.55 var(--f-mono); resize: none; }
.res-foot { margin: 26px 0 0; font-size: 12px; opacity: .5; text-align: center; }

/* ------------------------------------------------- banners: shared */
.cmp { background: #fff; color: #1c1b2e; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,255,255,.6); padding: 22px; width: min(560px, 100%); position: relative; font-family: var(--f-ui); animation: cmpIn .4s cubic-bezier(.2,1.3,.4,1) both; }
.cmp h2 { margin: 0 0 6px; font: 800 22px/1.15 var(--f-disp); letter-spacing: -.01em; }
.cmp p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #4a4864; }
.cmp small { color: #8a88a6; }
.shake { animation: shake .4s; }
.sw { width: 46px; height: 26px; border-radius: 99px; border: 0; background: #cfcde0; position: relative; cursor: pointer; flex: none; transition: background .15s; padding: 0; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.sw.on { background: #ff8a3c; }
.sw.on i { left: 23px; }
.sw:focus-visible { outline-offset: 3px; }
.btn-confirm { background: transparent; border: 2px solid #d6d4e6; font-size: 14px; }

/* 1 — small print */
.l1 { width: min(720px, 100%); padding: 20px 24px 14px; }
.l1-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.l1-ic { font-size: 38px; }
.l1 h2 { margin: 0; }
.l1 p { font-size: 13.5px; }
.l1-fine { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; align-items: center; margin-top: 12px; }
.fine { background: none; border: 0; padding: 3px 2px; font: 400 10px var(--f-ui); color: #b6b4c8; cursor: pointer; text-decoration: underline; }
.fine:hover { color: #77758f; }
.fine-dot { color: #d5d3e3; font-size: 10px; }

/* 2 — guilt trip */
.l2 { width: min(660px, 100%); display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.l2-crumb svg { width: 150px; animation: bob 2s ease-in-out infinite; }
.crumb .tear { animation: tear 1.1s ease-in infinite; transform-box: fill-box; transform-origin: top; }
.crumb .tr { animation-delay: .5s; }
.btn-shame { background: transparent; color: #9a98b3; font-size: 12px; font-weight: 500; padding: 9px; width: 100%; margin-top: 8px; text-decoration: underline; }
.l2-two { display: flex; gap: 12px; }
.btn-two { flex: 1; padding: 18px 10px; background: #ece9ff; font-size: 16px; }
.hold { position: relative; overflow: hidden; width: 100%; margin-top: 12px; background: #3b2210; color: var(--cream); padding: 18px; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.hold-fill { position: absolute; inset: 0; background: var(--pink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hold-label { position: relative; }

/* 3 — cardio */
.l3 { width: min(680px, 100%); height: min(390px, calc(100dvh - var(--hud) - 40px)); min-height: 330px; padding: 0; overflow: hidden; }
.l3-head { padding: 22px 22px 0; }
.l3-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.l3-chips span { font: 600 12px var(--f-ui); background: #eef6f2; color: #1c7a55; padding: 5px 10px; border-radius: 99px; }
.l3-acc { position: absolute; left: 50%; bottom: 54px; transform: translateX(-50%); width: min(300px, 80%); }
.l3-acc:active { transform: translateX(-50%) translateY(2px); }
.l3-rej { position: absolute; z-index: 3; background: #ececf5; left: 18px; top: 250px; transition: left .24s cubic-bezier(.3,1.6,.5,1), top .24s cubic-bezier(.3,1.6,.5,1); white-space: nowrap; }
.l3-rej.tired { animation: pant .5s infinite; background: #ffe7a6; }
.stam { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a88a6; background: #f4f3fb; }
.stam-pips { display: flex; gap: 4px; }
.stam-pips i { width: 20px; height: 8px; border-radius: 4px; background: #dcdaea; transition: background .2s; }
.stam-pips i.on { background: #3fe8ab; }

/* 4 — mystery x */
.l4 { width: min(780px, 100%); display: flex; gap: 20px; padding: 30px 24px 48px; }
.l4-left { position: relative; align-self: flex-start; flex: 0 0 150px; }
.l4-main { flex: 1; min-width: 0; }
.l4-mascot svg { width: 140px; }
.l4-main h2 { padding-right: 34px; }
.xb { position: absolute; border: 0; background: transparent; cursor: pointer; line-height: 1; color: #555; display: grid; place-items: center; border-radius: 6px; padding: 0; font-family: var(--f-ui); }
.xb:hover, .xb:focus-visible { background: #ffe9a8 !important; color: #222 !important; outline: 2px solid var(--blue); z-index: 5; }
.xs-corner { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; color: #333; background: #efeef7; border-radius: 50%; }
.xs-mascot { top: -6px; left: -4px; width: 26px; height: 26px; font-size: 15px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; }
.xs-inline { position: static; display: inline-grid; width: 17px; height: 17px; font-size: 12px; vertical-align: middle; margin-left: 6px; background: #eeeef6; }
.xs-ad { top: 4px; right: 4px; width: 22px; height: 22px; font-size: 13px; background: rgba(255,255,255,.8); color: #222; border-radius: 5px; }
.xs-bar { position: static; width: 28px; height: 28px; font-size: 18px; background: #eceaf6; }
.xs-tiny { position: static; width: 18px; height: 18px; font-size: 12px; color: #c9c7d8; }
.xs-float { left: 62%; bottom: 38px; width: 22px; height: 22px; font-size: 14px; color: #bdbbd0; }
@media (pointer: coarse) {
  .xs-tiny { width: 26px; height: 26px; font-size: 15px; }
  .xs-inline { width: 26px; height: 26px; font-size: 15px; }
  .xs-ad, .xs-float { width: 30px; height: 30px; font-size: 16px; }
  .fine { padding: 9px 5px; font-size: 11px; }
}
.l4-ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.l4-ad { position: relative; border-radius: 10px; padding: 26px 10px 10px; color: #fff; min-height: 88px; display: flex; flex-direction: column; justify-content: flex-end; }
.l4-ad b { font: 800 14px var(--f-disp); } .l4-ad small { color: rgba(255,255,255,.85); font-size: 11px; }
.a1 { background: linear-gradient(135deg, #ff9a3c, #ff5e62); } .a2 { background: repeating-linear-gradient(45deg, #e5223d 0 10px, #b5122c 10px 20px); } .a3 { background: linear-gradient(135deg, #4d7cff, #8a4dff); }
.l4-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #77758f; margin-top: 6px; }
.l4-bar .sp { flex: 1; }
.l4-status { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 16px; font: 500 12px var(--f-mono); color: #a4a2bb; background: #f4f3fb; border-radius: 0 0 18px 18px; min-height: 30px; }
.l4-status.live { color: #1c1b2e; background: #fff0b8; }

/* 5 — toggle wall */
.l5 { width: min(1000px, 100%); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.l5-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; }
.l5-head h2 { font-size: 20px; }
.l5-head p { margin: 0; font-size: 12.5px; }
.l5-meter { min-width: 170px; font-size: 11px; color: #77758f; text-transform: uppercase; letter-spacing: .05em; }
.l5-count { font: 800 24px var(--f-mono); color: #1c1b2e; }
.l5-bar { height: 6px; background: #ececf5; border-radius: 3px; overflow: hidden; }
.l5-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ff4d79); }
.tg-grid { display: grid; grid-template-columns: repeat(var(--cols, 20), 1fr); gap: 3px; touch-action: none; user-select: none; -webkit-user-select: none; padding: 8px; background: #f1f0f9; border-radius: 12px; }
.tg { height: var(--ch, 22px); border-radius: 999px; background: #cfcde0; position: relative; cursor: pointer; transition: background .1s; }
.tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(var(--ch, 22px) - 4px); height: calc(var(--ch, 22px) - 4px); border-radius: 50%; background: #fff; transition: left .1s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tg.on { background: #ff8a3c; }
.tg.on::after { left: calc(100% - var(--ch, 22px) + 2px); }
.tg.gremlin { animation: grem .5s 4; box-shadow: 0 0 0 2px #ff4d79; z-index: 2; }
.tg:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; z-index: 3; }
.tg-who { font: 500 11px var(--f-mono); color: #77758f; height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.l5-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.l5-actions .btn { flex: 1; min-width: 120px; padding: 11px 14px; }
.btn-locked { background: #eee; color: #aaa; }
.btn-save { background: #1c1b2e; color: #fff; }

/* 6 — nesting doll */
.l6 { width: min(580px, 100%); padding: 0; overflow: hidden; max-height: calc(100dvh - var(--hud) - 28px); display: flex; flex-direction: column; }
.l6-home { padding: 28px; text-align: center; }
.l6-logo { font-size: 44px; }
.l6-home small { display: block; margin-top: 12px; font-size: 11px; }
.btn-manage { width: 100%; margin-top: 10px; background: transparent; border: 2px solid #d6d4e6; font-size: 15px; }
.l6-manage { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.l6-mh { padding: 18px 20px 6px; }
.l6-mh p { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.l6-list { overflow: auto; padding: 6px 14px; flex: 1; min-height: 120px; }
.l6-p { border: 1px solid #e3e1f0; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.l6-ph, .l6-lih { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; cursor: pointer; font: 600 13px var(--f-ui); color: #1c1b2e; }
.l6-ph:focus-visible, .l6-lih:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.l6-ph b { font-weight: 700; flex: 1 1 auto; text-align: left; }
.chev { transition: transform .15s; font-size: 18px; line-height: 1; width: 12px; display: inline-block; }
.l6-p.open > .l6-ph .chev, .l6-li.open > .l6-lih .chev { transform: rotate(90deg); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: 700 10px var(--f-ui); padding: 3px 7px; border-radius: 99px; background: #e6f8ef; color: #137a4f; white-space: nowrap; }
.chip.on { background: #ffe3e9; color: #c1214a; }
.chip::before { content: '● '; }
.chip::after { content: ' off'; }
.chip.on::after { content: ' ON'; }
.chip.flash { animation: flash .8s 2; }
.l6-pb { display: none; padding: 0 12px 12px; }
.l6-p.open > .l6-pb { display: block; }
.l6-pb p { font-size: 12.5px; margin: 0 0 6px; }
.l6-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; font-weight: 600; }
.l6-li { border-top: 1px dashed #e3e1f0; margin-top: 4px; }
.l6-li .l6-lih { padding-left: 0; }
.l6-lib { display: none; padding: 0 0 6px 12px; border-left: 3px solid #e3e1f0; margin-left: 4px; }
.l6-li.open > .l6-lib { display: block; }
.linkbtn { all: unset; color: var(--blue); font: 500 12.5px var(--f-ui); cursor: pointer; text-decoration: underline; display: block; margin: 6px 0; }
.linkbtn:focus-visible { outline: 3px solid var(--blue); }
.l6-all ul { margin: 6px 0; padding-left: 18px; font-size: 12px; color: #77758f; }
.btn-object { font-size: 12.5px; padding: 9px 12px; background: #1c1b2e; color: #fff; }
.l6-foot { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid #eee; background: #faf9ff; }
.l6-foot .btn { flex: 1; padding: 12px 8px; }
.l6-foot .btn-confirm { flex: .7; font-size: 12.5px; }

/* 7 — double negative */
.l7 { width: min(660px, 100%); }
.l7-meter { background: #f4f3fb; border-radius: 12px; padding: 10px 14px 8px; margin-bottom: 8px; }
.l7-mt { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: #77758f; }
.l7-mt b { font: 800 24px var(--f-mono); color: #1c1b2e; letter-spacing: 0; }
.l7-bar { height: 10px; border-radius: 5px; background: #e4e2f0; overflow: hidden; margin: 5px 0 4px; }
.l7-bar i { display: block; height: 100%; transition: width .3s, background .3s; }
.l7-meter small { font-weight: 600; }
.l7-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid #efeef6; font-size: 14px; font-weight: 500; line-height: 1.35; }
.l7-actions { display: flex; gap: 10px; margin-top: 12px; }
.l7-actions .btn { flex: 1; }

/* 8 — shell game */
.l8 { width: min(660px, 100%); text-align: center; }
.l8-sub { min-height: 22px; font-weight: 700; color: #4a4864; }
.cups { position: relative; height: 122px; margin: 16px 0 10px; }
.cup { position: absolute; top: 0; width: calc(33.333% - 10px); height: 110px; left: calc(var(--slot) * 33.333% + 5px); border: 0; padding: 0; border-radius: 16px; cursor: pointer; perspective: 700px; transition: left .35s cubic-bezier(.4,.1,.3,1); background: transparent; font: 800 17px/1.15 var(--f-disp); }
.cup:disabled { cursor: default; }
.cup-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s; box-shadow: 0 8px 0 rgba(0,0,0,.14); }
.cup.a .front { background: linear-gradient(180deg, #3fe8ab, #1fbf83); color: #053b28; }
.cup.r .front { background: #e5e3f2; color: #1c1b2e; }
.cup .back { background: linear-gradient(180deg, #f0a83c, #c47a25); font-size: 46px; }
.cup.up .front { transform: rotateY(0); } .cup.up .back { transform: rotateY(180deg); }
.cup.down .front { transform: rotateY(180deg); } .cup.down .back { transform: rotateY(360deg); }
.cup:not(:disabled):hover .back { filter: brightness(1.1); }
.cup:not(:disabled):active { transform: translateY(3px); }
.cup.chosen { outline: 4px solid var(--blue); outline-offset: 4px; }
.l8-tag { font-size: 11px; color: #a4a2bb; }

/* 9 — please hold */
.l9 { width: min(620px, 100%); text-align: center; }
.l9-ic { font-size: 42px; animation: flip 2.4s ease-in-out infinite; }
.l9-queue { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #77758f; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.l9-queue b { font: 800 22px var(--f-mono); color: #1c1b2e; letter-spacing: 0; }
.l9-bar { height: 16px; background: #e4e2f0; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.l9-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, #3fe8ab 0 12px, #2bd196 12px 24px); background-size: 34px 34px; animation: stripes 1s linear infinite; }
.l9-msg { min-height: 22px; font-weight: 700; color: #c1214a; margin-bottom: 14px; font-size: 14px; }
.l9-msg.ok { color: #137a4f; }
.l9-actions { display: flex; gap: 10px; }
.l9-actions .btn { flex: 1; }
.btn-reject:disabled { background: #eee; color: #bbb; }
.btn-reject.ready { background: #1c1b2e; color: #fff; animation: pulse 1s infinite; }

/* 10 — barrage */
.l10 { position: absolute; inset: 0; display: flex; flex-direction: column; }
.l10-hud { display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(10,8,30,.72); backdrop-filter: blur(6px); z-index: 5; flex-wrap: wrap; }
.l10-title b { font: 800 18px var(--f-disp); letter-spacing: .08em; color: var(--yellow); }
.l10-title small { display: block; font-size: 11px; color: var(--cream); opacity: .7; }
.l10-prog { flex: 1; min-width: 150px; max-width: 340px; font: 700 13px var(--f-mono); }
.l10-bar { height: 10px; background: rgba(255,255,255,.15); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.l10-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--yellow)); transition: width .2s; }
.l10-hearts { display: flex; gap: 6px; font-size: 22px; }
.l10-hearts span { transition: .25s; }
.l10-hearts .gone { filter: grayscale(1) brightness(.35); transform: scale(.7) rotate(20deg); }
.l10-boss { position: absolute; left: 50%; top: 58%; width: min(440px, 62vw); transform: translate(-50%, -50%); opacity: .13; pointer-events: none; }
.l10-boss svg { width: 100%; }
.l10-boss.hit { animation: hit .3s; }
.l10-arena { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.l10-arena.flash::after { content: ''; position: absolute; inset: 0; background: rgba(255,77,121,.3); animation: fl .45s forwards; pointer-events: none; }
.l10-b { position: absolute; background: #fff; color: #1c1b2e; border-radius: 14px; padding: 10px 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.45); overflow: hidden; animation: bIn .28s cubic-bezier(.2,1.5,.4,1) both; display: flex; flex-direction: column; gap: 8px; }
.l10-b .t { font: 800 14px var(--f-disp); padding-right: 18px; }
.l10-bb { display: flex; gap: 8px; margin-top: auto; }
.l10-bb .btn { flex: 1; padding: 10px 6px; font-size: 13px; border-radius: 9px; }
.l10-b .btn-accept { box-shadow: 0 3px 0 #148a5e; }
.btn-no { background: #ecebf5; color: #55536e; font-weight: 600; }
.ttl { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: linear-gradient(90deg, #ff4d79, #ffd23f); transform-origin: left; animation: ttl linear forwards; }
.l10-x { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; font-size: 16px; cursor: pointer; color: #999; padding: 4px; }
.l10-b.ok { animation: bOk .35s forwards; pointer-events: none; }
.l10-b.bad { animation: bBad .4s forwards; pointer-events: none; }
.l10-b.shatter { animation: bOk .5s forwards; pointer-events: none; }

/* -------------------------------------------------------- keyframes */
@keyframes cmpIn { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12) saturate(1.15); } }
@keyframes pulse2 { 0%,100% { box-shadow: 0 0 0 4px rgba(255,210,63,.25); } 50% { box-shadow: 0 0 0 8px rgba(255,210,63,.05); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes tear { 0% { transform: translateY(0) scaleY(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px) scaleY(1); opacity: 0; } }
@keyframes pant { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(2px) rotate(2deg); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes grem { 0%,100% { transform: scale(1); } 50% { transform: scale(1.6); background: #ff4d79; } }
@keyframes stamp { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
@keyframes ttl { to { transform: scaleX(0); } }
@keyframes bIn { from { transform: scale(.6) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bOk { to { transform: scale(.7) rotate(6deg); opacity: 0; } }
@keyframes bBad { 30% { transform: scale(1.06); background: #ffc9d6; } to { transform: scale(.85); opacity: 0; } }
@keyframes fl { from { opacity: 1; } to { opacity: 0; } }
@keyframes hit { 30% { transform: translate(-50%, -50%) scale(1.12) rotate(-4deg); opacity: .4; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) * -.6)); } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-46px); } }
@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%,88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes stripes { to { background-position: 34px 0; } }
@keyframes flip { 0%,40% { transform: rotate(0); } 60%,100% { transform: rotate(180deg); } }
@keyframes flash { 50% { background: #ff4d79; color: #fff; transform: scale(1.15); } }

/* ------------------------------------------------------- responsive */
@media (max-width: 720px) {
  :root { --hud: 92px; }
  #hud { flex-wrap: wrap; padding: 8px 12px; gap: 6px 10px; }
  .brand { font-size: 16px; }
  .hud-right { margin-left: auto; gap: 8px; }
  .timer { min-width: 92px; }
  .timer span { font-size: 22px; }
  .ib { width: 34px; height: 34px; }
  .oops { font-size: 12px; }
  .pips { order: 3; flex: 0 0 100%; gap: 5px; }
  .pips i { width: 28px; height: 22px; border-radius: 8px; font-size: 10px; }
  .fs-links, .fs-cta { display: none; }
  .fs-hero { grid-template-columns: 1fr; padding-top: 22px; } .fs-art { display: none; }
  .fs-cards { grid-template-columns: 1fr 1fr; } .fs-cards article:nth-child(3) { display: none; }
  .fsite-inner { padding: 14px 16px; }
  .layer { padding: 10px; }
  .cmp { padding: 18px 16px; }
  .cmp h2 { font-size: 20px; }
  .l3, .l6 { padding: 0; }
  .l1 { padding: 16px 16px 10px; } .l1-ic { font-size: 30px; } .l1 p { font-size: 12.5px; }
  .l2 { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .l2-crumb svg { width: 96px; }
  .l3 { height: min(400px, calc(100dvh - var(--hud) - 24px)); }
  .l3-head { padding: 18px 16px 0; }
  .l4 { flex-direction: column; gap: 6px; padding: 18px 16px 44px; }
  .l4-left { display: flex; justify-content: center; flex: none; align-self: stretch; } .l4-mascot svg { width: 84px; } .xs-mascot { left: calc(50% + 24px); top: -4px; }
  .l4-ads { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .l4-ad { min-height: 78px; padding: 24px 6px 8px; } .l4-ad b { font-size: 12px; }
  .l4-main p { font-size: 13px; }
  .l5 { padding: 12px; } .l5-head { flex-direction: column; gap: 6px; } .l5-head p { font-size: 11.5px; } .l5-meter { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; } .l5-meter .l5-bar { flex: 1; } .l5-count { font-size: 18px; white-space: nowrap; }
  .l5-actions .btn { min-width: 0; font-size: 13px; padding: 10px 6px; }
  .l6-home { padding: 20px 16px; }
  .l7-row { font-size: 13px; }
  .l8 .cup { font-size: 13.5px; } .cups { height: 106px; } .cup { height: 96px; }
  .l10-hud { padding: 8px 10px; gap: 4px 12px; } .l10-title small { display: none; } .l10-title b { font-size: 15px; } .l10-hearts { font-size: 16px; gap: 4px; }
  .l10-b { padding: 8px 9px 12px; } .l10-b .t { font-size: 12.5px; } .l10-bb .btn { font-size: 12px; padding: 9px 3px; }
  .sp-row { grid-template-columns: 26px 1fr 66px; } .sp-bar { display: none; }
  .res-cols { grid-template-columns: 1fr; }
  .res-head { gap: 8px; } .res-crumb svg { width: 72px; }
  .t-btns .btn { width: 100%; max-width: 320px; }
  .ghost { min-width: 110px; font-size: 11px; }
}
@media (max-height: 560px) {
  .t-mascot svg { width: 80px; } .t-logo { font-size: clamp(48px, 12vw, 96px); } .t-tag { margin-top: 8px; } .t-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
