:root {
  --bg: #f7f4ee;
  --paper: #fffdf9;
  --paper-2: #f1ede5;
  --ink: #11110f;
  --muted: #6f6b63;
  --line: #dcd6cb;
  --soft-line: #eae5dc;
  --accent: #ff4d82;
  --accent-soft: #ffe2ec;
  --shadow: 0 18px 60px rgba(37, 28, 12, .08);
  --radius: 20px;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c0c0d;
  --paper: #151516;
  --paper-2: #1d1d1f;
  --ink: #f7f5f0;
  --muted: #aaa7a0;
  --line: #353538;
  --soft-line: #29292c;
  --accent-soft: #3c1826;
  --shadow: 0 18px 60px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .28; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 13px; letter-spacing: .14em; }
.brand strong { font-weight: 800; }
.brand-mark { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; }
.nav { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; border: 1px solid var(--soft-line); }
.nav-link { border: 0; background: transparent; border-radius: 999px; padding: 9px 15px; font-size: 13px; color: var(--muted); cursor: pointer; transition: .2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 9px rgba(0,0,0,.05); }
.icon-button { justify-self: end; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; cursor: pointer; font-size: 18px; }

main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.view { display: none; animation: fade-in .28s ease; }
.view.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.hero { min-height: 610px; display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; padding: 72px 0 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.live-dot { width: 7px; height: 7px; background: #41bd68; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, #41bd68 15%, transparent); }
.number-stage { position: relative; min-width: min(94vw, 760px); min-height: 156px; margin: 30px 0 14px; isolation: isolate; display: grid; place-items: center; align-content: center; }
.number-glow { position: absolute; inset: 15% -10%; z-index: -1; filter: blur(45px); opacity: 0; border-radius: 50%; background: var(--accent); transition: opacity .3s ease; }
.number-stage.has-result .number-glow { opacity: .18; }
.roll-status { height: 18px; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; transition: color .18s ease; }
.number-stage.is-rolling-stage .roll-status { color: var(--ink); }
.digit-count-picker { display: none; min-height: 96px; align-items: baseline; justify-content: center; gap: 11px; font-family: var(--mono); }
.digit-count-picker.is-visible { display: flex; animation: count-enter .16s ease-out; }
.digit-count-value { min-width: 1ch; font-size: clamp(68px, 10vw, 108px); line-height: .9; font-weight: 500; font-variant-numeric: tabular-nums; }
.digit-count-value.tick { animation: count-tick .12s ease-out; }
.digit-count-value.is-picked { text-shadow: 0 0 32px color-mix(in srgb, var(--accent) 45%, transparent); transform: scale(1.08); }
.digit-count-label { color: var(--muted); font-size: clamp(13px, 2vw, 18px); letter-spacing: .16em; font-weight: 500; }
.number-display { min-height: 96px; display: flex; align-items: center; justify-content: center; gap: clamp(4px, .8vw, 10px); font-family: var(--mono); font-size: clamp(58px, 10vw, 112px); line-height: 1; font-weight: 500; color: #d4d0c9; font-variant-numeric: tabular-nums; transition: color .25s ease, opacity .15s ease, transform .25s ease, text-shadow .25s ease; }
.number-display.is-hidden-for-count { display: none; }
.number-stage.has-result .number-display { color: var(--ink); text-shadow: 0 6px 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.digit-slot { position: relative; display: inline-grid; place-items: center; width: .76em; height: 1.08em; border-radius: .12em; transition: color .12s ease, transform .14s cubic-bezier(.2,.9,.25,1.3), background .14s ease, box-shadow .14s ease; }
.digit-slot.is-placeholder { color: #d4d0c9; }
html[data-theme="dark"] .digit-slot.is-placeholder { color: #3b3b3f; }
.digit-slot.is-spinning { color: var(--muted); background: color-mix(in srgb, var(--paper-2) 70%, transparent); box-shadow: inset 0 0 0 1px var(--soft-line); animation: digit-flicker .1s steps(2, end) infinite; }
.digit-slot.is-locked { color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); animation: digit-lock .26s cubic-bezier(.2,.9,.25,1.35); }
.number-stage.has-result .digit-slot.is-locked { background: transparent; box-shadow: none; }
.hero-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 250px;
  margin-top: 12px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 7%, var(--paper));
  box-shadow: 0 10px 34px color-mix(in srgb, currentColor 12%, transparent);
  animation: tier-pop .35s cubic-bezier(.2,.9,.25,1.3);
}
.hero-tier.is-hidden { display: none; }
.hero-tier-icon { font-size: 28px; line-height: 1; }
.hero-tier-copy { display: grid; text-align: left; }
.hero-tier-copy strong { font-size: clamp(24px, 4vw, 34px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.hero-tier-copy small { margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.hero-tier.trash { color: #88847d; }
.hero-tier.common { color: #7b7974; }
.hero-tier.uncommon { color: #2d9e5a; }
.hero-tier.rare { color: #3975d7; }
.hero-tier.epic { color: #8a55ca; }
.hero-tier.anomaly { color: #df7c28; }
.hero-tier.mythic { color: #e33b59; }
@keyframes tier-pop { 0% { opacity: 0; transform: translateY(7px) scale(.92); } 70% { transform: translateY(-1px) scale(1.03); } 100% { opacity: 1; transform: none; } }
.roll-progress { width: min(360px, 72vw); height: 2px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--soft-line); opacity: 0; transition: opacity .18s ease; }
.number-stage.is-rolling-stage .roll-progress { opacity: 1; }
.roll-progress i { display: block; width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width .12s linear; }
@keyframes count-enter { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes count-tick { 50% { opacity: .35; transform: translateY(-5px) scale(.96); filter: blur(1px); } }
@keyframes digit-flicker { 50% { opacity: .55; transform: translateY(-1px); } }
@keyframes digit-lock { 0% { transform: translateY(-9px) scale(.9); opacity: .35; } 65% { transform: translateY(2px) scale(1.08); } 100% { transform: none; opacity: 1; } }
.hero h1 { font-size: clamp(26px, 4vw, 42px); margin: 10px 0 12px; letter-spacing: -.04em; }
.hero-copy { max-width: 610px; margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }
.roll-actions { display: flex; gap: 10px; margin-top: 30px; }
.primary-button, .secondary-button, .danger-button { border-radius: 12px; padding: 14px 20px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease, opacity .16s ease; }
.primary-button { min-width: 250px; border: 1px solid #000; background: #0d0d0d; color: #fff; display: flex; align-items: center; justify-content: center; gap: 28px; text-transform: uppercase; letter-spacing: .13em; }
.primary-button kbd { font-family: var(--sans); font-size: 10px; font-weight: 600; opacity: .5; border: 1px solid #777; border-radius: 5px; padding: 3px 5px; letter-spacing: 0; text-transform: none; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-2px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary-button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.danger-button { border: 1px solid color-mix(in srgb, #e44343 40%, var(--line)); background: color-mix(in srgb, #e44343 8%, var(--paper)); color: #d53e3e; }
.microcopy { color: var(--muted); font-size: 11px; margin: 14px 0 0; }

.result-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-card { max-width: 760px; margin: 0 auto 34px; padding: 28px; transition: opacity .25s ease, transform .25s ease; overflow-anchor: none; }
.result-card.is-hidden { display: none; }
.result-card.is-dimmed { opacity: .28; transform: scale(.985); pointer-events: none; }
.result-topline, .badge-header, .panel-heading, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-kicker { margin: 0 0 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.result-number { font-family: var(--mono); margin: 0; font-size: 44px; letter-spacing: .03em; }
.rarity-pill { min-width: 190px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 10px; padding: 14px 16px; border: 1px solid currentColor; border-radius: 15px; font-size: 20px; line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.rarity-pill > span:first-child { font-size: 25px; }
.rarity-pill small { grid-column: 2; font-size: 10px; font-weight: 700; opacity: .72; text-transform: uppercase; letter-spacing: .08em; }
.rarity-pill.trash, .rarity-row.trash { color: #88847d; }
.rarity-pill.common, .rarity-row.common { color: #7b7974; }
.rarity-pill.uncommon, .rarity-row.uncommon { color: #2d9e5a; }
.rarity-pill.rare, .rarity-row.rare { color: #3975d7; }
.rarity-pill.epic, .rarity-row.epic { color: #8a55ca; }
.rarity-pill.anomaly, .rarity-row.anomaly { color: #df7c28; }
.rarity-pill.mythic, .rarity-row.mythic { color: #e33b59; }
.ep-panel { margin: 22px 0; border: 1px solid var(--soft-line); background: var(--paper-2); border-radius: 14px; padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ep-panel span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ep-panel strong { font-family: var(--mono); font-size: 20px; }
.ep-meter { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ep-meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.badge-header h3 { margin: 0; font-size: 18px; }
.text-button { border: 0; background: transparent; padding: 5px 0; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.badge-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--soft-line); border-radius: 13px; padding: 11px; background: color-mix(in srgb, var(--paper) 88%, var(--paper-2)); cursor: default; }
.badge-emoji { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); font-size: 19px; }
.badge-card strong { display: block; font-size: 12px; margin-bottom: 3px; }
.badge-card p { margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-ep { font-family: var(--mono); color: var(--muted); font-size: 10px; }
.badge-rarity-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; background: currentColor; }
.badge-card[data-rarity="Uncommon"] .badge-rarity-dot { color: #2d9e5a; }
.badge-card[data-rarity="Rare"] .badge-rarity-dot { color: #3975d7; }
.badge-card[data-rarity="Epic"] .badge-rarity-dot { color: #8a55ca; }
.badge-card[data-rarity="Anomaly"] .badge-rarity-dot { color: #df7c28; }
.badge-card[data-rarity="Mythic"] .badge-rarity-dot { color: #e33b59; }

.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; padding: 0 0 80px; }
.panel { padding: 24px; box-shadow: none; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.local-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px; border: 1px solid var(--soft-line); border-radius: 14px; overflow: hidden; }
.stat { padding: 17px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.stat:nth-child(odd) { border-right: 1px solid var(--soft-line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
.stat span { color: var(--muted); font-size: 11px; }
.stat strong { font-family: var(--mono); font-size: 20px; }
.top-rolls { margin-top: 14px; }
.top-roll { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--soft-line); }
.top-roll:last-child { border-bottom: 0; }
.top-rank { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.top-roll strong { display: block; font-family: var(--mono); font-size: 13px; }
.top-roll small { color: var(--muted); font-size: 10px; }
.top-score { text-align: right; font-family: var(--mono); font-size: 11px; }
.empty-copy { color: var(--muted); font-size: 12px; padding: 18px 0; }

.page-heading { padding: 75px 0 32px; align-items: end; }
.page-heading h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.055em; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 8px; }
.history-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 0 14px; }
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: var(--muted); }
.history-toolbar select { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 0 14px; }
.history-list { padding-bottom: 90px; }
.history-item { display: grid; grid-template-columns: 95px 1fr auto auto; align-items: center; gap: 18px; padding: 17px 18px; border: 1px solid var(--soft-line); border-bottom: 0; background: var(--paper); }
.history-item:first-child { border-radius: 15px 15px 0 0; }
.history-item:last-child { border-bottom: 1px solid var(--soft-line); border-radius: 0 0 15px 15px; }
.history-number { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.history-badges { display: flex; gap: 5px; overflow: hidden; }
.history-badges span { font-size: 10px; white-space: nowrap; border: 1px solid var(--soft-line); border-radius: 999px; padding: 4px 7px; color: var(--muted); }
.history-tier { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.history-score { font-family: var(--mono); text-align: right; font-size: 12px; }
.history-date { display: block; color: var(--muted); font-family: var(--sans); font-size: 9px; margin-top: 3px; }

.collection-progress { min-width: 190px; text-align: right; }
.collection-progress > span { font-family: var(--mono); font-size: 18px; }
.collection-progress > div { height: 5px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.collection-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.collection-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: 11px; font-weight: 700; }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 90px; }
.collection-card { min-height: 135px; border: 1px solid var(--soft-line); background: var(--paper); border-radius: 15px; padding: 16px; position: relative; overflow: hidden; }
.collection-card.is-locked { filter: grayscale(1); opacity: .42; }
.collection-card.is-locked .collection-emoji { filter: blur(5px); }
.collection-emoji { font-size: 25px; }
.collection-card h3 { margin: 12px 0 4px; font-size: 13px; }
.collection-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.collection-card footer { position: absolute; inset: auto 16px 13px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 75px; padding: 90px 0 55px; align-items: center; }
.about-intro h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.06em; margin: 10px 0 24px; }
.about-intro > p { color: var(--muted); line-height: 1.75; }
.notice { margin-top: 25px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 12px 12px 0; padding: 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notice strong { color: var(--ink); }
.rarity-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.rarity-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--soft-line); }
.rarity-row:last-child { border-bottom: 0; }
.rarity-row strong { color: var(--ink); font-size: 13px; }
.rarity-row small { font-size: 10px; }
.about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 90px; }
.about-cards article { border-top: 1px solid var(--ink); padding-top: 15px; }
.about-cards span { font-family: var(--mono); color: var(--accent); font-size: 11px; }
.about-cards h2 { margin: 22px 0 8px; font-size: 16px; }
.about-cards p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

body > footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid var(--line); min-height: 70px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 15px; font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 50; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: confetti-fall 1.8s ease-in forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); opacity: .7; } }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 72px; }
  .nav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; justify-content: space-around; box-shadow: 0 10px 35px rgba(0,0,0,.2); }
  .nav-link { flex: 1; padding-inline: 8px; }
  .icon-button { grid-column: 2; }
  .dashboard-grid, .about-layout { grid-template-columns: 1fr; }
  .about-layout { gap: 30px; }
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 580px; }
  body > footer { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  .site-header, main, body > footer { width: min(100% - 24px, 1080px); }
  .brand { font-size: 11px; }
  .hero { padding-top: 50px; min-height: 550px; }
  .number-stage { min-width: 100%; min-height: 138px; }
  .number-display { font-size: clamp(46px, 15vw, 74px); gap: 2px; }
  .digit-count-value { font-size: clamp(62px, 20vw, 88px); }
  .roll-actions { width: 100%; flex-direction: column; }
  .primary-button { width: 100%; min-width: 0; }
  .badge-grid { grid-template-columns: 1fr; }
  .result-card { padding: 18px; }
  .result-topline { align-items: stretch; flex-direction: column; gap: 14px; }
  .result-number { font-size: 31px; }
  .rarity-pill { width: 100%; min-width: 0; grid-template-columns: auto 1fr; padding: 15px 17px; font-size: 23px; }
  .hero-tier { width: min(100%, 330px); min-width: 0; padding: 13px 18px; }
  .hero-tier-icon { font-size: 31px; }
  .hero-tier-copy strong { font-size: clamp(25px, 8vw, 32px); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; padding-top: 52px; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .history-toolbar { flex-direction: column; }
  .history-toolbar select { height: 44px; }
  .history-item { grid-template-columns: 82px 1fr auto; gap: 9px; padding: 14px 12px; }
  .history-badges { display: none; }
  .history-score { font-size: 10px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-progress { min-width: 130px; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

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