@font-face { font-family: "Baloo"; src: url("fonts/baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
:root {
  --bg: #e9f0f5; --card: rgba(255,255,255,.72); --card-solid: #f7fafc; --ink: #22304a; --ink2: #4f5d78; --ink3: #6b7892; --line: rgba(34,48,74,.13);
  --blue: #7ea6cb; --blue-d: #4c7ba6; --coral: #ee9a82; --coral-d: #b84d33; --mint: #8fcbb6;
  --f1: #cfe1f1; --f2: #f7ddd0; --f3: #d9ecdf; --btn: #22304a; --btn-ink: #f4f8fb; --shadow: 0 10px 30px rgba(52,80,120,.14);
  --display: "Baloo", ui-rounded, "SF Pro Rounded", system-ui, sans-serif; --serif: "Literata", Georgia, serif;
  --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.2,.8,.2,1); color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121a2a; --card: rgba(255,255,255,.07); --card-solid: #1b2438; --ink: #e8eef8; --ink2: #aab6cc; --ink3: #8e9bb4; --line: rgba(232,238,248,.14);
  --blue: #6f9cc4; --blue-d: #9cc3e6; --coral: #f0a58e; --coral-d: #ffb59f; --mint: #86c9b0;
  --f1: #1d2d4a; --f2: #3a2a38; --f3: #1d3a38; --btn: #e8eef8; --btn-ink: #14203a; --shadow: 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { max-width: 100%; overflow-x: hidden; margin: 0; min-height: 100%; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-d); outline-offset: 3px; border-radius: 14px; }
.fields { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.fields i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; animation: drift 38s ease-in-out infinite alternate; }
.f1 { width: 80vmax; height: 80vmax; background: var(--f1); left: -30vmax; top: -34vmax; }
.f2 { width: 64vmax; height: 64vmax; background: var(--f2); right: -28vmax; top: 24vh; animation-duration: 46s; animation-delay: -8s; }
.f3 { width: 70vmax; height: 70vmax; background: var(--f3); left: -20vmax; bottom: -44vmax; animation-duration: 52s; animation-delay: -16s; }
@keyframes drift { to { transform: translate(5vmax, 4vmax) scale(1.06); } }
#app { max-width: 520px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); min-height: 100vh; min-height: 100dvh; display: flex; }
.screen { flex: 1; display: flex; flex-direction: column; min-width: 0; animation: screenIn .45s var(--out); }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .center { text-align: center; }
.muted { color: var(--ink2); }
/* buttons: squash on press, spring release */
.press { transition: transform .32s var(--spring), box-shadow .2s, background .2s; will-change: transform; }
.press:active { transform: scale(.94, .9); transition-duration: .07s; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 18px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; font-size: 20px; min-height: 58px; box-shadow: 0 6px 18px rgba(34,48,74,.22); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); }
.iconbtn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { background: var(--card); }
/* home */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.top .grp { display: flex; gap: 2px; }
.home-main { margin-top: clamp(14px, 5vh, 44px); display: flex; flex-direction: column; align-items: center; }
.mark { position: relative; font-size: clamp(54px, 17vw, 96px); line-height: .8; letter-spacing: -.03em; text-align: center; padding-right: .3em; max-width: 100%; }
.mark .a { display: block; font-weight: 500; color: var(--ink2); font-size: .78em; }
.mark .b { display: block; font-weight: 800; color: var(--ink); }
.mark .trail { position: absolute; right: 0; bottom: .02em; width: .34em; height: .8em; }
.mark .trail i { position: absolute; border-radius: 50%; background: var(--blue); animation: bob 3.6s ease-in-out infinite; }
.mark .trail i:nth-child(1) { width: .07em; height: .07em; left: .02em; bottom: 0; }
.mark .trail i:nth-child(2) { width: .12em; height: .12em; left: .1em; bottom: .13em; animation-delay: -.5s; background: var(--blue); }
.mark .trail i:nth-child(3) { width: .2em; height: .2em; left: .13em; bottom: .32em; animation-delay: -1s; background: var(--coral); }
@keyframes bob { 50% { transform: translateY(-.05em); } }
.issue { margin-top: 20px; color: var(--ink2); font-weight: 600; }
.tag { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); text-align: center; text-wrap: balance; }
.seg { display: flex; margin-top: 28px; padding: 4px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); position: relative; width: 100%; max-width: 360px; }
.seg button { flex: 1; min-height: 42px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--ink2); position: relative; z-index: 1; transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--btn-ink); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--btn); transition: transform .45s var(--spring); }
.seg.o .pill { transform: translateX(100%); }
.modehint { margin: 10px 0 0; font-size: 15px; color: var(--ink2); text-align: center; min-height: 20px; }
.home-actions { width: 100%; max-width: 360px; margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.meta { margin-top: 20px; text-align: center; color: var(--ink2); font-size: 15px; font-weight: 600; }
.pips { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pip { width: 22px; height: 8px; border-radius: 6px; background: var(--line); transition: background .3s, transform .4s var(--spring); }
.pip.on { background: var(--blue); } .pip.now { background: var(--ink2); transform: scaleY(1.4); }
/* game */
.gtop { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.gtop .mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gtop .count { font-size: 14px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.stage { display: flex; flex-direction: column; align-items: center; margin-top: clamp(12px, 5vh, 40px); }
.bubble-wrap { position: relative; width: 100%; display: grid; place-items: center; padding-bottom: 38px; }
.bubble { position: relative; background: var(--card-solid); border-radius: 56px; padding: 30px 38px 34px; box-shadow: var(--shadow); min-width: 200px; max-width: 100%; text-align: center; animation: bubbleIn .6s var(--spring) both; }
.bubble .kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.bubble .cue { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 11vw, 54px); letter-spacing: .02em; line-height: 1.1; color: var(--ink); animation: thoughtIn .8s .12s var(--out) both; overflow-wrap: anywhere; }
@keyframes bubbleIn { from { transform: scale(.6); opacity: 0; } }
@keyframes thoughtIn { from { opacity: 0; filter: blur(14px); letter-spacing: .24em; transform: scale(.92); } }
.dots { position: absolute; left: 14%; bottom: 4px; width: 60px; height: 40px; }
.dots i { position: absolute; border-radius: 50%; background: var(--card-solid); box-shadow: var(--shadow); animation: dotIn .5s var(--spring) both; }
.dots i:nth-child(1) { width: 18px; height: 18px; left: 22px; top: 0; animation-delay: .3s; }
.dots i:nth-child(2) { width: 10px; height: 10px; left: 8px; top: 24px; animation-delay: .4s; }
@keyframes dotIn { from { transform: scale(0); } }
.bubble-wrap.small { padding-bottom: 22px; } .bubble-wrap.small .bubble { padding: 14px 26px 16px; border-radius: 34px; animation: none; }
.bubble-wrap.small .bubble .cue { font-size: 28px; animation: none; } .bubble-wrap.small .kicker, .bubble-wrap.small .dots { display: none; }
.timer { width: min(300px, 80%); height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin-top: 8px; }
.timer b { display: block; height: 100%; width: 100%; border-radius: 8px; background: var(--blue-d); transform-origin: left; transition: background .3s; }
.timer.warn b { background: var(--coral-d); }
.timer.off { visibility: hidden; }
.answer { display: flex; gap: 10px; width: 100%; margin-top: 22px; }
.answer input { flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 24px; text-align: center; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card-solid); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, transform .3s var(--spring); }
.answer input:focus { border-color: var(--blue-d); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 30%, transparent); transform: scale(1.015); }
.answer input::placeholder { color: var(--ink3); font-weight: 500; }
.go { width: 62px; height: 62px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; flex: none; opacity: .35; transform: scale(.88); }
.go.ready { opacity: 1; transform: scale(1); }
.go svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.msg { min-height: 24px; margin-top: 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--coral-d); }
.shake { animation: shake .38s; } @keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
/* reveal */
.reveal { display: flex; flex-direction: column; align-items: center; margin-top: 4px; width: 100%; }
.said { text-align: center; font-size: 17px; color: var(--ink2); font-weight: 600; }
.said .kick { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--ink3); margin-bottom: 2px; }
.said b { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 22px; }
.bignum { font-size: clamp(76px, 25vw, 108px); font-weight: 800; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bignum small { font-size: .42em; font-weight: 700; margin-left: 2px; color: var(--ink2); }
.bignum.pop { animation: numPop .5s var(--spring); } @keyframes numPop { 40% { transform: scale(1.14); } }
.verdict { margin-top: 4px; font-size: 22px; font-weight: 800; color: var(--blue-d); min-height: 30px; opacity: 0; transform: translateY(8px) scale(.9); }
.verdict.in { animation: verdictIn .5s var(--spring) forwards; } @keyframes verdictIn { to { opacity: 1; transform: none; } }
.verdict.big { color: var(--coral-d); font-size: 26px; }
.chips { display: flex; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink2); }
.chip b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 1fr; position: relative; height: 42px; border-radius: 21px; background: var(--card); overflow: hidden; border: 1.5px solid var(--line); opacity: 0; transform: translateY(6px); animation: barIn .45s var(--out) forwards; animation-delay: var(--d); }
@keyframes barIn { to { opacity: 1; transform: none; } }
.bar .fill { position: absolute; inset: 0; width: 0; border-radius: 21px; background: color-mix(in srgb, var(--blue) 55%, transparent); transition: width .9s var(--spring); transition-delay: var(--d); }
.bar.first .fill { background: var(--blue); }
.bar.me .fill { background: var(--coral); }
.bar .lbl { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 700; font-size: 18px; }
.bar .lbl span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.bar .pc { font-variant-numeric: tabular-nums; }
.bar .tag2 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-left: 8px; color: var(--ink); opacity: .75; }
.bars .gap { text-align: center; color: var(--ink3); font-size: 14px; line-height: 6px; height: 6px; letter-spacing: .3em; }
.next { margin-top: 18px; width: 100%; }
/* results */
.res { text-align: center; margin-top: 6px; }
.res .modeline { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.title { margin: 6px 0 0; line-height: 1; color: var(--ink); animation: titleIn .7s var(--spring) both; }
@keyframes titleIn { from { transform: scale(.5) rotate(-4deg); opacity: 0; } }
.title.t0 { font-size: 44px; font-weight: 500; color: var(--ink2); }
.title.t1 { font-size: 50px; font-weight: 600; }
.title.t2 { font-size: 56px; font-weight: 700; letter-spacing: -.01em; }
.title.t3 { font-size: 62px; font-weight: 800; letter-spacing: -.02em; color: var(--blue-d); }
.title.t4 { font-size: 68px; font-weight: 800; letter-spacing: -.03em; color: var(--coral-d); }
.title.t4::after { content: ""; display: block; height: 7px; margin: 4px auto 0; width: 62%; border-radius: 6px; background: var(--coral); }
.persona { margin: 10px auto 0; max-width: 330px; font-family: var(--serif); font-size: 18px; color: var(--ink); text-wrap: balance; }
.like { margin-top: 14px; font-size: 24px; font-weight: 800; }
.like em { font-style: normal; color: var(--coral-d); }
.score { margin-top: 6px; font-size: 18px; color: var(--ink2); font-weight: 700; font-variant-numeric: tabular-nums; }
.score b { font-size: 34px; color: var(--ink); }
.spark { display: flex; justify-content: center; align-items: flex-end; gap: 7px; height: 56px; margin-top: 14px; }
.spark i { width: 14px; border-radius: 7px; background: var(--blue); height: 6px; transition: height .7s var(--spring); transition-delay: var(--d); }
.spark i.hi { background: var(--coral); }
.list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; opacity: 0; animation: barIn .4s var(--out) forwards; animation-delay: var(--d); }
.item .q { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink3); }
.item .a { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.15; }
.item .p { text-align: right; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.item .p small { display: block; font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .06em; }
.btnrow { display: flex; gap: 10px; margin-top: 14px; } .btnrow .btn { flex: 1; padding: 0 12px; }
.cd { text-align: center; margin-top: 16px; color: var(--ink2); font-size: 15px; font-weight: 600; }
.cd b { display: block; font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* lists */
.page-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .page-head h2 { margin: 0; font-size: 28px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.stat { text-align: center; padding: 14px 6px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); } .stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; } .stat span { font-size: 13px; font-weight: 700; color: var(--ink2); }
.sect { margin: 22px 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.kv { display: flex; justify-content: space-between; padding: 11px 4px; border-bottom: 1.5px solid var(--line); font-weight: 600; } .kv b { font-weight: 800; }
.arch { display: flex; flex-direction: column; gap: 8px; }
.arow { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 12px 16px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); }
.arow .n { font-weight: 800; font-size: 18px; } .arow .d { font-size: 14px; color: var(--ink2); font-weight: 600; } .arow .s { text-align: right; font-weight: 700; font-size: 14px; color: var(--ink2); line-height: 1.3; }
.arow .s b { color: var(--ink); font-size: 17px; }
.arow .go2 { color: var(--blue-d); font-weight: 800; }
/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20,30,50,.42); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--card-solid); border-radius: 32px 32px 0 0; padding: 22px 22px max(26px, env(safe-area-inset-bottom)); animation: sheetUp .5s var(--spring); }
@keyframes sheetUp { from { transform: translateY(60%); opacity: 0; } }
.sheet, .sheet * { min-width: 0; overflow-wrap: anywhere; }
.sheet h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; } .sheet p { margin: 0 0 12px; color: var(--ink); font-size: 16.5px; line-height: 1.45; font-weight: 500; }
.sheet .ladder { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin-bottom: 12px; } .sheet .ladder span { font-weight: 700; margin: 0; white-space: nowrap; line-height: 1.2; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1.5px solid var(--line); font-weight: 700; }
.opts { display: flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.opts button { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink2); transition: background .25s, color .25s; } .opts button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.sw { position: relative; width: 56px; height: 32px; border-radius: 16px; background: var(--line); transition: background .25s; flex: none; } .sw i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .4s var(--spring); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.sw[aria-pressed="true"] { background: var(--blue-d); } .sw[aria-pressed="true"] i { transform: translateX(24px); }
.link { color: var(--coral-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
/* loader: bubbles rise and merge */
.loader { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s; }
.loader[hidden] { display: none; } .loader.out { animation: fadeOut .2s forwards; } @keyframes fadeOut { to { opacity: 0; } }
.lb { position: relative; width: 120px; height: 120px; }
.lb i { position: absolute; border-radius: 50%; background: var(--blue); left: 50%; bottom: 8px; }
.lb i:nth-child(1) { width: 14px; height: 14px; margin-left: -34px; animation: rise1 1.1s ease-in infinite; }
.lb i:nth-child(2) { width: 20px; height: 20px; margin-left: 12px; background: var(--coral); animation: rise2 1.1s .12s ease-in infinite; }
.lb i:nth-child(3) { width: 12px; height: 12px; margin-left: -6px; background: var(--mint); animation: rise3 1.1s .24s ease-in infinite; }
.lb i:nth-child(4) { width: 18px; height: 18px; margin-left: -9px; background: var(--ink); opacity: 0; animation: merge 1.1s ease-out infinite; }
@keyframes rise1 { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(34px,-76px) scale(1); opacity: 1; } 100% { transform: translate(40px,-84px) scale(0); opacity: 0; } }
@keyframes rise2 { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(-22px,-70px) scale(1); opacity: 1; } 100% { transform: translate(-24px,-84px) scale(0); opacity: 0; } }
@keyframes rise3 { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(6px,-64px) scale(1); opacity: 1; } 100% { transform: translate(6px,-84px) scale(0); opacity: 0; } }
@keyframes merge { 0%, 62% { transform: translateY(-84px) scale(0); opacity: 0; } 76% { transform: translateY(-84px) scale(1.7); opacity: 1; } 100% { transform: translateY(-84px) scale(1.2); opacity: 0; } }
.ltxt { font-size: 19px; font-weight: 700; color: var(--ink2); }
/* fx */
.pfx { position: fixed; z-index: 70; border-radius: 50%; pointer-events: none; left: 0; top: 0; }
.shake-s { animation: shakeS .5s; } @keyframes shakeS { 15% { transform: translate(-6px,3px); } 30% { transform: translate(5px,-4px); } 45% { transform: translate(-4px,-2px); } 60% { transform: translate(3px,3px); } 80% { transform: translate(-1px,1px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; } .fields i { animation: none; } }
@media (min-width: 700px) { #app { padding-top: 24px; } .sheet { border-radius: 32px; margin-bottom: 6vh; } .modal-bg { align-items: center; } }

/* mode picker */
.pick { margin-top: 26px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.modes { width: 100%; max-width: 360px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.mcard { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); transition: transform .32s var(--spring), border-color .2s, background .2s, box-shadow .3s; }
.mcard .rad { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink3); display: grid; place-items: center; flex: none; transition: border-color .2s; }
.mcard .rad i { width: 12px; height: 12px; border-radius: 50%; background: var(--btn); transform: scale(0); transition: transform .4s var(--spring); }
.mcard .mt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mcard .mt b { font-size: 19px; font-weight: 800; }
.mcard .mt span { font-size: 14.5px; font-weight: 500; color: var(--ink2); line-height: 1.3; margin-top: 1px; }
.mcard[aria-checked="true"] { border-color: var(--btn); background: var(--card-solid); box-shadow: 0 8px 22px rgba(34,48,74,.14); }
.mcard[aria-checked="true"] .rad { border-color: var(--btn); } .mcard[aria-checked="true"] .rad i { transform: scale(1); }
.mcard .done { font-weight: 800; font-size: 14px; color: var(--ink2); padding: 3px 10px; border-radius: 999px; background: var(--line); }
.mchip { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--btn); color: var(--btn-ink); vertical-align: 1px; }
.mchip.or { background: var(--coral); color: #2a1a14; }
.res .modeline { display: flex; justify-content: center; align-items: center; gap: 6px; }
