/* maxing.lol — shell + cinematic cards */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-mark {
  font-weight: 650;
  letter-spacing: -0.05em;
  font-size: 1.05rem;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(243, 243, 241, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar .brand { justify-self: start; }
.topbar-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.topbar-center .sep { opacity: 0.4; }
.topbar-actions {
  justify-self: end;
  display: flex;
  gap: 0.4rem;
}

.live-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--max);
  box-shadow: 0 0 0 3px var(--max-soft);
  animation: live 1.8s ease-in-out infinite;
}

@keyframes live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--rail) var(--leader) minmax(0, 1fr);
  min-height: calc(100vh - var(--top));
}

.rail {
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  padding: 1rem 0.85rem 1rem 1rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: auto;
  background: rgba(255, 255, 255, 0.28);
}

.rail-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-stats {
  display: grid;
  gap: 0.45rem;
}

.rail-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.rail-stat:last-child { border-bottom: 0; }

.rail-stat span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.rail-stat strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.rail-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.rail-copy em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.activity-list li {
  display: grid;
  gap: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.activity-list time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.rail-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.rail-foot a:hover { color: var(--ink); }

/* Always-on leaderboard column */
.leader {
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.leader-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

.leader-head h2 {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.leader-head span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.leader-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 1rem;
  overflow: auto;
  flex: 1;
}

.leader-row {
  display: grid;
  grid-template-columns: 1.6rem 1.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
  transition: background 0.15s ease;
}

.leader-row:hover {
  background: rgba(11, 11, 12, 0.04);
}

.leader-row.is-max {
  background: var(--max-soft);
  border-left-color: var(--max);
}

.leader-row.is-preview {
  background: rgba(11, 11, 12, 0.06);
  border-left-color: var(--ink);
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.leader-row.is-preview .leader-domain {
  font-style: italic;
}

.leader-rank {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 560;
  color: var(--muted);
}

.leader-row.is-max .leader-rank { color: #0a7a42; }

.leader-fav {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
}

.leader-fav-fallback {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 650;
}

.leader-domain {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.leader-meta small {
  display: block;
  font-weight: 450;
  color: var(--muted);
  font-size: 0.58rem;
}

.leader-empty {
  padding: 1rem 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Stage */
.stage {
  min-width: 0;
  padding: 0.85rem 1rem 2rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.stage-head h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.stage-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 42ch;
}

.view-toggle {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.view-toggle button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 560;
  color: var(--muted);
  cursor: pointer;
}

.view-toggle button.is-active {
  background: var(--ink);
  color: #fff;
}

/* Deck */
#max-deck[hidden],
#board-panel[hidden] { display: none !important; }

.deck-stage {
  position: relative;
  height: min(640px, calc(100vh - var(--top) - 7.5rem));
  perspective: 1400px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.deck-empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.deck-empty strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.deck-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.deck-chrome button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.deck-chrome button:hover { background: #fff; }

.deck-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  min-width: 4.5rem;
  text-align: center;
}

.max-meter {
  margin: 0.65rem auto 0;
  width: min(280px, 60%);
  height: 2px;
  background: var(--line-strong);
  border-radius: 99px;
  overflow: hidden;
}

.max-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0b0b0c, var(--max));
  transition: width 0.55s var(--ease);
}

/* Cinematic max cards */
.max-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100% - 0.5rem));
  height: min(600px, calc(100% - 0.25rem));
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  cursor: grab;
  transform-origin: center 85%;
  will-change: transform;
  isolation: isolate;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  touch-action: none;
  -webkit-user-drag: none;
}

.max-card:active { cursor: grabbing; }

.max-card.is-max {
  border-color: rgba(30, 230, 122, 0.45);
  box-shadow:
    0 0 0 1px rgba(30, 230, 122, 0.2),
    0 28px 80px rgba(11, 11, 12, 0.28),
    0 0 60px rgba(30, 230, 122, 0.12);
}

.max-card.is-max .card-shine {
  opacity: 1;
  animation: sheen 4.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  35% { opacity: 0.55; }
  55% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}

.card-shine {
  position: absolute;
  inset: -20%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #121214;
}

.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  /* Pull back a touch so more of the homepage shows in-frame */
  transform: scale(0.92);
  transform-origin: top left;
  filter: none;
}

/* Browser chrome frame for homepage shots */
.card-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-chrome-dots {
  display: flex;
  gap: 0.28rem;
}

.card-chrome-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.card-chrome-dots i:nth-child(1) { background: #ff5f57; }
.card-chrome-dots i:nth-child(2) { background: #febc2e; }
.card-chrome-dots i:nth-child(3) { background: #28c840; }

.card-chrome-url {
  flex: 1;
  margin-left: 0.35rem;
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.card-rank {
  top: 2.4rem;
}

.max-card.is-max .card-badge {
  top: 2.35rem;
}

.card-bg-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(30, 230, 122, 0.22), transparent 45%),
    linear-gradient(160deg, #1a1a1c 0%, #0b0b0c 55%, #151518 100%);
  font-size: clamp(7rem, 28vw, 12rem);
  font-weight: 650;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.card-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 18%, transparent 48%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.card-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: var(--max);
  color: #04140b;
  box-shadow: 0 8px 24px rgba(30, 230, 122, 0.35);
}

.card-watermark {
  position: absolute;
  left: -4%;
  bottom: 22%;
  z-index: 2;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  white-space: nowrap;
  max-width: 110%;
  overflow: hidden;
}

.card-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 1.1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.7rem;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.card-favicon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}

.card-domain {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-paid {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.card-clicks {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.card-actions .btn {
  backdrop-filter: blur(8px);
}

.card-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.card-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Board grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.board-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  color: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.board-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.board-tile.is-max {
  border-color: rgba(30, 230, 122, 0.5);
  box-shadow: 0 0 0 1px rgba(30, 230, 122, 0.2);
}

.board-tile img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transform: scale(0.92);
  transform-origin: top left;
  opacity: 0.85;
}

.board-tile .tile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 650;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1c1c1e, #0b0b0c);
}

.board-tile .tile-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
}

.board-tile .tile-rank {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 560;
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.board-tile .tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.board-tile .tile-domain {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.board-tile .tile-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.board-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  font-size: 0.85rem;
}

/* Bid drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 11, 12, 0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bid-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(380px, 100%);
  height: 100%;
  background: #fafaf8;
  border-left: 1px solid var(--line-strong);
  box-shadow: -24px 0 60px rgba(11, 11, 12, 0.12);
  transform: translateX(105%);
  transition: transform 0.38s var(--ease);
  display: grid;
  grid-template-rows: auto 1fr;
}

.bid-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.drawer-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: var(--muted);
}

.drawer-close:hover { color: var(--ink); background: var(--bg-2); }

.drawer-body {
  padding: 1rem;
  overflow: auto;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.drawer-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.bid-amount-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bid-stepper {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.bid-stepper:hover { border-color: var(--ink); }

.bid-amount-display {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bid-amount-display .currency {
  font-size: 0.5em;
  vertical-align: top;
  margin-right: 0.05em;
  opacity: 0.55;
}

.bid-fields {
  display: grid;
  gap: 0.55rem;
}

.bid-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bid-fields input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  outline: none;
  font-size: 0.9rem;
}

.bid-fields input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.06);
}

.bid-hint {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.bid-quote {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.35;
}

.bid-due {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--line-strong);
}

.bid-due.is-raise {
  border-style: solid;
  border-color: rgba(30, 230, 122, 0.4);
  background: var(--max-soft);
}

.bid-due-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bid-due strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.bid-rank-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
}

.bid-rank-preview.is-max {
  background: var(--max-soft);
  border-color: rgba(30, 230, 122, 0.45);
}

.bid-rank-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bid-rank-preview strong {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.preview-chip {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.preview-chip.is-visible { display: flex; }
.preview-chip img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  background: var(--bg);
}
.preview-chip strong { display: block; font-size: 0.8rem; }
.preview-chip span { font-size: 0.68rem; color: var(--muted); }

.bid-actions { display: grid; gap: 0.45rem; margin-top: 0.25rem; }

/* Checkout */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: end;
  justify-content: center;
  padding: 0.75rem;
}

.checkout-overlay.is-open { display: flex; }

.checkout-sheet {
  width: min(460px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: up 0.28s var(--ease) both;
}

@keyframes up {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.checkout-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}

.checkout-close {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  color: var(--muted);
}

#checkout-mount {
  min-height: 400px;
  overflow: auto;
  padding: 0.35rem;
}

/* Floating Max Out (mobile / always reachable) */
.fab-max {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: none;
  box-shadow: 0 12px 32px rgba(11, 11, 12, 0.2);
}

/* Legal / admin leftovers */
.page-thanks, .page-admin { font-family: var(--font); }
.thanks-main { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.thanks-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks-card.is-max { border: 1px solid rgba(30, 230, 122, 0.5); }
.thanks-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0a7a42;
  margin: 0 0 0.4rem;
}
.thanks-card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.thanks-body { color: var(--ink-2); font-size: 0.9rem; }
.thanks-note { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.legal-page h1 { letter-spacing: -0.03em; font-size: 1.6rem; }
.legal-page h2 { font-size: 1rem; margin-top: 1.5rem; }
.legal-page p { color: var(--ink-2); font-size: 0.9rem; }

.admin-main { padding: 1.5rem 1rem 3rem; max-width: 960px; margin: 0 auto; }
.admin-header { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 1.25rem; font-size: 0.85rem; }
.admin-login { max-width: 280px; display: grid; gap: 0.6rem; }
.admin-login input { padding: 0.6rem; border-radius: 8px; border: 1px solid var(--line-strong); }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.admin-stats div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
}
.admin-stats strong { display: block; font-family: var(--mono); font-size: 1.05rem; }
.admin-stats span { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; background: rgba(255,255,255,0.6); }
.admin-table th, .admin-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table tr.is-hidden { opacity: 0.4; }

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: var(--leader) minmax(0, 1fr);
  }
  .rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .rail {
    display: grid;
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
  }
  .rail-block--activity { grid-column: 1 / -1; }
  .rail-foot { display: none; }
  .leader {
    position: relative;
    top: 0;
    height: auto;
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fab-max { display: inline-flex; }
  .topbar {
    grid-template-columns: auto 1fr auto;
  }
  .topbar-center { display: none; }
  .deck-stage {
    height: min(560px, calc(100vh - var(--top) - 6rem));
  }
}

@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .topbar-actions .btn-ghost { display: none; }
  .leader { max-height: 200px; }
}
