/* Lakshya — UI built from the ChatGPT mockups (Today, Onboarding, Focus/Break, Settings) */
:root {
  --bg: #FFF4E6; --ink: #2A170C; --ink2: #6E5747; --ink3: #A08C7C;
  --or: #FF6A13; --or2: #FF8A1F; --yl: #FFB020; --red: #F0473C; --gr: #22A447;
  --card: rgba(255, 252, 247, .86); --card-b: rgba(255, 190, 130, .32); --line: rgba(160, 110, 70, .14);
  --sh: 0 10px 28px rgba(190, 105, 40, .13), 0 2px 6px rgba(190, 105, 40, .08);
  --sh-s: 0 4px 14px rgba(190, 105, 40, .12);
  --pill: #FFE8C7; --pill-ink: #4A2C14; --soft: #FFEBD6;
  --tile-o: linear-gradient(135deg, #FFE7CF, #FFDDBB); --tile-g: linear-gradient(135deg, #E9F5DF, #DDF0D2);
  --tab: rgba(255, 252, 248, .96);
  --wall: url(../assets/img/wall-day.jpg);
  --r: 22px; --pad: 16px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #120A05; --ink: #FFF0DF; --ink2: #D7BFA8; --ink3: #9C8471;
  --card: rgba(38, 22, 12, .82); --card-b: rgba(255, 140, 60, .2); --line: rgba(255, 190, 140, .12);
  --sh: 0 10px 28px rgba(0, 0, 0, .45); --sh-s: 0 4px 14px rgba(0, 0, 0, .35);
  --pill: rgba(255, 160, 70, .18); --pill-ink: #FFD9B0; --soft: rgba(255, 150, 70, .14);
  --tile-o: linear-gradient(135deg, rgba(255, 130, 40, .22), rgba(255, 110, 30, .14)); --tile-g: linear-gradient(135deg, rgba(60, 170, 80, .22), rgba(40, 140, 60, .14));
  --tab: rgba(30, 17, 9, .96);
  --wall: url(../assets/img/wall-night.jpg);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { display: block; }
i[data-ic] { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; font-style: normal; }
i[data-ic] svg { width: 100%; height: 100%; }

/* ---------- animated wallpaper ---------- */
.wall { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wall-img { position: absolute; inset: -4%; background: var(--wall) center / cover no-repeat; animation: wallDrift 26s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes wallDrift { 0% { transform: scale(1.02) translate3d(0, 0, 0); } 50% { transform: scale(1.07) translate3d(-1.2%, 1%, 0); } 100% { transform: scale(1.04) translate3d(1%, -1%, 0); } }
.wall-glow { position: absolute; width: 70vmax; height: 70vmax; right: -30vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 160, 60, .22), transparent); animation: glowMove 14s ease-in-out infinite alternate; }
@keyframes glowMove { to { transform: translate(-12vmax, 10vmax) scale(1.15); } }
.sparkles i { position: absolute; width: 10px; height: 10px; background: #FFB020; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .75; transform: scale(1) rotate(45deg); } }

/* ---------- app shell ---------- */
#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100dvh; }
#views { padding: calc(env(safe-area-inset-top) + 10px) var(--pad) 0; }
.view { display: none; }
.view.active { display: block; animation: viewIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.view.active .rise { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.98); } }
.tabspace { height: calc(96px + env(safe-area-inset-bottom)); }

/* press + ripple + shine for every button */
.fx-press { transition: transform .25s var(--spring), box-shadow .25s, background .25s, filter .2s; position: relative; overflow: hidden; }
.fx-press:active { transform: scale(.93); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .55); transform: scale(0); animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 50px; height: 50px; animation: logoIn .9s var(--spring) both; }
@keyframes logoIn { from { transform: rotate(-40deg) scale(.4); opacity: 0; } }
.brandname { position: relative; font-weight: 800; font-size: 32px; letter-spacing: -.5px; line-height: 1; padding-bottom: 6px; }
.brandname .swoosh { position: absolute; left: 8%; bottom: -4px; width: 86%; height: 12px; stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw 1s .4s ease-out forwards; }
.brandname.xl { font-size: 54px; padding-bottom: 8px; }
.brandname.xl .swoosh { height: 16px; bottom: -6px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.topbtns { display: flex; gap: 10px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--card-b); box-shadow: var(--sh-s); color: var(--ink); position: relative; flex: none; }
.iconbtn i[data-ic] { width: 22px; height: 22px; }
.iconbtn.sm { width: 34px; height: 34px; }
.iconbtn .dot { position: absolute; top: 7px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--card); animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.35); } }
.iconbtn.ring i { animation: bellRing 1.1s ease-in-out; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-15deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.iconbtn.spin i { animation: spin .7s var(--spring); }
@keyframes spin { to { transform: rotate(180deg); } }

/* ---------- greeting ---------- */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.greet-l { min-width: 0; }
.greet h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.date { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 15px; margin-top: 4px; }
.date i[data-ic] { width: 17px; height: 17px; }
.chip-count { display: flex; align-items: center; gap: 6px; flex: none; padding: 10px 12px; border-radius: 999px; background: linear-gradient(135deg, #FFE3A8, #FFD27E); color: #3A2410; font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px rgba(240, 160, 40, .28); white-space: nowrap; }
.chip-count i[data-ic] { width: 18px; height: 18px; }
.chip-count i[data-ic="chevR"] { width: 15px; height: 15px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--card-b); border-radius: var(--r); box-shadow: var(--sh); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- hero ring card ---------- */
.hero { position: relative; display: grid; grid-template-columns: auto 1px 1fr; align-items: center; gap: 14px; padding: 18px 14px 18px 12px; margin-bottom: 16px; }
.hand { position: absolute; left: 12px; top: 10px; z-index: 2; font-family: 'Caveat', cursive; font-size: 22px; line-height: .95; color: var(--ink); transform: rotate(-14deg); width: 70px; animation: handIn .8s .3s var(--spring) both; }
.hand-dash { position: absolute; width: 18px; right: -6px; top: -10px; }
.hand-line { width: 62px; height: 9px; margin-top: 2px; }
@keyframes handIn { from { opacity: 0; transform: rotate(-30deg) scale(.4); } }
.ringwrap { position: relative; width: 156px; height: 156px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 6px 10px rgba(255, 106, 19, .25)); }
.ring-track { fill: none; stroke: #FFE9D4; stroke-width: 16; }
html[data-theme="dark"] .ring-track { stroke: rgba(255, 160, 80, .14); }
.ring-bar { fill: none; stroke: url(#gRing); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.3, 1.2, .5, 1); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-num { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.ring-lab { font-size: 15px; font-weight: 600; margin-top: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ring-pct { font-size: 19px; font-weight: 700; color: var(--or); margin-top: 6px; }
.ringwrap.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); } }
.ringwrap.full .ring { animation: ringGlow 1.6s ease-in-out infinite; }
@keyframes ringGlow { 50% { filter: drop-shadow(0 0 16px rgba(255, 140, 30, .7)); } }
.hero-div { align-self: stretch; background: var(--line); margin: 6px 0; }
.tiles { display: grid; gap: 12px; min-width: 0; }
.tile { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; text-align: left; min-width: 0; min-height: 66px; }
.tile-o { background: var(--tile-o); }
.tile-g { background: var(--tile-g); }
.tile-ic { width: 44px; height: 44px; flex: none; object-fit: contain; }
.tile-ic.flame { animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.tile-ic.flame.cold { filter: grayscale(1) opacity(.5); animation: none; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 25% { transform: scale(1.06, .96) rotate(2deg); } 50% { transform: scale(.97, 1.05) rotate(-1deg); } 75% { transform: scale(1.04, .98) rotate(1.5deg); } }
.tile-ic.badge { animation: badgeShine 3.5s ease-in-out infinite; }
@keyframes badgeShine { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-10deg) scale(1.08); } 94% { transform: rotate(8deg); } }
.tile-t { display: flex; flex-direction: column; min-width: 0; }
.tile-t b { font-size: 28px; font-weight: 800; line-height: 1; }
.tile-t span { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-trend { position: absolute; right: 10px; top: 10px; width: 26px; fill: #FF9A2E; color: #FF7A1A; }
.tile-x { position: absolute; right: 8px; top: 50%; margin-top: -10px; color: var(--gr); width: 20px !important; height: 20px !important; }

/* ---------- focus timer card (today) ---------- */
.focus { position: relative; overflow: hidden; padding: 16px; margin-bottom: 18px; background: #1E0F06; border: 0; color: #FFF3E4; box-shadow: 0 14px 30px rgba(80, 30, 5, .35); }
.focus-bg { position: absolute; inset: 0; background: url(../assets/img/timer.jpg) 20% 60% / cover; opacity: .55; animation: kenburns 30s ease-in-out infinite alternate; }
.focus-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 10, 3, .2), rgba(25, 10, 3, .75) 60%), radial-gradient(circle at 18% 70%, rgba(255, 140, 40, .35), transparent 45%); }
@keyframes kenburns { to { transform: scale(1.12) translate(2%, -2%); } }
.focus > *:not(.focus-bg) { position: relative; }
.focus-head { display: flex; align-items: center; gap: 10px; }
.focus-ic { width: 40px; height: 40px; }
.running .focus-ic { animation: tickTock 1s steps(2) infinite; }
@keyframes tickTock { 50% { transform: rotate(8deg); } }
.focus-tt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.focus-tt b { font-size: 20px; font-weight: 700; }
.focus-tt span { font-size: 13.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-tt.big b { font-size: 26px; } .focus-tt.big span { font-size: 15px; }
.modechip { display: flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 170, 90, .7); background: rgba(40, 18, 6, .5); font-size: 14px; font-weight: 500; }
.modechip select { appearance: none; -webkit-appearance: none; background: none; border: 0; outline: 0; color: #FFF3E4; font-weight: 500; padding: 0; }
.modechip select option { color: #2A170C; }
.modechip i[data-ic] { width: 16px; height: 16px; }
.focus-body { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.focus-time { position: relative; flex: 1; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.focus-arc { position: absolute; width: 168px; height: 168px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; }
.arc-track { fill: none; stroke: rgba(255, 170, 90, .14); stroke-width: 4; }
.arc-bar { fill: none; stroke: url(#gArc); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 140, 30, .8)); transition: stroke-dashoffset .4s linear; }
.arc-dot { fill: #FFB547; filter: drop-shadow(0 0 6px #FF9A1F); }
.focus.running .arc-dot { animation: dotGlow 1.2s ease-in-out infinite; }
@keyframes dotGlow { 50% { r: 9; } }
.bigtime { font-size: 50px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 16px rgba(255, 140, 40, .35); }
.session-pill { margin-top: 10px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 170, 90, .7); font-size: 14px; font-weight: 500; background: rgba(40, 18, 6, .45); white-space: nowrap; }
.focus-vdiv { width: 1px; align-self: stretch; margin: 20px 0; background: linear-gradient(transparent, rgba(255, 170, 90, .5), transparent); }
.focus-ctrl { display: flex; gap: 10px; padding-right: 2px; }
.roundbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #FFF3E4; font-size: 15px; font-weight: 500; overflow: visible; }
.roundbtn .rb { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #FF8A1F; background: rgba(30, 12, 4, .6); box-shadow: 0 0 14px rgba(255, 130, 30, .5), inset 0 0 10px rgba(255, 130, 30, .25); transition: box-shadow .3s, background .3s; }
.roundbtn .rb i[data-ic] { width: 24px; height: 24px; }
.roundbtn:hover .rb { box-shadow: 0 0 22px rgba(255, 130, 30, .8), inset 0 0 12px rgba(255, 130, 30, .35); }
.focus.running #tPlay .rb { animation: ctrlPulse 2s ease-in-out infinite; }
@keyframes ctrlPulse { 50% { box-shadow: 0 0 26px rgba(255, 130, 30, .95), inset 0 0 14px rgba(255, 130, 30, .45); } }

/* ---------- targets ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.sec-ic { width: 42px; height: 42px; }
.sec-head h2 { flex: 1; margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #FF8A1F, #FF5A13); color: #fff; font-weight: 600; font-size: 17px; box-shadow: 0 8px 18px rgba(255, 100, 20, .35); white-space: nowrap; }
.pillbtn i[data-ic] { width: 20px; height: 20px; }
.pillbtn.soft { background: var(--soft); color: var(--pill-ink); box-shadow: 0 3px 10px rgba(255, 140, 40, .14); font-size: 15px; padding: 9px 14px; }
.pillbtn.soft i[data-ic] { color: var(--or); width: 18px; height: 18px; }
.pillbtn.sm { padding: 7px 12px; font-size: 14px; }
.pillbtn.center { align-self: center; margin-top: 10px; }
.addrow { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--card-b); box-shadow: var(--sh-s); margin-bottom: 10px; transition: border-color .25s, box-shadow .25s; }
.addrow:focus-within { border-color: var(--or2); box-shadow: 0 0 0 4px rgba(255, 138, 31, .16), var(--sh-s); }
.addrow-ic { color: var(--ink2); }
.addrow input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 8px 0; }
.addrow input::placeholder { color: var(--ink3); }
.addbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A1F, #FF5A13); color: #fff; box-shadow: 0 6px 14px rgba(255, 100, 20, .4); flex: none; }
.addbtn i[data-ic] { width: 26px; height: 26px; }
.addbtn.go i { animation: spinPlus .5s var(--spring); }
@keyframes spinPlus { from { transform: rotate(-180deg) scale(.5); } }
.subchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin: 0 -2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.subchips::-webkit-scrollbar { display: none; }
.schip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-b); font-size: 14px; font-weight: 500; transition: transform .25s var(--spring), background .25s, color .25s; }
.schip .sd { width: 9px; height: 9px; border-radius: 50%; }
.schip.on { color: #fff; transform: scale(1.04); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); border-color: transparent; }
.schip svg { width: 15px; height: 15px; }
.carry { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: var(--pill); color: var(--pill-ink); font-weight: 600; font-size: 15px; border: 1.5px dashed rgba(255, 140, 40, .5); }
.tasks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.task { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px 6px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-b); box-shadow: 0 3px 10px rgba(190, 105, 40, .08); transition: background .3s, transform .3s; }
.chk { width: 32px; height: 32px; border-radius: 50%; border: 2.4px solid #8F7B6C; display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s, transform .35s var(--spring); }
.chk svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s .1s ease-out; }
.task.done .chk { background: linear-gradient(135deg, #2DB34A, #1E9A3C); border-color: transparent; box-shadow: 0 4px 10px rgba(34, 164, 71, .35); }
.task.done .chk svg { stroke-dashoffset: 0; }
.tt { flex: 1; min-width: 0; font-size: 17px; line-height: 1.3; cursor: pointer; padding: 6px 0; overflow-wrap: anywhere; }
.tt .txt { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.6px; background-repeat: no-repeat; background-position: 0 56%; transition: background-size .45s ease-out, color .3s; }
.task.done .tt .txt { background-size: 100% 1.6px; color: var(--ink3); }
.tt .sub { font-weight: 600; }
.task.done .tt .sub { color: inherit !important; }
.del { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink2); flex: none; transition: color .2s, background .2s; }
.del svg { width: 22px; height: 22px; }
.del:active { color: var(--red); background: rgba(240, 71, 60, .1); }
.task.enter { animation: taskIn .55s var(--spring) both; }
@keyframes taskIn { from { opacity: 0; transform: translateX(-30px) scale(.9); } }
.task.pop .chk { animation: chkPop .6s var(--spring); }
@keyframes chkPop { 30% { transform: scale(1.35) rotate(-10deg); } 60% { transform: scale(.9); } }
.task.pop { animation: rowGlow .9s ease-out; }
@keyframes rowGlow { 0% { box-shadow: 0 0 0 0 rgba(34, 164, 71, .45); } 100% { box-shadow: 0 0 0 14px rgba(34, 164, 71, 0); } }
.task.leave { animation: taskOut .35s ease-in forwards; }
@keyframes taskOut { to { opacity: 0; transform: translateX(60px) scale(.9); } }
.empty { text-align: center; padding: 18px 12px 22px; color: var(--ink2); }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }

/* ---------- motivation banner ---------- */
.motiv { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px; background: linear-gradient(100deg, #FFF0C8, #FFE29A 60%, #FFD36E); box-shadow: 0 8px 20px rgba(240, 170, 40, .25); margin-bottom: 16px; color: #2A170C; overflow: hidden; }
.motiv::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.motiv-trophy { position: relative; width: 60px; height: 60px; flex: none; animation: trophyBob 2.6s ease-in-out infinite; }
@keyframes trophyBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.motiv-t { position: relative; flex: 1; font-size: 16.5px; font-weight: 700; line-height: 1.25; min-width: 0; text-align: center; }
.motiv-line { display: block; width: 70%; height: 9px; margin: 2px auto 0; }
.motiv-t.swap #motivText { display: inline-block; animation: swapIn .55s var(--spring); }
@keyframes swapIn { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.motiv-spark { position: relative; width: 40px; height: 40px; flex: none; }
.motiv-spark path { transform-box: fill-box; transform-origin: center; animation: twinkle2 2s ease-in-out infinite; }
.motiv-spark .sp2 { animation-delay: .6s; } .motiv-spark .sp3 { animation-delay: 1.2s; }
@keyframes twinkle2 { 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }

/* ---------- buddy (mascot) ---------- */
.buddy { display: flex; align-items: flex-end; gap: 6px; padding: 12px 14px 0 6px; overflow: hidden; margin-bottom: 8px; }
.buddy-fig { width: 116px; flex: none; align-self: flex-end; }
.buddy-fig img { width: 100%; height: 150px; object-fit: contain; object-position: bottom; animation: idle 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 50% { transform: translateY(-3px) scale(1.015, .99); } }
.buddy-fig.jump img { animation: jump .8s var(--spring); }
@keyframes jump { 30% { transform: translateY(-26px) rotate(-6deg) scale(1.05); } 60% { transform: translateY(0) scale(1.06, .94); } }
.buddy-fig.win img { animation: swagger 1.4s ease-in-out infinite; }
@keyframes swagger { 0%, 100% { transform: translateX(-4px) rotate(-2deg); } 50% { transform: translateX(4px) rotate(2deg); } }
.buddy-fig.lose img { animation: sadSway 3.4s ease-in-out infinite; filter: saturate(.85); }
@keyframes sadSway { 50% { transform: rotate(-2deg) translateY(2px); } }
.buddy-r { flex: 1; min-width: 0; padding-bottom: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.buddy-name { font-size: 13px; font-weight: 700; color: var(--or); text-transform: uppercase; letter-spacing: .6px; }
.bubble { position: relative; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--soft); font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.bubble::before { content: ''; position: absolute; left: -7px; bottom: 6px; border: 7px solid transparent; border-right-color: var(--soft); border-left: 0; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100%); z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--tab); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 26px rgba(160, 90, 30, .14); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 8px; color: #6B5A4E; font-size: 15px; font-weight: 500; position: relative; transition: color .3s; }
html[data-theme="dark"] .tabbar button { color: #BFA48E; }
.tabbar button + button::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 14px; width: 1px; background: var(--line); }
.tabbar svg { width: 30px; height: 30px; transition: transform .4s var(--spring); }
.tabbar button.on { color: var(--or); font-weight: 600; }
.tabbar button.on svg { transform: translateY(-2px) scale(1.1); }
.tab-ind { position: absolute; bottom: calc(6px + env(safe-area-inset-bottom)); height: 4px; border-radius: 4px; background: var(--or); width: 18%; left: 3.5%; transition: left .45s var(--spring); }

/* ---------- timer tab ---------- */
.tbig { position: relative; overflow: hidden; padding: 16px 14px 18px; background: #1E0F06; border: 0; color: #FFF3E4; box-shadow: 0 16px 34px rgba(80, 30, 5, .4); margin-bottom: 14px; }
.tbig .focus-bg { opacity: .8; background-position: 50% 50%; }
.tbig .focus-bg::after { background: radial-gradient(circle at 50% 42%, rgba(20, 8, 2, .55), rgba(20, 8, 2, .25) 55%, rgba(20, 8, 2, .7)); }
.tbig > *:not(.focus-bg) { position: relative; }
.tbig-ring { position: relative; width: min(72vw, 270px); aspect-ratio: 1; margin: 10px auto 14px; }
.tbig-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tb-track { fill: none; stroke: rgba(255, 170, 90, .16); stroke-width: 12; }
.tb-bar { fill: none; stroke: url(#gArc); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 130, 30, .7)); transition: stroke-dashoffset .4s linear; }
.tb-dot { fill: #FFB547; filter: drop-shadow(0 0 8px #FF9A1F); }
.tbig.running .tb-dot { animation: dotGlow2 1.2s ease-in-out infinite; }
@keyframes dotGlow2 { 50% { r: 11; } }
.tbig-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tbig-mode { font-size: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #FFC27A; }
.tbig-time { font-size: clamp(50px, 16vw, 66px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(255, 140, 40, .4); }
.tbig .session-pill { margin-top: 6px; }
.subchips.dark { justify-content: center; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 16px; }
.subchips.dark .schip { background: rgba(30, 12, 4, .55); border: 1.5px solid rgba(255, 170, 90, .55); color: #FFF3E4; font-size: 15px; padding: 7px 16px; }
.subchips.dark .schip.on { background: linear-gradient(135deg, #FF8A1F, #FF5A13) !important; border-color: #FFB060; box-shadow: 0 0 16px rgba(255, 120, 30, .6); }
.tctrls { display: flex; justify-content: space-around; align-items: flex-start; }
.tbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #FFF3E4; font-size: 16px; font-weight: 500; overflow: visible; }
.tbtn .tb-c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #FF8A1F; background: rgba(30, 12, 4, .55); box-shadow: 0 0 14px rgba(255, 130, 30, .45); }
.tbtn .tb-c i[data-ic] { width: 28px; height: 28px; }
.tbtn.main .tb-c { width: 78px; height: 78px; border: 0; background: linear-gradient(145deg, #FF9A2E, #FF5A13 60%, #E8401A); box-shadow: 0 8px 22px rgba(255, 100, 20, .6), inset 0 2px 6px rgba(255, 255, 255, .35); }
.tbtn.main .tb-c i[data-ic] { width: 34px; height: 34px; }
.tbtn .tb-l { line-height: 1.15; text-align: center; max-width: 84px; }
.tbig.running .tbtn.main .tb-c { animation: mainPulse 2s ease-in-out infinite; }
@keyframes mainPulse { 50% { box-shadow: 0 8px 34px rgba(255, 110, 20, .95), inset 0 2px 6px rgba(255, 255, 255, .35); } }
.tbtn.spin .tb-c i { animation: spinBack .6s; }
@keyframes spinBack { to { transform: rotate(-360deg); } }
.durs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dur { display: flex; align-items: center; gap: 10px; padding: 14px 12px; text-align: left; border-radius: 18px; }
.dur img { width: 46px; height: 46px; flex: none; }
.dur div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dur span { font-size: 15px; color: var(--ink2); }
.dur b { font-size: 22px; font-weight: 700; white-space: nowrap; }
.dur i[data-ic] { color: var(--ink2); width: 20px; height: 20px; }
.todayfocus { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left; border-radius: 18px; margin-bottom: 12px; }
.tf-ic { width: 40px; flex: none; }
.tf-r { flex: 1; min-width: 0; }
.tf-top { font-size: 19px; font-weight: 600; }
.tf-top b { color: var(--or); font-size: 26px; font-weight: 700; margin-left: 4px; }
.tf-goal { font-size: 14px; color: var(--ink3); margin-left: 4px; font-weight: 500; }
.tf-track { height: 9px; border-radius: 9px; background: rgba(160, 110, 70, .15); margin-top: 8px; overflow: hidden; }
.tf-track i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #FFB020, #FF6A13); transition: width 1s cubic-bezier(.3, 1.2, .5, 1); }
.tfsplit { padding: 14px 16px; border-radius: 18px; }
.tf-bars { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: rgba(160, 110, 70, .12); gap: 2px; }
.tf-bars span { display: block; height: 100%; transition: width .8s; }
.tf-sessions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--ink2); }
.sdot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--or2); }
.sdot.on { background: var(--or2); box-shadow: 0 0 8px rgba(255, 138, 31, .6); }
.tf-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; flex-basis: 100%; }
.tf-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }

/* ---------- page head ---------- */
.pagehead { display: flex; align-items: center; gap: 14px; margin: 2px 0 16px; }
.ph-ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #FFE7C2, #FFD39A); box-shadow: 0 6px 18px rgba(255, 150, 40, .3); flex: none; }
html[data-theme="dark"] .ph-ic { background: radial-gradient(circle at 40% 35%, rgba(255, 170, 80, .35), rgba(255, 130, 40, .18)); }
.ph-ic img { width: 42px; height: 42px; }
#view-settings .ph-ic img { animation: phSpin 14s linear infinite; }
@keyframes phSpin { to { transform: rotate(360deg); } }
.pagehead h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.pagehead p { margin: 6px 0 0; color: var(--ink2); font-size: 16px; }

/* ---------- settings ---------- */
.set { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; margin-bottom: 12px; border-radius: 20px; }
.set.col { flex-direction: column; align-items: stretch; }
.set-row { display: flex; align-items: flex-start; gap: 12px; }
.set-ic { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #FFF0DC, #FFE2BD); flex: none; }
html[data-theme="dark"] .set-ic { background: radial-gradient(circle at 40% 35%, rgba(255, 170, 80, .25), rgba(255, 130, 40, .12)); }
.set-ic img { width: 44px; height: 44px; transition: transform .5s var(--spring); }
.set:active .set-ic img { transform: rotate(-8deg) scale(1.08); }
.set-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.set-b > b { font-size: 20px; font-weight: 700; }
.set-b > span { font-size: 15.5px; color: var(--ink2); }
.set-b em { font-style: normal; color: var(--ink); font-weight: 500; }
.set-date { display: block; }
.set-date i[data-ic] { width: 17px; height: 17px; display: inline-grid; vertical-align: -3px; margin-right: 4px; }
.set .chip-count { font-size: 15px; padding: 10px 12px; }
.subedit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.se { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--card-b); font-size: 15px; font-weight: 500; animation: rise .4s var(--spring) both; }
.se .sd { width: 13px; height: 13px; border-radius: 50%; border: 0; cursor: pointer; }
.se .sx { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink2); border-radius: 50%; }
.se .sx svg { width: 16px; height: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.stp + .stp { border-left: 1px solid var(--line); }
.stp span { font-size: 14px; color: var(--ink2); }
.stp b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.stp div { display: flex; gap: 8px; margin-top: 3px; }
.mini { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); font-size: 20px; font-weight: 600; line-height: 1; display: grid; place-items: center; }
.songrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.songpill { padding: 7px 12px; border-radius: 999px; background: var(--soft); font-size: 14.5px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggles { display: flex; align-items: center; justify-content: space-around; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.tg-div { width: 1px; align-self: stretch; background: var(--line); }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.toggle i[data-ic] { color: var(--or); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle s { position: relative; width: 56px; height: 32px; border-radius: 32px; background: rgba(160, 110, 70, .28); transition: background .3s; flex: none; }
.toggle s::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s var(--spring); }
.toggle input:checked + s { background: linear-gradient(135deg, #FF8A1F, #FF5A13); }
.toggle input:checked + s::after { transform: translateX(24px); }
.toggle input:focus-visible + s { outline: 2px solid var(--or); outline-offset: 2px; }
.bkrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bkrow .pillbtn { flex: 1 1 130px; font-size: 15px; padding: 9px 10px; }
.lastbk { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--ink2); margin-top: 10px; }
.lastbk i[data-ic] { width: 18px; height: 18px; color: var(--gr); }
.morerow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); margin-top: 12px; }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; }
.field input, .field select { font-size: 16px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--card-b); background: var(--card); color: var(--ink); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--or2); }
.linkbtn { color: #D93A3A; font-weight: 600; font-size: 15px; padding: 14px 0 2px; align-self: center; }
.foot { text-align: center; color: var(--ink3); font-size: 13px; margin: 18px 0 0; }

/* ---------- progress ---------- */
.level { padding: 16px; margin-bottom: 12px; }
.lv-l { display: flex; align-items: center; gap: 12px; }
.lv-badge { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, #FFB020, #FF6A13, #F0473C, #FFB020); box-shadow: 0 6px 16px rgba(255, 100, 20, .4); animation: lvSpin 6s linear infinite; }
.lv-badge::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #FFF8EE; }
html[data-theme="dark"] .lv-badge::before { background: #2A170C; }
.lv-badge b { position: relative; font-size: 24px; font-weight: 900; color: var(--or); animation: lvSpin 6s linear infinite reverse; }
@keyframes lvSpin { to { transform: rotate(360deg); } }
.lv-t { flex: 1; display: flex; flex-direction: column; }
.lv-t b { font-size: 22px; font-weight: 800; }
.lv-t span { color: var(--or); font-weight: 600; }
.lv-xp { font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-size: 15px; white-space: nowrap; }
.xpbar { height: 12px; border-radius: 12px; background: rgba(160, 110, 70, .15); margin-top: 14px; overflow: hidden; }
.xpbar span { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, #FFB020, #FF6A13, #F0473C, #FFB020); background-size: 200% 100%; animation: xpFlow 3s linear infinite; transition: width 1.2s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes xpFlow { to { background-position: -200% 0; } }
.xp-t { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2); margin-top: 6px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.st { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 18px; text-align: center; }
.st img { width: 42px; height: 42px; }
.st b { font-size: 28px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.st span { font-size: 13px; color: var(--ink2); }
.st-o { background: var(--tile-o); } .st-g { background: var(--tile-g); } .st-y { background: linear-gradient(135deg, #FFF3CC, #FFE7A6); }
html[data-theme="dark"] .st-y { background: linear-gradient(135deg, rgba(255, 200, 60, .2), rgba(255, 180, 40, .12)); }
.st-o img { animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.cal { padding: 14px; margin-bottom: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 18px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-dow span { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.cal-grid { margin-top: 6px; }
.cd { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; background: rgba(160, 110, 70, .08); color: var(--ink2); animation: calIn .4s var(--spring) both; transition: transform .25s var(--spring); }
@keyframes calIn { from { opacity: 0; transform: scale(.5); } }
.cd.blank { background: none; }
.cd.l1 { background: #FFE2C2; color: #7A3E10; } .cd.l2 { background: #FFC48A; color: #6A300A; } .cd.l3 { background: #FF9A4A; color: #fff; } .cd.l4 { background: linear-gradient(135deg, #FF7A1A, #F0473C); color: #fff; box-shadow: 0 3px 8px rgba(240, 80, 30, .35); }
.cd.miss { box-shadow: inset 0 0 0 2px rgba(217, 58, 58, .55); }
.cd.out { opacity: .35; }
.cd.today { outline: 2.5px solid var(--or); outline-offset: 1px; }
.cd.exam { background: #2A170C; color: #FFD27E; }
.cd.sel { transform: scale(1.14); }
.cal-leg { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink3); margin-top: 10px; flex-wrap: wrap; }
.cal-leg i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.cal-leg .l0 { background: rgba(160, 110, 70, .1); } .cal-leg .l1 { background: #FFE2C2; } .cal-leg .l2 { background: #FFC48A; } .cal-leg .l3 { background: #FF9A4A; } .cal-leg .l4 { background: #F0573C; }
.cal-leg .miss { box-shadow: inset 0 0 0 2px rgba(217, 58, 58, .6); }
.cal-miss { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cal-detail { margin-top: 10px; font-size: 14px; color: var(--ink2); padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h b { font-size: 18px; }
.card-h > span { font-size: 14px; color: var(--ink2); }
.week, .subj, .report { padding: 14px 16px; margin-bottom: 12px; }
.wbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; }
.wb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wv { font-size: 11.5px; color: var(--ink2); font-weight: 600; min-height: 14px; white-space: nowrap; }
.wcol { width: 70%; max-width: 30px; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #FFB020, #FF6A13); transition: height .9s cubic-bezier(.3, 1.2, .5, 1); }
.wb.today .wcol { background: linear-gradient(180deg, #FF7A1A, #F0473C); box-shadow: 0 4px 12px rgba(240, 80, 30, .4); }
.wd { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.wb.today .wd { color: var(--or); }
.sb { margin-bottom: 12px; }
.sb-t { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.sb-t span { color: var(--ink2); font-weight: 500; }
.sb-bar { height: 12px; border-radius: 12px; background: rgba(160, 110, 70, .12); overflow: hidden; }
.sb-bar i { display: block; height: 100%; width: 0; border-radius: 12px; transition: width 1s cubic-bezier(.3, 1.2, .5, 1); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.seg button { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink2); transition: background .3s, color .3s; }
.seg button.on { background: linear-gradient(135deg, #FF8A1F, #FF5A13); color: #fff; box-shadow: 0 3px 8px rgba(255, 100, 20, .35); }
.rep { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.grade { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #2DB34A, #178A35); box-shadow: 0 8px 18px rgba(34, 164, 71, .35); animation: gradeIn .7s var(--spring) both; }
@keyframes gradeIn { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.grade.b { background: linear-gradient(135deg, #3B82F6, #2563EB); box-shadow: 0 8px 18px rgba(59, 130, 246, .35); }
.grade.c { background: linear-gradient(135deg, #FFB020, #F59E0B); } .grade.d { background: linear-gradient(135deg, #F0473C, #C62828); }
.rep ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--ink2); display: grid; gap: 3px; }
.rep ul b { color: var(--ink); }
.verdict { grid-column: 1 / -1; margin-top: 8px; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }

/* ---------- scene (videos) ---------- */
.scene { position: fixed; inset: 0; z-index: 60; background: #0E0703; overflow: hidden; animation: sceneIn .35s ease-out; }
@keyframes sceneIn { from { opacity: 0; } }
.scene-poster { position: absolute; inset: 0; background: center / cover no-repeat; }
.scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.scene.playing video { opacity: 1; }
@media (min-aspect-ratio: 3/4) { .scene video { object-fit: contain; } .scene-poster { background-size: contain; } .scene { background: radial-gradient(circle, #2A1408, #0A0502); } }
.scene-top { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 12px; display: flex; gap: 10px; z-index: 6; }
.iconbtn.glass { background: rgba(20, 10, 4, .45); border: 1px solid rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
.scene-prog { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255, 255, 255, .15); z-index: 6; }
.scene-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFB020, #FF6A13); }
.scene-gate { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: radial-gradient(circle, rgba(0, 0, 0, .2), rgba(0, 0, 0, .6)); }
.gate-play { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #FF9A2E, #FF5A13); animation: gatePulse 1.6s ease-out infinite; }
.gate-play i[data-ic] { width: 46px; height: 46px; margin-left: 6px; }
@keyframes gatePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 120, 30, .75); } 100% { box-shadow: 0 0 0 32px rgba(255, 120, 30, 0); } }
.scene-gate b { font-size: 28px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.scene-gate span:last-child { font-size: 17px; opacity: .92; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); padding: 0 24px; text-align: center; }
.scene-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 30px 20px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scene-cap:not(:empty) { background: linear-gradient(transparent, rgba(10, 4, 1, .84) 28%); animation: capIn .6s var(--spring); }
@keyframes capIn { from { transform: translateY(60px); opacity: 0; } }
.cap-big { font-size: 30px; font-weight: 800; line-height: 1.12; background: linear-gradient(180deg, #FFF1C4, #FFC24A 60%, #FF8A1F); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); animation: capBig .9s var(--spring); max-width: 440px; }
@keyframes capBig { 0% { transform: scale(.3); } 60% { transform: scale(1.12); } }
.cap-big.sad { background: none; color: #FFD3C8; }
.cap-sub { font-size: 17px; line-height: 1.4; max-width: 420px; opacity: .95; }
.cap-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cap-stats span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); font-size: 14.5px; font-weight: 600; animation: rise .5s var(--spring) both; }
.cap-stats span:nth-child(2) { animation-delay: .12s; } .cap-stats span:nth-child(3) { animation-delay: .24s; }
.cap-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.pillbtn.ghost { background: rgba(255, 255, 255, .14); box-shadow: none; border: 1px solid rgba(255, 255, 255, .3); }

/* fallback stage (when videos are off) */
.stage { position: absolute; inset: 0; display: none; overflow: hidden; z-index: 2; }
.scene.fallback .stage { display: block; }
.scene.fallback video, .scene.fallback .scene-poster { display: none; }
.stage.win { background: radial-gradient(ellipse at 50% 30%, #6A1A10, #1A0604 70%); }
.stage.lose { background: linear-gradient(#2C3138, #15181C); }
.stage.half, .stage.morning { background: radial-gradient(circle at 50% 35%, #FFD9A0, #FF9A3C 60%, #C2530F); }
.stage .hero-fig { position: absolute; left: 50%; bottom: 24%; width: min(56vw, 280px); transform: translateX(-50%); animation: figIn .9s var(--spring) both; }
@keyframes figIn { from { transform: translate(-50%, 40%) scale(.6); opacity: 0; } }
.stage .hero-fig img { width: 100%; }
.stage.win .hero-fig img { animation: swagger 1.2s ease-in-out infinite; }
.stage .hero-fig.hit img { animation: hit .4s; }
@keyframes hit { 30% { transform: translateX(-10px) rotate(-6deg); } 60% { transform: translateX(6px) rotate(3deg); } }
.rays { position: absolute; left: 50%; top: 38%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(rgba(255, 220, 140, .14) 0 8deg, transparent 8deg 16deg); animation: spinSlow 24s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.carpet { position: absolute; left: 50%; bottom: -10%; width: 70%; height: 46%; transform: translateX(-50%) perspective(400px) rotateX(55deg); background: linear-gradient(#C2121C, #7A0A10); box-shadow: 0 0 40px rgba(255, 0, 0, .3); }
.flashb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255, 255, 255, .4) 25%, transparent 60%); opacity: 0; animation: flashPop 1.4s infinite; }
@keyframes flashPop { 0%, 85%, 100% { opacity: 0; transform: scale(.4); } 88% { opacity: 1; transform: scale(1); } }
.rain { position: absolute; inset: -20% 0 0; background-image: linear-gradient(transparent 0 60%, rgba(170, 200, 230, .5) 60% 100%); background-size: 2px 34px; animation: rainFall .5s linear infinite; opacity: .6; }
@keyframes rainFall { to { background-position: 0 34px; } }
.chappal { position: absolute; width: 40px; z-index: 3; }
.bang { position: absolute; z-index: 4; transform: translate(-50%, -50%); font-size: 30px; font-weight: 900; color: #FFE040; -webkit-text-stroke: 2px #B01010; animation: bang .6s var(--spring) forwards; }
@keyframes bang { from { transform: translate(-50%, -50%) scale(.2); } to { transform: translate(-50%, -80%) scale(1.1); opacity: 0; } }

/* ---------- break screen ---------- */
.breaks { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; overflow: hidden; color: #2A170C; animation: sceneIn .5s ease-out; padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 22px); }
.br-bg { position: absolute; inset: 0; background: url(../assets/img/break.jpg) center bottom / cover; animation: brDrift 24s ease-in-out infinite alternate; }
@keyframes brDrift { to { transform: scale(1.08) translateY(-1.5%); } }
.br-clouds i { position: absolute; width: 180px; height: 60px; border-radius: 60px; background: rgba(255, 255, 255, .5); filter: blur(12px); animation: cloudMove 40s linear infinite; left: -260px; }
.br-clouds i:nth-child(1) { top: 16%; } .br-clouds i:nth-child(2) { top: 30%; animation-duration: 55s; animation-delay: -20s; width: 240px; } .br-clouds i:nth-child(3) { top: 54%; animation-duration: 48s; animation-delay: -35s; }
@keyframes cloudMove { to { transform: translateX(calc(100vw + 520px)); } }
.br-top, .br-inner { position: relative; z-index: 1; }
.br-top { max-width: 480px; width: 100%; margin: 0 auto; }
.br-chip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 248, 240, .78); border: 1px solid rgba(255, 190, 130, .5); font-weight: 500; font-size: 15px; white-space: nowrap; }
.br-chip img { width: 24px; height: 24px; }
.br-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; max-width: 480px; width: 100%; margin: 0 auto; gap: 14px; }
.breath { position: relative; width: min(76vw, 330px, 44vh); aspect-ratio: 1; display: grid; place-items: center; }
.breath .halo { position: absolute; inset: -7%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 160, .65), rgba(255, 180, 100, .2) 60%, transparent 72%); animation: breathe 8s ease-in-out infinite; }
.breath-c { position: relative; width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #FFFBF4, #FFEEDA 70%); border: 7px solid #FFA94A; box-shadow: 0 0 0 4px rgba(255, 200, 120, .4), 0 0 40px rgba(255, 150, 50, .55), inset 0 0 30px rgba(255, 180, 90, .3); animation: breatheC 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes breatheC { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.03); } }
.br-lotus { width: 26%; height: auto; margin-bottom: 2px; animation: lotus 8s ease-in-out infinite; }
@keyframes lotus { 50% { transform: scale(1.12); } }
.breath-c b { font-size: clamp(24px, 8vw, 34px); font-weight: 700; }
.breath-c b.fade { animation: wordFade .8s; }
@keyframes wordFade { from { opacity: 0; transform: translateY(6px); } }
.breath-c span { font-size: clamp(52px, 17vw, 74px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.br-tip { display: flex; align-items: flex-start; justify-content: center; gap: 6px; text-align: center; font-size: 21px; font-style: italic; font-weight: 500; line-height: 1.35; margin: 0; position: relative; padding: 0 64px; }
.br-tip::before, .br-tip::after { content: ''; position: absolute; top: 18px; width: 50px; height: 1.5px; background: linear-gradient(90deg, transparent, #E5704A); }
.br-tip::before { left: 0; } .br-tip::after { right: 0; transform: scaleX(-1); }
.br-tip img { width: 28px; height: 28px; animation: drip 2.4s ease-in-out infinite; flex: none; }
@keyframes drip { 50% { transform: translateY(4px); } }
.br-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ghostbtn { padding: 12px 52px; border-radius: 999px; border: 1.8px solid #4A2C14; font-size: 18px; font-weight: 500; color: #2A170C; background: rgba(255, 245, 235, .35); }
.br-video { position: absolute; inset: 0; z-index: 3; background: #0E0703; }
.br-video video { width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 3/4) { .br-video video { object-fit: contain; } }
.br-video.out { animation: fadeOut .8s forwards; }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.04); } }
.br-vskip { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 12px; }

/* ---------- onboarding ---------- */
.onboard { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: #FFF4E6 url(../assets/img/wall-day.jpg) center / cover; color: #2A170C; color-scheme: light; }
.ob { max-width: 440px; margin: 0 auto; min-height: 100%; padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 22px); display: flex; flex-direction: column; align-items: stretch; }
.ob-brand { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ob-brand img { width: 78px; height: 78px; animation: logoIn 1s var(--spring) both; }
.ob-stage { position: relative; margin: 20px auto 10px; width: min(60vw, 240px); }
.ob-deco { position: absolute; left: -26%; top: -4%; width: 152%; pointer-events: none; overflow: visible; }
.ob-deco path { transform-box: fill-box; transform-origin: center; animation: decoPop 2.4s ease-in-out infinite; }
.ob-deco .od2, .ob-deco .os2 { animation-delay: .4s; } .ob-deco .od3, .ob-deco .os3 { animation-delay: .8s; } .ob-deco .od4 { animation-delay: 1.2s; }
@keyframes decoPop { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }
.arch { position: relative; aspect-ratio: .92; border-radius: 50% 50% 34px 34px / 42% 42% 34px 34px; background: rgb(253, 245, 229); border: 3px solid #FFB24A; box-shadow: 0 0 0 4px rgba(255, 210, 140, .35), 0 0 28px rgba(255, 160, 60, .45), inset 0 0 24px rgba(255, 190, 110, .35); overflow: hidden; animation: archIn .9s var(--spring) both; }
.arch img { position: absolute; left: 50%; top: 7%; width: 100%; transform: translateX(-50%); mix-blend-mode: multiply; animation: heroUp 1.1s .35s var(--spring) both, heroIdle 3s 1.5s ease-in-out infinite; }
@keyframes archIn { from { transform: scale(.6); opacity: 0; } }
@keyframes heroUp { from { transform: translate(-50%, 60%); } }
@keyframes heroIdle { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -2%); } }
.arch-shadow { height: 18px; margin: -6px 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 120, 50, .25), transparent); }
.ob-h { text-align: center; font-size: clamp(31px, 9.5vw, 40px); font-weight: 800; line-height: 1.14; margin: 12px 0 20px; letter-spacing: -.6px; }
.ob-w { display: inline-block; animation: wordIn .7s var(--spring) both; }
.ob-w:nth-of-type(1) { animation-delay: .5s; } .ob-w:nth-of-type(2) { animation-delay: .65s; } .ob-w:nth-of-type(3) { animation-delay: .8s; } .ob-w:nth-of-type(4) { animation-delay: .95s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(24px) scale(.8); } }
.ob-w.naam { position: relative; color: #FF6A13; }
.ob-w.naam svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 10px; }
.obfield { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 999px; background: rgba(255, 251, 246, .92); border: 1.5px solid rgba(255, 190, 130, .55); box-shadow: 0 6px 18px rgba(200, 120, 50, .12); margin-bottom: 14px; transition: border-color .25s, box-shadow .25s; }
.obfield:focus-within { border-color: #FF8A1F; box-shadow: 0 0 0 4px rgba(255, 138, 31, .18); }
.obfield i[data-ic] { width: 30px; height: 30px; color: #6B5A4E; }
.obfield input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 20px; color: #2A170C; }
.obfield input::placeholder { color: #8F7B6C; }
.obfield.date { padding: 12px 20px; }
.obd { flex: 1; display: flex; flex-direction: column; }
.obd small { font-size: 15px; color: #6B5A4E; }
.obd b { font-size: 20px; font-weight: 500; }
.obd-div { width: 1px; height: 36px; background: rgba(160, 110, 70, .25); }
.obfield.date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 20px; border-radius: 999px; font-size: 22px; font-weight: 700; color: #fff; background: linear-gradient(100deg, #FF9A1F, #FF6A13 50%, #F0473C); box-shadow: 0 12px 26px rgba(240, 90, 30, .4); margin-top: 12px; animation: btnBreath 2.6s ease-in-out infinite; }
@keyframes btnBreath { 50% { box-shadow: 0 14px 34px rgba(240, 90, 30, .6); } }
.bigbtn i[data-ic] { width: 28px; height: 28px; transition: transform .3s; }
.bigbtn:hover i[data-ic] { transform: translateX(5px); }
.ob-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 16px; color: #6B5A4E; }
.ob-foot i[data-ic] { width: 26px; height: 26px; }
.ob .shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- download bar ---------- */
.dl-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 6px) 16px 6px; background: var(--tab); font-size: 13px; color: var(--ink2); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.dl-t { flex: none; }
.dl-track { flex: 1; height: 6px; border-radius: 6px; background: rgba(160, 110, 70, .18); overflow: hidden; }
.dl-track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #FFB020, #FF6A13); transition: width .3s; }

/* ---------- sheet + toast + fx ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(20, 8, 2, .45); display: flex; align-items: flex-end; justify-content: center; animation: sceneIn .25s; }
.sheet { width: min(480px, 100%); max-height: 86dvh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheetUp .45s var(--spring); box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet h3 { margin: 0 0 10px; font-size: 22px; }
.sheet p, .sheet li { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.sheet ul { padding-left: 18px; margin: 0 0 8px; }
.sheet .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sheet .mantra { font-size: 21px; font-weight: 600; line-height: 1.35; padding: 16px; border-radius: 16px; background: var(--soft); }
.colors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; transition: transform .25s var(--spring); }
.colors button.on { border-color: var(--ink); transform: scale(1.12); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0; }
.stepper b { font-size: 40px; font-weight: 800; min-width: 130px; text-align: center; }
.stepper .mini { width: 50px; height: 50px; font-size: 26px; }
.toast { position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); z-index: 90; padding: 12px 18px; border-radius: 16px; background: #2A170C; color: #FFF3E4; font-weight: 500; font-size: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 75; pointer-events: none; }
.burst { position: fixed; z-index: 76; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); opacity: 0; } }
.xpfloat { position: fixed; z-index: 77; pointer-events: none; font-weight: 800; color: #FF6A13; font-size: 18px; text-shadow: 0 1px 0 #fff; animation: xpUp 1s ease-out forwards; }
@keyframes xpUp { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-10px) scale(1.15); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  :root { --pad: 12px; }
  .brandname { font-size: 28px; } .brand-logo { width: 44px; height: 44px; }
  .iconbtn { width: 40px; height: 40px; }
  .greet h1 { font-size: 20px; } .date { font-size: 14px; }
  .chip-count { font-size: 13px; padding: 9px 10px; gap: 4px; }
  .hero { gap: 10px; padding: 16px 10px 16px 8px; }
  .ringwrap { width: 134px; height: 134px; } .ring-num { font-size: 30px; } .ring-lab { font-size: 13.5px; } .ring-pct { font-size: 17px; }
  .hand { font-size: 19px; left: 8px; }
  .tile { padding: 10px 8px; gap: 7px; min-height: 60px; } .tile-ic { width: 36px; height: 36px; }
  .tile-t b { font-size: 24px; } .tile-t span { font-size: 12.5px; }
  .tile-trend { width: 20px; right: 7px; top: 7px; }
  .focus { padding: 14px 12px; } .bigtime { font-size: 40px; } .focus-arc { width: 144px; height: 144px; } .focus-time { height: 134px; }
  .session-pill { font-size: 13px; padding: 3px 10px; }
  .roundbtn .rb { width: 48px; height: 48px; } .roundbtn { font-size: 14px; } .focus-ctrl { gap: 7px; }
  .focus-tt b { font-size: 18px; } .focus-tt span { font-size: 12.5px; } .modechip { padding: 6px 10px; font-size: 13px; }
  .sec-head h2 { font-size: 21px; } .sec-ic { width: 36px; height: 36px; } .pillbtn { font-size: 16px; padding: 9px 15px; }
  .tt { font-size: 16px; } .motiv-t { font-size: 15px; } .motiv-trophy { width: 50px; height: 50px; }
  .pagehead h1 { font-size: 33px; } .ph-ic { width: 58px; height: 58px; } .ph-ic img { width: 36px; height: 36px; }
  .set-ic { width: 52px; height: 52px; } .set-ic img { width: 36px; height: 36px; }
  .set-b > b { font-size: 18px; } .set-b > span { font-size: 14.5px; }
  .set .chip-count { font-size: 13px; padding: 8px 10px; }
  .stp b { font-size: 16px; } .stp span { font-size: 13px; }
  .toggle { font-size: 14.5px; gap: 6px; } .toggle s { width: 50px; height: 29px; } .toggle s::after { width: 21px; height: 21px; } .toggle input:checked + s::after { transform: translateX(21px); }
  .subchips.dark { gap: 6px; } .subchips.dark .schip { padding: 6px 11px; font-size: 13.5px; }
  .tbtn .tb-c { width: 58px; height: 58px; } .tbtn.main .tb-c { width: 70px; height: 70px; }
  .dur { padding: 12px 10px; gap: 8px; } .dur img { width: 38px; height: 38px; } .dur b { font-size: 19px; }
  .tf-top { font-size: 17px; } .tf-top b { font-size: 22px; }
  .br-tip { font-size: 18px; padding: 0 50px; } .br-tip::before, .br-tip::after { width: 38px; }
  .tabbar button { font-size: 14px; } .tabbar svg { width: 27px; height: 27px; }
  .obfield { padding: 14px 18px; } .obfield input, .obd b { font-size: 18px; } .bigbtn { font-size: 20px; padding: 18px; }
  .brandname.xl { font-size: 46px; } .ob-brand img { width: 66px; height: 66px; }
}
@media (max-width: 350px) { .hero { grid-template-columns: 1fr; justify-items: center; } .hero-div { display: none; } .tiles { width: 100%; } }

/* ---------- laptop ---------- */
@media (min-width: 900px) {
  #app { max-width: 520px; }
  .tabbar { width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== Demo pages chooser (demo link only) ===== */
.demo-pages { position: fixed; inset: 0; z-index: 58; overflow-y: auto; background: #FFF4E6 url(../assets/img/wall-day.jpg) center / cover; color: #2A170C; color-scheme: light; animation: sceneIn .35s ease-out; }
.demo-pages[hidden] { display: none; }
.dm-in { max-width: 480px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 22px) 16px calc(env(safe-area-inset-bottom) + 28px); display: flex; flex-direction: column; gap: 14px; }
.dm-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; }
.dm-brand img { width: 46px; height: 46px; }
.dm-brand em { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #FF8A1F, #FF5A13); padding: 4px 10px; border-radius: 999px; margin-left: 2px; }
.demo-pages h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.1; font-weight: 800; }
.dm-lead { margin: 0; color: #6E5747; font-size: 15px; }
.dm-card { display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 140, 40, .25); box-shadow: 0 10px 26px rgba(160, 90, 30, .14); animation: rise .6s var(--spring) both; color: inherit; font: inherit; }
.dm-card:nth-of-type(2) { animation-delay: .08s; } .dm-card:nth-of-type(3) { animation-delay: .16s; }
.dm-card:active { transform: scale(.97); }
.dm-thumb { position: relative; flex: none; width: 92px; height: 136px; border-radius: 16px; background: #2A170C center 18% / cover; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.dm-play { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 110, 20, .92); box-shadow: 0 0 0 6px rgba(255, 140, 40, .3); }
.dm-play::after { content: ''; position: absolute; left: 13px; top: 9px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.dm-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dm-txt b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.dm-txt > span:last-child { font-size: 14.5px; color: #6E5747; line-height: 1.35; }
.dm-tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.dm-lose .dm-tag { background: #6B5B53; } .dm-half .dm-tag { background: #F08A1C; } .dm-win .dm-tag { background: #1F9D55; }
.dm-row { display: flex; gap: 10px; }
.dm-row .pillbtn { flex: 1; color: #2A170C; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 140, 40, .35); font-size: 15.5px; }
.dm-app { align-self: center; margin-top: 4px; padding: 12px 22px; border-radius: 999px; background: #2A170C; color: #FFF3E4; font: inherit; font-weight: 700; font-size: 16px; }
.demo-fab { position: fixed; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 31; padding: 10px 16px; border-radius: 999px; background: #2A170C; color: #FFF3E4; font: inherit; font-weight: 700; font-size: 14.5px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
@media (min-width: 520px) { .demo-fab { right: calc(50% - 228px); } }

/* ===== Loaders ===== */
@keyframes ldspin { to { transform: rotate(360deg); } }
@keyframes ldIn { from { opacity: 0; } }
.ld-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #FF8A1F; animation: ldspin .8s linear infinite; }
.scene-load { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); background: rgba(0, 0, 0, .22); transition: opacity .25s; animation: ldIn .3s .15s both; pointer-events: none; }
.scene.playing .scene-load, .scene.fallback .scene-load, .scene.gated .scene-load, .br-video.playing .br-load { opacity: 0; }
.br-video video { position: absolute; inset: 0; }
.ld-dots { display: flex; gap: 7px; }
.ld-dots i { width: 9px; height: 9px; border-radius: 50%; background: #FF6A13; animation: ldDot 1s ease-in-out infinite; }
.ld-dots i:nth-child(2) { animation-delay: .15s; } .ld-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ldDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.splash { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #FFF4E6; color: #2A170C; transition: opacity .45s; }
html[data-theme="dark"] .splash { background: #120A05; color: #FFF0DF; }
.splash img { width: 86px; height: 86px; animation: splashPop 1.1s var(--spring) infinite alternate; }
.splash b { font-size: 30px; font-weight: 800; }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes splashPop { from { transform: scale(.92); } to { transform: scale(1.06); } }
.is-busy { pointer-events: none; color: transparent !important; }
.is-busy > * { visibility: hidden; }
.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255, 120, 30, .25); border-top-color: #FF6A13; animation: ldspin .7s linear infinite; }
.vid-save { align-self: stretch; margin: 2px 0 4px; font-size: 15px; }

/* ===== One-time video setup screen ===== */
.vsetup { position: fixed; inset: 0; z-index: 66; overflow-y: auto; background: #FFF4E6 url(../assets/img/wall-day.jpg) center / cover; color: #2A170C; color-scheme: light; animation: sceneIn .35s ease-out; }
.vsetup[hidden] { display: none; }
.vs-in { max-width: 440px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 26px) 18px calc(env(safe-area-inset-bottom) + 22px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.vs-load { position: relative; width: 150px; height: 150px; display: grid; place-items: center; flex: none; }
.vs-load img { width: 112px; height: 112px; object-fit: contain; animation: vsBob 1.4s ease-in-out infinite; }
.vs-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #FF5A13, #FFB547 55%, rgba(255, 181, 71, 0) 75%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); animation: ldspin 1.1s linear infinite; }
.vsetup.done .vs-ring { animation: none; background: #1F9D55; }
.vsetup.done .vs-load img { animation: vsJump .7s var(--spring); }
.vsetup.fail .vs-ring { animation: none; background: #D93A3A; }
@keyframes vsBob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes vsJump { 40% { transform: translateY(-18px) scale(1.08); } }
.vs-in h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.15; font-weight: 800; }
.vs-in > p { margin: 0; color: #6E5747; font-size: 15.5px; }
.vs-total { display: flex; align-items: baseline; justify-content: space-between; width: 100%; margin-top: 4px; }
.vs-total b { font-size: 34px; font-weight: 900; color: #FF5A13; line-height: 1; }
.vsetup.done .vs-total b { color: #1F9D55; }
.vs-total span { font-size: 14px; color: #6E5747; font-weight: 600; }
.vs-track { width: 100%; height: 12px; border-radius: 99px; background: rgba(255, 140, 40, .18); overflow: hidden; flex: none; }
.vs-track i { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFB547, #FF5A13); transition: width .25s; overflow: hidden; }
.vs-track i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shim 1.2s linear infinite; }
.vsetup.done .vs-track i { background: #1F9D55; } .vsetup.done .vs-track i::after { display: none; }
@keyframes shim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.vs-list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.vs-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 140, 40, .2); text-align: left; animation: rise .5s var(--spring) both; }
.vs-th { width: 40px; height: 52px; border-radius: 10px; background: #2A170C center 18% / cover; flex: none; }
.vs-nm { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.vs-nm b { font-size: 15.5px; font-weight: 700; }
.vs-mini { height: 6px; border-radius: 99px; background: rgba(255, 140, 40, .16); overflow: hidden; }
.vs-mini i { display: block; height: 100%; width: 0; background: #FF7A1A; border-radius: inherit; transition: width .25s; }
.vs-list li.ok .vs-mini i { background: #1F9D55; }
.vs-st { width: 26px; height: 26px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; border-radius: 50%; box-sizing: border-box; }
.vs-list li.load .vs-st { border: 3px solid rgba(255, 120, 30, .25); border-top-color: #FF6A13; animation: ldspin .8s linear infinite; }
.vs-list li.ok .vs-st { background: #1F9D55; animation: vsJump .5s var(--spring); }
.vs-list li.err .vs-st { background: #D93A3A; }
.vs-list li.wait .vs-st { border: 3px dotted rgba(110, 87, 71, .4); }
#vsGo { margin-top: 4px; font-size: 20px; padding: 17px; }
.vs-later { color: #6E5747; font-weight: 600; font-size: 14.5px; padding: 8px 12px; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Profile photo ===== */
[data-avatar].has { background-size: cover; background-position: center; }
[data-avatar].has > img { visibility: hidden; }
.av-ic { position: relative; cursor: pointer; overflow: visible; }
.av-ic.has { box-shadow: 0 0 0 3px #FFB547, 0 6px 14px rgba(160, 90, 30, .25); }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #FF8A1F, #FF5A13); display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--bg); }
.av-cam svg { width: 15px; height: 15px; }
.greet-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #FFE2BD center / cover; box-shadow: 0 0 0 3px #FFB547, 0 6px 14px rgba(160, 90, 30, .25); cursor: pointer; animation: rise .6s var(--spring) both; }
.greet-av[hidden] { display: none; }
.av-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.av-big { position: relative; flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #FFF0DC, #FFE2BD) center / cover; box-shadow: 0 0 0 3px #FFB547; cursor: pointer; }
.av-big > img { width: 56px; height: 56px; }
.av-big .av-cam { width: 30px; height: 30px; } .av-big .av-cam svg { width: 18px; height: 18px; }
.av-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cap-av { width: 92px; height: 92px; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 4px #FFC24A, 0 0 28px rgba(255, 194, 74, .7); animation: capBig .9s var(--spring); margin-bottom: 2px; }
@media (max-width: 400px) { .greet-av { width: 42px; height: 42px; } .cap-av { width: 78px; height: 78px; } }

/* ===== Song chip on the Congratulations screen ===== */
.cap-song { display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 210, 120, .55); color: #FFE7B0; font: inherit; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .5s var(--spring) both; }
.cap-song[hidden] { display: none; }
.cap-song:not(.on) { background: linear-gradient(135deg, #FF8A1F, #FF5A13); color: #fff; border-color: transparent; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.eq i { width: 3px; background: #FFC24A; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ===== Victory screen (after the win video) ===== */
.scene.victory video, .scene.victory .scene-poster, .scene.victory .stage { filter: blur(10px) brightness(.38) saturate(1.25); transform: scale(1.12); transition: filter 1.2s, transform 8s ease-out; }
.scene.victory .scene-cap { top: 0; justify-content: flex-start; padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 18px); background: radial-gradient(120% 70% at 50% 30%, rgba(90, 30, 0, .35), rgba(10, 4, 0, .75)); overflow-y: auto; overflow-x: hidden; animation: ldIn .8s both; }
.scene.victory .scene-cap::before { display: none; }
.vic-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.vic-rays { position: absolute; left: 50%; top: 30%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 90, .16) 0deg 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 52%); mask: radial-gradient(circle, #000 8%, transparent 52%); animation: ldspin 40s linear infinite; }
.vic-spot { position: absolute; left: 50%; top: 30%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 70, .45), rgba(255, 140, 30, .12) 45%, transparent 70%); animation: spot 3.2s ease-in-out infinite; }
@keyframes spot { 50% { transform: scale(1.15); opacity: .75; } }
.pt { position: absolute; top: -30px; animation: ptFall var(--d) linear var(--dl) infinite; }
.pt b { display: block; width: var(--s); height: calc(var(--s) * .62); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #FFF3C4, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #8A2B00)); box-shadow: 0 0 6px rgba(255, 170, 40, .35); animation: ptSway calc(var(--d) / 3) ease-in-out var(--dl) infinite alternate; }
@keyframes ptFall { to { transform: translateY(calc(100vh + 60px)); } }
@keyframes ptSway { from { transform: translateX(calc(var(--sw) * -1)) rotate(-50deg) rotateX(0deg); } to { transform: translateX(var(--sw)) rotate(70deg) rotateX(160deg); } }
.st { position: absolute; width: var(--s); height: var(--s); background: radial-gradient(circle, #FFF8D6 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20deg, #FFE38A 20deg 25deg, transparent 25deg 110deg, #FFE38A 110deg 115deg, transparent 115deg 200deg, #FFE38A 200deg 205deg, transparent 205deg 290deg, #FFE38A 290deg 295deg, transparent 295deg); border-radius: 50%; animation: twinkle 2.4s ease-in-out var(--dl) infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
.fl { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 30%, transparent 65%); opacity: 0; animation: flash 5.5s ease-out infinite; }
.fl.f1 { left: -60px; top: 18%; } .fl.f2 { right: -60px; top: 8%; animation-delay: 1.4s; } .fl.f3 { left: -50px; bottom: 22%; animation-delay: 2.9s; } .fl.f4 { right: -50px; bottom: 30%; animation-delay: 4.1s; }
@keyframes flash { 0%, 100% { opacity: 0; } 2% { opacity: 1; } 9% { opacity: 0; } }
.vic-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 430px; margin: auto 0; }
.vic-ribbon { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 10px; border-radius: 999px; background: linear-gradient(135deg, rgba(255, 214, 102, .28), rgba(255, 140, 30, .18)); border: 1px solid rgba(255, 214, 102, .6); color: #FFE7A6; font-weight: 800; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; box-shadow: 0 0 18px rgba(255, 190, 60, .25); animation: dropIn .7s var(--spring) .15s both; }
.vic-ribbon img { width: 24px; height: 24px; }
@keyframes dropIn { from { transform: translateY(-40px) scale(.6); opacity: 0; } }
.vic-av { position: relative; width: 168px; height: 168px; margin: 18px 0 4px; animation: avIn 1s var(--spring) .3s both; --beat: 0; }
@keyframes avIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.vic-beat { position: absolute; inset: 0; transform: scale(calc(1 + var(--beat) * .16)); transition: transform .06s linear; }
.vic-av.nobeat .vic-beat { animation: heart 1s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.07); } 30% { transform: scale(1); } 45% { transform: scale(1.04); } }
.vic-glow { position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 70, .85), rgba(255, 120, 20, .35) 45%, transparent 70%); opacity: calc(.45 + var(--beat) * 1.2); filter: blur(4px); }
.vic-av.nobeat .vic-glow { animation: glowP 1s ease-in-out infinite; }
@keyframes glowP { 15% { opacity: .95; } 50% { opacity: .5; } }
.vic-ring { position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(#FFF3B0, #FFC531, #FF7A00, #FFE38A, #E08A00, #FFF3B0); animation: ldspin 3s linear infinite; box-shadow: 0 0 22px rgba(255, 190, 60, .6); }
.vic-img { position: absolute; inset: 0; border-radius: 50%; background: #2A170C center / cover; border: 4px solid #1A0C04; }
.vic-av.tiger .vic-img { background-size: 230%; background-position: 50% 6%; }
.vic-crown { position: absolute; width: 74px; left: 50%; top: -46px; margin-left: -37px; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); animation: crownIn .8s var(--spring) .95s both, crownBob 2.4s ease-in-out 1.8s infinite; }
@keyframes crownIn { from { transform: translateY(-80px) rotate(-40deg); opacity: 0; } }
@keyframes crownBob { 50% { transform: translateY(-5px) rotate(-8deg); } }
.vic-title { font-family: 'Caveat', cursive; font-size: 46px; line-height: 1; font-weight: 700; background: linear-gradient(100deg, #FFC531 20%, #FFF8D6 40%, #FFC531 60%, #FF9A1F 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55)); animation: titleIn .8s var(--spring) .7s both, shine 3s linear 1.5s infinite; }
@keyframes titleIn { from { transform: scale(.4); opacity: 0; } }
@keyframes shine { to { background-position: -250% 0; } }
.vic-name { font-size: clamp(34px, 11vw, 50px); font-weight: 900; line-height: 1.02; color: #fff; letter-spacing: .5px; text-shadow: 0 3px 0 #C25A00, 0 6px 18px rgba(255, 140, 30, .55); max-width: 100%; overflow-wrap: anywhere; }
.vic-name span { display: inline-block; animation: letter .6s var(--spring) both; }
.vic-name .sp { width: .28em; }
@keyframes letter { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.vic-sub { font-size: 16.5px; color: #FFE9CF; line-height: 1.4; animation: rise .6s ease 1.3s both; }
.vic-sub b { color: #FFD36B; white-space: nowrap; }
.vic-cards { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; width: 100%; margin-top: 4px; }
.vic-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 220, 150, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px rgba(0, 0, 0, .25); animation: rise .6s var(--spring) both; min-width: 0; }
.vic-card img { width: 28px; height: 28px; }
.vic-card b { font-size: 21px; font-weight: 900; color: #fff; line-height: 1.15; white-space: nowrap; }
.vic-card span { font-size: 12.5px; color: #FFD9A8; font-weight: 600; white-space: nowrap; }
.scene.victory .cap-song { margin-top: 4px; animation-delay: 2s; }
.scene.victory .cap-btns { margin-top: 6px; animation: rise .6s var(--spring) 2.1s both; }
@media (max-height: 720px) { .vic-av { width: 132px; height: 132px; margin-top: 12px; } .vic-crown { width: 60px; margin-left: -30px; top: -38px; } .vic-title { font-size: 38px; } .vic-in { gap: 7px; } .vic-card { padding: 8px 3px 7px; } .vic-card b { font-size: 19px; } }
@media (max-width: 360px) { .vic-card span { font-size: 11.5px; } .vic-card b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .pt, .st, .fl, .vic-rays { display: none; } }

/* ================= REMINDERS ================= */
#remCard .set-row { align-items: center; }
#remCard .set-b { flex: 1; min-width: 0; }
.rem-main { margin-left: auto; }
.rem-list { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rem-list[hidden] { display: none; }
.rem-r { display: flex; align-items: center; gap: 10px; }
.rem-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rem-t b { font-size: 15.5px; }
.rem-t em { font-style: normal; font-size: 13px; color: var(--ink2); }
.rem-time { font: inherit; font-size: 15px; font-weight: 600; padding: 7px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); min-width: 0; width: 104px; }
.rem-r.off .rem-time, .rem-r.off .rem-t { opacity: .45; }
.rem-note { margin: 2px 0 0; font-size: 13px; color: var(--ink2); }
#remTest { justify-self: start; }
@media (max-width: 360px) { .rem-time { width: 92px; font-size: 14px; padding: 6px; } .rem-t b { font-size: 14.5px; } }
[data-theme="dark"] .rem-time { color-scheme: dark; }
