/* MTTA — THE BLANK · shell UI (title, hud, nav, home, room, profile, photo, missions, settings, modals, toasts) */
:where(#ui) button { font-family: var(--font); cursor: pointer; border: 0; padding: 0; margin: 0; color: inherit; background: none; touch-action: manipulation; }
.ic { width: 46px; height: 46px; object-fit: contain; flex: none; pointer-events: none; }
.ic.s { width: 32px; height: 32px; }
body[data-screen="title"] #hud, body[data-screen="title"] #nav, body[data-screen="photo"] #hud, body[data-screen="photo"] #nav, body[data-screen="photo"] #gear, body[data-screen="profile"] #gear { display: none; }
body.busy #nav, body.busy #nav * { pointer-events: none !important; }
body.busy #nav { opacity: 0.35; }
#ui.photo-hidden { visibility: hidden; }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 95; }

/* buttons */
.sb { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 100px; min-width: 100px; padding: 0 28px; background: var(--ink) !important; color: var(--ivory) !important; font: 700 24px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; white-space: nowrap; transition: transform 0.12s var(--ease-pop), filter 0.12s; }
.sb.gh { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.sb.danger { color: #8a3a30 !important; box-shadow: inset 0 0 0 2px #8a3a30; background: transparent !important; }
.sb:hover { filter: brightness(1.25); }
.sb:active { transform: scale(0.94); }
.sb.off { opacity: 0.32; pointer-events: none !important; }
.sb svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dark .sb, .sb.lt { background: var(--paper) !important; color: var(--ink) !important; }

/* TITLE */
#scr-title { background: #0d0d0d; }
#scr-title .t-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#scr-title .t-vig { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0) 38%), radial-gradient(ellipse at 60% 45%, transparent 55%, rgba(0,0,0,0.35) 100%); }
#scr-title .t-hit { position: absolute; inset: 0; cursor: pointer; }
#scr-title .t-logo { position: absolute; left: 70px; top: 120px; pointer-events: none !important; animation: logoIn 0.6s var(--ease-pop) both, logoFloat 5s ease-in-out 0.6s infinite; }
#scr-title .t-logo img { display: block; max-width: 560px; max-height: 230px; width: auto; height: auto; pointer-events: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }
#scr-title .t-shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: left top; mask-position: left top; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.95) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat; animation: shine 4.2s ease-in-out 1.2s infinite; mix-blend-mode: screen; }
#scr-title .t-tag { position: absolute; left: 74px; top: 372px; font: 600 22px/1.2 var(--font); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 12px rgba(255,255,255,0.6); pointer-events: none; animation: fadeUp 0.6s 0.5s both; }
#scr-title .t-start { position: absolute; left: 0; width: 100%; top: 600px; text-align: center; font: 800 34px/1.2 var(--font); letter-spacing: 0.16em; color: var(--ivory); text-shadow: 0 2px 12px rgba(0,0,0,0.7); pointer-events: none; animation: pulse 2s ease-in-out infinite; }
#scr-title .t-start small { font-size: 24px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.8; margin-left: 12px; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-60px) scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes logoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes shine { 0% { background-position: -160% 0; } 40%, 100% { background-position: 260% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* HUD */
#hud { position: absolute; left: 132px; top: 22px; display: flex; gap: 14px; z-index: 20; pointer-events: none !important; }
#hud .pill { height: 64px; padding: 0 24px 0 9px; border-radius: 32px; display: flex; align-items: center; gap: 12px; background: var(--glass-dark); border: 1px solid rgba(255,255,255,0.14); color: var(--ivory); }
#hud .pill .ic { width: 46px; height: 46px; }
#hud .num { font: 700 34px/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 64px; }
#hud .rate { font: 600 22px/1 var(--mono); color: var(--g3); }
#hud .pill.pulse { animation: hudPulse 0.3s var(--ease-pop); }
@keyframes hudPulse { 50% { transform: scale(1.07); background: rgba(40,40,40,0.9); } }

/* NAV */
#nav { position: absolute; left: 14px; top: 148px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
#gear { position: absolute !important; right: 136px; top: 6px; width: 100px !important; height: 100px !important; z-index: 20; border-radius: 10px !important; display: flex; align-items: center; justify-content: center; background: var(--glass-dark) !important; color: var(--ivory); border: 1px solid rgba(255,255,255,0.14) !important; }
#gear svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#gear.act { background: var(--paper) !important; color: var(--ink); }
#gear:active { transform: scale(0.93); }
body[data-screen="title"] #gear, body.busy #gear { display: none; }
#nav .nv { position: relative; width: 112px; height: 104px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--glass-dark) !important; color: var(--ivory); border: 1px solid rgba(255,255,255,0.12) !important; font: 600 22px/1 var(--font); transition: transform 0.12s var(--ease-pop), background 0.15s; }
#nav .nv svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#nav .nv.act { background: var(--paper) !important; color: var(--ink); }
#nav .nv:active { transform: scale(0.93); }
.bd { position: absolute; top: 6px; right: 6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: #c9a96e; color: #121212; font: 700 20px/28px var(--mono); text-align: center; font-style: normal; box-shadow: 0 0 0 2px rgba(18,18,18,0.7); }
.bd.hide { display: none; }

/* HOME */
#scr-home .h-card { position: absolute; left: 1000px; top: 128px; width: 250px; cursor: pointer; padding: 14px 18px; transition: transform 0.12s var(--ease-pop); }
#scr-home .h-card:active { transform: scale(0.97); }
#scr-home .h-card.pop { animation: pop 0.4s var(--ease-pop); }
#scr-home .h-card .lc-name { font-size: 32px; margin: 6px 0 4px; overflow-wrap: anywhere; }
#scr-home .h-card .lc-off { font: 500 22px/1.2 var(--font); color: var(--g2); margin-bottom: 8px; }
#scr-home .h-tag { display: inline-block; padding: 4px 10px; margin-bottom: 8px; font: 700 22px/1.1 var(--font); color: #7a6130; border: 2px solid #c9a96e; border-radius: 4px; }
#scr-home .h-aff { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
#scr-home .h-aff b { font: 700 24px/1 var(--mono); }
#scr-home .h-days { font: 500 22px/1.2 var(--font); color: var(--g2); }
#scr-home .h-card .worn { font: 700 22px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
#scr-home .h-deco, #scr-home .h-photo { position: absolute; left: 1000px; width: 250px; height: 84px; font-size: 22px; line-height: 1.15; letter-spacing: 0.02em; padding: 0 14px; gap: 10px; white-space: normal; text-align: left; justify-content: flex-start; background: var(--glass) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
#scr-home .h-deco, #scr-home .h-photo { height: 100px; }
#scr-home .h-deco { top: 418px; }
#scr-home .h-photo { top: 530px; }
/* with the shop on: decorate + photo side by side, the shop below */
body.shop-on #scr-home .h-deco, body.shop-on #scr-home .h-photo { width: 121px; flex-direction: column; gap: 2px; padding: 0 6px; font-size: 22px; letter-spacing: 0; text-transform: none; line-height: 1.1; white-space: normal; text-align: center; }
body.shop-on #scr-home .h-photo { top: 418px; left: 1129px; }
body.shop-on #scr-home .h-deco svg, body.shop-on #scr-home .h-photo svg { width: 34px; height: 34px; }
#scr-home .h-shop { position: absolute; left: 1000px; top: 530px; width: 250px; height: 100px; font-size: 24px; gap: 10px; padding: 0 14px; }
#scr-home .h-chip { position: absolute; left: 50%; top: 636px; transform: translateX(-50%); padding: 14px 30px; border-radius: 30px; background: var(--glass-dark); color: var(--ivory); font: 600 26px/1 var(--font); letter-spacing: 0.06em; white-space: nowrap; transition: opacity 0.5s; pointer-events: none !important; }
#scr-home .h-chip.hide2 { opacity: 0; }
.floater { position: absolute; z-index: 50; display: none; align-items: center; gap: 6px; font: 800 30px/1 var(--mono); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.7); pointer-events: none !important; white-space: nowrap; }

/* ROOM editor */
#scr-room .r-panel { position: absolute; left: 880px; top: 124px; width: 386px; height: 584px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.r-tabs { display: flex; gap: 8px; flex: none; }
.r-tabs .tb { width: 84px; height: 84px; border-radius: 6px; font: 700 22px/1.1 var(--font); color: var(--g3); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); transition: transform 0.12s var(--ease-pop); }
.r-tabs .tb.sel { background: var(--paper) !important; color: var(--ink) !important; box-shadow: none; }
.r-tabs .tb:active { transform: scale(0.94); }
.r-grid { display: grid; grid-template-columns: repeat(3, 104px); gap: 16px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; scrollbar-width: none; padding: 4px 0 4px 6px; margin: 0 -4px; }
.r-grid::-webkit-scrollbar { width: 0; }
.r-grid.place { grid-template-columns: repeat(2, 160px); gap: 14px; padding-left: 8px; }
.r-grid .r-empty, .r-grid .r-note, .r-grid .r-sub { grid-column: 1 / -1; font: 500 24px/1.35 var(--font); color: var(--g3); }
.r-grid .r-empty { padding: 30px 8px; text-align: center; }
.r-grid .r-sub { font: 700 22px/1 var(--mono); letter-spacing: 0.14em; color: var(--ivory); margin-top: 4px; }
.r-bar { display: none; gap: 8px; flex: none; }
.r-foot { display: flex; }
.r-panel.has-sel .r-sel { display: flex; }
.r-bar .sb { width: 84px; min-width: 0; padding: 0 2px; font-size: 22px; letter-spacing: 0; text-transform: none; white-space: normal; line-height: 1.1; text-align: center; }
.r-sel .sb:nth-child(-n+2) { font-size: 40px; }
.rt { position: relative; width: 104px; height: 104px; border-radius: 6px; overflow: hidden; background: #222 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); transition: transform 0.12s var(--ease-pop); }
.rt:active { transform: scale(0.94); }
.rt .sw { position: absolute; inset: 0 0 30px 0; background-color: #2a2a2a; }
.rt .rl { position: absolute; left: 0; right: 0; bottom: 0; min-height: 30px; font: 600 21px/1.08 var(--font); text-align: center; background: rgba(12,12,12,0.9); color: var(--ivory); white-space: normal; overflow-wrap: anywhere; padding: 4px 3px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }
.rt .rs { position: absolute; top: 28px; left: 0; right: 0; text-align: center; font: 700 22px/1 var(--mono); font-style: normal; color: var(--g3); letter-spacing: 0.1em; }
.rt.sc .sw { background-size: cover; background-position: center; }
.rt.sel { outline: 3px solid #c9a96e; outline-offset: -3px; }
.rt.sel .rs { color: #c9a96e; }
.rt.sel::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: #c9a96e; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
.rt.dt { width: 160px; height: 156px; display: flex; flex-direction: column; background: #262626 !important; }
.rt.dt .sw { position: static; flex: 1; min-height: 0; background: #e6e2da center/contain no-repeat; }
.rt.dt .dn { font: 700 22px/1.2 var(--font); padding: 4px 6px 0; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rt.dt .dq { font: 600 22px/1.2 var(--font); padding: 0 6px 5px; color: var(--g3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rt.dt.dim { opacity: 0.45; }
.rt.ch { width: 96px; height: 84px; font: 600 22px/1.1 var(--font); color: var(--ivory); white-space: normal; overflow-wrap: anywhere; padding: 4px; display: flex; align-items: center; justify-content: center; text-align: center; }
.rt.ch.sel { background: var(--paper) !important; color: var(--ink); outline: none; }
.rt.ch.sel::after { display: none; }

/* PROFILE */
#scr-profile .p-panel { position: absolute; left: 140px; top: 124px; width: 620px; height: 584px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.p-head { display: flex; gap: 8px; flex: none; }
.p-head .sb { flex: none; padding: 0 12px; font-size: 24px; letter-spacing: 0; }
.p-head .p-back { width: 84px; font-size: 40px; }
.s-input { flex: 1; min-width: 0; height: 84px; padding: 0 20px; border: 0; border-radius: 6px; background: rgba(244,241,235,0.1); color: var(--ivory); font: 700 30px/1 var(--font); letter-spacing: 0.04em; box-shadow: inset 0 0 0 2px rgba(244,241,235,0.35); outline: none; user-select: text; -webkit-user-select: text; }
.s-input:focus { box-shadow: inset 0 0 0 3px #c9a96e; background: rgba(244,241,235,0.16); }
.s-input::placeholder { color: var(--g2); font-weight: 500; }
.p-off { font: 700 24px/1.2 var(--font); letter-spacing: 0.04em; padding: 0 4px; margin-top: 4px; }
.p-met { font: 500 22px/1.2 var(--font); color: var(--g3); padding: 0 4px; }
.p-aff { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.p-aff b { font: 700 26px/1 var(--mono); flex: none; }
.p-aff span { font: 600 22px/1 var(--mono); color: var(--g3); min-width: 90px; text-align: right; }
.p-aff .bar { height: 10px; }
.panel.dark .bar { background: rgba(255,255,255,0.18); }
.panel.dark .bar i { background: #c9a96e; }
.p-how { font: 500 22px/1.3 var(--font); color: var(--g3); padding: 0 4px; }
.p-tl { font: 700 22px/1 var(--mono); letter-spacing: 0.2em; color: var(--ivory); padding: 4px 4px 0; }
.p-titles { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; scrollbar-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.p-titles::-webkit-scrollbar { width: 0; }
.ti { min-height: 92px; padding: 6px 8px; border-radius: 6px; background: rgba(244,241,235,0.08) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); color: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; transition: transform 0.12s var(--ease-pop); }
.ti:active { transform: scale(0.95); }
.ti .tn { font: 700 24px/1.15 var(--font); overflow-wrap: anywhere; }
.ti .tr { font: 500 22px/1.15 var(--font); color: var(--g3); }
.ti .tr:empty { display: none; }
.ti.lock { opacity: 0.5; }
.ti.sel { background: var(--paper) !important; color: var(--ink); box-shadow: inset 0 0 0 3px #c9a96e; }

/* PHOTO */
#scr-photo .ph-panel { position: absolute; left: 936px; top: 124px; width: 330px; height: 584px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
#scr-photo .r-tabs .tb { width: 96px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 96px); gap: 8px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; scrollbar-width: none; }
.ph-grid::-webkit-scrollbar { width: 0; }
.ph-bot { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 0 6px; }
.ph-bot .sb { width: 84px; padding: 0; }
.ph-bot .sb svg { width: 40px; height: 40px; }
.shutter { width: 112px; height: 112px; border-radius: 50%; background: transparent !important; box-shadow: 0 0 0 4px var(--ivory); display: flex; align-items: center; justify-content: center; transition: transform 0.1s var(--ease-pop); }
.shutter i { display: block; width: 90px; height: 90px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 -6px 10px rgba(0,0,0,0.18); transition: transform 0.1s; }
.shutter:active i { transform: scale(0.88); }
.ph-prev img { display: block; width: 100%; max-height: 330px; object-fit: contain; background: #111; border-radius: 4px; -webkit-touch-callout: default; user-select: auto; -webkit-user-select: auto; }
.ph-prev .ph-hint { font: 500 22px/1.3 var(--font); color: var(--g2); margin-top: 10px; }

/* paper panels (missions/settings) */
.pp { position: absolute; display: flex; flex-direction: column; gap: 14px; padding: 6px 8px; overflow: hidden; }
#scr-missions .pp { left: 140px; top: 130px; width: 1120px; height: 570px; }
#scr-settings .pp { left: 300px; top: 130px; width: 860px; height: 570px; }
.m-tabs { display: flex; gap: 14px; align-items: center; flex: none; }
.m-tabs .tb { position: relative; height: 84px; padding: 0 30px; border-radius: 6px; font: 700 24px/1 var(--font); letter-spacing: 0.06em; color: var(--g2); box-shadow: inset 0 0 0 2px var(--line); transition: transform 0.12s var(--ease-pop); }
.m-tabs .tb.sel { background: var(--ink) !important; color: var(--ivory) !important; box-shadow: none; }
.m-tabs .tb:active { transform: scale(0.94); }
.m-tabs .note { margin-left: auto; font: 500 22px/1.2 var(--font); color: var(--g2); text-align: right; max-width: 280px; }
.m-body { flex: 1; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: var(--g3) transparent; padding: 4px 6px 4px 0; }
.m-body::-webkit-scrollbar { width: 6px; }
.m-body::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 3px; }
.mrow { display: flex; align-items: center; gap: 22px; min-height: 96px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.mrow .mi { flex: 1; min-width: 0; }
.mrow .mn { font: 700 26px/1.2 var(--font); }
.mrow .md { font: 500 22px/1.2 var(--font); color: var(--g2); margin-top: 4px; }
.mrow .mb { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.bar { flex: 1; height: 8px; background: rgba(18,18,18,0.12); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width 0.4s; }
.mp { font: 600 22px/1 var(--mono); color: var(--g1); min-width: 110px; text-align: right; }
.rw { display: flex; align-items: center; gap: 8px; font: 700 26px/1 var(--mono); min-width: 120px; }
.rw span { display: flex; align-items: center; gap: 6px; }
.mrow .sb { width: 170px; flex: none; padding: 0 12px; }
.mrow .ck { width: 170px; flex: none; display: flex; justify-content: center; color: var(--g2); }
.ck svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mrow.lock .mn { color: var(--g2); letter-spacing: 0.2em; }
.days { display: flex; gap: 8px; justify-content: center; }
.dc { position: relative; width: 132px; height: 200px; background: #fbfaf7; border-top: 4px solid var(--ink); box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.dc b { font: 700 22px/1 var(--mono); letter-spacing: 0.06em; color: var(--g2); }
.dc .rw { min-width: 0; font-size: 24px; flex-direction: column; gap: 8px; }
.dc.past { opacity: 0.45; }
.dc.today { box-shadow: 0 0 0 2px #c9a96e, 0 8px 16px rgba(0,0,0,0.15); border-top-color: #c9a96e; transform: translateY(-6px); }
.dc .tick { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; }
.modal-days .dc { width: 90px; height: 150px; gap: 8px; }
.modal-days .dc .rw { font-size: 22px; }
.modal-days .dc .ic { width: 30px; height: 30px; }
.modal-days { gap: 8px; }
.l-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 18px; }
.l-streak { font: 700 24px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g1); }

/* settings */
.s-rows { flex: 1; overflow-y: auto; touch-action: pan-y; scrollbar-width: none; }
.srow { display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 0 8px; border-bottom: 1px solid var(--line); font: 600 26px/1 var(--font); }
.tg { width: 150px; height: 90px; border-radius: 45px; background: #b9b5ae !important; position: relative; transition: background 0.2s; flex: none; }
.tg i { position: absolute; top: 7px; left: 7px; width: 76px; height: 76px; border-radius: 50%; background: var(--paper); transition: transform 0.25s var(--ease-pop); box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.tg.on { background: var(--ink) !important; }
.tg.on i { transform: translateX(60px); }
.seg { display: flex; flex: none; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); }
.seg button { width: 140px; height: 90px; font: 700 24px/1 var(--font); color: var(--ink); letter-spacing: 0.06em; }
.seg button.sel { background: var(--ink) !important; color: var(--ivory); }
.s-btns { display: flex; gap: 14px; flex: none; }
.s-btns .sb { flex: 1; padding: 0 10px; font-size: 22px; letter-spacing: 0.03em; }
.s-foot { flex: none; text-align: center; font: 500 22px/1 var(--font); color: var(--g2); letter-spacing: 0.06em; }

/* modal */
.sh-back { position: absolute; inset: 0; z-index: 60; background: rgba(8,8,8,0.55); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.18s both; }
.sh-back.out { opacity: 0; transition: opacity 0.16s; pointer-events: none !important; }
.sh-back.out * { pointer-events: none !important; }
.sh-modal { width: 740px; max-width: 760px; max-height: 600px; padding: 12px 14px; display: flex; flex-direction: column; gap: 18px; animation: pop 0.28s var(--ease-pop) both; }
.sh-modal h2 { margin: 0; font: 900 34px/1.1 var(--font); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.sh-mbody { font: 500 26px/1.45 var(--font); overflow-y: auto; touch-action: pan-y; scrollbar-width: none; text-align: center; color: var(--g1); }
.sh-mbtns { display: flex; gap: 14px; justify-content: center; flex: none; }
.sh-mbtns .sb { min-width: 200px; }
.sh-mbtns .sb.sec { order: 2; }
.o-amt { display: flex; align-items: center; justify-content: center; gap: 14px; font: 800 52px/1 var(--mono); color: var(--ink); margin: 14px 0 4px; }
.o-amt .ic { width: 64px; height: 64px; }
.o-away { font: 600 22px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g2); }
.o-sub { font: 600 24px/1.3 var(--font); color: var(--g1); margin-top: 12px; }
.s-reward { display: flex; gap: 26px; align-items: center; text-align: left; justify-content: center; }
.s-reward .thumb { width: 190px; height: 190px; border-radius: 10px; background: #e6e2da; object-fit: contain; flex: none; }
.s-reward .label-card { width: 340px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.82) translateY(20px); } to { opacity: 1; transform: none; } }

/* toasts */
#toasts { position: absolute; left: 0; width: 100%; top: 130px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 70; pointer-events: none !important; }
.toast { padding: 16px 34px; border-radius: 34px; background: rgba(18,18,18,0.92); color: var(--ivory); font: 600 26px/1.2 var(--font); letter-spacing: 0.04em; border: 1px solid rgba(255,255,255,0.16); animation: tIn 0.3s var(--ease-pop) both; pointer-events: none !important; max-width: 900px; text-align: center; }
.toast.out { animation: tOut 0.25s ease-in both; }
@keyframes tIn { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes tOut { to { opacity: 0; transform: translateY(-20px); } }
