/* EX-SMOKER : noir, rouge argile, crème des cornes, braise du cigare. Formes rondes et en relief, façon pâte à modeler. */
:root {
  --bg: #000; --card: #1a100d; --card2: #24160f; --line: #3a231b;
  --text: #f6e3c5; --muted: #b0927a;
  --red: #e23b2b; --red-d: #8d1c14; --red-l: #ff6a55;
  --horn: #eab873; --horn-d: #a9773a; --brown: #3b241d;
  --ember: #ff8a1f; --air: #6fd3ff; --air-d: #2b7ea3; --mint: #5fe0a0; --mint-d: #23895a;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.4 var(--body); touch-action: pan-y; -webkit-user-select: none; user-select: none;
  padding: calc(env(safe-area-inset-top) + 58px) 0 calc(env(safe-area-inset-bottom) + 78px); min-height: 100vh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); font-size: .88rem; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .74rem; word-break: break-all; }

/* ---------- en-tête ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: linear-gradient(#000 70%, #0000); }
.wordmark { font: 400 1.9rem/1 var(--display); letter-spacing: .02em; display: flex; gap: 5px; align-items: center; }
.wordmark b { font-weight: 400; background: var(--red); color: #fff; padding: 3px 8px 4px; border-radius: 10px; box-shadow: 0 3px 0 var(--red-d), inset 0 2px 0 #ffffff40; transform: rotate(-4deg); }
.wordmark span { color: var(--text); position: relative; }
.wordmark span::after { content: ''; position: absolute; left: -3px; right: -3px; top: 52%; height: 4px; border-radius: 4px; background: var(--red); transform: rotate(-3deg); box-shadow: 0 1px 0 #0008; }
.wordmark.big { font-size: 3rem; justify-content: center; }
.top-right { display: flex; align-items: center; gap: 10px; }
.streak { display: flex; align-items: center; gap: 3px; font: 400 1.35rem/1 var(--display); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); box-shadow: 0 3px 0 #000, inset 0 1px 0 #ffffff14; }
.icon-btn img { width: 27px; height: 27px; display: block; }

/* ---------- pages ---------- */
main { padding: 4px 14px 0; max-width: 520px; margin: 0 auto; }
.view { display: flex; flex-direction: column; gap: 12px; animation: in .22s ease-out; }
.view[hidden] { display: none; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.card { background: var(--card); border-radius: 22px; padding: 14px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff12; }
.card h3, .sheet h3 { font: 400 1.25rem/1 var(--display); margin-bottom: 10px; color: var(--horn); letter-spacing: .02em; }
.lbl { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- boutons ---------- */
.btn { display: block; width: 100%; text-align: center; text-decoration: none; padding: 14px 16px; border-radius: 18px; font: 400 1.15rem/1.1 var(--display); letter-spacing: .03em; transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); }
.btn-ember { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-d), inset 0 2px 0 #ffffff40; }
.btn-ember:active { box-shadow: 0 1px 0 var(--red-d), inset 0 2px 0 #ffffff40; }
.btn.big { padding: 18px; font-size: 1.4rem; }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff14; font-size: 1rem; }
.btn.ghost.danger { color: var(--red-l); }
.btn.armed { background: var(--horn); color: #2a1a10; box-shadow: 0 4px 0 var(--horn-d); }
.btn:disabled { opacity: .35; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- accueil ---------- */
.hero { display: flex; align-items: center; gap: 14px; background: radial-gradient(120% 140% at 0% 0%, #3a1410, var(--card) 60%); border-radius: 26px; padding: 12px 14px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff14; }
.ring { position: relative; width: 138px; height: 138px; flex: none; display: grid; place-items: center; align-content: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-bg { fill: #0006; stroke: var(--brown); stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--horn); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.2, .9, .3, 1.2); }
.hero.over .ring-fg { stroke: var(--red); }
.ring-num { position: relative; font: 400 3.5rem/.9 var(--display); color: var(--text); }
.hero.over .ring-num { color: var(--red-l); }
.ring-word { position: relative; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.hero-side { min-width: 0; flex: 1; }
.lvl { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--horn); }
.lvl-name { font: 400 1.45rem/1.05 var(--display); margin: 2px 0 5px; }
.caps, .caps2 { font-size: .86rem; color: var(--muted); font-weight: 600; }
.caps2 { color: var(--text); }
.dots { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--brown); box-shadow: inset 0 2px 0 #0006; }
.dots i.on { background: var(--ember); box-shadow: 0 0 8px #ff8a1f80, inset 0 2px 0 #ffffff50; }
.dots.wide i { flex: 1; height: 12px; border-radius: 8px; width: auto; min-width: 8px; }

.since { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.since b { font: 400 1.5rem/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }

.grid4, .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; height: 150px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text);
  background: radial-gradient(120% 120% at 30% 15%, #3a211a, #1c110e 70%); box-shadow: 0 7px 0 #000, inset 0 3px 0 #ffffff1f, inset 0 0 0 2px #ffffff0a;
  font: 400 1.2rem/1 var(--display); letter-spacing: .03em; transition: transform .08s, box-shadow .08s; }
.tile img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 5px #0009); pointer-events: none; }
.tile:active, .tile.hit { transform: translateY(5px); box-shadow: 0 2px 0 #000, inset 0 3px 0 #ffffff1f, inset 0 0 0 2px #ffffff0a; }
.tile.done { background: radial-gradient(120% 120% at 30% 15%, #2f7a55, #123a27 70%); box-shadow: 0 7px 0 #0a2417, inset 0 3px 0 #ffffff40; }
.pick .tile { height: 170px; }
.pick .tile img { width: 104px; height: 104px; }
.cnt { position: absolute; top: 9px; right: 11px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: #000a; color: var(--text); font: 400 1.15rem/32px var(--display); font-style: normal; text-align: center; }
.cnt.ok { background: #fff; color: var(--mint-d); }

.last { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 30px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.last button { padding: 6px 14px; border-radius: 12px; background: var(--card); color: var(--horn); font-weight: 800; font-size: .82rem; box-shadow: 0 3px 0 #000; }

.money { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crave { background: var(--horn); color: #2a1a10; box-shadow: 0 5px 0 var(--horn-d), inset 0 2px 0 #ffffff60; }
.crave:active { box-shadow: 0 1px 0 var(--horn-d); }

.start { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 6px 6px 4px; }
.start img, .party img, .crave-screen img { width: 230px; height: 230px; object-fit: contain; }
.start h2 { font: 400 1.9rem/1.1 var(--display); }
.start p { color: var(--muted); }

/* ---------- plan ---------- */
.plan-head h2 { font: 400 1.7rem/1.05 var(--display); margin-top: 2px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-flame { display: flex; align-items: center; gap: 2px; font: 400 2.3rem/1 var(--display); color: var(--muted); }
.ph-next, .ph-end { font-size: .9rem; color: var(--muted); margin-top: 9px; }
.ph-next b, .ph-end b { color: var(--text); }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; text-align: center; font-size: .68rem; font-weight: 800; color: var(--muted); }
.cal i { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #0006; }
.cal i.blank { background: none; }
.cal i em { font: 800 .72rem/1 var(--body); font-style: normal; color: var(--muted); position: relative; }
.cal i.off em { opacity: .35; }
.cal i.ok { background: #3a1a0c; }
.cal i.bad { background: none; box-shadow: inset 0 0 0 2px var(--line); }
.cal i.today { box-shadow: inset 0 0 0 2.5px var(--horn); }
.cal i.today em { color: var(--horn); }
.cal i.today.bad { box-shadow: inset 0 0 0 2.5px var(--red); }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.ladder { display: flex; flex-direction: column; gap: 7px; }
.rung { display: flex; align-items: center; gap: 11px; background: var(--card); border-radius: 18px; padding: 9px 12px; opacity: .62; }
.rung > i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brown); display: grid; place-items: center; font: 400 1.05rem/1 var(--display); font-style: normal; color: var(--muted); }
.rung div { flex: 1; min-width: 0; }
.rung b { display: block; font: 400 1.08rem/1.15 var(--display); font-weight: 400; letter-spacing: .02em; }
.rung span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.rung em { font: 800 .7rem/1.1 var(--body); font-style: normal; color: var(--muted); text-align: right; max-width: 78px; }
.rung.past { opacity: .8; }
.rung.past > i { background: var(--mint-d); color: #fff; }
.rung.now { opacity: 1; background: var(--red); box-shadow: 0 5px 0 var(--red-d), inset 0 2px 0 #ffffff3d; margin-bottom: 4px; }
.rung.now > i { background: #fff; color: var(--red-d); }
.rung.now span, .rung.now em { color: #ffe1d6; }
.note { font-size: .78rem; color: var(--muted); text-align: center; padding: 0 8px; }

/* ---------- suivi ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font: 700 9px var(--body); }
.c-indus { fill: var(--red); background: var(--red); }
.c-roulee { fill: #c96a2a; background: #c96a2a; }
.c-terea { fill: var(--air); background: var(--air); }
.c-levia { fill: var(--mint); background: var(--mint); }
.capline { stroke: var(--horn); stroke-width: 2.5; stroke-linecap: round; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .capkey { height: 3px; width: 14px; background: var(--horn); vertical-align: 3px; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: 20px; padding: 11px 12px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff12; }
.stat span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 400 1.7rem/1.15 var(--display); }
.stat small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.stat.good b { color: var(--mint); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 62px; }
.hours i { background: var(--red); border-radius: 4px 4px 2px 2px; }
.hours i.nil { background: var(--brown); }
.hours-ax { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; color: var(--muted); margin-top: 5px; }

/* ---------- réglages ---------- */
.back { align-self: flex-start; color: var(--horn); font-weight: 800; padding: 4px 2px; }
.acc { background: var(--card); border-radius: 20px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff12; }
.acc summary { list-style: none; padding: 14px 16px; font: 400 1.15rem/1 var(--display); letter-spacing: .02em; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--horn); }
.acc[open] summary::after { content: '–'; }
.form { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--muted); }
input { background: #000; border: 2px solid var(--line); border-radius: 14px; padding: 11px 12px; font-size: 1rem; font-weight: 700; color: var(--text); -webkit-user-select: text; user-select: text; width: 100%; color-scheme: dark; }
input:focus { outline: none; border-color: var(--horn); }
.keyshow { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; word-break: break-all; background: #000; border: 2px dashed var(--horn); border-radius: 12px; padding: 10px; -webkit-user-select: all; user-select: all; }

/* ---------- menu du bas ---------- */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px); background: linear-gradient(#0000, #000 28%); }

/* ---------- feuilles, plein écran, messages ---------- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; background: var(--card2); color: var(--text); border-radius: 28px 28px 0 0; }
.sheet::backdrop { background: #000b; }
#sheet-body { padding: 20px 16px calc(env(safe-area-inset-bottom) + 18px); display: flex; flex-direction: column; gap: 14px; }
.list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.list span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; width: 62px; }
.list b { flex: 1; }
.list button { width: 36px; height: 36px; border-radius: 50%; background: #000; color: var(--red-l); }
.full { position: fixed; inset: 0; z-index: 40; background: radial-gradient(90% 60% at 50% 30%, #4a130d, #000 75%); display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 20px) 22px calc(env(safe-area-inset-bottom) + 22px); }
.full[hidden] { display: none; }
.crave-screen, .party { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.crave-top { font: 400 1.5rem/1.15 var(--display); color: var(--horn); }
.breath { width: 230px; height: 230px; display: grid; place-items: center; position: relative; }
.breath i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--red-l), var(--red) 55%, var(--red-d)); animation: breathe 10s ease-in-out infinite; box-shadow: 0 0 50px #e23b2b66; }
@keyframes breathe { 0% { transform: scale(.55); } 40% { transform: scale(1); } 100% { transform: scale(.55); } }
.breath b { position: relative; font: 400 1.7rem/1 var(--display); color: #fff; font-weight: 400; }
.crave-time { font: 400 3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translate(-50%, 20px); background: var(--horn); color: #2a1a10; font-weight: 800; padding: 10px 18px; border-radius: 16px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; box-shadow: 0 4px 0 var(--horn-d); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- connexion ---------- */
.login-page { padding: 0; display: grid; place-items: center; min-height: 100vh; background: radial-gradient(90% 55% at 50% 22%, #4a130d, #000 75%); }
.login { width: min(360px, 88vw); display: flex; flex-direction: column; gap: 18px; }
.login::before { content: ''; display: block; height: 210px; background: url(/diable.webp) center / contain no-repeat; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.err { background: var(--red-d); color: #fff; padding: 10px 12px; border-radius: 14px; font-weight: 700; text-align: center; }

/* ---------- images en pâte à modeler ---------- */
.streak img { width: 30px; height: 30px; object-fit: contain; display: block; }
.streak img.lit, .ph-flame img.lit, .tab-flame { animation: flick 1.7s ease-in-out infinite; transform-origin: 50% 92%; }
@keyframes flick { 0%, 100% { transform: rotate(-3deg) scale(1); } 35% { transform: rotate(3deg) scale(1.05, .97); } 70% { transform: rotate(-1deg) scale(.97, 1.04); } }
.since img { width: 30px; height: 30px; object-fit: contain; align-self: center; }
.since { align-items: center; }
.hero.warn .ring-fg { stroke: var(--ember); }
.hero.last .ring-fg { stroke: var(--red); }
.hero.last .ring-num { color: var(--red-l); }
.hero.last { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff14, 0 0 0 3px #e23b2b66; } }
.cnt.img { background: none; padding: 0; height: 40px; min-width: 40px; top: 6px; right: 6px; }
.cnt.img img { width: 40px; height: 40px; filter: drop-shadow(0 2px 2px #0008); }
.pick .tile { height: 150px; }
.pick .tile img { width: 150px; height: 118px; }

.m-card { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 20px; padding: 10px 10px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff12; min-width: 0; }
.m-card img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.m-card div { min-width: 0; }
.m-card span { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.m-card b { display: block; font: 400 1.22rem/1.15 var(--display); color: var(--horn); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-card b.bump { animation: bump .7s; }
.m-card b.burn { animation: burn 1.1s; }
@keyframes bump { 30% { color: var(--red-l); transform: scale(1.06); } }
@keyframes burn { 0%, 70% { color: #ff2a2a; transform: scale(1.12); text-shadow: 0 0 14px #ff2a2a; } }

.tabbar button { display: grid; place-items: center; padding: 2px 0; height: 62px; }
.tabbar img { width: 46px; height: 46px; object-fit: contain; opacity: .62; filter: grayscale(.3); transform: scale(.84); transition: .18s; }
.tabbar button.active img { opacity: 1; filter: drop-shadow(0 4px 6px #000a); transform: scale(1.22); }
.tabbar button.active .tab-flame { animation: flick 1.7s ease-in-out infinite, none; scale: 1.22; transform: none; }
.tabbar .tab-flame { transform-origin: 50% 92%; }

.cal i img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.cal i.ok em { color: #fff; top: 14%; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.cal i.bad em { color: var(--muted); top: 14%; text-shadow: 0 1px 2px #000; }
.ph-flame img { width: 46px; height: 46px; object-fit: contain; }
.tiles3 img { width: 34px; height: 34px; object-fit: contain; display: block; margin: 0 auto 2px; }
.tiles3 b { display: block; font: 400 1.6rem/1 var(--display); }
.rung > i img { width: 24px; height: 24px; }
.rung.past > i { background: none; }

.tolls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toll { background: var(--card); border-radius: 20px; padding: 10px 4px 9px; box-shadow: 0 4px 0 #000, inset 0 1px 0 #ffffff12; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.toll:active { transform: translateY(3px); }
.toll img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 4px 3px #0008); }
.toll b { font: 400 1.08rem/1 var(--display); white-space: nowrap; }
.toll.bad b { color: var(--red-l); }
.toll.good b { color: var(--mint); }

/* petite carte de victoire */
.pop { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 10px; border-radius: 26px;
  background: var(--horn); color: #2a1a10; box-shadow: 0 6px 0 var(--horn-d), 0 0 30px #eab87355; transform: translate(-50%, 160%) scale(.7); opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2, 1.5, .4, 1); }
.pop.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.pop img { width: 62px; height: 62px; object-fit: contain; }
.pop b { font: 400 2rem/1 var(--display); }

/* écrans de récompense et de défaite */
.full.good { background: radial-gradient(85% 55% at 50% 34%, #a8480c, #2b0f05 62%, #000); }
.full.bad { background: radial-gradient(85% 55% at 50% 34%, #6b0d0d, #1b0303 62%, #000); }
.stage { position: relative; width: 100%; max-width: 420px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-art { position: relative; display: grid; place-items: center; min-height: 250px; width: 100%; }
.st-art img { width: 230px; height: 230px; object-fit: contain; filter: drop-shadow(0 12px 16px #000a); }
.st-big { font: 400 6.4rem/.9 var(--display); color: #fff; text-shadow: 0 6px 0 #0006; font-variant-numeric: tabular-nums; }
.full.bad .st-big { color: var(--red-l); }
.st-kicker { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--horn); font-size: .9rem; }
.st-title { font: 400 2.6rem/1 var(--display); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { display: flex; align-items: center; gap: 6px; background: #0007; border-radius: 18px; padding: 6px 14px 6px 8px; font: 400 1.3rem/1 var(--display); color: var(--text); }
.chips img { width: 34px; height: 34px; object-fit: contain; }
.stage .btn { margin-top: 10px; position: relative; }
.stage.sealed > :not(.st-art) { visibility: hidden; }
.stage.sealed .st-art { filter: grayscale(.9) brightness(.55); animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.07); } }
.stage.go .st-art { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.stage.go .st-big, .stage.go .chips span, .stage.go .st-title { animation: pop .5s .25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.flame-pop { animation: flick 1.3s ease-in-out infinite; transform-origin: 50% 92%; }
.full.good .st-art::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #ffb02066, #0000 68%); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.18); opacity: .6; } }
.st-art > * { position: relative; }

.snuff { position: relative; width: 200px; height: 200px; }
.snuff img { position: absolute; inset: 0; width: 100%; height: 100%; }
.snuff .b { opacity: 0; }
.stage.go .snuff .a { animation: out 1.3s .3s forwards; }
.stage.go .snuff .b { animation: in2 1.3s .3s forwards; }
@keyframes out { to { opacity: 0; transform: scale(.8); } }
@keyframes in2 { to { opacity: 1; } }
.devil-up img { width: 270px; height: 270px; }
.stage.go .devil-up { animation: rise .5s cubic-bezier(.2, 1.4, .4, 1) both, laugh .32s .5s ease-in-out 8 alternate; }
@keyframes rise { from { transform: translateY(120%); } }
@keyframes laugh { to { transform: translateY(-9px) rotate(2.5deg); } }
.full.bad .st-art { min-height: 0; gap: 0; }
.full.bad .snuff { width: 120px; height: 120px; }
.full.bad .devil-up + .snuff { margin-top: -8px; }
.medal { position: relative; }
.medal img { width: 250px; height: 250px; }
.medal b { position: absolute; left: 0; right: 0; top: 60%; transform: translateY(-50%); font: 400 4.2rem/1 var(--display); color: #3b1d08; text-shadow: 0 2px 0 #ffffff55; }
.medal img[src*="trophee"] + b { top: 31%; font-size: 3rem; }
.duo { position: relative; }
.duo img { width: 240px; height: 240px; }
.duo .duo-b { position: absolute; right: -34px; bottom: -22px; width: 130px; height: 130px; }
.duo .shrunk { transform: scale(var(--k)); transform-origin: 100% 100%; opacity: calc(.35 + var(--k) * .65); filter: grayscale(calc(1 - var(--k))); }
.shake { animation: shake .5s; }
@keyframes shake { 15% { transform: translate(-9px, 3px) rotate(-1deg); } 30% { transform: translate(8px, -3px) rotate(1deg); } 45% { transform: translate(-7px, 2px); } 60% { transform: translate(6px, -2px); } 75% { transform: translate(-3px, 1px); } }

.crave-devil { width: 190px; height: 190px; object-fit: contain; animation: laugh 1.4s ease-in-out infinite alternate; }
.crave-screen .breath { width: 180px; height: 180px; }
.crave-screen { gap: 12px; }
.start img { width: 230px; height: 230px; object-fit: contain; }
