/* Rewards page (#/rewards), header level badge and the admin race panel. All classes are prefixed rw- / lvl-. */

/* ------------------------------------------------------------------ header level badge */
.lvl-badge { transition: transform .15s, filter .15s; }
.lvl-badge:hover { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--lvl)); }

/* ------------------------------------------------------------------ shared bits */
.rw { --rw-glow: rgba(239, 59, 59, .18); }
.rw-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; overflow: hidden; }
.rw-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rw-card-head h3 { font-size: 17px; }
.rw-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, rgba(239, 59, 59, .22), rgba(239, 59, 59, .06)); color: var(--accent-hi);
  border: 1px solid rgba(239, 59, 59, .28);
}
.rw-big { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.rw-big .price { gap: 8px; font-weight: 400; }
.rw-big.gold { color: var(--gold); text-shadow: 0 0 24px rgba(228, 174, 57, .35); }
.rw-big.dim { color: var(--muted); }
.rw-sub { font-size: 13px; margin: 0; }
.rw-btn { width: 100%; margin-top: auto; }
.rw-btn svg { flex: none; }
.rw-meter { height: 8px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line2); overflow: hidden; }
.rw-meter > div {
  height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi));
  box-shadow: 0 0 12px rgba(239, 59, 59, .5); transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.rw-pulse { animation: rwPulse 1.8s ease-in-out infinite; }
@keyframes rwPulse { 50% { box-shadow: 0 0 0 5px rgba(228, 174, 57, 0), 0 0 14px rgba(228, 174, 57, .45); } }

.rw-note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-color: rgba(228, 174, 57, .35); background: linear-gradient(90deg, rgba(228, 174, 57, .1), var(--panel) 60%); }
.rw-note > svg { color: var(--gold); flex: none; }
.rw-note div { flex: 1; font-size: 14px; }

/* ------------------------------------------------------------------ hero */
.rw-hero {
  --lvl: #9aa7b8;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 24px 28px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(420px 220px at 8% 50%, color-mix(in srgb, var(--lvl) 22%, transparent), transparent 70%),
    radial-gradient(600px 260px at 100% 0%, rgba(239, 59, 59, .12), transparent 70%),
    var(--panel);
}
.rw-hero h2 { font-size: 24px; margin-bottom: 6px; }
.rw-hero p { margin: 0 0 16px; max-width: 560px; }
.rw-ring { position: relative; display: grid; place-items: center; flex: none; }
.rw-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.rw-ring-track { fill: rgba(0, 0, 0, .35); stroke: var(--panel3); }
.rw-ring-bar {
  fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lvl) 70%, transparent));
}
.rw-ring-inner { position: relative; text-align: center; line-height: 1; }
.rw-ring-inner small { display: block; font-size: 11px; letter-spacing: .22em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.rw-ring-inner b { font-family: var(--display); font-weight: 400; font-size: 52px; color: #fff; text-shadow: 0 0 22px color-mix(in srgb, var(--lvl) 60%, transparent); }
.rw-hero-main { min-width: 0; }
.rw-hero-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 18px; }
.rw-hero-name b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rw-rank {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lvl); background: color-mix(in srgb, var(--lvl) 16%, transparent); border: 1px solid color-mix(in srgb, var(--lvl) 45%, transparent);
}
.rw-xpbar { height: 14px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line2); overflow: hidden; position: relative; }
.rw-xpbar > div {
  width: 0; height: 100%; border-radius: 99px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lvl) 70%, var(--accent-lo)), var(--accent-hi));
  box-shadow: 0 0 16px rgba(239, 59, 59, .45); transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.rw-xpbar > div::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: rwShine 2.6s ease-in-out 1.4s infinite;
}
@keyframes rwShine { 60%, 100% { transform: translateX(100%); } }
.rw-xp-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rw-ranks { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.rw-rank-step {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--dim);
}
.rw-rank-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.rw-rank-step small { color: var(--dim); font-size: 11px; }
.rw-rank-step.on { color: var(--text); border-color: color-mix(in srgb, var(--lvl) 40%, var(--line)); }
.rw-rank-step.on i { background: var(--lvl); box-shadow: 0 0 8px var(--lvl); }
.rw-hero-side { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.rw-stat { padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.rw-stat small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rw-stat b { font-family: var(--display); font-weight: 400; font-size: 18px; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rw-stat b .price { font-weight: 400; }

/* ------------------------------------------------------------------ top row: daily case + level rewards + rakeback */
.rw-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.rw-stack { display: grid; gap: 16px; min-width: 0; }
.rw-levels { background: radial-gradient(360px 160px at 100% 0%, rgba(228, 174, 57, .1), transparent 70%), var(--panel); }
.rw-lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-lchip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; color: var(--muted);
  animation: rwChip .4s cubic-bezier(.2, .9, .3, 1.3) both;
}
.rw-lchip b { color: var(--gold); }
.rw-lchip.ms { border-color: rgba(228, 174, 57, .5); background: rgba(228, 174, 57, .1); color: var(--text); }
.rw-lchip.dim { opacity: .65; }
.rw-lchip.dim b { color: var(--muted); }
.rw-lchip.more { color: var(--text); }
.rw-lchip svg { width: 12px; height: 12px; }
.rw-upnext small, .rw-minis small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 6px; }
.rw-milestone {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(228, 174, 57, .12), transparent 80%); border: 1px solid rgba(228, 174, 57, .28); font-size: 13.5px;
}
.rw-milestone .muted { font-size: 12.5px; }
.rw-ms-lv {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 15px; color: var(--gold); border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(228, 174, 57, .35);
}
.rw-ms-amt { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 18px; }
.rw-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rw-minis > span { padding: 8px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.rw-minis small { margin-bottom: 2px; font-size: 10.5px; line-height: 1.25; }
.rw-minis b { font-variant-numeric: tabular-nums; font-size: 14px; }
@keyframes rwChip { from { transform: scale(.7); opacity: 0; } }

/* daily case */
.rw-daily { background: radial-gradient(600px 240px at 50% 0%, rgba(239, 59, 59, .1), transparent 70%), var(--panel); }
.rw-tier {
  --tier: #cd7f32; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tier); background: color-mix(in srgb, var(--tier) 15%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
}
.rw-status { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rw-status b { color: var(--text); }
.rw-status.ready { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.rw-status.ready::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: rwDot 1.6s infinite; }
@keyframes rwDot { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.rw-reel-wrap { position: relative; border-radius: 12px; transition: box-shadow .4s; }
/* Tiles must keep a fixed width even with long names (the reel math assumes equal tiles). The .item inside
   already clips its text, so the tile itself stays unclipped and the winning tile's glow + scale show fully. */
.rw-reel-wrap .reel-tile { min-width: 0; }
.rw-daily.spinning .rw-reel-wrap { box-shadow: 0 0 0 1px rgba(228, 174, 57, .35), 0 0 40px -10px rgba(228, 174, 57, .5); }
.rw-daily-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rw-daily-controls [data-open] { flex: 0 1 300px; min-width: 220px; }
.rw-daily-controls .rw-btn { margin-top: 0; }
.rw-open:not(:disabled) { animation: rwGlow 2.2s ease-in-out infinite; }
@keyframes rwGlow { 50% { box-shadow: 0 6px 30px -4px rgba(239, 59, 59, .85), inset 0 -2px 0 rgba(0, 0, 0, .15); } }
.rw-result:empty { display: none; }
.rw-won {
  display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(228, 174, 57, .12), transparent 70%); border: 1px solid rgba(228, 174, 57, .3);
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
.rw-won-item { width: 150px; flex: none; }
.rw-won-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rw-won-text small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.rw-won-text b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.rw-won-text .price { font-size: 18px; }
.rw-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rw-tier-pill {
  --tier: #cd7f32; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .1s;
}
.rw-tier-pill:hover { border-color: color-mix(in srgb, var(--tier) 50%, var(--line)); }
.rw-tier-pill:active { transform: translateY(1px); }
.rw-tier-pill b { font-size: 13px; color: var(--tier); }
.rw-tier-pill small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.rw-tier-pill small svg { width: 11px; height: 11px; }
.rw-tier-pill.on { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, var(--bg2)); box-shadow: 0 0 18px -6px var(--tier); }
.rw-tier-pill.locked { opacity: .6; }
.rw-tier-pill.viewing { outline: 2px dashed color-mix(in srgb, var(--tier) 70%, transparent); outline-offset: 1px; opacity: 1; }
.rw-pool { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rw-pool .item { padding: 7px 8px 9px; animation: rwChip .35s ease-out both; }
.rw-pool .item-img { margin: 0 0 4px; }
.rw-pool .item-weapon { font-size: 10.5px; }
.rw-pool .item-skin { font-size: 12px; }
.rw-pool .item-bottom { margin-top: 4px; }
.rw-pool .item-bottom .price { font-size: 12.5px; }
.rw-pool .item-top { font-size: 10px; min-height: 15px; }
.rw-pool-note { grid-column: 1 / -1; font-size: 13px; }

/* ------------------------------------------------------------------ missions */
.rw-missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rw-mission { padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: border-color .3s, transform .15s; }
.rw-mission:hover { transform: translateY(-2px); }
.rw-mission-top { display: flex; gap: 12px; align-items: flex-start; }
.rw-micon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--accent-hi); font-size: 20px;
}
.rw-micon .coin { font-size: 22px; }
.rw-mission-text { flex: 1; min-width: 0; }
.rw-mission-text b { font-size: 15.5px; }
.rw-mission-text .muted { font-size: 13px; }
.rw-reward { flex: none; padding: 4px 9px; border-radius: 8px; background: rgba(228, 174, 57, .12); border: 1px solid rgba(228, 174, 57, .3); color: var(--gold); font-size: 13px; }
.rw-mission-foot { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.rw-mission-foot .rw-btn { width: auto; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; margin: 0; }
.rw-prog { font-size: 13.5px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.rw-mission.done { border-color: rgba(228, 174, 57, .55); box-shadow: 0 0 30px -12px rgba(228, 174, 57, .6); }
.rw-mission.done .rw-meter > div { background: linear-gradient(90deg, #b8860b, var(--gold)); box-shadow: 0 0 12px rgba(228, 174, 57, .6); }
.rw-mission.claimed { opacity: .72; }
.rw-mission.claimed .rw-meter > div { background: var(--green); box-shadow: none; }
.rw-mission.claimed .rw-micon { color: var(--green); }
.rw-claimed { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 13.5px; }
.rw-mission-locked { grid-column: 1 / -1; }
.rw-mission-locked .rw-btn { width: auto; align-self: flex-start; }

/* ------------------------------------------------------------------ weekly race */
.rw-race { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rw-race-main { overflow: hidden; }
.rw-race-head {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line);
}
.rw-race-head > div { background: var(--panel); padding: 16px 18px; min-width: 0; }
.rw-race-head small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rw-race-head small svg { width: 14px; height: 14px; color: var(--accent-hi); }
.rw-race-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-race-pool { background: radial-gradient(260px 120px at 0% 0%, rgba(228, 174, 57, .16), transparent 70%), var(--panel) !important; }
.rw-race-pool b { color: var(--gold); font-size: 28px; text-shadow: 0 0 22px rgba(228, 174, 57, .35); }
.rw-race-pool b .price { font-weight: 400; }
.rw-race-table td, .rw-race-table th { padding: 10px 14px; }
.rw-race-table .rw-num { text-align: right; white-space: nowrap; }
.rw-race-table .rw-prize .price { color: var(--gold); }
.rw-race-table tbody tr { transition: background .15s; }
.rw-race-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.rw-race-table tbody tr:nth-child(-n+3) td:first-child { text-shadow: 0 0 12px currentColor; }
.rw-player { min-width: 0; }
.rw-pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; font-weight: 600; }
.rw-you-row { background: linear-gradient(90deg, rgba(239, 59, 59, .14), transparent 80%); }
.rw-you-row td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rw-empty-row td { color: var(--dim); }
.rw-race-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.rw-race-side > *, .rw-stack > * { min-width: 0; }
.rw-you { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rw-you > small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rw-you-rank { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.rw-you.paid { border-color: rgba(228, 174, 57, .45); background: radial-gradient(300px 140px at 100% 0%, rgba(228, 174, 57, .12), transparent 70%), var(--panel); }
.rw-you.paid .rw-you-rank { color: var(--gold); }
.rw-you-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rw-you-stats > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.rw-you-stats small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rw-you p { margin: 0; font-size: 13.5px; }
.rw-you .rw-btn { margin-top: 4px; }
.rw-last { padding: 18px; }
.rw-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 14px; }
.rw-pod {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 0; border-radius: 12px 12px 0 0; min-width: 0;
  background: linear-gradient(180deg, var(--panel2), var(--bg2)); border: 1px solid var(--line); border-bottom: 0; font-size: 12.5px;
}
.rw-pod b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rw-pod .price { font-size: 12.5px; color: var(--gold); }
.rw-pod .avatar { width: 36px; height: 36px; font-size: 15px; }
.rw-pod-step { font-family: var(--display); font-size: 22px; width: 100%; text-align: center; padding: 6px 0; margin-top: 4px; border-top: 1px solid var(--line); }
.rw-pod.p1 { padding-top: 20px; border-color: rgba(228, 174, 57, .5); background: linear-gradient(180deg, rgba(228, 174, 57, .16), var(--bg2)); }
.rw-pod.p1 .avatar { width: 46px; height: 46px; font-size: 19px; box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(228, 174, 57, .5); }
.rw-pod.p1 .rw-pod-step { color: var(--gold); padding: 12px 0; }
.rw-pod.p2 .rw-pod-step { color: #cbd5e1; }
.rw-pod.p3 .rw-pod-step { color: #d08b4f; }
.rw-pod.empty { visibility: hidden; }
.rw-last-list { display: flex; flex-direction: column; margin-top: 10px; }
.rw-last-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 13.5px; }
.rw-last-row > .muted { width: 30px; font-variant-numeric: tabular-nums; }
.rw-last-row .avatar { width: 24px; height: 24px; font-size: 11px; }
.rw-last-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-last .rw-sub { margin-top: 10px; }

/* floating "+coins" after a claim */
.rw-float {
  position: fixed; z-index: 250; pointer-events: none; transform: translate(-50%, 0);
  font-family: var(--display); font-size: 22px; color: var(--gold); text-shadow: 0 2px 12px rgba(0, 0, 0, .7), 0 0 18px rgba(228, 174, 57, .6);
  animation: rwFloat 1.35s cubic-bezier(.2, .8, .2, 1) forwards;
}
.rw-float .price { font-weight: 400; }
@keyframes rwFloat {
  0% { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  15% { transform: translate(-50%, -18px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -80px) scale(1); opacity: 0; }
}

/* ------------------------------------------------------------------ admin race panel */
.rw-admin-form { display: grid; grid-template-columns: 200px 1fr auto; gap: 10px; align-items: end; }
.rw-admin-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rw-admin-form .input { width: 100%; }
.rw-admin-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; }
.rw-admin-preview > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line); }
.rw-admin-preview > .bad { color: var(--red); border-color: rgba(240, 82, 82, .4); }
.rw-admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.rw-admin-grid .table td, .rw-admin-grid .table th { padding: 8px 10px; }
.rw-admin-grid .rw-num { text-align: right; white-space: nowrap; }
.rw-admin-grid h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .rw-top, .rw-race { grid-template-columns: minmax(0, 1fr); }
  .rw-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-race-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rw-hero { grid-template-columns: auto 1fr; }
  .rw-hero-side { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .rw-hero-side .rw-stat { flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  .rw-missions { grid-template-columns: minmax(0, 1fr); }
  .rw-pool { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .rw-admin-form, .rw-admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rw-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 20px 16px; gap: 18px; }
  .rw-hero-main { width: 100%; }
  .rw-hero-name, .rw-ranks { justify-content: center; }
  .rw-hero-side { flex-direction: column; width: 100%; }
  .rw-hero-side .rw-stat { text-align: left; }
  .rw-ring-inner b { font-size: 46px; }
  .rw-stack, .rw-race-side { grid-template-columns: minmax(0, 1fr); }
  .rw-card { padding: 14px; }
  .rw-big { font-size: 28px; }
  .rw-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-daily-controls [data-open] { flex: 1 1 100%; min-width: 0; }
  .rw-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-won { flex-direction: column; text-align: center; }
  .rw-won-text { align-items: center; }
  .rw-race-head { grid-template-columns: 1fr 1fr; }
  .rw-race-pool { grid-column: 1 / -1; }
  .rw-race-head > div { padding: 12px 14px; }
  .rw-race-table td, .rw-race-table th { padding: 9px 8px; font-size: 13.5px; }
  .rw-race-table .rank { width: 30px; font-size: 16px; }
  .rw-race-table th:first-child, .rw-race-table td:first-child { padding-left: 12px; }
  .rw-race-table th:last-child, .rw-race-table td:last-child { padding-right: 12px; }
  .rw-player { gap: 7px; }
  .rw-player .avatar { width: 22px; height: 22px; font-size: 10px; }
  .rw-player .badge { display: none; }
  .rw-pname { max-width: 96px; }
  .rw-race-table .price { gap: 3px; }
  .rw-card-head .spacer { display: none; }
  .rw-card-head [data-status] { width: 100%; }
  .rw-admin-grid .table td, .rw-admin-grid .table th { padding: 8px 6px; font-size: 13px; }
  .rw-admin-grid .table .rank { width: 26px; font-size: 15px; }
  .rw-admin-grid .avatar { width: 22px; height: 22px; font-size: 10px; }
  .rw-admin-grid .row { gap: 6px; }
  .rw-admin-grid .rw-pname { max-width: 84px; }
  .rw-admin-grid .price { gap: 3px; }
}
