:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: #0d1118;
  --line: #222a35;
  --muted: #77808d;
  --text: #eef1f4;
  --gold: #f5a43b;
  --gold-bright: #ffc15a;
  --bison-rust: #b95118;
  --mil-spec: #4b73e8;
  --restricted: #914be8;
  --classified: #d548c7;
  --covert: #e2484e;
  --special: #e5ad49;
  --card-width: 214px;
  --card-gap: 10px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% 20%, rgba(104, 49, 18, .18), transparent 36rem), linear-gradient(180deg, #090d13 0, #07090d 58%, #090c11 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, label.upload-button:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  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='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.app-shell { position: relative; z-index: 1; min-height: 100vh; overflow: clip; }
.topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(7, 10, 15, .84);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 13px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.header-logo { width: 54px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.5)); }
.header-event-name { padding-left: 12px; border-left: 1px solid #3b2c1b; }
.brand strong { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 21px; font-weight: 500; letter-spacing: .12em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .24em; }
.brand-mark { width: 36px; height: 36px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; transform: skew(-8deg); border: 1px solid #6a5228; background: linear-gradient(145deg, #191611, #0c0d0f); box-shadow: inset 0 0 18px rgba(229,173,73,.1); }
.brand-mark i { display: block; width: 4px; background: var(--gold); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .6; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .8; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-button, .setup-button, .secondary-button, .add-button { border: 1px solid var(--line); background: #10151c; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.icon-button:hover, .setup-button:hover, .secondary-button:hover, .add-button:hover { border-color: #4b5563; background: #171d25; }
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; padding: 10px; }
.icon-button svg, .setup-button svg, .secondary-button svg, .add-button svg { width: 18px; fill: currentColor; }
.sound-off { display: none; }
.is-muted .sound-on { display: none; }
.is-muted .sound-off { display: block; }
.setup-button, .secondary-button, .add-button { min-height: 41px; display: flex; align-items: center; gap: 9px; padding: 0 16px; font-size: 10px; font-weight: 850; letter-spacing: .13em; }

.opener-view { padding-top: 58px; }
.selected-case-overview { width: min(900px, calc(100% - 40px)); display: grid; grid-template-columns: clamp(220px, 24vw, 285px) minmax(0, 1fr); gap: clamp(28px, 5vw, 65px); align-items: center; margin: 0 auto; }
.selected-case-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.selected-case-art::before { content: ""; position: absolute; z-index: -1; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(245,164,59,.18), rgba(115,47,143,.09) 46%, transparent 72%); filter: blur(12px); }
.selected-case-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0,0,0,.42)); }
.selected-case-overview .hero-copy { padding: 0; text-align: left; }
.selected-case-overview .eyebrow { justify-content: flex-start; }
.hero-copy { padding: 0 20px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 0 0 14px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .28em; }
.eyebrow.left { justify-content: flex-start; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1, .setup-header h1 { margin-bottom: 9px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(42px, 5vw, 72px); font-weight: 400; line-height: .88; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-copy h1 em { color: transparent; -webkit-text-stroke: 1px #707884; font-style: normal; }
.subtitle { color: #68717d; font-size: 9px; font-weight: 800; letter-spacing: .24em; }

.reel-stage { position: relative; height: 284px; display: flex; align-items: center; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); background: linear-gradient(90deg, #07090d 0%, transparent 18%, transparent 82%, #07090d 100%), repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,.015) 80px), #0a0e13; overflow: hidden; }
.reel-stage::before, .reel-stage::after { content: ""; position: absolute; z-index: 8; top: 0; bottom: 0; width: 16vw; pointer-events: none; }
.reel-stage::before { left: 0; background: linear-gradient(90deg, #07090d 15%, transparent); }
.reel-stage::after { right: 0; background: linear-gradient(-90deg, #07090d 15%, transparent); }
.stage-glow { position: absolute; z-index: 0; width: 500px; height: 260px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(229,173,73,.1), transparent 66%); pointer-events: none; }
.reel-window { position: relative; z-index: 2; width: 100%; overflow: hidden; }
.reel { display: flex; gap: var(--card-gap); width: max-content; will-change: transform; transform: translateX(0); }
.reel.spinning { transition: transform 7.6s cubic-bezier(.08,.72,.04,1); }
.reel-empty { width: 100vw; color: #59626d; font-size: 9px; font-weight: 850; letter-spacing: .2em; text-align: center; }
.marker { position: absolute; z-index: 12; left: 50%; width: 0; height: 0; transform: translateX(-50%); filter: drop-shadow(0 0 8px rgba(229,173,73,.55)); }
.marker-top { top: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 15px solid var(--gold-bright); }
.marker-bottom { bottom: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 15px solid var(--gold-bright); }
.stage-vignette { position: absolute; z-index: 7; inset: 0; pointer-events: none; box-shadow: inset 0 28px 35px rgba(0,0,0,.26), inset 0 -28px 35px rgba(0,0,0,.26); }

.drop-card { --rarity: var(--mil-spec); position: relative; flex: 0 0 var(--card-width); height: 218px; padding: 15px 14px 14px; border: 1px solid #252d37; border-bottom: 4px solid var(--rarity); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rarity), transparent 88%), transparent 56%), linear-gradient(145deg, #161c25, #0f141b); overflow: hidden; }
.drop-card::before { content: ""; position: absolute; inset: 0; opacity: .15; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.09) 20.5%, transparent 21%); pointer-events: none; }
.drop-card.selected { border-color: color-mix(in srgb, var(--rarity), white 18%); box-shadow: 0 0 35px color-mix(in srgb, var(--rarity), transparent 60%); }
.drop-art { height: 136px; display: flex; align-items: center; justify-content: center; }
.drop-art img, .result-art img, .editor-preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 9px rgba(0,0,0,.48)); user-select: none; -webkit-user-drag: none; }
.drop-info { position: relative; z-index: 1; min-width: 0; }
.drop-info small { display: block; margin-bottom: 3px; color: #7f8995; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-info strong { display: block; font-size: 13px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.open-controls { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 0; }
.open-button { position: relative; width: min(330px, 100%); height: 78px; display: grid; grid-template-columns: 52px 1fr 28px; align-items: center; padding: 0 18px; border: 1px solid #f0c46f; color: #0b0b09; background: linear-gradient(115deg, #bd7b25, #f2bd57 48%, #cc882d); box-shadow: 0 12px 35px rgba(184,115,28,.2), inset 0 1px rgba(255,255,255,.42); cursor: pointer; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: filter .2s, transform .2s, box-shadow .2s; }
.open-button:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 16px 46px rgba(184,115,28,.32), inset 0 1px rgba(255,255,255,.42); }
.open-button:active:not(:disabled) { transform: translateY(1px); }
.open-button:disabled { cursor: wait; filter: saturate(.35) brightness(.72); }
.open-button small, .open-button strong { display: block; text-align: left; }
.open-button small { font-size: 8px; font-weight: 900; letter-spacing: .19em; opacity: .7; }
.open-button strong { margin-top: 3px; font-family: Impact, "Arial Narrow", sans-serif; font-size: 23px; font-weight: 500; letter-spacing: .08em; }
.key-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.24); background: rgba(255,255,255,.14); }
.key-icon svg { width: 27px; fill: currentColor; }
.button-arrow { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.open-controls p { margin: 13px 0 0; color: #69727d; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.contents-section { width: min(1260px, calc(100% - 40px)); margin: 92px auto 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2, .items-heading h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: 29px; font-weight: 500; letter-spacing: .06em; }
.rarity-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: #6e7783; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.rarity-key span { display: flex; align-items: center; gap: 6px; }
.rarity-key i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mil-spec { color: var(--mil-spec); } .restricted { color: var(--restricted); } .classified { color: var(--classified); } .covert { color: var(--covert); } .special { color: var(--special); }
.contents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: #222933; border: 1px solid #222933; }
.content-item { --rarity: var(--mil-spec); position: relative; min-height: 190px; padding: 17px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rarity), transparent 91%), transparent 55%), #0e131a; overflow: hidden; }
.content-item::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--rarity); }
.content-item .drop-art { height: 115px; }
.content-odds { position: absolute; top: 11px; right: 11px; padding: 4px 6px; color: #a6aeb8; background: rgba(0,0,0,.27); font-size: 8px; font-weight: 850; letter-spacing: .06em; }
.content-value { position: absolute; z-index: 2; top: 11px; right: 11px; padding: 5px 7px; color: var(--gold-bright); background: rgba(5,7,10,.72); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
footer { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 4.5vw, 72px); border-top: 1px solid rgba(255,255,255,.05); color: #49515c; font-size: 8px; font-weight: 750; letter-spacing: .12em; }

/* Setup */
.setup-view { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.setup-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.setup-header h1 { margin-bottom: 12px; font-size: clamp(42px, 4.5vw, 64px); }
.setup-header > div > p:last-child { margin: 0; color: #78818d; font-size: 13px; }
.secondary-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: start; }
.field > span, .editor-field > span { display: block; margin-bottom: 8px; color: #78818d; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
input, select { width: 100%; border: 1px solid #28313d; border-radius: 0; color: #e9edf2; background: #0c1117; }
input:hover, select:hover { border-color: #3b4654; }
.case-name-field input { height: 54px; padding: 0 16px; font-size: 16px; font-weight: 720; letter-spacing: .03em; }
.items-heading { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 14px; }
.items-heading p { margin: 5px 0 0; color: #626b77; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.item-editor { display: flex; flex-direction: column; gap: 9px; }
.editor-row { --rarity: var(--mil-spec); position: relative; display: grid; grid-template-columns: 100px minmax(125px, 1.1fr) minmax(95px, .75fr) 118px 86px 91px 38px; gap: 9px; align-items: end; padding: 13px; border: 1px solid #222b36; border-left: 3px solid var(--rarity); background: #0e131a; }
.editor-preview { position: relative; height: 72px; background: radial-gradient(circle, color-mix(in srgb, var(--rarity), transparent 85%), transparent 65%), #151b23; }
.upload-button { position: absolute; right: 5px; bottom: 5px; padding: 4px 6px; color: #c0c6ce; background: rgba(5,7,10,.82); font-size: 7px; font-weight: 850; letter-spacing: .08em; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.editor-field input, .editor-field select { height: 42px; padding: 0 10px; font-size: 11px; font-weight: 650; }
.odds-input-wrap { position: relative; }
.odds-input-wrap input { padding-right: 28px; text-align: right; }
.odds-input-wrap b { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #68717c; font-size: 11px; }
.remove-button { height: 42px; display: grid; place-items: center; border: 1px solid #2b333e; color: #7a838f; background: #11161d; cursor: pointer; }
.remove-button:hover:not(:disabled) { border-color: #9a3a40; color: #ef676d; }
.remove-button:disabled { opacity: .27; cursor: not-allowed; }
.remove-button svg { width: 16px; fill: currentColor; }
.setup-sidebar { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 11px; }
.chance-card, .help-card { padding: 22px; border: 1px solid #252e3a; background: #0e131a; }
.chance-card > p { margin-bottom: 9px; color: #767f8b; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.chance-card strong { display: block; margin-bottom: 14px; font-family: Impact, "Arial Narrow", sans-serif; font-size: 34px; font-weight: 500; letter-spacing: .04em; }
.chance-track { height: 4px; margin-bottom: 12px; background: #282f39; overflow: hidden; }
.chance-track span { display: block; width: 100%; height: 100%; background: var(--gold); transition: width .2s, background .2s; }
.chance-card small { color: #747d88; font-size: 9px; line-height: 1.5; }
.chance-card.invalid strong, .chance-card.invalid small { color: #ef666c; }
.chance-card.invalid .chance-track span { background: #d94b53; }
.help-card h3 { margin-bottom: 14px; font-family: Impact, "Arial Narrow", sans-serif; font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.help-card ul { margin: 0; padding-left: 16px; color: #747d88; font-size: 10px; line-height: 1.75; }
.save-button, .open-again-button { min-height: 52px; border: 1px solid #ebbc62; color: #0a0a09; background: linear-gradient(110deg, #bd7c26, #eeba56); font-size: 10px; font-weight: 900; letter-spacing: .12em; cursor: pointer; }
.save-button:disabled { filter: grayscale(.8) brightness(.5); cursor: not-allowed; }
.save-button:hover:not(:disabled), .open-again-button:hover { filter: brightness(1.12); }
.text-button { padding: 9px; border: 0; color: #69727d; background: none; font-size: 8px; font-weight: 800; letter-spacing: .12em; cursor: pointer; }
.text-button:hover { color: #d9dde2; }

/* Result */
.result-modal[hidden] { display: none; }
.result-modal { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; }
.result-backdrop { position: absolute; inset: 0; background: rgba(3,5,8,.83); backdrop-filter: blur(10px); }
.result-card { --rarity: var(--gold); position: relative; width: min(520px, 100%); padding: 42px 40px 36px; border: 1px solid color-mix(in srgb, var(--rarity), #272d36 55%); border-bottom: 4px solid var(--rarity); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rarity), transparent 76%), transparent 42%), linear-gradient(145deg, #151b23, #0b0f14); box-shadow: 0 30px 100px rgba(0,0,0,.68), 0 0 70px color-mix(in srgb, var(--rarity), transparent 84%); text-align: center; animation: reveal .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(15px) scale(.97); } }
.modal-close { position: absolute; top: 10px; right: 13px; border: 0; color: #747d88; background: none; font-size: 25px; cursor: pointer; }
.modal-close:hover { color: white; }
.result-card .eyebrow { color: var(--rarity); }
.result-art { height: 225px; margin: 5px 0 10px; }
.result-weapon { margin-bottom: 6px; color: #8c95a0; font-size: 9px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.result-card h2 { margin-bottom: 12px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(34px, 7vw, 52px); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.result-rarity { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 25px; color: var(--rarity); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.result-rarity::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.open-again-button { width: min(270px, 100%); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; padding: 11px 16px; transform: translate(-50%, 20px); border: 1px solid #3a4553; color: #e4e8ed; background: rgba(14,19,26,.96); box-shadow: 0 14px 40px rgba(0,0,0,.5); opacity: 0; pointer-events: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; z-index: 31; top: -15px; width: 7px; height: 13px; background: var(--color); pointer-events: none; animation: confetti-fall var(--duration) linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 105vh) rotate(760deg); } }

@media (max-width: 900px) {
  :root { --card-width: 190px; }
  .editor-row { grid-template-columns: 88px 1fr 1fr 96px 72px 78px 38px; gap: 7px; }
  .setup-layout { grid-template-columns: 1fr; }
  .setup-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .save-button, .text-button { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  :root { --card-width: 170px; --card-gap: 8px; }
  .topbar { height: 67px; padding: 0 14px; }
  .header-event-name, .icon-button { display: none; }
  .header-logo { width: 46px; height: 56px; }
  .setup-button { width: 37px; min-height: 37px; justify-content: center; padding: 9px; font-size: 0; }
  .opener-view { padding-top: 42px; }
  .selected-case-overview { grid-template-columns: 1fr; gap: 16px; }
  .selected-case-art { width: min(230px, 72vw); justify-self: center; }
  .selected-case-overview .hero-copy { text-align: center; }
  .selected-case-overview .eyebrow { justify-content: center; }
  .reel-stage { height: 246px; margin-top: 24px; }
  .drop-card { height: 190px; }
  .drop-art { height: 112px; }
  .contents-section { margin-top: 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .rarity-key { justify-content: flex-start; }
  .contents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-item { min-height: 170px; padding: 11px; }
  .content-item .drop-art { height: 102px; }
  footer { align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
  .setup-view { padding-top: 45px; }
  .setup-header { align-items: flex-start; flex-direction: column; }
  .editor-row { grid-template-columns: 82px 1fr 70px 36px; }
  .editor-row .type-field { display: none; }
  .editor-row .rarity-field { grid-column: 2 / 3; }
  .editor-preview { grid-row: span 2; height: 100%; min-height: 114px; }
  .remove-button { grid-column: 4; grid-row: 1; }
  .editor-row .odds-field { grid-column: 3 / 4; grid-row: 1; }
  .editor-row .value-field { grid-column: 3 / 4; grid-row: 2; }
  .setup-sidebar { display: flex; }
  .result-card { padding: 38px 20px 28px; }
  .result-art { height: 180px; }
}

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

/* Connected event edition */
.auth-view {
  position: relative;
  z-index: 22;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #17202b 0, #0a0e14 34%, #05070a 72%);
}

.auth-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.auth-atmosphere::before, .auth-atmosphere::after { content: ""; position: absolute; width: 38vw; height: 1px; top: 50%; background: linear-gradient(90deg, transparent, rgba(229,173,73,.35), transparent); }
.auth-atmosphere::before { left: -8vw; transform: rotate(58deg); }
.auth-atmosphere::after { right: -8vw; transform: rotate(-58deg); }
.auth-atmosphere i { position: absolute; border: 1px solid rgba(255,255,255,.025); transform: rotate(45deg); }
.auth-atmosphere i:nth-child(1) { width: 380px; height: 380px; left: -190px; top: 16%; }
.auth-atmosphere i:nth-child(2) { width: 520px; height: 520px; right: -260px; bottom: 5%; }
.auth-atmosphere i:nth-child(3) { width: 700px; height: 700px; left: calc(50% - 350px); top: calc(50% - 350px); }

.login-card {
  position: relative;
  width: min(430px, 100%);
  padding: 42px 44px 38px;
  border: 1px solid #252e39;
  border-bottom: 3px solid var(--gold);
  background: linear-gradient(145deg, rgba(18,24,32,.98), rgba(9,13,18,.98));
  box-shadow: 0 35px 100px rgba(0,0,0,.65), 0 0 80px rgba(229,173,73,.06);
}

.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 35px; }
.login-brand img { width: auto; height: 170px; object-fit: contain; filter: drop-shadow(0 13px 15px rgba(0,0,0,.45)); }
.login-brand strong { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 20px; font-weight: 500; letter-spacing: .13em; }
.login-brand small { display: block; margin-top: 4px; color: #69727e; font-size: 7px; font-weight: 850; letter-spacing: .23em; }
.login-card h1 { margin: 0 0 15px; font-family: Impact, "Arial Narrow", sans-serif; font-size: 48px; font-weight: 500; line-height: .92; letter-spacing: .04em; }
.login-card h1 em { color: transparent; -webkit-text-stroke: 1px #6e7783; font-style: normal; }
.login-intro { margin-bottom: 29px; color: #7b8490; font-size: 11px; line-height: 1.6; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border: 1px solid #28313d; background: #090d12; }
.auth-switch button { min-height: 39px; padding: 0 8px; border: 0; color: #626d79; background: transparent; font-size: 8px; font-weight: 900; letter-spacing: .12em; cursor: pointer; }
.auth-switch button + button { border-left: 1px solid #28313d; }
.auth-switch button.active { color: #f2bd57; background: rgba(229,173,73,.08); box-shadow: inset 0 -2px #e5ad49; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field > span { display: block; margin-bottom: 8px; color: #858e99; font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.auth-field input { height: 51px; padding: 0 14px; }
.form-error { min-height: 17px; margin: -4px 0 8px; color: #ef666c; font-size: 9px; line-height: 1.4; }
.form-error.success { color: #80c995; }
.login-button { width: 100%; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 21px; border: 1px solid #efc16b; color: #0b0b09; background: linear-gradient(110deg, #c78327, #edb950); font-size: 11px; font-weight: 900; letter-spacing: .15em; cursor: pointer; }
.login-button:hover:not(:disabled) { filter: brightness(1.1); }
.login-button:disabled { filter: grayscale(.7) brightness(.6); cursor: wait; }
.login-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.login-help { margin: 19px 0 0; color: #59626d; font-size: 9px; text-align: center; }

.loading-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: #070a0f; }
.loading-screen img { width: auto; height: 115px; object-fit: contain; animation: loading-pulse 1.1s ease-in-out infinite alternate; }
.loading-screen p { margin: 0; color: #6f7883; font-size: 8px; font-weight: 850; letter-spacing: .22em; }
@keyframes loading-pulse { to { filter: brightness(1.7); box-shadow: 0 0 35px rgba(229,173,73,.28); } }

.account-stats { height: 41px; display: flex; align-items: center; gap: 17px; padding: 0 15px; border: 1px solid #222a35; background: #0d1218; }
.account-stats > div { min-width: 72px; }
.account-stats small, .account-stats strong { display: block; }
.account-stats small { margin-bottom: 3px; color: #5f6874; font-size: 6px; font-weight: 850; letter-spacing: .15em; }
.account-stats strong { font-size: 11px; letter-spacing: .03em; }
.account-stats > span { width: 1px; height: 20px; background: #29313c; }
.account-stats > div:first-child strong { color: var(--gold-bright); }
.user-button { height: 41px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 5px; border: 1px solid #222a35; background: #0d1218; cursor: pointer; }
.user-button > span { width: 30px; height: 30px; display: grid; place-items: center; color: #13110c; background: var(--gold); font-size: 9px; font-weight: 900; }
.user-button strong { max-width: 90px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-button svg { width: 15px; fill: #69727e; }
.user-button:hover { border-color: #495462; }

.case-browser { width: min(1260px, calc(100% - 40px)); margin: 0 auto 72px; }
.case-browser-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.case-browser-heading h2, .admin-case-heading h2, .participants-heading h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: 30px; font-weight: 500; letter-spacing: .06em; }
.case-browser-heading > p, .admin-case-heading p, .participants-heading p { max-width: 390px; margin: 0; color: #6e7783; font-size: 10px; line-height: 1.55; }
.case-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-choice { position: relative; min-width: 0; display: grid; grid-template-rows: 252px 70px; padding: 0; border: 1px solid #27313b; border-bottom: 3px solid #3d4853; color: var(--text); background: #101720; cursor: pointer; overflow: hidden; text-align: left; box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.16); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.case-choice::after { content: ""; position: absolute; inset: 0; z-index: 5; border: 1px solid transparent; pointer-events: none; transition: border-color .2s; }
.case-choice:hover { transform: translateY(-3px); border-color: #51606e; background: #131c26; box-shadow: 0 17px 38px rgba(0,0,0,.25); }
.case-choice:hover::after { border-color: rgba(255,255,255,.045); }
.case-choice.active { border-color: #9b7336; border-bottom-color: var(--gold-bright); background: #151c23; box-shadow: 0 0 0 1px rgba(245,164,59,.12), 0 18px 42px rgba(0,0,0,.3); }
.case-choice-image { position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #29333e; background: radial-gradient(ellipse at 50% 56%, rgba(116,145,165,.16), transparent 47%), linear-gradient(180deg, #1b2630, #111820); }
.case-choice-image::before { content: ""; position: absolute; inset: 0; opacity: .24; background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,.08) 22.3%, transparent 22.7%), repeating-linear-gradient(90deg, transparent 0 44px, rgba(255,255,255,.025) 45px); }
.case-choice-image::after { content: ""; position: absolute; right: 11%; bottom: 22px; left: 11%; height: 12px; border-radius: 50%; background: rgba(0,0,0,.7); filter: blur(7px); }
.case-art-frame { position: relative; z-index: 2; width: min(calc(100% - 30px), 330px); height: 210px; overflow: hidden; }
.case-art-frame img { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; transform: scale(var(--case-art-scale, 1)); transform-origin: center; filter: drop-shadow(0 13px 10px rgba(0,0,0,.62)); user-select: none; -webkit-user-drag: none; }
.case-selection-label { position: absolute; z-index: 4; top: 11px; left: 11px; padding: 5px 7px; border: 1px solid #44515d; color: #aab4bd; background: rgba(8,12,16,.74); font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.case-choice.active .case-selection-label { border-color: #8e6b36; color: var(--gold-bright); }
.case-choice-copy { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; background: linear-gradient(180deg, #151e27, #10161e); }
.case-choice-copy > strong { display: block; overflow: hidden; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(17px, 1.45vw, 22px); font-weight: 500; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.case-choice-price { padding-left: 14px; border-left: 1px solid #303a45; text-align: right; }
.case-choice-price small, .case-choice-price b { display: block; }
.case-choice-price small { margin-bottom: 3px; color: #68737e; font-size: 6px; font-weight: 900; letter-spacing: .14em; }
.case-choice-price b { color: var(--gold-bright); font-size: 12px; letter-spacing: .03em; white-space: nowrap; }
.case-status { position: absolute; z-index: 6; top: 10px; right: 10px; display: inline-block !important; padding: 4px 6px; color: #858e99 !important; background: #1b222c; font-size: 7px !important; font-weight: 850; letter-spacing: .1em; }
.case-status.inactive { color: #e2666c !important; }

.history-section { width: min(1260px, calc(100% - 40px)); margin: 0 auto 90px; }
.activity-heading-actions { display: flex; align-items: center; gap: 18px; }
.activity-tabs { display: flex; padding: 3px; border: 1px solid #29323d; background: #0b1016; }
.activity-tabs button { min-height: 32px; padding: 0 13px; border: 0; color: #68727e; background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; letter-spacing: .12em; transition: color .2s, background .2s; }
.activity-tabs button:hover { color: #b2bbc4; }
.activity-tabs button.active { color: #11100d; background: var(--gold); }
.history-total { margin: 0; color: #6b7480; font-size: 8px; font-weight: 850; letter-spacing: .13em; white-space: nowrap; }
.history-total strong { margin-right: 7px; color: var(--gold); font-size: 13px; }
.history-list { display: flex; flex-direction: column; border: 1px solid #222a34; }
.history-row { display: grid; grid-template-columns: 64px minmax(130px, 1fr) minmax(110px, .7fr) 100px 130px; gap: 16px; align-items: center; min-height: 73px; padding: 7px 16px; border-bottom: 1px solid #202833; background: #0d1218; }
.history-row.activity-row { grid-template-columns: 64px minmax(130px, 1fr) minmax(125px, .7fr) minmax(110px, .65fr) 100px 112px; }
.history-row:last-child { border-bottom: 0; }
.history-image { position: relative; height: 56px; }
.history-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 5px rgba(0,0,0,.5)); }
.top-drop-rank { position: absolute; z-index: 2; top: -3px; left: -4px; min-width: 23px; padding: 3px 4px; border: 1px solid #72562d; color: var(--gold-bright); background: rgba(10,13,17,.9); font-size: 7px; font-weight: 900; text-align: center; }
.top-drop-row:nth-child(-n+3) { background: linear-gradient(90deg, rgba(229,173,73,.055), transparent 38%), #0d1218; }
.top-drop-row:nth-child(1) .top-drop-rank { color: #161009; background: var(--gold-bright); }
.history-item small, .history-case small, .activity-player small { display: block; margin-bottom: 4px; color: #66707c; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.history-item strong, .history-case strong, .activity-player strong { display: block; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.activity-player { min-width: 0; display: flex; align-items: center; gap: 9px; }
.activity-player > span { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; color: #16120d; background: #c88a31; font-size: 8px; font-weight: 900; }
.activity-player > div { min-width: 0; }
.history-price { font-size: 10px; font-weight: 800; text-align: right; }
.history-price span, .history-price strong { display: block; }
.history-price span { margin-bottom: 4px; color: #8b6c3b; }
.history-price strong { color: #62b887; }
.history-date { color: #626b77; font-size: 8px; text-align: right; }
.leaderboard-labels, .leaderboard-row { display: grid; grid-template-columns: minmax(180px, 1fr) 90px 130px 130px 130px; gap: 16px; align-items: center; }
.leaderboard-labels { min-height: 35px; padding: 0 16px; color: #59636f; background: #0a0f15; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.leaderboard-labels span:not(:first-child) { text-align: right; }
.leaderboard-row { min-height: 68px; padding: 7px 16px; border-bottom: 1px solid #202833; background: #0d1218; color: #8b95a0; font-size: 10px; text-align: right; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-player { min-width: 0; display: grid; grid-template-columns: 28px 34px 1fr; align-items: center; gap: 9px; text-align: left; }
.leaderboard-player > b { color: #5f6974; font-size: 12px; text-align: center; }
.leaderboard-player > span { width: 34px; height: 34px; display: grid; place-items: center; color: #101216; background: #6f7a85; font-size: 8px; font-weight: 900; }
.leaderboard-player > strong { overflow: hidden; color: #e3e7ea; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.leaderboard-row.rank-1 .leaderboard-player > b { color: #ffc15a; }
.leaderboard-row.rank-1 .leaderboard-player > span { background: #dca341; }
.leaderboard-row.rank-2 .leaderboard-player > span { background: #a8b0b6; }
.leaderboard-row.rank-3 .leaderboard-player > span { background: #a36c43; }
.leaderboard-won { color: #62b887; }
.leaderboard-net { color: var(--gold-bright); font-weight: 850; }
.empty-state { padding: 34px 20px; color: #66707c; background: #0d1218; font-size: 10px; text-align: center; }
.error-state { color: #ef777c; border-left: 2px solid #d84f55; }

.admin-nav { display: flex; gap: 5px; margin-bottom: 35px; border-bottom: 1px solid #252d37; }
.admin-nav button { padding: 14px 18px; border: 0; border-bottom: 2px solid transparent; color: #69727e; background: none; font-size: 9px; font-weight: 850; letter-spacing: .12em; cursor: pointer; }
.admin-nav button:hover { color: #e0e4e9; }
.admin-nav button.active { border-bottom-color: var(--gold); color: var(--gold); }
.admin-case-heading, .participants-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 17px; }
.admin-case-picker { display: flex; gap: 7px; margin-bottom: 34px; padding-bottom: 6px; overflow-x: auto; }
.admin-case-tab { min-width: 175px; padding: 12px 13px; border: 1px solid #252e39; color: #8a939e; background: #0e131a; cursor: pointer; text-align: left; }
.admin-case-tab strong, .admin-case-tab span { display: block; }
.admin-case-tab strong { margin-bottom: 4px; color: #e5e9ed; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-case-tab span { font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.admin-case-tab.active { border-color: #82632d; box-shadow: inset 0 -2px var(--gold); }
.case-fields-grid { display: grid; grid-template-columns: minmax(180px, 1fr) 150px; gap: 16px; }
.description-field { grid-column: 1 / 2; }
.case-fields-grid .field input { height: 51px; padding: 0 14px; }
.price-input-wrap { position: relative; }
.price-input-wrap input { padding-right: 42px !important; text-align: right; }
.price-input-wrap b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #6e7783; font-size: 10px; }
.active-field { display: flex; align-items: center; gap: 10px; align-self: end; height: 51px; padding: 0 12px; border: 1px solid #28313d; background: #0c1117; cursor: pointer; }
.active-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.active-field i { position: relative; width: 32px; height: 17px; flex: none; border-radius: 20px; background: #343c47; transition: background .2s; }
.active-field i::after { content: ""; position: absolute; width: 11px; height: 11px; left: 3px; top: 3px; border-radius: 50%; background: #8a939d; transition: transform .2s, background .2s; }
.active-field input:checked + i { background: #725a2d; }
.active-field input:checked + i::after { transform: translateX(15px); background: var(--gold-bright); }
.active-field span { color: #747d88; font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.case-image-editor { display: grid; grid-template-columns: 170px 1fr; gap: 19px; align-items: center; margin-top: 17px; padding: 15px; border: 1px solid #222b36; background: #0e131a; }
.case-image-preview { height: 105px; display: grid; place-items: center; background: radial-gradient(circle, rgba(229,173,73,.11), transparent 65%), #151b23; }
.case-image-preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0,0,0,.5)); }
.case-image-editor > div:last-child > span { color: #858e99; font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.case-image-editor p { margin: 6px 0 9px; color: #646d78; font-size: 9px; }
.case-cover-presets { display: flex; gap: 6px; margin-bottom: 9px; }
.case-cover-presets button { position: relative; width: 64px; height: 44px; padding: 3px; border: 1px solid #303a45; background: #111820; cursor: pointer; overflow: hidden; }
.case-cover-presets button:hover { border-color: #697683; }
.case-cover-presets button.active { border-color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(245,164,59,.3); }
.case-cover-presets img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0,0,0,.45)); }
.case-cover-presets span { position: absolute; right: 2px; bottom: 2px; padding: 2px 3px; color: #b6c0c8; background: rgba(5,8,11,.82); font-size: 5px; font-weight: 900; letter-spacing: .08em; }
.file-button { display: inline-flex; min-height: 31px; align-items: center; padding: 0 11px; border: 1px solid #37414e; color: #b0b7c0; background: #171d25; font-size: 7px; font-weight: 850; letter-spacing: .1em; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.danger-text-button { padding: 9px; border: 0; color: #8b5558; background: none; font-size: 8px; font-weight: 800; letter-spacing: .12em; cursor: pointer; }
.danger-text-button:hover { color: #ef666c; }

.participants-heading { margin-bottom: 25px; }
.participant-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 17px; }
.summary-card { padding: 18px; border: 1px solid #252e39; background: #0e131a; }
.summary-card span, .summary-card strong { display: block; }
.summary-card span { margin-bottom: 8px; color: #6e7783; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.summary-card strong { font-family: Impact, "Arial Narrow", sans-serif; font-size: 28px; font-weight: 500; letter-spacing: .05em; }
.participant-list { display: flex; flex-direction: column; gap: 7px; }
.participant-row { display: grid; grid-template-columns: 42px minmax(130px, 1fr) minmax(120px, .8fr) 120px 90px; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #252e39; background: #0e131a; }
.participant-avatar { width: 36px; height: 36px; display: grid; place-items: center; color: #19140b; background: var(--gold); font-size: 9px; font-weight: 900; }
.participant-row label span { display: block; margin-bottom: 5px; color: #69727e; font-size: 6px; font-weight: 850; letter-spacing: .12em; }
.participant-row input { height: 36px; padding: 0 9px; font-size: 10px; }
.username-display span { display: block; margin-bottom: 6px; color: #69727e; font-size: 6px; font-weight: 850; letter-spacing: .12em; }
.username-display strong { color: #aeb5be; font-size: 10px; }
.participant-spent span { display: block; margin-bottom: 5px; color: #69727e; font-size: 6px; font-weight: 850; letter-spacing: .12em; }
.participant-spent strong { font-size: 11px; }
.participant-save { height: 36px; border: 1px solid #6b572f; color: var(--gold); background: #171710; font-size: 7px; font-weight: 900; letter-spacing: .1em; cursor: pointer; }
.participant-save:hover { border-color: var(--gold); }
.admin-badge { display: inline-block; margin-top: 5px; padding: 2px 4px; color: var(--gold); background: #2a2416; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.account-help { margin-top: 20px; padding: 18px 20px; border-left: 2px solid var(--gold); color: #747d88; background: #0e131a; }
.account-help strong { display: block; margin-bottom: 7px; color: #d9dde2; font-size: 8px; letter-spacing: .12em; }
.account-help p { margin: 0; font-size: 10px; line-height: 1.65; }
.account-help code { padding: 2px 4px; color: #d6ad5f; background: #191b1e; }

.result-values { width: min(220px, 100%); display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0 auto 12px; background: #2a333f; border: 1px solid #2a333f; }
.result-values > div { padding: 11px 13px; background: rgba(5,8,12,.78); }
.result-values span, .result-values strong { display: block; }
.result-values span { margin-bottom: 5px; color: #707a86; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.result-values strong { color: var(--gold-bright); font-size: 13px; }

@media (max-width: 1100px) {
  .case-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participant-row { grid-template-columns: 42px 1fr 1fr 105px 80px; }
  .participant-row .username-field { display: none; }
  .history-row.activity-row { grid-template-columns: 58px minmax(120px, 1fr) minmax(120px, .75fr) 90px 105px; }
  .activity-row .history-case { display: none; }
}

@media (max-width: 700px) {
  .account-stats { height: 37px; padding: 0 10px; }
  .account-stats > div { min-width: 66px; }
  .login-card { padding: 34px 25px 30px; }
  .login-brand { margin-bottom: 35px; }
  .user-button strong { display: none; }
  .user-button { padding-right: 5px; }
  .case-browser-heading { align-items: flex-start; flex-direction: column; }
  .case-picker { grid-template-columns: 1fr; }
  .case-choice { grid-template-rows: 218px 66px; }
  .case-art-frame { width: min(calc(100% - 26px), 310px); height: 188px; }
  .case-choice-copy > strong { font-size: 19px; }
  .activity-heading-actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 10px; }
  .activity-tabs { width: 100%; }
  .activity-tabs button { flex: 1; }
  .history-row { grid-template-columns: 52px 1fr 80px; gap: 10px; padding: 7px 10px; }
  .history-case, .history-date { display: none; }
  .history-row.activity-row { grid-template-columns: 52px minmax(0, 1fr) 84px; min-height: 82px; }
  .activity-row .history-image { grid-column: 1; grid-row: 1 / span 2; }
  .activity-row .history-item { grid-column: 2; grid-row: 1; }
  .activity-row .activity-player { grid-column: 2; grid-row: 2; }
  .activity-row .activity-player > span { display: none; }
  .activity-row .activity-player small { display: none; }
  .activity-row .history-price { grid-column: 3; grid-row: 1 / span 2; }
  .leaderboard-labels { display: none; }
  .leaderboard-row { grid-template-columns: minmax(0, 1fr) 56px 86px; gap: 9px; min-height: 64px; padding: 7px 10px; }
  .leaderboard-row > div:nth-child(3), .leaderboard-row > div:nth-child(4) { display: none; }
  .leaderboard-row > div[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #59636f; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
  .leaderboard-player > b { font-size: 10px; }
  .leaderboard-player > strong { font-size: 10px; }
  .case-fields-grid { grid-template-columns: 1fr; }
  .description-field { grid-column: auto; }
  .case-image-editor { grid-template-columns: 115px 1fr; }
  .participant-summary { grid-template-columns: 1fr; }
  .participant-row { grid-template-columns: 36px 1fr 85px 62px; gap: 7px; }
  .participant-row .username-field, .participant-spent { display: none; }
  .participants-heading { align-items: flex-start; flex-direction: column; }
}
