:root {
  color-scheme: light;
  --mist: #edf2f8;
  --paper: #fcfdff;
  --silver: #e2ebf5;
  --ink: #152c4b;
  --muted: #4e627b;
  --line: #c9d6e5;
  --cobalt: #174cc8;
  --cobalt-deep: #103a9f;
  --cobalt-soft: #e8efff;
  --success: #0d6858;
  --danger: #a12a42;
  --warning: #74501b;
  --radius: 12px;
  --corner: 6px;
  --shadow: 0 2px 4px #213f6210;
  --shadow-dialog: 0 20px 70px #122e5340;
  --ui: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.55 var(--ui);
  background:
    linear-gradient(126deg, #fafcfe00 42%, #c8daed60 100%),
    repeating-linear-gradient(0deg, #7b9bb212 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #7b9bb212 0 1px, transparent 1px 28px),
    var(--mist);
  overflow-wrap: anywhere;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--configured-bg, none) center/cover no-repeat;
  opacity: .25;
  pointer-events: none;
  content: "";
}
body { isolation: isolate; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
h1, h2, h3, strong { font-weight: 750; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 15px; line-height: 1.4; }
small, .subtle { font-size: 13px; color: var(--muted); }
time, code, .number { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: var(--cobalt); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: #174cc824; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #356be8;
  outline-offset: 3px;
}
.primary, .secondary, .quiet, .close, .tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--corner);
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  transition: background-color .16s, border-color .16s, transform .16s;
}
.primary { color: white; background: var(--cobalt); }
.primary:hover:not(:disabled) { background: var(--cobalt-deep); }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: var(--cobalt-soft); border-color: #8ca7e2; }
.quiet, .close, .tabs button { background: transparent; }
.quiet:hover:not(:disabled), .close:hover:not(:disabled) { background: var(--cobalt-soft); }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .quiet:active:not(:disabled) { transform: translateY(1px); }
.small { padding-inline: 8px; font-size: 13px; }
.full { width: 100%; }
.text-link { font-weight: 700; text-underline-offset: 3px; }
input, select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #aebfd3;
  border-radius: var(--corner);
  color: var(--ink);
  background: #fbfdff;
}
input::placeholder { color: #536b86; opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
input.code-input { font-family: var(--mono); letter-spacing: .02em; }
label { display: block; color: var(--muted); font-weight: 700; }

.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.topbar {
  background: #fcfdfff2;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.top-inner nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top-inner .quiet { color: var(--cobalt-deep); }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; white-space: nowrap; }
.station-mark {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--cobalt);
  clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
}
.station-mark::after {
  width: 14px;
  height: 14px;
  border: 2px solid white;
  background: linear-gradient(125deg, transparent 42%, white 42% 57%, transparent 57%);
  content: "";
}
.main { padding-block: 32px 24px; }
.masthead { margin-bottom: 28px; }
.masthead h1 { font-size: clamp(34px, 5.8vw, 60px); letter-spacing: -.04em; line-height: 1.12; margin-bottom: 12px; }
.masthead h1::after { display: block; width: 72px; height: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--cobalt) 0 75%, #a2bde7 75%); content: ""; }
.masthead p { color: var(--muted); font-size: 15px; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 12px 16px; }
.workbench > :not(.machine) { grid-column: 2; align-self: start; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.machine {
  grid-area: 1 / 1 / span 3 / 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(153deg, #fbfdff, #ecf3fb 68%, #dce7f4);
  overflow: hidden;
}
.machine > .panel-head { border-bottom: 1px solid var(--line); padding: 14px 20px; background: #fafdffad; }
.device-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  color: #455d77;
  background: #e5edf6;
  border-radius: var(--corner);
  font-size: 13px;
  white-space: nowrap;
}
.device-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #607995; }
.device-state[data-tone="ok"] { background: #e5f3ef; color: var(--success); }
.device-state[data-tone="ok"]::before { background: var(--success); }
.dial-bay {
  display: grid;
  place-items: center;
  padding: 8px;
  background:
    radial-gradient(ellipse at 50% 55%, #faffff 0%, #eef5fc80 56%, transparent 72%),
    linear-gradient(0deg, transparent calc(50% - .5px), #8da5bf42 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), #8da5bf42 50%, transparent calc(50% + .5px));
}
.dial { position: relative; width: min(100%, 430px); aspect-ratio: 1; }
.dial canvas { display: block; width: 100%; height: 100%; filter: drop-shadow(0 9px 9px #37577830); }
.dial-lights { position: absolute; inset: 0; pointer-events: none; }
.dial-lights i { position: absolute; inset: 4.7% 49.45%; transform: rotate(var(--angle)); }
.dial-lights i::before { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #7694b5; content: ""; }
.dial-running .dial-lights i::before { animation: dial-light 1.1s ease-in-out infinite alternate; }
.dial-running .dial-lights i:nth-child(even)::before { animation-delay: -.55s; }
@keyframes dial-light { from { background: #7694b5; } to { background: #174cc8; box-shadow: 0 0 5px #2869f0; } }
.pointer {
  position: absolute;
  top: 2%;
  left: 50%;
  width: 8%;
  height: 13%;
  translate: -50%;
  clip-path: polygon(0 0,100% 0,50% 100%);
  background: linear-gradient(90deg, #123677, var(--cobalt) 49%, #326de8 50%, #1847ac);
  pointer-events: none;
}
.spin-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 2px solid #f5faff;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 0 0 2px #99b0ca, inset 0 -5px 12px #253e7740, 0 4px 8px #29456d38;
  color: #fff;
  background: linear-gradient(151deg, #4d7fea, var(--cobalt) 55%, #123b9d);
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 800;
  white-space: nowrap;
}
.spin-button[aria-disabled="true"] { color: #243e5c; background: linear-gradient(#f2f6fb, #becde0); cursor: default; }
.spin-button[aria-disabled="false"]:hover { background: linear-gradient(#3f78ed, #0e3ea9); }
.spin-mark { width: 13px; height: 14px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dial-ready .spin-button::after { position: absolute; inset: -6px; border: 1px solid #2b63da; border-radius: inherit; animation: signal 2s ease-out infinite; content: ""; }
@keyframes signal { 0% { opacity: .8; transform: scale(.98); } 85%, 100% { opacity: 0; transform: scale(1.14); } }
.machine-foot { min-height: 64px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); background: #f7fbffbf; }
.machine-hint { text-align: center; color: var(--muted); font-size: 13px; }

.account { display: flex; align-items: center; padding: 4px 8px; }
.account-main {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  gap: 12px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--corner);
}
.account-main:hover { background: var(--cobalt-soft); }
.account-copy, .profile-name, .exchange-copy { display: grid; gap: 2px; min-width: 0; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: 0 0 auto; position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border: 1px solid #98b1d2; border-radius: 50%; background: #e0edfc; color: #264c7f; font-weight: 800; }
.avatar[data-tint="1"] { background: #e7ecfa; color: #4a4c85; }
.avatar[data-tint="2"] { background: #d9edef; color: #245760; }
.avatar[data-tint="3"] { background: #e7eefa; color: #355178; }
.avatar[data-tint="4"] { background: #e4f1ec; color: #255b50; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.console, .feed { padding: 16px; }
.console h2 { margin-bottom: 16px; }
.console form { display: grid; gap: 8px; }
.console form .primary { margin-top: 4px; }
.feedback { min-height: 1.5em; margin-block: 8px; font-size: 13px; color: var(--muted); }
.feedback[data-tone="ok"] { color: var(--success); }
.feedback[data-tone="error"], [data-tone="error"] { color: var(--danger); }
.query-trigger { justify-content: space-between; width: 100%; padding-inline: 0; color: var(--cobalt-deep); border-top: 1px solid var(--line); border-radius: 0 0 var(--corner) var(--corner); }
.feed { padding-top: 10px; }
.feed > .panel-head { min-height: 44px; }
.feed-window { height: 88px; overflow: hidden; }
.feed-window > .empty { padding: 4px; min-height: 80px; }
.feed-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; height: 44px; }
.feed-row .avatar { height: 28px; width: 28px; font-size: 13px; }
.feed-row time { color: var(--muted); font-size: 13px; }
.feed-copy { display: flex; gap: 8px; min-width: 0; }
.feed-copy strong, .feed-prize { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed-copy strong { max-width: 42%; }
.feed-prize { color: color-mix(in srgb, var(--grade, var(--ink)) 68%, var(--ink)); }
.feed-move { animation: feed-scroll var(--feed-duration, 10s) linear infinite; }
.feed-window:hover .feed-move, .feed-window.feed-paused .feed-move { animation-play-state: paused; }
@keyframes feed-scroll { to { transform: translateY(-50%); } }

.archive, .result-panel { margin-top: 16px; }
.tabs { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; border-bottom: 1px solid var(--line); padding: 4px; }
.tabs button { border-radius: var(--corner); color: var(--muted); }
.tabs button:hover { color: var(--cobalt-deep); background: #f1f5fb; }
.tabs button[aria-selected="true"] { color: var(--cobalt-deep); background: var(--cobalt-soft); box-shadow: inset 0 -3px var(--cobalt); }
.archive-content { padding: 16px; }
.pool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pool-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--grade) 30%, var(--line));
  border-radius: var(--corner);
  background: color-mix(in srgb, var(--grade) 6%, var(--paper));
  transition: transform .16s;
}
.pool-card:hover { transform: translateY(-2px); }
.prize-art {
  --art-size: 56px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--art-size);
  height: var(--art-size);
  overflow: hidden;
  border-radius: var(--corner);
  border: 1px solid color-mix(in srgb, var(--grade) 32%, var(--line));
  color: color-mix(in srgb, var(--grade) 72%, var(--ink));
  background:
    linear-gradient(125deg, #ffffffa0 0 28%, transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 7px, #6f8daa21 7px 8px),
    #ebf2fa;
}
.prize-art::before {
  content: "";
  width: 50%;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  background: linear-gradient(45deg, transparent 45%, currentColor 45% 53%, transparent 53%);
}
.prize-art[data-shape="legendary"]::before { transform: rotate(45deg) scale(.8); }
.prize-art[data-shape="epic"]::before { border-radius: 50%; }
.prize-art[data-shape="rare"]::before { border-style: double; border-width: 4px; }
.prize-art:has(.prize-icon)::before, .prize-art.has-image::before, .prize-art.has-image .prize-icon { display: none; }
.prize-icon { font-size: 24px; }
.prize-img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.badge { width: fit-content; padding: 2px 8px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.badge { color: color-mix(in srgb, var(--grade) 72%, var(--ink)); background: color-mix(in srgb, var(--grade) 13%, var(--paper)); }
.odds-list, .rank-list { list-style: none; padding: 0; }
.odds-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 4px; }
.odds-list strong { flex: 0 0 auto; color: var(--cobalt-deep); }
.note { margin: 12px 4px 0; }
.pool-update { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border-radius: var(--corner); color: var(--cobalt-deep); background: var(--cobalt-soft); }
.rank-row { display: grid; grid-template-columns: 32px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--corner); animation: rank-in .28s both ease-out; animation-delay: var(--delay); }
.rank-row + .rank-row { margin-top: 4px; }
.rank-row[data-place="1"] { background: #f5eddb; }
.rank-row[data-place="2"] { background: #edf2f9; }
.rank-row[data-place="3"] { background: #f5eae5; }
.rank-place { font-weight: 800; color: var(--muted); text-align: center; }
.rank-copy, .rank-score { display: grid; }
.rank-score { text-align: right; }
@keyframes rank-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.empty { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 16px; min-height: 72px; color: var(--muted); text-align: center; }
.footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-block: 16px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }

dialog { border: 1px solid #aebfd3; border-radius: var(--radius); width: min(100% - 32px, 420px); max-height: 86dvh; margin: auto; padding: 16px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-dialog); overflow: auto; overscroll-behavior: contain; }
dialog[open] { animation: dialog-in .23s both ease-out; }
dialog::backdrop { background: #162b4990; }
dialog.wide-dialog { width: min(100% - 32px, 540px); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dialog-heading { display: flex; align-items: center; gap: 8px; }
.close { flex: 0 0 44px; padding: 0; font-size: 24px; }
.tab-small { margin-bottom: 12px; }
.stack { display: grid; gap: 8px; }
.stack > label:not(:first-child) { margin-top: 4px; }
.stack .feedback { margin: 0; }
.stack .feedback:empty { min-height: 0; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.toast { position: fixed; z-index: 3; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50%; width: max-content; max-width: min(420px, 100% - 32px); border-radius: var(--corner); padding: 12px 16px; background: var(--ink); color: white; box-shadow: var(--shadow-dialog); pointer-events: none; }
dialog .toast { position: sticky; left: auto; bottom: 0; margin: 12px auto 0; translate: none; }
.copy-field { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.record-list { display: grid; gap: 8px; }
.record {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--grade, var(--cobalt)) 60%, var(--line));
  border-radius: var(--corner);
  background: #f6f9fd;
}
.record.highlighted { background: var(--cobalt-soft); outline: 2px solid var(--cobalt); outline-offset: -2px; }
.record-ident { display: flex; align-items: center; gap: 12px; width: 100%; }
.record-description { display: grid; gap: 4px; min-width: 0; }
.record-description h3 { color: color-mix(in srgb, var(--grade, var(--ink)) 54%, var(--ink)); }
.record-code { max-width: 100%; user-select: all; font-size: 13px; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.record-actions:empty { display: none; }
#single-record { margin-bottom: 12px; }
#single-record .prize-art { --art-size: 96px; }
.result-panel { padding: 16px; }
.result-panel .panel-head { margin-bottom: 12px; }
.result-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.compact-record { animation: card-in .42s both ease-out; animation-delay: var(--delay); }
.compact-record .record-ident { display: grid; gap: 8px; }
@keyframes card-in { from { opacity: 0; transform: perspective(600px) rotateX(-55deg) translateY(8px); } to { opacity: 1; transform: none; } }
.profile-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar-button { display: grid; place-items: center; padding: 2px; border-radius: 50%; border: 2px dashed #a5b7cc; background: transparent; }
.avatar-button:hover { border-color: var(--cobalt); }
.avatar-button .avatar { width: 52px; height: 52px; font-size: 20px; }
.profile-name .quiet { justify-self: start; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border: 1px solid var(--line); border-radius: var(--corner); background: var(--mist); }
.metrics > div { padding: 8px 4px; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: 13px; }
.metrics dd { font-size: 20px; font-weight: 800; }
.rules { margin-block: 8px; }
.rules summary { display: list-item; min-height: 44px; padding: 10px 0; color: var(--cobalt-deep); cursor: pointer; }
.rules p { padding-bottom: 8px; }
.section-heading { margin-block: 16px 8px; }
.exchange-items { border: 1px solid var(--line); border-radius: var(--corner); padding: 0 8px; }
.exchange-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 8px; }
.exchange-row + .exchange-row { border-top: 1px solid var(--line); }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.avatar-edit { display: flex; gap: 12px; align-items: center; padding-bottom: 8px; }
.avatar-edit .avatar { width: 72px; height: 72px; }

.redeem-wrap { max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin-bottom: 12px; list-style: none; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--line); padding: 8px 4px; font-size: 13px; color: var(--muted); }
.steps li span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: var(--corner); font: 700 13px var(--mono); background: var(--silver); }
.steps li[aria-current="step"] { font-weight: 800; color: var(--cobalt-deep); border-color: var(--cobalt); }
.steps li[aria-current="step"] span { background: var(--cobalt); color: white; }
.steps .step-done { border-color: #7f9cba; }
.redeem-panel { padding: 20px; }
.redeem-panel h2 { margin-bottom: 12px; }
.redeem-panel .record-list { margin-bottom: 12px; }
#outcome-record { margin-bottom: 12px; }
.outcome-symbol { display: grid; place-items: center; height: 44px; width: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--cobalt-soft); color: var(--cobalt-deep); font-size: 20px; font-weight: 800; }

@media (max-width: 820px) {
  .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: 56px; }
  .top-inner .quiet { padding-inline: 8px; font-size: 13px; }
  .wordmark { gap: 8px; }
  .station-mark { height: 24px; width: 24px; flex-basis: 24px; }
  .main { padding-block: 24px 16px; }
  .masthead { margin-bottom: 16px; }
  .workbench { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .workbench > :not(.machine), .machine { grid-area: auto; }
  .machine > .panel-head { padding: 12px; }
  .archive-content, .feed, .console, .result-panel, .redeem-panel { padding-inline: 12px; }
  .pool-grid { gap: 6px; }
  .tabs button { padding-inline: 4px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { display: grid; }
  input, select { font-size: 16px; }
}
@media (max-width: 360px) {
  .record-actions .primary, .record-actions .secondary, .tabs button { padding-inline: 8px; }
  .prize-art { --art-size: 48px; }
  .rank-row { gap: 6px; }
  .dialog-heading .quiet { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .feed-window { height: auto; max-height: 132px; overflow: auto; }
  .feed-rows[aria-hidden="true"] { display: none; }
}
