/*
 * Surprise Box: the tool's own components, styled in the site's design language (24 Nov 2026, on the UltraCompress Pro
 * template). The first part is the shared block of Frequency Studio's file, unchanged (tokens, page, hero, buttons,
 * fields, windows, toasts, information sections). Base: /libs/site-pages.css (tokens, Inter and Space Grotesk, theme
 * toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). The second part is the tool: the stage
 * (its colours belong to the scene, not to the page theme: it is always an evening party), the gift box built of real
 * faces in 3D, the reveal, the letter of a gift, Lucky or Not, Pass the Parcel, full screen and the card with six tabs.
 * Light is the default; dark applies when <html> has no data-theme. Written by hand: this file is the source.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.24);
    --ok: #166534;
    --ok-soft: rgba(22, 101, 52, 0.09);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.08);
    --warn: #92400e;
    --warn-soft: rgba(217, 119, 6, 0.1);
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.26);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Small helpers ----- */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.block { display: block; }
.hint { color: var(--text-3); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link:hover { color: var(--link-hover); }
code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; padding: 0; font-family: inherit; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shell-hint { margin-top: 14px; }

/* ----- Fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.input, .select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.select { width: auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.select option { color: #0a0a14; background: #fff; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; color: var(--text); padding: 4px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.seg button:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.seg button[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--chip); font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chip .ico { width: 15px; height: 15px; color: var(--link); }
.chip:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Windows ----- */
.dialog { margin: auto; border: 1px solid var(--surface-border); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.dialog--narrow { width: min(420px, calc(100vw - 16px)); }
.dialog--wide { width: min(680px, calc(100vw - 16px)); }
.dialog::backdrop { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-title { margin: 0; font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease; }
.dialog-close:hover { border-color: var(--brand); color: var(--link); }
.dialog-body { padding: 20px; overflow-y: auto; max-height: calc(100vh - 210px); display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.confirm-message { margin: 0; color: var(--text); }

/* ----- Toasts ----- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 420px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast button { background: none; border: 0; padding: 0; color: #c4b5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast.good { border-left-color: #4ade80; }
.toast.bad { border-left-color: #f87171; }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* ===== Surprise Box components ===== */

/* ----- The site's text rules (p, ul, li, headings) must not reach the tool: same weight as the site's, loaded later ----- */
:where(.app-shell) p, :where(.app-shell) ul, :where(.app-shell) ol, :where(.app-shell) li, :where(.app-shell) dl, :where(.app-shell) dd, :where(.dialog) p, :where(.dialog) ul, :where(.dialog) li, :where(.sb-focus) p { margin: 0; line-height: 1.5; }
:where(.app-shell) h2, :where(.app-shell) h3, :where(.app-shell) h4, :where(.sb-focus) h2 { margin: 0; line-height: 1.25; }
:root { --head: 81px; }
@media (max-width: 639.98px) { :root { --head: 65px; } }
.app-shell { scroll-margin-top: calc(var(--head) + 16px); }
.info-section > p { color: var(--text-2); max-width: 60rem; margin: 0 0 1rem; }

/* ----- Cards: the site's white cards, one layer ----- */
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sub-title { font-size: 1rem; color: var(--text-strong); margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }

/* sliders and switches (Frequency Studio's) */
.value { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; padding: 0; background: transparent; cursor: pointer; --fill: 50%; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 9999px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--brand) 0, var(--brand-2) var(--fill), var(--surface-2) var(--fill), var(--surface-2) 100%); }
.range::-moz-range-track { height: 12px; border-radius: 9999px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--brand) 0, var(--brand-2) var(--fill), var(--surface-2) var(--fill), var(--surface-2) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.925rem; color: var(--text-strong); }
.switch-row .hint { font-weight: 400; display: block; margin-top: 2px; }
.switch-text { display: flex; flex-direction: column; min-width: 0; }
.switch { position: relative; width: 52px; height: 44px; flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.switch::before { content: ""; position: absolute; left: 3px; top: 8px; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 12px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.switch[aria-checked="true"]::before { background: var(--gradient-brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 16px; }

/* ----- Layout: the stage beside the card with six tabs; one above the other on narrow screens ----- */
.sb-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; --stage-h: clamp(580px, calc(100vh - var(--head) - 32px), 700px); }
@supports (height: 100svh) { .sb-layout { --stage-h: clamp(580px, calc(100svh - var(--head) - 32px), 700px); } }
@media (min-width: 1000px) { .sb-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); --stage-h: clamp(640px, calc(100vh - var(--head) - 48px), 800px); } }
.sb-slot { position: relative; min-width: 0; height: var(--stage-h); border-radius: 16px; background: #120a26; scroll-margin-top: calc(var(--head) + 12px); }
.sb-slot-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #e9d5ff; font-weight: 600; }
main [hidden], .dialog [hidden], .sb-focus [hidden] { display: none !important; }

/* ----- The stage. Its colours belong to the scene, not to the page theme: it is always an evening party. ----- */
@property --lo { syntax: '<number>'; inherits: true; initial-value: 1; }
.sb-stage {
    position: absolute; inset: 0; overflow: hidden; border-radius: 16px; isolation: isolate;
    --ink: #fdf4ff; --ink-2: rgba(253, 244, 255, 0.9); --ink-3: rgba(253, 244, 255, 0.76); --hair: rgba(253, 244, 255, 0.24); --hair-strong: rgba(253, 244, 255, 0.58);
    --glass: rgba(24, 12, 48, 0.62); --sheet: rgba(26, 14, 52, 0.95); --focus: #f5d0fe; --glow: #f5d0fe; --aura: 0.32; --ray: rgba(255, 255, 255, 0.11);
    --bg1: #3d1b70; --bg2: #1e0f40; --bg3: #0b0619;
    color: var(--ink); background: radial-gradient(115% 85% at 50% 32%, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
    transition: background 0.6s ease;
}
.sb-stage[data-tint="gold"] { --bg1: #6e4510; --bg2: #2f1b07; --bg3: #0f0903; }
.sb-stage[data-tint="rose"] { --bg1: #6b1739; --bg2: #2d0a1d; --bg3: #11040b; }
.sb-stage[data-tint="night"] { --bg1: #1c2a6b; --bg2: #0c1235; --bg3: #040716; }
.sb-stage[data-tint="green"] { --bg1: #0f5137; --bg2: #072619; --bg3: #020d08; }
.sb-stage[data-tint="sunset"] { --bg1: #7a2e12; --bg2: #331006; --bg3: #120502; }
.sb-stage[data-tint="ocean"] { --bg1: #0b4a6e; --bg2: #06223a; --bg3: #020b14; }
.sb-stage :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sb-stage :where(p, h2, h3) { color: var(--ink); } /* the site colours every p; the stage is always dark */
.sb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 4; pointer-events: none; }

/* twinkling sky and soft lights */
.sb-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sb-sky::before, .sb-sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5; }
.sb-sky::before { width: 46%; height: 46%; left: -8%; top: 4%; background: radial-gradient(closest-side, rgba(236, 72, 153, 0.55), transparent); animation: sb-drift 18s ease-in-out infinite alternate; }
.sb-sky::after { width: 50%; height: 50%; right: -10%; top: 30%; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.5), transparent); animation: sb-drift 22s ease-in-out infinite alternate-reverse; }
.sb-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.25; animation: sb-twinkle 3.2s ease-in-out infinite; }
.sb-sky i:nth-child(1) { left: 8%; top: 14%; } .sb-sky i:nth-child(2) { left: 18%; top: 36%; animation-delay: 0.6s; width: 2px; height: 2px; }
.sb-sky i:nth-child(3) { left: 27%; top: 9%; animation-delay: 1.3s; } .sb-sky i:nth-child(4) { left: 39%; top: 22%; animation-delay: 2.1s; width: 2px; height: 2px; }
.sb-sky i:nth-child(5) { left: 52%; top: 7%; animation-delay: 0.9s; width: 4px; height: 4px; } .sb-sky i:nth-child(6) { left: 63%; top: 18%; animation-delay: 1.8s; }
.sb-sky i:nth-child(7) { left: 74%; top: 10%; animation-delay: 0.3s; width: 2px; height: 2px; } .sb-sky i:nth-child(8) { left: 86%; top: 24%; animation-delay: 2.5s; }
.sb-sky i:nth-child(9) { left: 92%; top: 46%; animation-delay: 1.1s; width: 2px; height: 2px; } .sb-sky i:nth-child(10) { left: 6%; top: 58%; animation-delay: 2.8s; }
.sb-sky i:nth-child(11) { left: 14%; top: 76%; animation-delay: 0.4s; width: 2px; height: 2px; } .sb-sky i:nth-child(12) { left: 82%; top: 68%; animation-delay: 1.6s; width: 4px; height: 4px; }
.sb-sky i:nth-child(13) { left: 70%; top: 40%; animation-delay: 2.2s; width: 2px; height: 2px; } .sb-sky i:nth-child(14) { left: 33%; top: 52%; animation-delay: 3s; width: 2px; height: 2px; }
.sb-sky i:nth-child(15) { left: 46%; top: 34%; animation-delay: 0.7s; width: 2px; height: 2px; } .sb-sky i:nth-child(16) { left: 95%; top: 8%; animation-delay: 1.9s; }
@keyframes sb-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.3); } }
@keyframes sb-drift { from { transform: translate(0, 0); } to { transform: translate(8%, 6%); } }

/* the floor, the glow behind the box and the rays of light */
.sb-floor { position: absolute; left: 50%; bottom: 0; width: 140%; height: 46%; transform: translateX(-50%); z-index: 0; pointer-events: none; background: radial-gradient(50% 42% at 50% 30%, rgba(255, 255, 255, 0.1), transparent 70%); }
.sb-aura { position: absolute; left: 50%; top: var(--box-y, 48%); width: min(620px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 72%); opacity: var(--aura); transition: opacity 0.4s ease, background 0.4s ease; }
.sb-rays { position: absolute; left: 50%; top: var(--box-y, 48%); width: 1500px; height: 1500px; margin: -750px 0 0 -750px; z-index: 1; pointer-events: none; opacity: 0; transform: scale(0.3);
    background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 6deg, transparent 6deg 15deg);
    -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.7) 18%, transparent 46%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.7) 18%, transparent 46%);
    transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1); }
.sb-stage.is-burst .sb-rays { opacity: 1; transform: scale(1); animation: sb-spin 26s linear infinite; }
@keyframes sb-spin { from { rotate: 0deg; } to { rotate: 360deg; } }

/* the bar at the top */
.sb-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.sb-top > * { pointer-events: auto; }
.sb-pill { display: flex; flex-direction: column; min-width: 0; max-width: min(64%, 360px); padding: 8px 14px; border-radius: 14px; border: 1px solid var(--hair); background: var(--glass); }
.sb-pill-main { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pill-sub { font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-tools { display: flex; gap: 8px; flex: none; }
.sb-tool { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--hair); background: var(--glass); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.sb-tool:hover { border-color: var(--hair-strong); background: rgba(253, 244, 255, 0.14); }
#soundBtn[aria-pressed="true"] .ico-off, #soundBtn[aria-pressed="false"] .ico-on { display: none; }

/* scenes */
.sb-scene { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 70px 12px 150px; }
.sb-boxzone { position: relative; display: flex; flex-direction: column; align-items: center; transition: opacity 0.5s ease, transform 0.6s ease; }
.sb-stage[data-phase="reveal"] #sceneOpen .sb-boxzone, .sb-stage[data-phase="letter"] #sceneOpen .sb-boxzone { opacity: 0; transform: translateY(40px) scale(0.85); pointer-events: none; }
.sb-boxbtn { position: relative; display: block; padding: 18px 28px 22px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 28px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sb-boxbtn:disabled { cursor: default; }
.sb-boxbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sb-boxbtn:not(:disabled):hover .sb-holder { transform: translateY(-6px) scale(1.03); }
.sb-holder { display: block; transition: transform 0.3s ease; }
.sb-shadow { position: absolute; left: 50%; bottom: 10px; width: calc(var(--s, 170px) * 1.3); height: calc(var(--s, 170px) * 0.24); transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }

/* ----- The gift box: real faces in 3D, the ribbon painted across them, the bow two crossed planes ----- */
.sb-box {
    --s: 170px; --bh: calc(var(--s) * 0.72); --lw: calc(var(--s) * 1.1); --lh: calc(var(--s) * 0.24); --rw: calc(var(--s) * 0.17);
    --lid-y: calc(var(--s) * 0.04 - var(--bh) / 2 - var(--lh) / 2); --lift: 0px; --leak: 0;
    --wa: #ec4899; --wb: #fbcfe8; --rb: #fbbf24; --pat: none; --pat-size: 24px 24px;
    --band-v: linear-gradient(90deg, transparent calc(50% - var(--rw) / 2), var(--rb) 0, var(--rb) calc(50% + var(--rw) / 2), transparent 0);
    --band-h: linear-gradient(0deg, transparent calc(50% - var(--rw) / 2), var(--rb) 0, var(--rb) calc(50% + var(--rw) / 2), transparent 0);
    --band-shade: linear-gradient(90deg, transparent calc(50% - var(--rw) / 2), rgba(0, 0, 0, 0.14) 0, transparent calc(50% - var(--rw) / 2 + 3px), transparent calc(50% + var(--rw) / 2 - 3px), rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.14) calc(50% + var(--rw) / 2), transparent 0);
    position: relative; display: block; width: calc(var(--s) * 1.4); height: calc(var(--s) * 1.5); perspective: calc(var(--s) * 6); perspective-origin: 50% 20%;
}
.bx { position: absolute; left: 50%; top: 64%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(-32deg); }
.sb-stage:not(.is-still) .sb-box[data-state="idle"] .bx { animation: bx-idle 7s ease-in-out infinite; }
@keyframes bx-idle { 0%, 100% { transform: translateY(0) rotateX(-20deg) rotateY(-40deg); } 50% { transform: translateY(calc(var(--s) * -0.05)) rotateX(-16deg) rotateY(-20deg); } }
.bx-body, .bx-lid, .bx-bow { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.bx .f { position: absolute; left: 0; top: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: var(--lo); background-color: var(--wa); background-image: var(--band-shade), var(--band-v), var(--pat); background-size: 100% 100%, 100% 100%, var(--pat-size); }
.bx .f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 45%), rgba(0, 0, 0, var(--shade, 0)); }
.bx-body .f::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; z-index: 1; background: linear-gradient(to bottom, var(--glow), transparent); opacity: var(--leak); mix-blend-mode: screen; transition: opacity 0.25s ease; }
.bx-body .fr, .bx-body .bk, .bx-body .rt, .bx-body .lf { width: var(--s); height: var(--bh); margin: calc(var(--bh) / -2) 0 0 calc(var(--s) / -2); }
.bx-body .fr { transform: translateZ(calc(var(--s) / 2)); }
.bx-body .bk { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); --shade: 0.32; }
.bx-body .rt { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); --shade: 0.24; }
.bx-body .lf { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); --shade: 0.1; }
.bx-body .bt { width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); background: #120a1c; }
.bx-body .in { width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 3px)); background: radial-gradient(circle, #ffffff 0, var(--glow) 34%, #1c1030 80%); backface-visibility: visible; -webkit-backface-visibility: visible; }
.bx-body .in::after { display: none; }
.bx-lid { transform: translateY(calc(var(--lid-y) - var(--lift))); transition: transform 0.18s ease; }
.bx-lid .f { --pat-size-l: var(--pat-size); }
.bx-lid .lfr, .bx-lid .lbk, .bx-lid .lrt, .bx-lid .llf { width: var(--lw); height: var(--lh); margin: calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2); }
.bx-lid .lfr { transform: translateZ(calc(var(--lw) / 2)); }
.bx-lid .lbk { transform: rotateY(180deg) translateZ(calc(var(--lw) / 2)); --shade: 0.32; }
.bx-lid .lrt { transform: rotateY(90deg) translateZ(calc(var(--lw) / 2)); --shade: 0.24; }
.bx-lid .llf { transform: rotateY(-90deg) translateZ(calc(var(--lw) / 2)); --shade: 0.1; }
.bx-lid .lt, .bx-lid .lbt { width: var(--lw); height: var(--lw); margin: calc(var(--lw) / -2) 0 0 calc(var(--lw) / -2); }
.bx-lid .lt { transform: rotateX(90deg) translateZ(calc(var(--lh) / 2)); background-image: var(--band-v), var(--band-h), var(--pat); background-size: 100% 100%, 100% 100%, var(--pat-size); }
.bx-lid .lt::after { background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 55%); }
.bx-lid .lbt { transform: rotateX(-90deg) translateZ(calc(var(--lh) / 2)); background: #2a1a3a; }
.bx-bow { transform: translateY(calc(var(--lh) / -2)); }
.bx-bow svg { position: absolute; left: calc(var(--s) * -0.4); top: calc(var(--s) * -0.42 + 3px); width: calc(var(--s) * 0.8); max-width: none; height: calc(var(--s) * 0.44); overflow: visible; opacity: var(--lo); } /* the site caps svg at 100% of a holder that is 0 wide */
.bx-bow svg + svg { transform: rotateY(90deg); }
.bx-bow .bw-a { fill: var(--rb); }
.bx-bow .bw-b { fill: rgba(0, 0, 0, 0.2); }
.bx-bow .bw-c { fill: rgba(255, 255, 255, 0.35); }
.sb-box.no-bow .bx-bow { display: none; }

/* shaking, charging and opening */
.sb-holder.is-shake { animation: sb-shake 0.42s ease-out; }
@keyframes sb-shake {
    0% { transform: none; } 15% { transform: translate(calc(var(--amp, 1) * -5px), calc(var(--amp, 1) * -4px)) rotate(calc(var(--amp, 1) * -4deg)); }
    32% { transform: translate(calc(var(--amp, 1) * 5px), calc(var(--amp, 1) * -2px)) rotate(calc(var(--amp, 1) * 4deg)); }
    50% { transform: translate(calc(var(--amp, 1) * -4px), 0) rotate(calc(var(--amp, 1) * -3deg)); }
    68% { transform: translate(calc(var(--amp, 1) * 3px), calc(var(--amp, 1) * -1px)) rotate(calc(var(--amp, 1) * 2deg)); }
    84% { transform: translate(calc(var(--amp, 1) * -1px), 0) rotate(calc(var(--amp, 1) * -1deg)); } 100% { transform: none; }
}
.sb-holder.is-charge { animation: sb-charge 0.09s linear infinite alternate; }
@keyframes sb-charge { from { transform: translate(calc(var(--amp, 1) * -3px), calc(var(--amp, 1) * -2px)) rotate(calc(var(--amp, 1) * -2deg)); } to { transform: translate(calc(var(--amp, 1) * 3px), 0) rotate(calc(var(--amp, 1) * 2deg)); } }
.sb-box[data-state="open"] .bx-lid { animation: lid-fly 1s cubic-bezier(0.18, 0.7, 0.3, 1) forwards; }
@keyframes lid-fly {
    0% { transform: translateY(var(--lid-y)); --lo: 1; }
    70% { --lo: 1; }
    100% { transform: translateY(calc(var(--lid-y) - var(--s) * 3)) translateX(calc(var(--s) * 0.7)) translateZ(calc(var(--s) * 0.5)) rotateX(-70deg) rotateZ(38deg); --lo: 0; }
}
.sb-box[data-state="open"] .bx-bow { animation: bow-pop 0.6s ease-out forwards; }
@keyframes bow-pop { 0% { transform: translateY(calc(var(--lh) / -2)); } 100% { transform: translateY(calc(var(--lh) / -2 - var(--s) * 0.5)) rotateY(300deg) scale(1.25); } }
.sb-box[data-state="open"] .bx-body .in { animation: in-glow 1.2s ease-out forwards; }
@keyframes in-glow { 0% { filter: brightness(1); } 30% { filter: brightness(2.2); } 100% { filter: brightness(1.3); } }
.sb-box[data-state="flop"] .bx-lid { animation: lid-flop 1.1s cubic-bezier(0.3, 1.3, 0.5, 1) forwards; }
@keyframes lid-flop {
    0% { transform: translateY(var(--lid-y)); }
    30% { transform: translateY(calc(var(--lid-y) - var(--s) * 0.35)) rotateZ(-12deg); }
    100% { transform: translateY(calc(var(--bh) / 2 - var(--lw) / 2 + var(--s) * 0.02)) translateX(calc(var(--s) * 0.95)) rotateZ(92deg); }
}
.sb-box[data-state="flop"] .bx-bow { animation: bow-droop 1s ease-in forwards; }
@keyframes bow-droop { to { transform: translateY(calc(var(--lh) / -2)) rotateX(60deg) scale(0.85); } }

/* the gift tag */
.sb-tag { position: absolute; left: calc(50% + var(--s, 170px) * 0.36); bottom: 26px; z-index: 2; display: flex; flex-direction: column; width: max-content; min-width: 92px; max-width: min(180px, 44vw); padding: 6px 12px 7px 20px; border-radius: 6px 14px 14px 6px; background: #fff8e7; color: #3b2a14; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transform: rotate(-7deg); transform-origin: left center; pointer-events: none; }
.sb-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #3b2a14; opacity: 0.55; }
.sb-tag-to { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.sb-tag-from { font-size: 0.78rem; line-height: 1.3; color: #6b5435; overflow-wrap: anywhere; }
.sb-tag-from:empty { display: none; }

/* the lock of a gift with an opening date */
.sb-lock { position: absolute; left: 12px; right: 12px; top: 72px; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sb-lock-title { font-weight: 700; color: var(--ink-2); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sb-lock-date { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; }
.sb-count { display: flex; gap: 8px; margin-top: 6px; }
.sb-count span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--hair); background: var(--glass); font-size: 0.72rem; color: var(--ink-3); }
.sb-count b { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.5rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ----- What was inside ----- */
.sb-reveal { position: absolute; left: 0; right: 0; top: 60px; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px 18px; text-align: center; overflow-y: auto; }
.sb-banner { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rc, #fff); text-shadow: 0 0 18px var(--rc, #fff), 0 2px 0 rgba(0, 0, 0, 0.35); }
.sb-banner span { display: inline-block; animation: letter-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes letter-pop { from { transform: translateY(18px) scale(0.3); opacity: 0; } }
.sb-charm { --rc: #34d399; --rd: #047857; position: relative; isolation: isolate; flex: none; width: 148px; height: 148px; border-radius: 34px; display: grid; place-items: center; box-shadow: 0 0 42px var(--rc), 0 18px 40px rgba(0, 0, 0, 0.45); }
/* the face on its own layer, above the legendary ring (inside the card's own layer a z-index -1 child paints over the card's background) */
.sb-charm::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.4), transparent 62%), linear-gradient(150deg, var(--rc), var(--rd)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45); }
.sb-charm-emoji { font-size: 84px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sb-charm-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sb-charm-shine::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.6) 48%, transparent 58%); transform: translateX(-60%); animation: sb-shine 2.8s ease-in-out infinite 1.2s; }
@keyframes sb-shine { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.sb-charm[data-rarity="oddity"] .sb-charm-shine, .sb-charm[data-rarity="common"] .sb-charm-shine { display: none; }
.sb-charm[data-rarity="legendary"]::before { content: ""; position: absolute; inset: -5px; border-radius: 38px; z-index: -1; background: conic-gradient(#fde68a, #f472b6, #a78bfa, #60a5fa, #34d399, #fde68a); animation: sb-spin 3s linear infinite; filter: blur(1px); }
.sb-charm-stars { position: absolute; right: -6px; top: -8px; padding: 2px 8px; border-radius: 9999px; background: #fef3c7; color: #92400e; font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.sb-charm-stars:empty { display: none; }
.sb-reveal.is-in .sb-charm { animation: charm-rise 1.15s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes charm-rise { 0% { transform: translateY(150px) scale(0.2) rotateY(0deg); opacity: 0; } 35% { opacity: 1; } 72% { transform: translateY(-14px) scale(1.12) rotateY(620deg); } 100% { transform: none; } }
.sb-reveal.is-in > :not(.sb-charm):not(.sb-banner) { animation: rise-in 0.5s ease-out both; }
.sb-reveal.is-in > .sb-rv-name { animation-delay: 0.75s; }
.sb-reveal.is-in > .sb-rv-meta { animation-delay: 0.85s; }
.sb-reveal.is-in > .sb-rv-line { animation-delay: 0.95s; }
.sb-reveal.is-in > .sb-note { animation: unfold 0.6s ease-out both 1.15s; }
.sb-reveal.is-in > .sb-rv-actions { animation-delay: 1.35s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes unfold { from { opacity: 0; transform: perspective(600px) rotateX(-75deg); } }
.sb-rv-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; color: #fff; }
.sb-rv-meta { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.sb-rv-meta .sb-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9999px; background: #fde047; color: #422006; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; vertical-align: 1px; }
.sb-rv-line { max-width: 30rem; color: var(--ink-2); font-style: italic; }
.sb-note { width: min(100%, 420px); padding: 12px 16px; border-radius: 14px; background: #fffaf0; color: #3b2a14; text-align: left; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); transform-origin: top center; background-image: repeating-linear-gradient(transparent 0 23px, rgba(146, 64, 14, 0.08) 23px 24px); }
.sb-note-kind { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #9a3412; margin-bottom: 2px; }
.sb-note-text { font-size: 1rem; line-height: 1.5; color: #3b2a14; }
.sb-note:empty, .sb-note.is-empty { display: none; }
.sb-rv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.sb-ghost { background: rgba(253, 244, 255, 0.1); color: var(--ink); border: 1px solid var(--hair-strong); padding: 11px 23px; }
.sb-ghost:hover { background: rgba(253, 244, 255, 0.18); color: #fff; transform: translateY(-2px); }

/* a gift's letter */
.sb-letter { position: absolute; left: 0; right: 0; top: 60px; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px 18px; overflow-y: auto; text-align: center; }
.sb-letter > :not(.sb-rv-actions):not(.sb-letter-emoji) { width: min(100%, 460px); }
.sb-letter-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }
.sb-letter-head { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); overflow-wrap: anywhere; }
.sb-letter-msg { padding: 16px 18px; border-radius: 16px; background: #fffaf0; color: #3b2a14; text-align: left; font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42); }
.sb-letter-msg:empty { display: none; }
.sb-letter-from { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sb-letter-charm { color: var(--ink-2); font-weight: 600; }
.sb-letter-note { font-size: 0.8rem; color: var(--ink-3); }
.sb-letter.is-in > * { animation: rise-in 0.55s ease-out both; }
.sb-letter.is-in > :nth-child(2) { animation-delay: 0.2s; } .sb-letter.is-in > :nth-child(3) { animation: unfold 0.7s ease-out both 0.4s; }
.sb-letter.is-in > :nth-child(4) { animation-delay: 0.7s; } .sb-letter.is-in > :nth-child(5) { animation-delay: 0.85s; } .sb-letter.is-in > :nth-child(6) { animation-delay: 0.95s; } .sb-letter.is-in > :nth-child(7) { animation-delay: 1.1s; }

/* the dock at the foot of the stage */
.sb-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px 16px; background: linear-gradient(180deg, rgba(10, 5, 22, 0) 0, rgba(10, 5, 22, 0.78) 38%, rgba(10, 5, 22, 0.92) 100%); }
.sb-stage[data-phase="reveal"] .sb-dock, .sb-stage[data-phase="letter"] .sb-dock { visibility: hidden; }
.sb-hint { min-height: 1.5em; color: var(--ink); font-weight: 600; text-align: center; max-width: 34rem; }
.sb-dock-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sb-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 170px; height: 52px; padding: 0 28px; border: 0; border-radius: 9999px; background: var(--gradient-brand); color: #fff; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 8px 24px rgba(139, 92, 246, 0.42); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sb-main:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139, 92, 246, 0.55); }
.sb-main:disabled { opacity: 0.5; cursor: not-allowed; }
.sb-sec { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 52px; padding: 0 22px; border: 1px solid var(--hair-strong); border-radius: 9999px; background: rgba(253, 244, 255, 0.08); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.sb-sec:hover { background: rgba(253, 244, 255, 0.16); transform: translateY(-2px); }
.sb-luck { display: flex; gap: 4px; }
.sb-luck:empty { display: none; }
.sb-luck i, .sb-pips i { display: block; width: 14px; height: 14px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(253, 244, 255, 0.24); }
.sb-luck i.on { background: #fbbf24; }

/* ----- Lucky or Not ----- */
.sb-call { position: absolute; left: 12px; right: 12px; top: 74px; z-index: 3; text-align: center; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.6rem); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.sb-call.is-good { color: #fde68a; }
.sb-lucky { position: relative; width: 100%; height: 100%; }
.sb-lbox { position: absolute; left: 0; top: 50%; padding: 0; border: 0; background: transparent; color: inherit; cursor: default; border-radius: 20px; transform: translate(var(--x, 0px), -50%); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sb-lbox .sb-box { margin: 0 auto; }
.sb-lbox.is-pickable { cursor: pointer; }
.sb-lbox.is-pickable:hover .sb-box, .sb-lbox.is-pickable:focus-visible .sb-box { transform: translateY(-8px); }
.sb-lbox .sb-box { transition: transform 0.25s ease; }
.sb-lbox:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sb-lnum { display: block; margin: 2px auto 0; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: var(--glass); border: 1px solid var(--hair); font-weight: 700; font-size: 0.9rem; text-align: center; color: var(--ink); }
.sb-lbox.is-glow .sb-box::before { content: ""; position: absolute; left: 50%; top: 55%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 191, 36, 0.8), transparent); animation: sb-pulse 0.8s ease-in-out infinite alternate; }
@keyframes sb-pulse { from { opacity: 0.55; } to { opacity: 1; } }
.sb-lpeek { position: absolute; left: 50%; top: -18%; width: 64px; height: 64px; margin-left: -32px; display: grid; place-items: center; border-radius: 18px; font-size: 40px; line-height: 1; background: linear-gradient(150deg, var(--rc, #34d399), var(--rd, #047857)); box-shadow: 0 0 22px var(--rc, #34d399), 0 8px 18px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(30px) scale(0.4); transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); pointer-events: none; z-index: 2; }
.sb-lbox.is-shown .sb-lpeek { opacity: 1; transform: none; }
.sb-lbox.is-dim { opacity: 0.55; }
.sb-lbox.is-picked .sb-lnum { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.sb-lbox.is-star.is-shown .sb-lpeek { box-shadow: 0 0 0 3px #fde68a, 0 0 30px #fbbf24, 0 8px 18px rgba(0, 0, 0, 0.4); }
.sb-lresult { position: absolute; left: 12px; right: 12px; bottom: 146px; z-index: 3; display: flex; justify-content: center; }
.sb-mini { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 16px 8px 8px; border-radius: 16px; border: 1px solid var(--hair); background: var(--sheet); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: rise-in 0.5s ease-out both; text-align: left; }
.sb-mini-emoji { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 32px; background: linear-gradient(150deg, var(--rc, #34d399), var(--rd, #047857)); }
.sb-mini-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; color: #fff; }
.sb-mini-meta { font-size: 0.85rem; color: var(--ink-2); }

/* ----- Pass the Parcel ----- */
.sb-parcelzone { z-index: 2; }
.sb-layers { margin-top: 4px; padding: 4px 14px; border-radius: 9999px; background: var(--glass); border: 1px solid var(--hair); font-weight: 700; font-size: 0.95rem; }
.sb-layers:empty { display: none; }
.sb-stage:not(.is-still)[data-phase="music"] #parcelHolder { animation: sb-bounce 0.469s ease-in-out infinite; }
@keyframes sb-bounce { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.sb-holder.is-rip { animation: sb-rip 0.45s ease-out; }
@keyframes sb-rip { 0% { transform: scale(1); } 30% { transform: scale(1.15, 0.85); } 60% { transform: scale(0.92, 1.08); } 100% { transform: scale(1); } }
.sb-notes { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.sb-stage[data-phase="music"] .sb-notes { opacity: 1; }
.sb-notes i { position: absolute; bottom: 30%; font-style: normal; font-size: 26px; color: rgba(253, 244, 255, 0.75); animation: sb-note 3s linear infinite; }
.sb-notes i:nth-child(1) { left: 18%; } .sb-notes i:nth-child(2) { left: 30%; animation-delay: 0.5s; } .sb-notes i:nth-child(3) { left: 44%; animation-delay: 1.4s; }
.sb-notes i:nth-child(4) { left: 58%; animation-delay: 0.9s; } .sb-notes i:nth-child(5) { left: 70%; animation-delay: 2s; } .sb-notes i:nth-child(6) { left: 82%; animation-delay: 2.5s; }
@keyframes sb-note { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) rotate(15deg); opacity: 0; } }
.sb-task { position: absolute; left: 50%; top: 70px; z-index: 3; width: min(calc(100% - 24px), 440px); transform: translateX(-50%); padding: 14px 18px; border-radius: 16px; background: #fffaf0; color: #3b2a14; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); text-align: center; animation: unfold 0.6s ease-out both; transform-origin: top center; }
.sb-task-kind { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #9a3412; }
.sb-task-text { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.4; color: #3b2a14; }

/* ----- Full screen: the stage in the browser's top layer ----- */
.sb-focus { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0619; color: #ffffff; overflow: hidden; }
.sb-focus::backdrop { background: #0b0619; }
.sb-focus-slot { position: absolute; inset: 0; }
.sb-stage.is-focus { border-radius: 0; }

/* ----- The card with six tabs ----- */
.sb-panel { padding: 0; gap: 0; overflow: hidden; }
@media (min-width: 1000px) { .sb-panel { height: var(--stage-h); } }
.sb-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px; border-bottom: 1px solid var(--surface-border); flex: none; }
.sb-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-family: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.sb-tabs button span { font-size: 1.15rem; line-height: 1; }
.sb-tabs button:hover { color: var(--link); }
.sb-tabs button[aria-selected="true"] { background: var(--tint-brand); color: var(--link); box-shadow: inset 0 0 0 1px var(--tint-brand-border); }
.sb-tabs button:focus-visible, .sb-pane:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sb-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.sb-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* the daily golden box */
.sb-daily { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(217, 119, 6, 0.38); background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(236, 72, 153, 0.08)); }
.sb-daily-head { display: flex; align-items: center; gap: 12px; }
.sb-daily-ico { font-size: 2rem; line-height: 1; }
.sb-daily-text { color: var(--text-2); font-size: 0.9rem; }
.sb-daily-text b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.sb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.sb-week li { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 44px; width: 100%; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--text-2); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sb-week li.done { background: linear-gradient(135deg, #f59e0b, #ec4899); border-color: transparent; color: #fff; }
.sb-week li.next { border-color: #d97706; color: var(--text-strong); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2); }
.sb-week li.big::after { content: attr(data-mark); position: absolute; right: -6px; top: -8px; font-size: 0.8rem; }

/* choices */
.sb-series button { padding: 8px 12px; }
.sb-pips { display: flex; gap: 6px; }
.sb-pips i { width: 22px; height: 22px; background: var(--line-strong); }
.sb-pips i.on { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.sb-odds { border: 1px solid var(--surface-border); border-radius: 12px; background: var(--surface-2); }
.sb-odds summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--text-strong); }
.sb-odds > :not(summary) { margin: 0 14px 12px; }
.table-wrap { overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sb-table th, .sb-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.sb-table th { color: var(--text-strong); font-weight: 700; }
.sb-table td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.sb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.sb-recent { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sb-recent li { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 22px; line-height: 1; border: 2px solid var(--rc, var(--line)); background: var(--surface-2); }
.sb-recent .sb-empty { width: auto; height: auto; border: 0; background: none; font-size: 0.9rem; color: var(--text-3); }
.sb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sb-stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sb-stats dt { font-size: 0.8rem; color: var(--text-2); }
.sb-stats dd { margin: 0; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* the gift form */
.sb-received { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); }
.sb-gift { display: flex; flex-direction: column; gap: 16px; }
.sb-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.sb-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-swatches button { position: relative; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; background: var(--sw); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sb-swatches button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--sw2, transparent); opacity: 0.9; }
.sb-swatches button:hover { transform: scale(1.1); }
.sb-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brand); }
.sb-swatches button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sb-linkbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); }

/* the album */
.sb-progress { display: flex; align-items: center; gap: 14px; }
.sb-ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.sb-ring span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text-strong); }
.sb-set { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sb-set-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-strong); }
.sb-set-head .sb-set-count { margin-left: auto; font-size: 0.85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sb-set-head .sb-done { padding: 1px 8px; border-radius: 9999px; background: var(--ok-soft); color: var(--ok); font-size: 0.75rem; }
.sb-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.sb-tile { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 12px; border: 2px solid var(--rc); background: color-mix(in srgb, var(--rc) 16%, var(--surface)); font-size: 26px; line-height: 1; cursor: pointer; transition: transform 0.2s ease; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sb-tile:hover { transform: translateY(-2px); }
.sb-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sb-tile.is-missing { border-style: dashed; background: var(--surface-2); color: var(--text-3); font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; cursor: default; }
.sb-tile.is-missing:hover { transform: none; }
.sb-tile-stars { position: absolute; right: 2px; bottom: 1px; font-size: 0.55rem; color: #d97706; letter-spacing: -1px; font-family: 'Inter', sans-serif; }
.sb-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.sb-badges li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.sb-badges .sb-badge-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; background: linear-gradient(135deg, #f59e0b, #ec4899); }
.sb-badges li.is-locked .sb-badge-ico { background: var(--line); filter: grayscale(1); opacity: 0.6; }
.sb-badges .sb-badge-name { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); line-height: 1.3; }
.sb-badges .sb-badge-how { font-size: 0.75rem; color: var(--text-2); line-height: 1.35; }
.sb-badges li.is-locked .sb-badge-name { color: var(--text-2); }
.sb-keys { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 0.9rem; }

/* the charm window */
.sb-charm--dialog { margin: 0 auto; width: 132px; height: 132px; }
.sb-charm--dialog .sb-charm-emoji { font-size: 74px; }
.sb-cd-meta { text-align: center; font-weight: 700; color: var(--text-strong); }
#cdLine { text-align: center; font-style: italic; color: var(--text-2); }
#cdFound { text-align: center; }

/* ----- Narrow screens ----- */
@media (max-width: 639px) {
    .sb-pane { padding: 16px; }
    .sb-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sb-tabs button { flex-direction: row; gap: 6px; min-height: 44px; }
    .sb-top { top: 8px; left: 8px; right: 8px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .sb-tools { order: -1; gap: 6px; max-width: calc(100% - 52px); } /* the first row keeps its right end free for the site's round theme button */
    .sb-pill { max-width: 100%; }
    .sb-tool { width: 44px; height: 44px; }
    .sb-scene { padding: 118px 8px 150px; }
    .sb-call { top: 118px; }
    .sb-lock { top: 112px; }
    .sb-task { top: 116px; }
    .sb-reveal, .sb-letter { top: 112px; padding-bottom: 14px; }
    .sb-charm { width: 120px; height: 120px; border-radius: 28px; }
    .sb-charm-emoji { font-size: 68px; }
    .sb-dock { padding: 34px 12px 12px; gap: 8px; }
    .sb-count span { min-width: 52px; }
    .toasts { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
    .toast { min-width: 0; max-width: none; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
    .sb-badges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 399px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } .sb-main { min-width: 140px; padding: 0 20px; } }

/* still pictures: the device asks for reduced motion, or Calm is chosen */
.sb-stage.is-still .sb-sky::before, .sb-stage.is-still .sb-sky::after, .sb-stage.is-still .sb-sky i, .sb-stage.is-still .sb-notes i { animation: none; }
.sb-stage.is-still.is-burst .sb-rays { animation: none; }
.sb-stage.is-still .sb-holder.is-shake, .sb-stage.is-still .sb-holder.is-charge, .sb-stage.is-still .sb-holder.is-rip { animation: none; }
.sb-stage.is-still .sb-box[data-state="open"] .bx-lid, .sb-stage.is-still .sb-box[data-state="flop"] .bx-lid { animation: lid-fade 0.5s ease-out forwards; }
.sb-stage.is-still .sb-box[data-state="open"] .bx-bow, .sb-stage.is-still .sb-box[data-state="flop"] .bx-bow { animation: none; }
@keyframes lid-fade { from { --lo: 1; } to { --lo: 0; transform: translateY(calc(var(--lid-y) - var(--s) * 0.3)); } }
.sb-stage.is-still .sb-reveal.is-in .sb-charm { animation: rise-in 0.4s ease-out both; }
.sb-stage.is-still .sb-banner span, .sb-stage.is-still .sb-charm-shine::before, .sb-stage.is-still .sb-charm::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .toast, .seg button, .chip, .switch::before, .switch::after, .sb-tool, .sb-main, .sb-sec, .sb-tabs button, .sb-tile, .sb-swatches button, .dialog[open], .sb-holder, .sb-boxzone, .bx-lid { transition: none; animation: none; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026). The stage's pictures are pictures. */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]) { min-height: 44px; }
    main input[type="range"] { height: 44px; }
    main .seg button { min-height: 44px; min-width: 44px; }
    main .sb-swatches button { width: 44px; height: 44px; }
    main .sb-swatches button::after { inset: 11px; }
    main .sb-tile { min-height: 44px; }
    main .sb-lbox, main .sb-boxbtn { min-height: 0; }
    main :is(p, li, dt, .hint, .label, .select, .input, .seg button, .muted, .small, .switch-row, .link, .sb-tabs button, .sb-hint, .sb-pill-main, .sb-pill-sub, .sb-sec, .sb-rv-meta, .sb-rv-line, .sb-note-text, .sb-note-kind, .sb-letter-note, .sb-letter-charm,
        .sb-task-kind, .sb-layers, .sb-table, .sb-badge-name, .sb-badge-how, .sb-set-count, .sb-done, .sb-mini-meta, .sb-lock-title, .sb-count span, .sb-tag-from, .sb-daily-text, .value, .sb-keys, .sb-odds summary) { font-size: 1rem; }
    main .btn { font-size: 1rem; }
    .sb-focus :is(.sb-hint, .sb-pill-main, .sb-pill-sub, .sb-sec, .sb-rv-meta, .sb-rv-line, .sb-note-text, .sb-note-kind, .sb-letter-note, .sb-letter-charm, .sb-task-kind, .sb-layers, .sb-mini-meta, .sb-lock-title, .sb-count span, .sb-tag-from) { font-size: 1rem; }
    .sb-focus .btn { font-size: 1rem; }
    .dialog :is(p, li, .label, .input, .btn, .hint) { font-size: 1rem; }
    .dialog .btn, .dialog .input { min-height: 44px; }
    .sb-badges .sb-badge-how { font-size: 1rem; }
    /* display words stay large: the rule above reaches every p */
    main p.sb-banner { font-size: 1.6rem; }
    main p.sb-call { font-size: 1.2rem; }
    main p.sb-task-text { font-size: 1.15rem; }
    main p.sb-lock-date { font-size: 1.05rem; }
    main .sb-recent .sb-empty, main .sb-ring span, main .sb-set-head .sb-set-count, main .sb-badges .sb-badge-name { font-size: 1rem; }
}
