:root {
  color-scheme: dark;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #f1f1eb;
  background: #151616;
  --canvas: #151616;
  --panel: #222424;
  --line: #3c3e3b;
  --muted: #a7aaa1;
  --signal: #e5f64d;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: radial-gradient(ellipse at 80% 20%, #25282344, transparent 65%), var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, input { border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[hidden], .symbols { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.topbar { background: #111212; border-bottom: 1px solid #363835; height: 77px; }
.header-inner, .page-wrap { width: min(1240px, calc(100% - 104px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; gap: 60px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 950; font-style: italic; line-height: 1.06; flex-shrink: 0; letter-spacing: -.035em; }
.brand-mark { color: var(--signal); width: 43px; height: 43px; }
.brand small { display: block; font: 750 8px/1 Arial,sans-serif; letter-spacing: .18em; color: #babdb0; margin-top: 6px; }
.primary-nav { display: flex; height: 100%; gap: 32px; }
.primary-nav a { display: flex; align-items: center; position: relative; height: 100%; font-size: 14px; font-weight: 700; color: var(--muted); }
.primary-nav a[aria-current] { color: #f4f7ea; }
.primary-nav a[aria-current]::after { content: ""; position: absolute; bottom: 12px; left: 0; width: 19px; height: 3px; background: var(--signal); transform: skew(-22deg); }
.primary-nav a:hover, .text-link:hover, footer button:hover { color: var(--signal); }
.history-button { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid #474944; background: #242624; border-radius: 4px; font-size: 13px; font-weight: 650; }
.history-button:hover { border-color: #a3a884; }
.history-button .icon { width: 16px; height: 16px; }
.page-wrap { padding-top: 30px; }
.terminal { border: 1px solid #454740; border-radius: 6px; background: #202222; overflow: clip; box-shadow: 0 10px 26px #0002; }
.hero { position: relative; isolation: isolate; min-height: clamp(296px,24.8vw,370px); display: flex; align-items: center; overflow: hidden; background: #252925; }
.hero-art, .hero-shade { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 57%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg,#11151488 0%,#1418172b 41%,transparent 62%), linear-gradient(0deg,#14161540,transparent 23%); }
.hero-copy { padding: 33px 4.3% 37px; }
.hero-kicker { display: flex; gap: 9px; align-items: center; width: fit-content; color: #e3edc5; font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.tick-mark, .heading-mark { display: block; width: 21px; flex: none; height: 12px; transform: skew(-23deg); background: repeating-linear-gradient(90deg,var(--signal) 0 5px,transparent 5px 8px); }
.key-divider { color: #868d73; }
.hero h1 { margin: 17px 0 9px -4px; font-weight: 1000; font-size: clamp(49px,5.3vw,80px); line-height: 1.12; color: #f6f7f1; letter-spacing: -.065em; transform: skew(-7deg); transform-origin: left center; text-shadow: 0 3px 1px #10120e52; }
.hero h1 span { color: #ecf35f; }
.hero-subtitle, .english-label { font: italic 800 14px/1.2 Arial,sans-serif; letter-spacing: .16em; }
.hero-subtitle { color: #c4c8bc; font-size: clamp(13px,1.25vw,18px); letter-spacing: .22em; }
.hero-meta { display: inline-flex; align-items: center; gap: 9px; border-top: 1px solid #b0b3a64a; margin-top: 28px; padding-top: 13px; font-size: 12px; font-weight: 600; color: #dbded1; letter-spacing: .04em; }
.hero-meta .icon { width: 15px; height: 15px; color: #d2da90; }
.meta-sep { width: 1px; height: 11px; margin: 0 2px; background: #8b8f7f; }
.lock-readout { position: absolute; bottom: 15px; right: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; background: #111513d9; border: 1px solid #a2a29755; border-radius: 2px; color: #f1eddf; font-size: 10px; letter-spacing: .07em; }
.lock-readout span { width: 6px; height: 6px; border-radius: 50%; background: #ff6652; box-shadow: 0 0 7px #ec58325c; }
.hero.is-unlocking .lock-readout span { background: #62c8ee; }
.control-rack { display: flex; align-items: center; position: relative; flex-wrap: wrap; padding: 21px 32px; gap: 20px; border-top: 2px solid #434541; background: #242626; }
.control-rack::before { content: ""; position: absolute; left: 0; top: -2px; width: 55px; height: 3px; background: repeating-linear-gradient(116deg,#e7ea8c 0 5px,#4a4b40 5px 8px); }
.control-label { display: flex; flex-direction: column; gap: 4px; margin-right: 1px; }
.control-label label { font-size: 16px; font-weight: 780; }
.control-label span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.stepper { display: flex; align-items: stretch; height: 43px; width: 155px; padding: 3px; border: 1px solid #555850; border-radius: 4px; background: #151615; }
.stepper button { display: grid; place-content: center; padding: 0; width: 32px; flex-shrink: 0; border-radius: 2px; background: #313431; font: 23px/1 Arial,sans-serif; }
.stepper button:disabled { color: #808478; background: #242723; }
.stepper input { padding: 0; width: 100%; min-width: 0; color: #f4f7eb; font: italic 800 25px/1 "Arial",sans-serif; text-align: center; background: transparent; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.presets, .filter-list { display: flex; align-items: center; gap: 6px; }
.presets button, .filter-list button { border: 1px solid #464943; border-radius: 3px; background: #2b2d2a; padding: 7px 13px; color: #c8cbc1; line-height: 1.3; font-size: 13px; font-weight: 650; }
.presets button:hover:not(:disabled), .filter-list button:hover, .stepper button:hover:not(:disabled) { border-color: #879057; background: #414535; }
.presets [aria-pressed="true"], .filter-list [aria-pressed="true"] { border-color: #9ca847; background: #3a4026; color: #e2f457; }
.draw-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: #181b0f; border-radius: 3px; background: var(--signal); font-size: 17px; font-weight: 900; letter-spacing: .01em; transition: background .15s, transform .15s; }
.control-rack .draw-button { margin-left: auto; min-width: 225px; padding: 10px 22px; }
.draw-button .btn-arrow { margin-left: auto; padding-left: 7px; width: 25px; }
.draw-button:hover:not(:disabled) { background: #f0ff72; }
.draw-button:active:not(:disabled) { transform: translateY(1px); }
.draw-button:disabled { opacity: .56; }
#count-error { width: 100%; margin-top: -10px; font-size: 13px; color: #ffb2aa; }
.error-banner { margin: 0 0 12px; padding: 12px 15px; border: 1px solid #c8786d; background: #3b2827; color: #ffd2c7; }
.unlock-display { position: absolute; width: 150px; height: 150px; right: 23%; top: 50%; transform: translate(50%,-50%); }
.hero.is-unlocking .hero-art { filter: brightness(.62); transition: filter .18s; }
.rotor { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px #0008); animation: unlock-turn 1.34s ease both; }
.timing-ring { position: absolute; inset: 5%; border: 3px solid #ff634c; border-radius: 50%; box-shadow: inset 0 0 13px #ff4c1970,0 0 9px #ff553a85; z-index: 1; animation: unlock-ring .65s ease-in-out 2; }
.unlock-indicator { position: absolute; width: 72%; left: 14%; height: 4px; background: #243a41; top: -13px; }
.unlock-indicator i { display: block; height: 100%; background: #6abaf5; transform-origin: left; animation: unlock-progress 1.32s linear forwards; }
@keyframes unlock-ring { from { transform: scale(1.38); opacity: .45; } to { transform: scale(.93); opacity: 1; } }
@keyframes unlock-turn { 0% { transform: rotate(-37deg) scale(.9); opacity: .5; } 22% { opacity: 1; } 45% { transform: rotate(0) scale(1); } 100% { transform: rotate(45deg) scale(1); } }
@keyframes unlock-progress { from {transform: scaleX(.02)} to {transform: scaleX(1)} }
.pool-section { margin-top: 30px; }
.section-header, .section-heading { display: flex; align-items: center; }
.section-header { justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.section-heading { gap: 12px; }
.heading-mark { width: 14px; height: 22px; background: linear-gradient(90deg,var(--signal) 0 7px,transparent 7px 10px,var(--signal) 10px); }
.section-heading h2, .section-heading h1 { font-size: 26px; line-height: 1.25; font-weight: 880; letter-spacing: -.03em; }
.english-label { color: #94998f; font-size: 10px; letter-spacing: .12em; margin-top: 5px; }
.text-link, footer button { display: inline-flex; align-items: center; gap: 8px; color: #c1c4b9; font-size: 13px; font-weight: 600; }
.text-link .icon { width: 16px; height: 16px; }
.section-header:has(.pool-actions) { flex-wrap: wrap; }
.pool-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.pool-actions [data-open-picker] { min-height: 34px; padding: 6px 12px; color: var(--signal); background: #303524; border: 1px solid #666d3f; border-radius: 3px; }
.pool-actions [data-open-picker]:hover:not(:disabled) { background: #41472b; border-color: var(--signal); }
.pool-actions [data-open-picker]:disabled { opacity: .55; }
.pool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.first { --rarity: #ff8778; --slot: #502d2f; --glint: #965748; }
.second { --rarity: #edcf78; --slot: #3e3729; --glint: #836c3f; }
.third { --rarity: #c3a9f6; --slot: #383042; --glint: #675285; }
.prize-card { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #42433f; border-radius: 5px; text-align: left; background: #242625; transition: border-color .18s, transform .18s; }
.prize-card:hover { border-color: var(--rarity); transform: translateY(-2px); }
.card-art { display: grid; place-items: center; position: relative; isolation: isolate; height: clamp(180px,15vw,230px); overflow: hidden; border-bottom: 2px solid var(--rarity); background-color: var(--slot); background-image: radial-gradient(ellipse at 48% 85%,var(--glint),transparent 68%),repeating-linear-gradient(126deg,transparent 0 15px,#0000000f 15px 16px),linear-gradient(110deg,transparent,#10131455); }
.card-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#fff5 .7px,transparent .8px); background-size: 5px 5px; opacity: .22; mask-image: linear-gradient(120deg,#000 0%,transparent 49%,#000); }
.card-art::after { content: ""; position: absolute; width: 50px; height: 5px; right: 10px; bottom: 8px; background: repeating-linear-gradient(120deg,var(--rarity) 0 5px,transparent 5px 8px); opacity: .45; }
.card-art > img { display: block; min-height: 0; width: 71%; height: 91%; object-fit: contain; position: relative; filter: drop-shadow(0 7px 5px #0004); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; line-height: 1.15; color: #e7e9dd; background: #141615b8; border-left: 3px solid var(--rarity); border-radius: 1px; font-size: 11px; font-weight: 700; }
.badge .icon { width: 12px; height: 12px; }
.card-art .badge { z-index: 2; position: absolute; left: 11px; top: 11px; }
.rank-mark { position: absolute; top: 7px; right: 12px; color: var(--rarity); font: 950 italic 28px/1 Arial,sans-serif; letter-spacing: -.09em; }
.card-info { display: block; padding: 15px 17px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-title strong { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.card-title .icon { width: 15px; height: 15px; color: #aaa; }
.card-data { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 5px; color: #b3b6aa; font-size: 12px; }
.card-data > span { display: inline-flex; align-items: baseline; gap: 7px; }
.card-data b { color: var(--rarity); font: italic 800 18px/1 Arial,sans-serif; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 30px 0 0; padding: 17px 0 22px; border-top: 1px solid #373936; color: #93978d; font-size: 12px; font-weight: 550; }
footer i { color: #666e59; margin: 0 4px; }
footer button { padding: 3px 0; background: transparent; font-size: 12px; color: #aeb1a6; }
footer .icon { width: 15px; height: 15px; }
.filter-list { margin: 18px 0 24px; flex-wrap: wrap; }
.atlas-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.atlas-grid .card-art { height: 210px; }
.atlas-grid .card-title strong { font-size: 16px; }
.atlas-grid .card-info { padding: 12px 14px; }
dialog { width: min(660px,calc(100% - 28px)); max-height: 86dvh; padding: 0; border: 2px solid #5c605c; border-radius: 8px; color: #f0f1e8; background: #202221; box-shadow: 0 20px 80px #000a; }
dialog::backdrop { background: #070909bc; backdrop-filter: blur(4px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-inner { padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #454742; margin-bottom: 15px; }
.modal-head h2 { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 880; letter-spacing: -.03em; }
.modal-head h2::before { content: ""; width: 7px; height: 18px; transform: skew(-18deg); background: var(--signal); }
.icon-button { display: grid; place-items: center; background: #353834; border: 1px solid #545750; width: 31px; height: 31px; padding: 0; border-radius: 3px; }
.icon-button .icon { width: 17px; height: 17px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin-bottom: 8px; border-radius: 3px; background: #343730; color: #d6d9cc; font-size: 13px; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; gap: 5px; padding: 6px; border: 1px solid #454842; background-color: #191b19; background-image: repeating-conic-gradient(#252724 0% 25%,transparent 0% 50%); background-size: 12px 12px; }
.result-tile { min-width: 0; position: relative; overflow: hidden; background: #2a2d29; border: 1px solid #555850; border-bottom: 2px solid var(--rarity); border-radius: 3px; padding-bottom: 6px; }
.result-tile img { display: block; width: 100%; height: 88px; background: radial-gradient(ellipse at bottom,var(--glint),var(--slot)); padding: 4px; object-fit: contain; }
.original-art { display: block; cursor: zoom-in; }
.original-art:focus-visible { outline-offset: -3px; }
.result-tile strong, .result-tile small { display: block; padding: 0 5px; overflow-wrap: anywhere; }
.result-tile strong { font-size: 12px; line-height: 1.4; margin: 6px 0 2px; }
.result-tile small { font-size: 10px; color: var(--rarity); }
.empty-slot { border: 1px solid #343831; border-radius: 3px; background: #12151233; min-height: 68px; }
.result-grid:has(> .result-tile:only-child) { grid-template-columns: 1fr; }
.result-tile:only-child { text-align: center; }
.result-tile:only-child img { height: min(58dvh, 580px); padding: 6px; }
.collect-button kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid currentColor; border-bottom-width: 3px; border-radius: 3px; font: 800 13px/1 Arial,sans-serif; }
.modal-action { margin-top: 17px; padding: 9px 24px; width: 100%; }
.dialog-note, .rule-list { font-size: 14px; line-height: 1.75; color: #bfc3b8; }
.dialog-note { margin-bottom: 13px; }
.rule-list { margin: 0; padding-left: 20px; }
.rule-list li + li { margin-top: 8px; }
.history-empty { padding: 27px 4px; text-align: center; color: var(--muted); }
.history-empty .icon { color: var(--signal); width: 30px; height: 30px; margin-bottom: 9px; }
.history-empty small { display: block; margin-top: 5px; }
.history-row { padding: 12px 0; border-top: 1px solid var(--line); }
.history-row summary { cursor: pointer; font-size: 13px; }
.history-row summary b { margin-left: 6px; }
.history-row summary span { margin-left: 12px; color: var(--muted); }
.history-row .result-grid { margin-top: 10px; }

dialog:has(.prize-picker) { overflow: hidden; }
dialog:has(.prize-picker) .dialog-inner { max-height: calc(86dvh - 4px); }
dialog:has(.prize-picker) .dialog-inner,
dialog:has(.prize-picker) #dialog-content,
.prize-picker { display: flex; flex-direction: column; min-height: 0; }
dialog:has(.prize-picker) .modal-head { flex: none; }
.picker-tiers { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 5px 4px; }
.picker-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker-group + .picker-group { margin-top: 20px; }
.picker-group legend { display: flex; align-items: baseline; gap: 8px; padding: 0 0 0 8px; border-left: 3px solid var(--rarity); font-size: 16px; line-height: 1.2; }
.picker-tier-odds { color: var(--rarity); font: italic 750 15px/1.2 Arial,sans-serif; }
.picker-toolbar, .picker-group-actions, .picker-footer { display: flex; align-items: center; gap: 8px; }
.picker-toolbar { justify-content: space-between; padding: 5px 0; }
.picker-group-summary, .picker-status { color: #c1c6b8; font-size: 12px; font-variant-numeric: tabular-nums; }
.picker-group-actions { gap: 3px; }
.picker-group-actions button { min-height: 31px; padding: 3px 8px; background: transparent; font-size: 12px; white-space: nowrap; }
.picker-group-actions button:hover:not(:disabled) { color: var(--signal); }
.picker-group-actions button:disabled { color: #94998e; }
.picker-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.picker-option { display: flex; align-items: center; min-width: 0; gap: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; background: #252725; color: #bfc3b8; font-size: 13px; line-height: 1.35; cursor: pointer; }
.picker-option:has(:checked) { background: #303329; border-color: #596143; color: #f1f1eb; }
.picker-option:hover, .picker-option:focus-within { border-color: var(--signal); }
.picker-option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--signal); cursor: pointer; }
.picker-option img { flex: none; object-fit: contain; width: 33px; height: 33px; border-radius: 2px; background: var(--slot); }
.picker-option span { overflow-wrap: anywhere; }
.picker-footer { flex: none; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.picker-footer .draw-button { flex: none; min-height: 40px; padding: 7px 20px; font-size: 15px; }
.picker-warning { color: #ffb2aa; }
@media (max-width:520px) {
  .pool-actions { gap: 12px; }
  .pool-actions [data-open-picker] { padding: 5px 9px; }
  .picker-tiers { padding: 0 2px 4px; }
  .picker-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .picker-option { gap: 5px; font-size: 12px; }
  .picker-option img { width: 28px; height: 32px; }
}
@media (max-width:1000px) {
  .header-inner,.page-wrap { width: calc(100% - 60px); }
  .control-rack { padding: 18px; gap: 13px; }
  .control-rack .draw-button { min-width: 185px; }
  .presets button { padding: 6px 9px; }
  .stepper { width: 135px; }
  .hero { min-height: 285px; }
}
@media (max-width:760px) {
  .header-inner,.page-wrap { width: calc(100% - 32px); } .topbar {height: 65px;} .header-inner { gap: 30px; } .brand { font-size: 19px; gap: 6px; } .brand-mark {width: 34px; height: 34px;} .brand small {font-size: 6.5px;}
  .primary-nav {gap: 16px;} .primary-nav a {font-size: 13px;} .history-button {font-size: 12px; padding: 7px 10px; gap: 5px;}
  .page-wrap { padding-top: 19px; } .hero { min-height: clamp(210px,35vw,272px); } .hero h1 { font-size: clamp(40px,7vw,52px); } .hero-copy {padding: 24px 4%;}
  .hero-kicker { font-size: 11px; } .hero-meta { font-size: 11px; margin-top: 18px; padding-top: 10px; }
  .control-rack { display: grid; grid-template-columns: auto minmax(80px,138px) 1fr; gap: 13px; padding:16px; } .control-label label {font-size:14px;} .stepper {width:100%;}
  .presets { justify-content: flex-end; } .control-rack .draw-button { grid-column: 1/-1; margin:0; width:100%; } .draw-button .btn-arrow { position:absolute; right:22px; }
  #count-error {grid-column: 1/-1; margin:0;}
  .pool-grid,.atlas-grid {gap:9px;} .pool-grid .card-info {padding:12px 10px;} .card-title strong {font-size:15px;} .card-art {height:130px;} .card-data {flex-wrap:wrap; font-size:11px;}
  .section-heading {gap:8px;} .section-heading h2,.section-heading h1 {font-size:22px;} .atlas-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:520px) {
  .header-inner,.page-wrap {width:calc(100% - 26px);} .header-inner {gap:17px;} .brand {font-size:16px;} .brand small {font-size:5.7px;letter-spacing:.1em;} .brand-mark {width:30px;height:30px;}
  .primary-nav {gap:11px;} .primary-nav a {font-size:12px;white-space:nowrap;} .history-button {font-size:11px;padding:6px 8px;white-space:nowrap;} .history-button .icon {width:14px;height:14px;}
  .hero { align-items:flex-end; min-height:312px; } .hero-art { height: 78%; object-fit: cover; object-position: 79% 57%; }
  .hero-shade { background: linear-gradient(0deg,#171b1a 0%,#171b1a 19%,#171b1ad9 28%,#171b1a30 49%,transparent 65%); }
  .hero-copy {padding:13px 17px 17px;display:grid;grid-template-columns:1fr;align-items:start;} .hero h1 {font-size:38px; margin:4px 0;}.hero-subtitle {font-size:10px; letter-spacing:.17em;}
  .hero-kicker {font-size:10px;gap:6px;} .tick-mark {width:12px;height:8px;} .hero-meta {margin-top:10px;padding-top:0;border:0;font-size:10px;gap:6px;} .hero-meta .icon {width:12px;height:12px;}
  .lock-readout {top:10px;bottom:auto;right:10px;} .unlock-display {width:100px;height:100px;top:30%;right:39%;}
  .control-rack {grid-template-columns:auto 1fr;gap:10px 12px;padding:13px;} .control-label {gap:2px;} .control-label span {font-size:10px;} .stepper {height:38px;max-width:165px;justify-self:end;}
  .presets {grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;} .presets button {padding:5px 2px;font-size:12px;} .control-rack .draw-button {min-height:43px;font-size:15px;}
  .pool-section {margin-top:24px;}.section-header {margin-bottom:13px;}.section-heading h2,.section-heading h1 {font-size:21px;}.english-label {font-size:8px;}.text-link {font-size:12px;}
  .pool-grid {grid-template-columns:1fr;}.pool-grid .prize-card {display:grid;grid-template-columns:39% 1fr;}.pool-grid .card-art {height:115px;border-bottom:0;border-right:2px solid var(--rarity);}
  .pool-grid .card-art img {height:75%;width:86%;align-self:end;}.pool-grid .card-art .badge {left:6px;top:6px;}.pool-grid .card-info {display:flex;justify-content:center;flex-direction:column;padding:14px;}.pool-grid .rank-mark {font-size:16px;top:6px;right:7px;}
  .atlas-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.atlas-grid .card-art {height:172px;}.atlas-grid .card-info {padding:11px;}.atlas-grid .card-title strong {font-size:14px;}
  .dialog-inner {padding:13px;}.modal-head h2 {font-size:20px;}.result-grid {gap:3px;padding:3px;}.result-tile img {height:54px;padding:1px;}.result-tile strong {font-size:10px;padding:0 3px;}.result-tile small {padding:0 3px;font-size:9px;}
  footer {margin-top:24px;font-size:10px;} footer button {font-size:11px;}
}
@media (max-width:355px) { .header-inner {gap:9px;} .primary-nav {gap:8px;} .history-button .icon {display:none;} .hero {min-height:268px;} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation:none !important; transition:none !important;scroll-behavior:auto !important; } }
