/* The colour layer: the drifting backdrop, the showroom scene, a hue per tab,
   and the tints that make every card take on the colour of what it sells.
   Loaded last, so it only adds on top of base/ui/store/fx. */

/* --- backdrop -------------------------------------------------------------- */

/* Soft blobs of colour drifting behind everything. Fixed and blurred, so they
   cost one composited layer and never trigger a relayout. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(28vmax 28vmax at 18% 22%, rgba(255, 95, 184, .30), transparent 70%),
    radial-gradient(30vmax 30vmax at 82% 18%, rgba(76, 201, 240, .26), transparent 70%),
    radial-gradient(26vmax 26vmax at 70% 78%, rgba(255, 159, 28, .22), transparent 70%),
    radial-gradient(32vmax 32vmax at 24% 84%, rgba(184, 107, 255, .28), transparent 70%);
  filter: blur(30px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-6deg) scale(1.02); }
}

/* A faint dot grid on top of the blobs, like a showroom floor plan. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* --- top bar --------------------------------------------------------------- */

.topbar { border-color: rgba(255, 255, 255, .14); }
.topbar::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rainbow-slide 8s linear infinite;
}
@keyframes rainbow-slide { to { background-position: -200% 0; } }

.brand-mark {
  color: #2a0d3a;
  background: conic-gradient(from 200deg, #ffd23f, #ff9f1c, #ff5fb8, #b86bff, #4cc9f0, #3ee08f, #ffd23f);
  box-shadow: 0 0 20px rgba(255, 95, 184, .45);
}
.brand-text b {
  background: linear-gradient(90deg, #fff, #ffd9f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text i {
  background: linear-gradient(90deg, #ffd23f, #ff5fb8, #4cc9f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hud-pills .pill-parts { color: var(--cyan); border-color: rgba(122, 245, 255, .4); background: rgba(122, 245, 255, .1); }
.hud-pills .pill-builds { color: #ffb3dd; border-color: rgba(255, 95, 184, .45); background: rgba(255, 95, 184, .12); }
.hud-pills .pill-event {
  cursor: pointer;
  color: #1c0b33;
  border-color: #ffd23f;
  background: linear-gradient(90deg, #ffd23f, #ff9f1c);
  animation: event-pulse 1.4s ease-in-out infinite;
}
@keyframes event-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(255, 210, 63, 0); } 50% { box-shadow: 0 0 14px rgba(255, 210, 63, .7); } }

.icon-btn { background: rgba(255, 255, 255, .06); color: var(--text); }
.icon-btn-music { color: var(--pink); }
.icon-btn-music.is-off { color: var(--text-faint); opacity: .6; }
.icon-btn-music.is-off .icon { transform: rotate(-12deg); }

/* --- the stage ------------------------------------------------------------- */

.stage {
  background: #0e0626;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 95, 184, .16);
}
.stage::after { display: none; }

/* The scene shares the bike's viewBox and spills out of it on every side;
   the stage's own overflow:hidden trims it to the card. */
.stage-art .stage-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}
.stage-art .bike-art { position: relative; z-index: 1; }
.stage-art .bike-art > ellipse { display: none; } /* the turntable replaces the old floor glow */

.bank {
  width: fit-content;
  margin: 2px auto 0;
  padding: 8px 20px 9px;
  border-radius: 18px;
  background: rgba(20, 8, 52, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(20, 6, 50, .35);
}
.bank-money {
  background: linear-gradient(180deg, #fff7c2 0%, #ffd23f 45%, #ff9f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(90, 30, 0, .55)) drop-shadow(0 0 14px rgba(255, 190, 60, .45));
}
.bank-rate { color: #fff; opacity: .88; }

.stage-info h1 {
  color: #fff;
  text-shadow: 0 2px 0 rgba(40, 10, 80, .7), 0 0 18px rgba(255, 95, 184, .45);
}
.stage-specs span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}
.stage-specs .hot { background: rgba(255, 210, 63, .14); border-color: rgba(255, 210, 63, .4); }
.stage-hint { color: var(--text-dim); }

.quest {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(34, 18, 82, .92), rgba(34, 18, 82, .92)) padding-box,
    var(--rainbow) border-box;
  color: var(--text);
}

/* scene motion */
.sc-star { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.sc-clouds { animation: cloud-drift 40s ease-in-out infinite alternate; }
@keyframes cloud-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.sc-sun { animation: sun-glow 5s ease-in-out infinite; }
@keyframes sun-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
.sc-rim { animation: rim-pulse 2.4s ease-in-out infinite; }
@keyframes rim-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* --- tabs: every tab has its own colour ------------------------------------ */

.tab { --tc: var(--gold); background: rgba(38, 27, 88, .8); border-color: rgba(255, 255, 255, .1); color: var(--text-dim); }
.tab[data-id="crates"]   { --tc: #ff9f1c; }
.tab[data-id="bench"]    { --tc: #4cc9f0; }
.tab[data-id="garage"]   { --tc: #3ee08f; }
.tab[data-id="upgrades"] { --tc: #ffd23f; }
.tab[data-id="farms"]    { --tc: #7af5ff; }
.tab[data-id="wheelie"]  { --tc: #ff5fb8; }
.tab[data-id="index"]    { --tc: #b86bff; }
.tab[data-id="network"]  { --tc: #6f8cff; }
.tab .tab-icon { color: var(--tc); }
.tab:hover { color: #fff; border-color: color-mix(in srgb, var(--tc) 65%, transparent); background: color-mix(in srgb, var(--tc) 14%, rgba(38, 27, 88, .9)); }
.tab.is-active {
  color: #1c0b33;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc));
  border-color: color-mix(in srgb, var(--tc) 60%, #fff);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--tc) 45%, transparent);
}
.tab.is-active .tab-icon { color: inherit; }
.tab.is-active .tab-badge { background: #1c0b33; color: var(--tc); }

/* --- the panel takes the colour of its tab --------------------------------- */

.panel { --pc: var(--gold); position: relative; border-color: rgba(255, 255, 255, .12); }
.panel[data-panel="crates"]   { --pc: #ff9f1c; }
.panel[data-panel="bench"]    { --pc: #4cc9f0; }
.panel[data-panel="garage"]   { --pc: #3ee08f; }
.panel[data-panel="upgrades"] { --pc: #ffd23f; }
.panel[data-panel="farms"]    { --pc: #7af5ff; }
.panel[data-panel="wheelie"]  { --pc: #ff5fb8; }
.panel[data-panel="index"]    { --pc: #b86bff; }
.panel[data-panel="network"]  { --pc: #6f8cff; }
.panel {
  background:
    radial-gradient(700px 260px at 100% 0%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(40, 29, 92, .84), rgba(25, 16, 62, .9));
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 40%, #ff5fb8), transparent);
}
.panel-head h2 {
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--pc) 70%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel-head h3 { color: color-mix(in srgb, var(--pc) 60%, var(--text-dim)); }

/* --- cards and rows pick up the colour of their tier / crate / group ------- */

.card {
  --cc: var(--c, var(--pc, var(--purple)));
  border-color: color-mix(in srgb, var(--cc) 34%, transparent);
  background:
    radial-gradient(260px 120px at 0% 0%, color-mix(in srgb, var(--cc) 22%, transparent), transparent 75%),
    linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
}
.card:hover {
  border-color: color-mix(in srgb, var(--cc) 70%, transparent);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--cc) 24%, transparent);
  transform: translateY(-2px);
}
.card-icon {
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 18%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 35%, transparent) inset;
}
.upgrade-card.affordable { border-color: rgba(62, 224, 143, .6); box-shadow: 0 0 22px rgba(62, 224, 143, .14); }

.bp-row, .build-row, .ix-row, .net-row, .slot-row, .bin-tier, .ix-part.is-owned {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--pc)) 13%, transparent), rgba(255, 255, 255, .02) 70%);
}
.bp-row:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.bench-detail, .haul, .chain, .net-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 9%, transparent), rgba(255, 255, 255, .02));
  border-color: color-mix(in srgb, var(--pc) 28%, var(--line));
}
.showroom-card { box-shadow: 0 0 30px color-mix(in srgb, var(--c, #fff) 18%, transparent); }

.card-price { color: var(--green); text-shadow: 0 0 12px rgba(62, 224, 143, .35); }
.card-price.unaffordable { text-shadow: none; }
.owned-chip { box-shadow: 0 0 12px rgba(62, 224, 143, .15); }

/* --- toasts, modals, tour -------------------------------------------------- */

.toast { background: linear-gradient(180deg, rgba(52, 36, 120, .97), rgba(34, 22, 86, .97)); border-color: rgba(255, 255, 255, .18); }
.toast-good { background: linear-gradient(180deg, rgba(18, 110, 80, .96), rgba(12, 74, 60, .96)); border-color: #3ee08f; color: #d9ffec; }
.toast-bad { background: linear-gradient(180deg, rgba(140, 26, 70, .96), rgba(96, 16, 50, .96)); border-color: #ff4f79; color: #ffe0e8; }
.toast-warn { background: linear-gradient(180deg, rgba(140, 80, 10, .96), rgba(100, 54, 8, .96)); border-color: #ff9f1c; color: #fff0d6; }

.modal-card {
  border-color: rgba(255, 255, 255, .16);
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(255, 95, 184, .18), transparent 70%),
    radial-gradient(400px 180px at 0% 100%, rgba(76, 201, 240, .14), transparent 70%),
    linear-gradient(180deg, #2c2070, #1b1248);
}
.modal-card h2 {
  background: linear-gradient(90deg, #ffd23f, #ff5fb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.credit { margin-top: 6px; }
.credit a { color: var(--cyan); }

.tut-card {
  border-color: rgba(255, 210, 63, .6);
  background:
    radial-gradient(300px 140px at 100% 0%, rgba(255, 95, 184, .2), transparent 70%),
    linear-gradient(180deg, #2c2070, #1b1248);
}
.tut-bar i { background: var(--rainbow); background-size: 300% 100%; }

/* --- reduced motion -------------------------------------------------------- */

.reduce-motion body::before,
.reduce-motion .topbar::after,
.reduce-motion .sc-star, .reduce-motion .sc-clouds, .reduce-motion .sc-sun, .reduce-motion .sc-rim {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  body::before, .topbar::after, .sc-star, .sc-clouds, .sc-sun, .sc-rim { animation: none; }
}

/* --- volume sliders -------------------------------------------------------- */

.music-ctl { display: flex; align-items: center; gap: 6px; }

.vol-slider {
  --fill: 75%;
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5fb8, #ffd23f) 0 / var(--fill) 100% no-repeat, rgba(255, 255, 255, .14);
  cursor: pointer;
  outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff5fb8;
  box-shadow: 0 0 10px rgba(255, 95, 184, .6);
}
.vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff5fb8;
}
.vol-slider:focus-visible { box-shadow: 0 0 0 2px rgba(255, 210, 63, .7); }

.vol-row {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 650;
}
.vol-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); }
.vol-row .icon { width: 15px; height: 15px; color: var(--pink); }
.vol-row .vol-slider { width: 100%; }
.vol-row b { font: 700 12px var(--mono); color: var(--gold); text-align: right; }

/* the top bar slider only where there is room for it */
@media (max-width: 720px) { .topbar .vol-slider { display: none; } }

/* --- wheelie grades ---------------------------------------------------------- */

.wheelie-wrap { border-color: rgba(255, 95, 184, .35); box-shadow: 0 0 30px rgba(255, 95, 184, .15); }
.grade-chip {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 50%;
  font: 900 11px var(--sans);
  color: #1c0b33;
  vertical-align: 2px;
}
.grade-S { background: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.grade-A { background: #3ee08f; }
.grade-B { background: #4cc9f0; }
.grade-C { background: #b86bff; }
.grade-D { background: #968cc6; }

/* --- crate bulk buttons + haul totals ------------------------------------------ */

.crate-card .card-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crate-card .card-actions .btn-primary { grid-column: 1 / -1; }
.btn-bulk { flex-direction: column; gap: 1px; padding: 6px 8px; line-height: 1.1; }
.btn-bulk i { font: 600 10px var(--mono); font-style: normal; opacity: .75; }

.haul-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.haul-tier {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  font: 600 11px var(--mono);
}
.haul-tier b { color: var(--text); margin-left: 3px; }

/* --- wheelie full screen ------------------------------------------------------ */

.wheelie-wrap { position: relative; }
.wheelie-fs {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(20, 8, 52, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform .1s ease, background .12s ease;
}
.wheelie-fs:hover { background: rgba(255, 95, 184, .45); }
.wheelie-fs:active { transform: scale(.94); }

.wheelie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* real full screen (Fullscreen API) and the pinned fallback look the same */
.wheelie-wrap:fullscreen,
.wheelie-wrap.is-full {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #150d33;
}
.wheelie-wrap.is-full { position: fixed; inset: 0; z-index: 400; }
.wheelie-wrap:fullscreen .wheelie-canvas,
.wheelie-wrap.is-full .wheelie-canvas { height: 100%; }
.wheelie-wrap:fullscreen .wheelie-fs,
.wheelie-wrap.is-full .wheelie-fs { right: 16px; bottom: 16px; width: 46px; height: 46px; }
.wheelie-pseudo-full, .wheelie-pseudo-full body { overflow: hidden; }

/* --- shop network ------------------------------------------------------------------ */

.net-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.net-bonus { color: var(--green); font-weight: 650; }

.net-perks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.net-perks div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--pc) 28%, var(--line));
  background: rgba(255, 255, 255, .03);
  font-size: 12px;
  color: var(--text-dim);
}
.net-perks b { display: block; color: var(--text); margin-bottom: 2px; }

.net-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) { .net-grid { grid-template-columns: minmax(0, 1fr); } }
.net-col, .net-section {
  border: 1px solid color-mix(in srgb, var(--pc) 24%, var(--line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  padding: 12px;
  min-width: 0;
}
.net-section { margin-bottom: 14px; }
.net-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.net-col-head h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--pc) 60%, var(--text)); }

/* leaderboard rows are buttons now */
button.net-row {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, transform .1s ease;
}
button.net-row:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
button.net-row:active { transform: translateY(1px); }
.net-row.is-open { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 25%, transparent); }
.net-crown { color: var(--gold); margin-right: 4px; }
.net-name .net-you { display: inline; font: 700 9px var(--mono); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.net-inspect .net-you { font: 700 10px var(--mono); font-style: normal; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.net-extra .grade-chip { width: 18px; height: 18px; font-size: 10px; margin: 0; }

.net-inspect {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--c);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
}
.net-inspect-art svg { width: 100%; height: auto; }
.net-inspect h3 { font-size: 16px; }
.net-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.net-stats div { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); min-width: 0; }
.net-stats b { display: block; font: 700 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-stats i { font: 600 9px var(--mono); font-style: normal; color: var(--text-faint); letter-spacing: .06em; }
@media (max-width: 620px) {
  .net-inspect { grid-template-columns: 1fr; }
  .net-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.net-react { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.net-emoji {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font: 600 13px var(--sans);
  cursor: pointer;
  transition: transform .1s ease, background .12s ease;
}
.net-emoji:hover { background: color-mix(in srgb, var(--pc) 22%, transparent); transform: translateY(-1px); }
.net-emoji:active { transform: scale(.94); }

.net-chat-bar { display: flex; gap: 6px; }
.net-chat-bar .net-input { flex: 1; min-width: 0; }
.net-quick { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.net-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line-soft);
}
.net-line { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); overflow-wrap: anywhere; }
.net-line i { font-style: normal; color: var(--text-faint); font-size: 10px; margin-left: 4px; }
.net-line.k-chat { color: var(--text); }
.net-line.k-chat.is-mine { padding-left: 6px; border-left: 2px solid var(--pink); }
.net-line.k-good { color: #b6f2cd; }
.net-line.k-bad { color: #ffc2cd; }
.net-line.k-trade { color: #ffe0a6; }
.net-line.k-event { color: var(--gold); font-weight: 650; }
.net-line.k-react { color: #ffb3dd; }

.net-event {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 210, 63, .35);
  background: linear-gradient(120deg, rgba(255, 210, 63, .12), rgba(255, 95, 184, .08) 60%, transparent);
  display: grid;
  gap: 10px;
}
.net-event.is-idle { grid-template-columns: 1fr auto; align-items: center; background: rgba(255, 255, 255, .025); border-color: var(--line); }
@media (max-width: 720px) { .net-event.is-idle { grid-template-columns: 1fr; } }
.net-event.is-live { border-color: #ffd23f; box-shadow: 0 0 24px rgba(255, 210, 63, .18); }
.net-event h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.net-event-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.net-live, .net-done { font: 800 9px var(--mono); letter-spacing: .16em; padding: 3px 7px; border-radius: 6px; }
.net-live { background: #ff4f79; color: #fff; animation: event-pulse 1.4s ease-in-out infinite; }
.net-done { background: rgba(255, 255, 255, .12); color: var(--text-dim); }
.net-clock { font: 800 30px var(--mono); color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 63, .45); }
.net-ev-board { display: grid; gap: 4px; }
.net-ev-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  font-size: 13px;
}
.net-ev-row.is-me { outline: 1px solid var(--gold); }
.net-ev-row i { font: 700 12px var(--mono); font-style: normal; color: var(--gold); }
.net-event-host { display: flex; gap: 8px; flex-wrap: wrap; }
.net-event-host .btn { flex-direction: column; gap: 1px; }
.net-event-host .btn i { font: 600 10px var(--mono); font-style: normal; opacity: .75; }

.net-form { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--pc) 35%, var(--line)); }
.net-section > .net-form:first-child { margin-top: 0; }
.net-form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.net-form-row { display: flex; gap: 6px; flex-wrap: wrap; }
.net-form-row select.net-input { flex: 2 1 200px; width: auto; }
.net-form-row .net-qty { flex: 0 0 90px; width: 90px; }
.net-form-row .net-price { flex: 1 1 140px; width: auto; }
.net-form .muted.small { margin-top: 8px; }
.net-listing .card-actions .btn { flex: 1; }
.net-rename { display: grid; gap: 4px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); max-width: 260px; }
.net-rename .net-input { text-transform: none; letter-spacing: 0; }
