:root {
  --r-common: #9aa7b0;
  --r-uncommon: #52c07a;
  --r-rare: #62abe9;
  --r-epic: #b57cf0;
  --r-legendary: #e5a53c;
}
[data-rarity="common"] { --rc: var(--r-common); }
[data-rarity="uncommon"] { --rc: var(--r-uncommon); }
[data-rarity="rare"] { --rc: var(--r-rare); }
[data-rarity="epic"] { --rc: var(--r-epic); }
[data-rarity="legendary"] { --rc: var(--r-legendary); }

body.hub { max-width: 1320px; margin-inline: auto; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font: 600 15px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; position: relative; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav .badge { position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font: 700 10px/16px var(--mono); text-align: center; padding: 0 4px; }
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 640px) {
  body.hub .topbar { flex-wrap: wrap; gap: 8px; }
  body.hub .brand { white-space: nowrap; font-size: 17px; }
  .topbar-left { gap: 4px 10px; }
  .nav { gap: 0; }
  .nav a { font-size: 13px; padding: 6px 7px; }
  body.hub .topbar-actions { gap: 6px; margin-left: auto; }
}
.user-pill { font: 600 12px var(--mono); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); }
.user-pill .role { color: var(--accent); margin-left: 6px; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.page-head h1 { margin: 0; font: 700 28px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.section { margin-bottom: 22px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-title .count { font: 600 12px var(--mono); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; letter-spacing: 0; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.btn.danger { color: var(--danger); border-color: rgba(234, 77, 79, .4); background: transparent; }
.btn.ct { background: var(--ct); border-color: var(--ct); color: #06121d; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.field input, .field select, .input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; color: var(--text); font-size: 14px; min-width: 0; }
.player-search { display: grid; gap: 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button { flex: 1; background: transparent; border: 0; padding: 7px 12px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }
.toast.err { border-color: var(--danger); color: #ffb3b4; }
.toast.ok { border-color: rgba(82, 192, 122, .6); }

.rarity { font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rc); }
.rarity-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); flex: none; }

.stats { display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 44px minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.stat-name { font: 600 10px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.stat-val { font: 600 12px var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-val.range { color: var(--muted); font-weight: 400; font-size: 11px; }
.bar { position: relative; height: 6px; border-radius: 3px; background: #0b0f12; box-shadow: inset 0 0 0 1px var(--line); }
.bar .rng { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--rc, var(--accent)) 38%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, var(--accent)) 70%, transparent); min-width: 3px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc, var(--accent)) 30%, transparent), var(--rc, var(--accent))); }
.bar .mark { position: absolute; top: -3px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px var(--rc, #fff); }
.opened .bar .rng { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); }

.grid-cards { perspective: 1400px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { position: relative; border-radius: 12px; padding: 14px 14px 12px; background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 10%, var(--panel-2)) 0%, var(--panel) 55%); border: 1px solid color-mix(in srgb, var(--rc) 45%, var(--line)); box-shadow: 0 10px 30px -18px var(--rc); display: grid; gap: 10px; align-content: start; transform-style: preserve-3d; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.card-title { min-width: 0; }
.card-name { font: 700 20px/1.05 var(--display); letter-spacing: .04em; overflow-wrap: anywhere; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-id { font: 11px var(--mono); color: var(--muted); }
.card-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 9px; min-height: 42px; }
.record { font: 12px var(--mono); color: var(--muted); display: flex; gap: 10px; }
.record b { color: var(--text); font-weight: 600; }
.record .w { color: var(--ok); }
.record .l { color: var(--danger); }
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 6px; padding: 3px 6px; cursor: pointer; font-size: 13px; }
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.rename-input { font: 700 18px var(--display); letter-spacing: .04em; width: 100%; background: var(--panel-2); border: 1px solid var(--accent); border-radius: 5px; padding: 1px 6px; color: var(--text); }

.card.sealed { background:
  repeating-linear-gradient(135deg, color-mix(in srgb, var(--rc) 7%, transparent) 0 10px, transparent 10px 20px),
  linear-gradient(165deg, color-mix(in srgb, var(--rc) 14%, var(--panel-2)) 0%, var(--panel) 60%); }
.seal { display: flex; align-items: center; gap: 8px; font: 700 12px var(--mono); letter-spacing: .2em; color: var(--rc); text-transform: uppercase; }
.seal::before, .seal::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 60%, transparent), transparent); }
.btn.open-btn { background: var(--rc); border-color: var(--rc); color: #0c0f12; width: 100%; font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 9px; }
.btn.open-btn:hover { filter: brightness(1.1); }

.card.opening { animation: rumble .09s linear infinite; }
.card.opening::after { content: ""; position: absolute; inset: -2px; border-radius: 13px; pointer-events: none; box-shadow: 0 0 22px 4px var(--rc), inset 0 0 30px color-mix(in srgb, var(--rc) 40%, transparent); animation: glow .6s ease-in-out infinite alternate; }
@keyframes rumble { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-1.5px, 1px) rotate(-.6deg); } 50% { transform: translate(1.5px, -1px) rotate(.5deg); } 75% { transform: translate(-1px, -1px) rotate(.3deg); } 100% { transform: translate(1px, 1px) rotate(-.4deg); } }
@keyframes glow { from { opacity: .45; } to { opacity: 1; } }
.burst { position: absolute; inset: 0; pointer-events: none; border-radius: 12px; overflow: hidden; }
.burst::before { content: ""; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-12deg); animation: sweep .9s ease-out forwards; }
.burst::after { content: ""; position: absolute; left: 50%; top: 45%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 2px solid var(--rc); animation: ring .9s ease-out forwards; }
@keyframes sweep { to { left: 130%; } }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(16); opacity: 0; } }
.card.revealed { animation: settle 1.4s ease-out; }
@keyframes settle { 0% { box-shadow: 0 0 40px 8px var(--rc); } 100% { box-shadow: 0 10px 30px -18px var(--rc); } }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.catalog .card { padding: 12px; gap: 8px; }
.catalog .card-name { font-size: 18px; }

.panel.pad { padding: 14px; }
.picker { display: grid; gap: 6px; max-height: 380px; overflow: auto; padding-right: 2px; }
.pick { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) repeat(5, 34px) 70px; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 13px; }
.pick:hover { border-color: var(--muted); }
.pick.on { border-color: var(--rc); box-shadow: inset 3px 0 0 var(--rc); background: color-mix(in srgb, var(--rc) 8%, var(--panel-2)); }
.pick.disabled { opacity: .45; cursor: not-allowed; }
.pick input { accent-color: var(--accent); margin: 0; }
.pick .nm { display: flex; gap: 7px; align-items: center; min-width: 0; }
.pick .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pick .v { font: 12px var(--mono); text-align: right; color: var(--muted); }
.pick .rec { font: 11px var(--mono); color: var(--muted); text-align: right; }
.pick-head { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) repeat(5, 34px) 70px; gap: 8px; padding: 0 10px; font: 600 10px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pick-head span:nth-child(n+3) { text-align: right; }
@media (max-width: 640px) {
  .pick, .pick-head { grid-template-columns: 22px minmax(0, 1fr) 70px; }
  .pick .v, .pick-head .v { display: none; }
}

.new-battle { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; }
@media (max-width: 900px) { .new-battle { grid-template-columns: minmax(0, 1fr); } }
.settings { display: grid; gap: 12px; align-content: start; }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.picker-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.picker-bar b { color: var(--text); font-family: var(--mono); }
.form-msg { min-height: 1.3em; font-size: 13px; color: var(--muted); margin: 0; }
.form-msg.err { color: var(--danger); }

.battles { display: grid; gap: 8px; }
.battle-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; }
a.battle-row:hover { border-color: var(--muted); }
.battle-row .vs { font: 700 17px var(--display); letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-row .vs em { font-style: normal; color: var(--muted); font-weight: 500; margin: 0 6px; }
.battle-row .meta { font: 11px var(--mono); color: var(--muted); margin-top: 2px; }
.battle-row .score { font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.battle-row .actions { display: flex; gap: 6px; }
.status { font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; text-align: center; border: 1px solid var(--line); color: var(--muted); }
.status.live { color: var(--ok); border-color: rgba(82, 192, 122, .45); }
.status.live::before { content: "● "; animation: blink 1.2s steps(2) infinite; }
.status.pending { color: var(--accent); border-color: rgba(229, 165, 60, .45); }
.status.win { color: #0b1a10; background: var(--ok); border-color: var(--ok); }
.status.loss { color: #fff; background: var(--danger); border-color: var(--danger); }
.status.draw { color: var(--text); background: var(--panel-2); }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 640px) { .battle-row { grid-template-columns: 64px minmax(0, 1fr); } .battle-row .score, .battle-row .actions { grid-column: 2; } }

.challenge { border-color: rgba(229, 165, 60, .5); background: linear-gradient(90deg, rgba(229, 165, 60, .08), var(--panel) 40%); }
.accept-box { margin-top: 6px; padding: 12px; border: 1px solid rgba(229, 165, 60, .35); border-radius: 9px; background: var(--panel); display: grid; gap: 10px; }
.accept-box > .btn { justify-self: end; }

.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.result-hero .team { font: 700 26px var(--display); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-hero .team.right { text-align: right; }
.result-hero .team small { display: block; font: 600 11px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.result-hero .big { font: 700 54px/1 var(--display); font-variant-numeric: tabular-nums; text-align: center; }
.result-hero .big .dash { color: var(--muted); margin: 0 10px; }
.verdict { text-align: center; font: 700 15px var(--display); letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; }
.verdict.win { color: var(--ok); }
.verdict.loss { color: var(--danger); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .result-grid { grid-template-columns: minmax(0, 1fr); } .result-hero .big { font-size: 40px; } .result-hero .team { font-size: 18px; } }
.mvp { border-radius: 12px; padding: 16px; background: linear-gradient(160deg, rgba(229, 165, 60, .2), var(--panel) 60%); border: 1px solid rgba(229, 165, 60, .55); text-align: center; }
.mvp .label { font: 700 12px var(--mono); letter-spacing: .3em; color: var(--accent); }
.mvp .who { font: 700 30px var(--display); letter-spacing: .05em; margin: 4px 0 2px; }
.mvp .line { font: 13px var(--mono); color: var(--muted); }
.box-table { width: 100%; table-layout: fixed; min-width: 520px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.box-table caption { text-align: left; font: 700 15px var(--display); letter-spacing: .08em; padding: 0 0 6px; }
.box-table th { font: 600 10px var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.box-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid rgba(39, 50, 58, .55); font-family: var(--mono); font-size: 12px; }
.box-table th:first-child, .box-table td:first-child { text-align: left; font-family: var(--body); font-size: 13px; }
.box-table th:first-child { width: 34%; }
.box-table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-table tr.is-mvp td:first-child::after { content: " ★"; color: var(--accent); }
.box-table .mine td:first-child { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.rounds-strip { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 10px; }
.rounds-strip i { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; font: 700 11px var(--mono); color: #0c0f12; font-style: normal; }
.rounds-strip i.T { background: var(--t); }
.rounds-strip i.CT { background: var(--ct); }
.rounds-strip i.lost { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px currentColor; }
.rounds-strip i.lost.T { color: var(--t); }
.rounds-strip i.lost.CT { color: var(--ct); }
.rounds-legend { font-size: 11px; color: var(--muted); margin-top: 8px; }
.state-box { padding: 26px; text-align: center; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .lineups { grid-template-columns: 1fr; } }
.lineup h4 { margin: 0 0 6px; font: 700 15px var(--display); letter-spacing: .08em; }
.lineup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lineup li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 5px; background: var(--panel-2); font-size: 13px; }

.admin { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .admin { grid-template-columns: minmax(0, 1fr); } }
.tpl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tpl-table th { font: 600 10px var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tpl-table td { padding: 9px 8px; border-bottom: 1px solid rgba(39, 50, 58, .6); vertical-align: middle; }
.tpl-table tr.hidden-tpl td { opacity: .5; }
.tpl-table tr.editing td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tpl-table .nm { font: 700 16px var(--display); letter-spacing: .04em; }
.tpl-table .ranges { display: grid; gap: 3px; min-width: 160px; }
.mini { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 6px; align-items: center; font: 10px var(--mono); color: var(--muted); }
.mini .bar { height: 4px; }
.tpl-table .acts { display: flex; gap: 6px; justify-content: flex-end; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--line); border: 0; cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] { background: rgba(82, 192, 122, .35); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--ok); }
.tpl-form { display: grid; gap: 12px; position: sticky; top: 12px; }
.tpl-form h3 { margin: 0; font: 700 18px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.dual { display: grid; grid-template-columns: 82px minmax(0, 1fr) 90px; gap: 10px; align-items: center; }
.dual .lbl { font: 600 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dual .nums { display: flex; gap: 4px; align-items: center; color: var(--muted); }
.dual .nums input { width: 42px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 4px; font: 12px var(--mono); text-align: center; color: var(--text); -moz-appearance: textfield; }
.dual .nums input::-webkit-inner-spin-button { -webkit-appearance: none; }
.slider2 { position: relative; height: 22px; }
.slider2 .bar { position: absolute; left: 0; right: 0; top: 8px; }
.slider2 input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.slider2 input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--rc, var(--accent)); cursor: grab; }
.slider2 input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--rc, var(--accent)); cursor: grab; }
.slider2 input[type=range]::-webkit-slider-runnable-track { background: none; }
.slider2 input[type=range]::-moz-range-track { background: none; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.preview { display: grid; gap: 6px; }
.preview .card { max-width: 280px; }

.login { max-width: 420px; margin: 8vh auto 0; display: grid; gap: 16px; }
.login .panel { padding: 20px; display: grid; gap: 14px; }
.login h1 { margin: 0; font: 700 30px var(--display); letter-spacing: .1em; text-align: center; }
.login form { display: flex; gap: 8px; }
.login form .input { flex: 1; }
.quick { display: grid; gap: 6px; }
.quick button { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.quick .role { font: 600 10px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

.watch { margin-top: 14px; }
.quick .role.role-admin { color: var(--accent); }

.wallet-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); color: var(--text); text-decoration: none; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-pill:hover { border-color: var(--accent); }
.wallet-coin { color: var(--accent); font-size: 13px; line-height: 1; }
.wallet-pill.flash-up { animation: wallet-up 1.2s ease-out; }
.wallet-pill.flash-down { animation: wallet-down 1.2s ease-out; }
.wallet-delta { position: absolute; right: 8px; top: 100%; font: 700 11px var(--mono); pointer-events: none; animation: wallet-float 1.6s ease-out forwards; }
.wallet-delta.up { color: var(--ok); }
.wallet-delta.down { color: var(--danger); }
@keyframes wallet-up { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 25%, var(--panel-2)); } }
@keyframes wallet-down { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 45%, transparent); } }
@keyframes wallet-float { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .wallet-pill.flash-up, .wallet-pill.flash-down { animation: none; } }
.btn.buy-btn:disabled { cursor: not-allowed; filter: grayscale(.6); }
.section-title .sub-note { margin-left: auto; font: 400 12px var(--body); letter-spacing: 0; text-transform: none; }
.section-title .sub-note a { color: var(--accent); }
.admin-tabs { display: flex; gap: 4px; margin-top: 6px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 6px 12px; color: var(--muted); text-decoration: none; font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tpl-price { font: 11px var(--mono); color: var(--muted); margin-top: 2px; }
.tpl-override { margin-left: 6px; color: var(--accent); text-transform: uppercase; font-size: 9.5px; letter-spacing: .08em; }

.fair-proof { font-size: 12px; color: var(--muted); }
.fair-proof summary { cursor: pointer; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fair-proof dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 8px 0; }
.fair-proof dd { margin: 0; }
.fair-value, .fair-cmd { overflow-wrap: anywhere; word-break: break-all; font-family: var(--mono); font-size: 11px; color: var(--text); }
.fair-cmd { display: block; margin: 6px 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.fair-note, .fair-result { margin: 6px 0; }
.operator-card .fair-proof { padding: 0 12px 10px; }

.admin-reason { display: grid; gap: 4px; margin: 12px 0 0; max-width: 520px; font-size: 11px; color: var(--muted); }
.audit-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.audit-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.audit-meta { float: right; color: var(--muted); font: 11px var(--mono); }
.audit-reason { margin-top: 4px; font-size: 12px; }
.audit-diff { margin: 6px 0 0; padding-left: 16px; font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .audit-meta { float: none; display: block; } }
