/* Collectible title frames. */
.title-display{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-left:4px;flex-shrink:0}.title-caption{font-size:9px;color:var(--muted);letter-spacing:1.5px}.title-frame{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;border:2px solid var(--title-edge,#a7b978);border-radius:6px 15px 6px 15px;padding:9px 18px;color:var(--title-ink,#486341);background:var(--title-bg,linear-gradient(110deg,#f2f6dc,#dfeacb));box-shadow:inset 0 0 0 2px #ffffff55,0 3px 0 var(--title-edge,#a7b978);font-size:13px;font-weight:700;letter-spacing:1px;white-space:nowrap}.title-frame:before{content:var(--title-icon,'≈');font-size:18px;line-height:1}.title-frame:after{content:'✦';font-size:9px;position:absolute;right:4px;top:1px;opacity:.7}.title-slacker{--title-edge:#9caf72;--title-ink:#49613c;--title-bg:linear-gradient(110deg,#f5f7df,#dceac8);--title-icon:'≈'}.title-water{--title-edge:#72b4cf;--title-ink:#256984;--title-bg:linear-gradient(110deg,#e9faff,#bde5f3);--title-icon:'◈';border-radius:16px 5px 16px 5px}.title-break{--title-edge:#b49ccf;--title-ink:#70518d;--title-bg:linear-gradient(110deg,#f7edff,#dfcbed);--title-icon:'☾';border-style:double;border-width:3px}.title-lucky{--title-edge:#d2a14b;--title-ink:#825319;--title-bg:linear-gradient(110deg,#fff5ce,#f0d18b,#fff1c7);--title-icon:'✧';border-radius:4px;box-shadow:inset 0 0 0 2px #fff5ca,0 3px 0 #ba873b}.inventory-row .title-frame{margin:5px 0;flex-wrap:wrap}.inventory-row .title-frame small{flex-basis:100%;margin:0;letter-spacing:0}.collection-heading-mini .title-frame{margin-left:12px}.masthead-title{flex-shrink:0}.header-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}header{height:auto;min-height:116px;gap:20px;padding-top:18px;padding-bottom:18px}.masthead-title h1{margin-top:0}.masthead-title p{max-width:260px;line-height:1.6}.header-actions .quiet{white-space:nowrap}
.dice-visual-group{display:flex;justify-content:center;align-items:center;width:100%;gap:0}.pixel-stage .dice-visual-group canvas{width:128px;height:128px}.dice-visual-group[data-count='1'] canvas{width:192px;height:192px}.dice-visual-group[data-count='3'] canvas{width:96px;height:96px}.dice-count-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 8px;font-size:11px}.dice-count-label select{width:82px;margin:0;height:32px}.dice-count-label>span{font-size:10px;margin:0}.game .dice-rule-note{font-size:10px;line-height:1.8;min-height:36px;margin-bottom:12px}.dialog-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);padding:0 36px 12px 0;margin-bottom:20px;position:sticky;top:0;background:inherit;z-index:2}.dialog-tabs button{flex:1;background:transparent;color:var(--muted);border:0;padding:10px 5px;font-size:12px;border-radius:7px;white-space:nowrap}.dialog-tabs .active{background:#e9f0df;color:var(--green);font-weight:700}.dialog-tabs~.close{position:absolute;top:28px;right:24px}#remindersDialog,#diagnosticsDialog,#infoDialog{width:min(720px,calc(100% - 28px));max-width:720px;max-height:85vh;overflow:auto}html{color-scheme:light}button:disabled{cursor:not-allowed}
/* A graphite palette inspired by familiar code workspaces. */
html[data-theme=dark]{color-scheme:dark;--ink:#e6edf3;--muted:#9da7b3;--green:#7ee787;--cream:#0d1117;--border:#30363d;background:#0d1117}
html[data-theme=dark] body{background:#0d1117;color:#e6edf3}html[data-theme=dark] .card,html[data-theme=dark] dialog,html[data-theme=dark] .inline-reminders{background:#161b22;border-color:#30363d;color:#e6edf3}html[data-theme=dark] .salary{background:linear-gradient(115deg,#172921,#192329)}html[data-theme=dark] .wallet{background:#1b2422;border-color:#33453b}html[data-theme=dark] .pet-aquarium{background:#233029}html[data-theme=dark] .brandicon{background:#238636;color:#dbffe5}html[data-theme=dark] .masthead-title h1 span:first-child{color:#7ee787}html[data-theme=dark] .masthead-title h1 span:first-child:after{background:#264e32}html[data-theme=dark] .dot{color:#7cae87}
html[data-theme=dark] :is(p,small,label,.eyebrow,.textbtn,.quiet,.caption,.date,.econhint,.fundinginfo,.historyrow,.economyentry,.reminder-upcoming,.pet-caption,.pet-select,.inline-reminder-heading,.title-caption,.activity-description,.gameindex,.throw-hint,.inventory-row .locked,.energyfoot,.quote,.rates span,.rates small,.progressinfo,.timerlabels,.betlabel,.collection-heading-mini,.empty,.localnote,.reminder-description,.reminder-options,.reminder-upcoming,.reminder-card p){color:#9da7b3}html[data-theme=dark] :is(h1,h2,h3,b,.money,.timer,.cardtop,.activity-tab b,.activity-title-copy h2,.inventory-row>span){color:#e6edf3}html[data-theme=dark] :is(input,select,.inputwrap){background:#0d1117;border-color:#3d444d;color:#e6edf3}html[data-theme=dark] input:focus,html[data-theme=dark] select:focus{border-color:#58a6ff;box-shadow:0 0 0 3px #1f6feb33}html[data-theme=dark] .inputwrap input{background:transparent}html[data-theme=dark] :is(.quiet,.practicebar,.reminder-card,.inventory-row,.fold-card,.tips,.historyrow,.economyentry,.quote,.tag){border-color:#30363d}html[data-theme=dark] :is(.reminder-card,.shopitem,.shop-item,.estimate,.reconcilebox,.installments,.reviewlist,.reminder-toast,.loanmetrics,.scratch-board,.tabs){background:#21262d;color:#c9d1d9}html[data-theme=dark] .shop button{background:#21262d;border-color:#3d444d;color:#e6edf3}html[data-theme=dark] .activity-tab{background:#161b22;border-color:#30363d;color:#c9d1d9}html[data-theme=dark] .activity-tab.active{background:#1c3026;border-color:#3d714a}html[data-theme=dark] .activity-index{color:#7ee787}html[data-theme=dark] .activity-tab small{color:#9da7b3}html[data-theme=dark] :is(.choices button,.tabs button,.close){background:#21262d;border-color:#3d444d;color:#c9d1d9}html[data-theme=dark] :is(.choices button.selected,.tabs .selected,.dialog-tabs .active){background:#25452d;border-color:#4d8758;color:#aff5b4}html[data-theme=dark] .primary{background:#238636;color:#fff}html[data-theme=dark] .play{background:#283c2d;color:#aff5b4}html[data-theme=dark] .pill,html[data-theme=dark] .tag{background:#24332a;color:#9bdba5}html[data-theme=dark] .odds{background:#3a3020;color:#e3b96b}html[data-theme=dark] .throw-stage{background:radial-gradient(ellipse at 50% 45%,#30382b 0,#1b2225 52%,transparent 76%)}html[data-theme=dark] .progress,html[data-theme=dark] .energytrack{background:#30363d}html[data-theme=dark] .win,html[data-theme=dark] .wallet .win{color:#7ee787}html[data-theme=dark] .lose,html[data-theme=dark] .error{color:#ffa198}html[data-theme=dark] .pet-select select{background:#161b22}html[data-theme=dark] .title-frame{filter:brightness(.88);color:var(--title-ink)}html[data-theme=dark] .title-frame small{color:var(--title-ink)}html[data-theme=dark] .dialog-tabs{background:#161b22}html[data-theme=dark] dialog::backdrop{background:#010409b8}html[data-theme=dark] .money em{color:#8cb995}html[data-theme=dark] .gacha-machine{background:radial-gradient(ellipse,#2e3c2c,transparent 70%)}
/* Result feedback never blocks another interaction or changes accounting. */
.game,.surprise-card{position:relative}.round-feedback{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden;border-radius:16px}.result-toast{position:absolute;top:30%;left:50%;max-width:95%;transform:translateX(-50%);padding:12px 22px;border:2px solid #c8a84e;border-radius:10px;background:#fff5cf;color:#785217;font-weight:800;font-size:17px;white-space:nowrap;box-shadow:0 6px 20px #0002;animation:resultPop 1.9s ease both}.round-feedback.miss .result-toast{background:#eef0f4;color:#647181;border-color:#b4bfcb;font-size:15px}.confetti-bit{position:absolute;left:50%;top:52%;width:7px;height:11px;background:var(--color);animation:confettiBurst 1.65s cubic-bezier(.12,.65,.4,1) both;animation-delay:var(--delay)}.feedback-miss{animation:missNudge .4s ease}.miss-cloud{position:absolute;left:50%;top:21%;font-size:40px;animation:cloudDrift 1.8s ease both}html[data-theme=dark] .round-feedback.miss .result-toast{background:#212e3d;color:#bdd2e4;border-color:#536c82}@keyframes confettiBurst{0%{transform:translate(0,0) rotate(0);opacity:0}12%{opacity:1}65%{opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(var(--rot));opacity:0}}@keyframes resultPop{0%{opacity:0;transform:translate(-50%,15px) scale(.8)}16%,70%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-25px) scale(.96)}}@keyframes missNudge{25%{transform:translateX(-4px)}50%{transform:translateX(4px)}75%{transform:translateX(-2px)}}@keyframes cloudDrift{0%{opacity:0;transform:translate(-50%,10px)}25%,70%{opacity:.85}100%{opacity:0;transform:translate(-50%,-20px)}}@media(prefers-reduced-motion:reduce){.confetti-bit,.miss-cloud{display:none}.feedback-miss{animation:none}.result-toast{animation:none;opacity:1}}
@media(max-width:1100px){header{gap:15px}.header-actions{width:100%;justify-content:flex-end}.title-display{margin-left:auto}.header-actions .quiet{margin-left:0}.masthead-title p{max-width:310px}}@media(max-width:800px){header .brand{width:auto}.masthead-title{flex:1}.masthead-title h1{font-size:24px}.title-display{margin:0;flex-direction:row;align-items:center;width:100%}.header-actions{justify-content:flex-start}.title-frame{font-size:12px}.pixel-stage .dice-visual-group[data-count='3'] canvas{width:88px;height:88px}}@media(max-width:420px){.masthead-title{flex-basis:100%}.pixel-stage .dice-visual-group canvas{width:112px;height:112px}.pixel-stage .dice-visual-group[data-count='3'] canvas{width:80px;height:80px}.dialog-tabs{gap:0}.dialog-tabs button{font-size:11px}}

header{flex-wrap:wrap}header .brand{order:0}.masthead-title{order:1;width:auto;margin:0}.title-display{order:2}.header-actions{order:3}.mini-tabs{width:100%}@media(min-width:1101px){.header-actions{flex:1;min-width:280px}}@media(max-width:800px){.masthead-title{width:auto;min-width:220px}}

html[data-theme=dark] .activity-heading{border-bottom-color:#30363d}html[data-theme=dark] .activity-title-icon{background:#212b25}.confetti-bit{border-radius:1px;margin:0}
