:root {
  --ink: #101320;
  --paper: #fffdf4;
  --cyan: #08bce8;
  --blue: #1264d8;
  --pink: #ff168a;
  --yellow: #ffe500;
  --green: #35dc5c;
  --red: #ff3347;
  --shadow: 7px 7px 0 var(--ink);
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cyan);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12px 12px, rgba(16, 19, 32, 0.18) 0 2px, transparent 2.5px) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--cyan) 0 42%, #53d9f2 42% 58%, var(--cyan) 58% 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.page-shell { width: min(1180px, calc(100% - 28px)); margin: 18px auto 48px; }

.comic-header {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 24px 24px 10px 10px;
  background: #000;
  box-shadow: var(--shadow);
}

.comic-header img { width: 100%; height: auto; display: block; }

.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 14px 16px; border: 4px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.account-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.account-copy strong, .account-copy span { display: block; }
.account-copy strong { font-size: 1rem; font-weight: 950; }
.account-copy div > span { margin-top: 2px; color: #5e6370; font-size: .84rem; font-weight: 750; }
.account-piece { display: grid !important; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 13px; background: var(--green); font-size: 1.7rem; line-height: 1; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.reset-local-button { padding: 5px 0; border: 0; background: transparent; color: #6d2737; font-size: .78rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset-local-button:hover { color: var(--ink); }
.discord-button { min-height: 46px; padding: 10px 17px; border: 3px solid var(--ink); border-radius: 12px; background: #5865f2; color: white; box-shadow: 4px 4px 0 var(--ink); font-weight: 950; cursor: pointer; }
.discord-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.discord-button:disabled { background: #8d93c7; color: #f4f4ff; box-shadow: 3px 3px 0 var(--ink); cursor: not-allowed; transform: none; }
.account-bar.is-synced { background: #dfffe5; }
.account-bar.is-synced .account-piece { background: var(--yellow); }

main { display: grid; gap: 26px; margin-top: 26px; }

.pop-card, .stat-card {
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.scoreboard { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 0.7fr)); gap: 18px; }

.remaining-card {
  padding: 24px 26px 22px;
  background:
    linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.93)),
    radial-gradient(circle, var(--pink) 0 2px, transparent 2.5px) 0 0 / 18px 18px;
}

.eyebrow, .burst-label, .roll-kicker {
  display: inline-block;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow { color: var(--blue); font-size: .82rem; }

h1, h2, .stat-value, .roll-result {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: .015em;
}

h1 { margin: 4px 0 17px; font-size: clamp(2rem, 5.3vw, 4.55rem); line-height: .98; letter-spacing: .035em; text-transform: uppercase; }
h1 strong { color: var(--pink); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
h2 { margin: 5px 0 8px; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1; text-transform: uppercase; }

.progress-track { height: 20px; overflow: hidden; border: 3px solid var(--ink); border-radius: 999px; background: #d8dbe3; }
.progress-track span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, var(--green), var(--green) 10px, #7dfa75 10px, #7dfa75 20px); transition: width .35s ease; }
.remaining-card p { margin: 10px 0 0; font-weight: 800; }

.stat-card { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 200px; padding: 20px; text-align: center; }
.games-played-card { background: var(--yellow); }
.games-won-card { background: var(--pink); color: white; }
.stat-icon { font-size: 2.2rem; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.25)); }
.stat-value { margin-top: 2px; font-size: clamp(3rem, 6vw, 5.3rem); line-height: .9; text-shadow: 3px 3px 0 rgba(255,255,255,.85); }
.games-won-card .stat-value { text-shadow: 3px 3px 0 var(--ink); }
.stat-label { margin-top: 8px; font-size: 1.05rem; font-weight: 950; text-transform: uppercase; }
.stat-note { margin-top: 5px; font-size: .82rem; font-weight: 750; opacity: .75; }

.share-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 28px; padding: 22px 26px; background: linear-gradient(135deg, #dfffe5, #fff7af); }
.share-card h2 { margin-bottom: 5px; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.share-card p { margin: 0; font-weight: 800; line-height: 1.45; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.share-main, .social-button { display: inline-grid; place-items: center; min-height: 43px; padding: 8px 13px; border: 3px solid var(--ink); border-radius: 11px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font-weight: 950; text-decoration: none; cursor: pointer; }
.share-main { background: var(--pink); color: white; }
.social-x { min-width: 44px; background: var(--ink); color: white; }
.social-bluesky { background: #1185fe; color: white; }
.social-facebook { background: #1877f2; color: white; }
.social-copy { background: white; }
.share-main:hover, .social-button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }

.roller { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px 38px; padding: 31px; overflow: hidden; background: var(--paper); }
.roller::after { content: ""; position: absolute; width: 240px; height: 240px; right: -110px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0 3px, transparent 3.5px) 0 0 / 18px 18px; opacity: .5; pointer-events: none; }
.roller-copy p { max-width: 560px; margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.55; }
.burst-label { padding: 6px 10px; transform: rotate(-2deg); border: 3px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: .78rem; }

.roll-stage { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 17px; min-height: 150px; padding: 20px; border: 4px solid var(--ink); border-radius: 18px; background: linear-gradient(145deg, var(--blue), var(--cyan)); color: white; }
.die { display: grid; place-items: center; width: 86px; height: 86px; padding: 13px; transform: rotate(-7deg); border: 4px solid var(--ink); border-radius: 20px; background: white; box-shadow: 5px 5px 0 var(--ink); }
.die-pips { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 100%; height: 100%; }
.die-pips i { width: 14px; height: 14px; place-self: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.die-pips i:nth-child(1) { grid-area: 1 / 1; }
.die-pips i:nth-child(2) { grid-area: 1 / 3; }
.die-pips i:nth-child(3) { grid-area: 2 / 2; }
.die-pips i:nth-child(4) { grid-area: 3 / 1; }
.die-pips i:nth-child(5) { grid-area: 3 / 3; }
.roll-stage.is-rolling .die { animation: tumble .25s linear infinite; }
.roll-kicker { display: block; margin-bottom: 4px; color: var(--yellow); font-size: .76rem; }
.roll-result { display: inline-block; padding: 6px 11px; border: 3px solid var(--ink); border-radius: 10px; background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 white; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; letter-spacing: .025em; text-transform: uppercase; }
.roll-meta { display: block; margin-top: 8px; font-size: .85rem; font-weight: 750; }

.roller-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rehearsal-panel { display: grid; grid-template-columns: 1fr auto minmax(220px, 340px); align-items: center; gap: 10px 14px; margin-top: 72px; padding: 14px 16px; border: 3px dashed var(--ink); border-radius: 14px; background: #e9f8ff; }
.rehearsal-panel > div { display: grid; gap: 2px; }
.rehearsal-panel strong { font-size: .9rem; text-transform: uppercase; }
.rehearsal-panel span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.rehearsal-panel label { font-size: .82rem; font-weight: 950; text-transform: uppercase; }
.rehearsal-panel select { min-height: 42px; padding: 8px 11px; border: 3px solid var(--ink); border-radius: 10px; background: white; color: var(--ink); font: inherit; font-weight: 750; }
.primary-button, .secondary-button, .load-more, .filter-tab {
  min-height: 46px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-weight: 950;
  cursor: pointer;
}
.primary-button { padding: 10px 20px; background: var(--pink); color: white; box-shadow: 4px 4px 0 var(--ink); text-transform: uppercase; }
.primary-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.primary-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.secondary-button { padding: 10px 17px; background: var(--yellow); }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.text-link { color: var(--blue); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link-button { padding: 6px 0; border: 0; background: transparent; cursor: pointer; }
.is-hidden { display: none !important; }

.collection { padding: 28px; background: var(--paper); }
.collection-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.collection-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.collection-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-weight: 950; cursor: pointer; }
.collection-toggle:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.collection-body { margin-top: 20px; padding-top: 18px; border-top: 3px dashed var(--ink); }
.collection-body-actions { display: flex; justify-content: flex-end; }
.import-button { min-height: 42px; padding: 8px 13px; border: 3px solid var(--ink); border-radius: 12px; background: var(--cyan); box-shadow: 3px 3px 0 var(--ink); font-weight: 950; cursor: pointer; }
.import-button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.catalog-count { padding: 7px 11px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 900; white-space: nowrap; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin: 20px 0; }
.search-field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 15px; border: 3px solid var(--ink); border-radius: 14px; background: white; font-size: 1.4rem; }
.search-field:focus-within { outline: 4px solid rgba(8,188,232,.32); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 750; }
.filter-tabs { display: flex; padding: 4px; border: 3px solid var(--ink); border-radius: 14px; background: white; }
.filter-tab { min-height: 40px; padding: 7px 13px; border: 0; background: transparent; }
.filter-tab.is-active { border: 2px solid var(--ink); background: var(--cyan); box-shadow: 2px 2px 0 var(--ink); }

.game-list { display: grid; gap: 9px; }
.game-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: 100%; padding: 11px 13px; border: 3px solid var(--ink); border-radius: 13px; background: white; text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.game-row:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.game-row.is-won { background: #dfffe5; }
.game-status-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); font-size: 1.25rem; }
.game-row.is-won .game-status-icon { background: var(--green); }
.game-name { display: block; overflow: hidden; font-size: 1rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.game-subtitle { display: block; margin-top: 2px; color: #5e6370; font-size: .8rem; font-weight: 700; }
.game-attempts { min-width: 84px; font-size: .84rem; font-weight: 900; text-align: right; }
.game-score { min-width: 110px; color: var(--blue); font-size: .84rem; font-weight: 850; text-align: right; }
.load-more { display: block; margin: 18px auto 0; padding: 9px 20px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.filter-prompt { padding: 28px 10px 20px; text-align: center; }
.filter-prompt span { font-size: 2.25rem; }
.filter-prompt strong { display: block; margin-top: 7px; font-size: 1.15rem; }
.filter-prompt p { margin: 4px 0; color: #5e6370; font-weight: 750; }
.empty-state { padding: 36px 10px; text-align: center; }
.empty-state span { font-size: 2.4rem; }
.empty-state strong { display: block; margin-top: 8px; font-size: 1.2rem; }
.empty-state p { margin: 4px 0; }

footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px 16px; padding: 24px 10px 0; color: #072f3d; font-size: .82rem; font-weight: 750; text-align: center; }
.footer-link { padding: 0; border: 0; background: transparent; color: #072f3d; font-weight: 950; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

dialog { width: min(560px, calc(100% - 24px)); padding: 0; border: 4px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
dialog::backdrop { background: rgba(16,19,32,.7); backdrop-filter: blur(4px); }
.attempt-form { position: relative; padding: 28px; }
.dialog-close { position: absolute; top: 12px; right: 13px; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: white; font-size: 1.5rem; font-weight: 950; cursor: pointer; }
.welcome-dialog { width: min(760px, calc(100% - 24px)); }
.welcome-dialog::backdrop { background: rgba(16,19,32,.82); }
.welcome-content { position: relative; padding: 30px; }
.welcome-content > p { margin: 12px 0 0; font-size: 1rem; font-weight: 700; line-height: 1.55; }
.welcome-content .welcome-lead { margin-top: 18px; font-size: 1.08rem; font-weight: 900; }
.how-it-works { margin: 22px 0 18px; }
.how-it-works h3 { margin: 0 0 10px; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: 1.5rem; letter-spacing: .035em; text-transform: uppercase; }
.how-it-works ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; counter-reset: steps; list-style: none; }
.how-it-works li { position: relative; min-height: 94px; padding: 13px 13px 13px 58px; border: 3px solid var(--ink); border-radius: 13px; background: white; counter-increment: steps; }
.how-it-works li::before { content: counter(steps); position: absolute; left: 12px; top: 13px; display: grid; place-items: center; width: 33px; height: 33px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font-weight: 950; }
.how-it-works strong, .how-it-works span { display: block; }
.how-it-works span { margin-top: 3px; color: #5e6370; font-size: .86rem; font-weight: 750; line-height: 1.4; }
.welcome-note { display: grid; gap: 4px; margin-bottom: 19px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 13px; background: #eef9ff; }
.welcome-note strong { font-weight: 950; }
.welcome-note span { color: #5e6370; font-size: .88rem; font-weight: 750; line-height: 1.45; }
.attempt-summary { margin: 0 0 20px; color: #5e6370; font-weight: 750; }
.field-label { display: block; margin-bottom: 7px; font-weight: 950; }
.field-label span { font-size: .8rem; opacity: .65; }
#score-input { width: 100%; height: 50px; padding: 0 13px; border: 3px solid var(--ink); border-radius: 12px; background: white; font-size: 1rem; font-weight: 800; }
#score-input:focus { outline: 4px solid rgba(8,188,232,.32); }
.profile-form input { width: 100%; height: 50px; padding: 0 13px; border: 3px solid var(--ink); border-radius: 12px; background: white; font-size: 1rem; font-weight: 800; }
.profile-form input:focus { outline: 4px solid rgba(8,188,232,.32); }
.field-help { margin: 7px 0 18px; color: #5e6370; font-size: .8rem; font-weight: 700; line-height: 1.45; }
.form-error { margin: 0 0 16px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 10px; background: #ffe1e5; color: #7d0011; font-weight: 850; }
#profile-dialog::backdrop { background: rgba(16,19,32,.82); }
.import-drop-zone { display: grid; place-items: center; gap: 8px; margin: 0 0 16px; padding: 24px 18px; border: 4px dashed var(--ink); border-radius: 17px; background: #eef9ff; text-align: center; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.import-drop-zone > strong { font-size: 1.05rem; }
.import-drop-zone > span:not(.upload-icon), .import-drop-zone small { color: #5e6370; font-weight: 800; }
.import-drop-zone small { font-size: .8rem; }
.import-drop-zone.is-dragging { background: #dfffe5; box-shadow: inset 0 0 0 4px var(--green); transform: scale(1.01); }
.import-drop-zone.is-reading { opacity: .72; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid var(--ink); border-radius: 16px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 2rem; font-weight: 950; line-height: 1; }
#import-upload-step .privacy-note { margin-bottom: 0; }
.import-breakdown { display: grid; gap: 8px; margin: 0 0 17px; }
.import-breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: white; font-weight: 850; }
.import-breakdown-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-breakdown-row span { color: #5e6370; font-size: .84rem; }
.import-breakdown-row .import-wins { color: var(--blue); }
.privacy-note, .import-warning { margin: 0 0 18px; padding: 11px 12px; border: 3px solid var(--ink); border-radius: 12px; font-size: .84rem; font-weight: 800; line-height: 1.45; }
.privacy-note { background: #dfffe5; }
.import-warning { background: #fff4bf; }
.win-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 16px 0 20px; padding: 13px; border: 3px solid var(--ink); border-radius: 14px; background: #eef9ff; cursor: pointer; }
.win-check input { position: absolute; opacity: 0; }
.fake-checkbox { display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 10px; background: white; color: transparent; font-size: 1.5rem; font-weight: 950; }
.win-check input:checked + .fake-checkbox { background: var(--green); color: var(--ink); }
.win-check small { display: block; margin-top: 2px; color: #5e6370; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 11px; }
.attempt-history { margin-top: 22px; border-top: 3px dashed var(--ink); padding-top: 14px; }
.attempt-history h3 { margin: 0 0 8px; font-size: .9rem; text-transform: uppercase; }
.attempt-history ul { max-height: 160px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.attempt-history li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #d6d7dc; font-size: .84rem; font-weight: 750; }

.confetti-layer { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; left: 50%; top: 50%; width: 10px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; background: var(--confetti-color); opacity: 0; animation: confetti-pop 950ms cubic-bezier(.16,.8,.28,1) var(--delay) forwards; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 11; max-width: calc(100% - 28px); padding: 12px 17px; transform: translate(-50%, 150%); border: 3px solid var(--ink); border-radius: 12px; background: var(--green); box-shadow: 4px 4px 0 var(--ink); font-weight: 950; transition: transform .22s ease; }
.toast.is-visible { transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes tumble { to { transform: rotate(83deg) scale(1.05); } }
@keyframes confetti-pop { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotation)) scale(.82); } }

@media (max-width: 850px) {
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .remaining-card { grid-column: 1 / -1; }
  .share-card { grid-template-columns: 1fr; }
  .share-actions { justify-content: flex-start; }
  .roller { grid-template-columns: 1fr; }
  .roller-actions { grid-column: 1; }
  .toolbar { grid-template-columns: 1fr; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 18px, 1180px); margin-top: 9px; }
  .comic-header { border-width: 4px; border-radius: 17px 17px 8px 8px; box-shadow: 5px 5px 0 var(--ink); }
  .account-bar { align-items: stretch; flex-direction: column; margin-top: 14px; }
  .account-actions, .account-actions > * { width: 100%; }
  main { gap: 18px; margin-top: 18px; }
  .scoreboard { gap: 12px; }
  .stat-card { min-height: 155px; padding: 13px 8px; box-shadow: 5px 5px 0 var(--ink); }
  .stat-label { font-size: .78rem; }
  .remaining-card, .roller, .collection { padding: 20px 17px; box-shadow: 5px 5px 0 var(--ink); }
  .share-card { padding: 20px 17px; box-shadow: 5px 5px 0 var(--ink); }
  .share-actions > * { flex: 1 1 auto; }
  .welcome-content { padding: 24px 18px 20px; }
  .welcome-content .burst-label { max-width: calc(100% - 46px); }
  .how-it-works ol { grid-template-columns: 1fr; }
  .roll-stage { grid-template-columns: 1fr; }
  .die { width: 64px; height: 64px; padding: 9px; }
  .die-pips i { width: 10px; height: 10px; border-width: 1.5px; }
  .roller-actions > * { width: 100%; justify-content: center; text-align: center; }
  .rehearsal-panel { grid-template-columns: 1fr; }
  .rehearsal-panel select { width: 100%; }
  .collection-heading-row { align-items: start; flex-direction: column; gap: 10px; }
  .collection-heading-actions { width: 100%; justify-content: space-between; }
  .collection-toggle { flex: 1; }
  .collection-body-actions .import-button { width: 100%; }
  .import-breakdown-row { grid-template-columns: minmax(0, 1fr) auto; }
  .import-breakdown-row .import-wins { grid-column: 2; }
  .game-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; }
  .game-score { display: none; }
  .game-attempts { min-width: 52px; font-size: .76rem; }
}

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