/* Riftbound deck builder (/riftbound/deck-builder) — builder-only styles.
   Layout comes from main.css's One Piece .db-* classes (.db-layout, .db-picker,
   .db-panel, .db-grid, .db-mobile-tabs …); everything new is rb-b-*. */

/* ── Page frame ─────────────────────────────────────────────────────────────── */
.rb-b-body { background: var(--bg); }
.rb-b-layout { grid-template-rows: min-content 1fr; }

/* ── Split handle (riftbound_deck_builder.js "Split handle") ─────────────────── */
/* riftatlas.com's resizer: pool | 14px grip | deck, the pool's share in
   --rb-split (set by the JS). Replaces main.css's One Piece collapse toggle
   for this page only; below 1024px the deck sheet takes over (as on
   riftatlas). */
.rb-b-split {
  display: flex; align-items: center; justify-content: center;
  width: 14px; min-width: 0; padding: 0; margin: 0;
  background: transparent; border: 0;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text-muted); cursor: col-resize; touch-action: none;
}
.rb-b-split svg { width: 14px; height: 14px; }
.rb-b-split:hover, .rb-b-resizing .rb-b-split { color: var(--text); background: var(--surface2); }
.rb-b-split:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rb-b-resizing, .rb-b-resizing * { cursor: col-resize !important; user-select: none !important; }
@media (min-width: 1024px) {
  .rb-b-layout {
    grid-template-columns: var(--rb-split, 58%) 14px minmax(0, 1fr);
    transition: none;   /* main.css animates the old toggle; a drag must track the pointer */
  }
  .rb-b-layout > .db-picker { grid-column: 1; border-right: 0; }
  .rb-b-layout > .rb-b-split { grid-column: 2; grid-row: 2; }
  .rb-b-layout > .db-panel { grid-column: 3; }
  .rb-b-sheet-head, .rb-b-sheet-backdrop { display: none; }
}

/* ── Deck sheet, under 1024px (riftbound_deck_builder.js "Deck sheet") ───── */
/* riftatlas.com's phone/tablet deck, measured 2026-09-28: fixed to the
   bottom, 85% of the viewport tall, 28px top corners, 88px showing while
   collapsed, a 0.2s ease-out slide, a rgba(4,8,16,.5) blurred backdrop
   while open. Overrides main.css's ≤640px slide-in drawer (.db-panel
   fixed + translateX) and replaces its 카드|덱 tab bar, which this page no
   longer renders. Heights in vh, as riftatlas has them. */
@media (max-width: 1023px) {
  .rb-b-split { display: none; }
  .rb-b-layout { grid-template-columns: 1fr; height: calc(100vh - 52px); height: calc(100dvh - 52px); }
  .rb-b-layout > .db-picker { grid-column: 1; height: 100%; border-right: 0; }
  /* The last row of cards must clear the collapsed bar. */
  .rb-b-layout .db-grid { padding-bottom: calc(88px + 16px + env(safe-area-inset-bottom)); }
  .rb-b-layout > .db-panel {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0;
    height: 85vh;
    transform: translateY(calc(100% - 88px));
    transition: transform .2s cubic-bezier(0, 0, .2, 1), height .2s cubic-bezier(0, 0, .2, 1);
    z-index: 115;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface);
    border: 0; border-top: 1px solid var(--border);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.38);
  }
  .rb-b-layout > .db-panel.rb-b-sheet-open { transform: translateY(0); }
  .rb-b-layout > .db-panel.rb-b-sheet-full { height: 100vh; border-radius: 0; }
  .rb-b-layout > .db-panel.rb-b-sheet-dragging { transition: none; }
  .rb-b-sheet-backdrop {
    position: fixed; inset: 0; z-index: 114;
    background: rgba(4, 8, 16, 0.5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .rb-b-sheet-backdrop.on { opacity: 1; pointer-events: auto; }
  /* Toasts sit above the collapsed bar rather than on it. */
  .rb-b-toast { bottom: calc(88px + 16px + env(safe-area-inset-bottom)); }
  .rb-b-body .rb-legal { padding-bottom: calc(88px + 16px + env(safe-area-inset-bottom)); }
}
.rb-b-sheet-head { flex-shrink: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.rb-b-sheet-grip {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 18px; padding: 0; margin: 0;
  background: none; border: 0; cursor: grab;
}
.rb-b-sheet-grip span { display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--border); }
.rb-b-sheet-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rb-b-sheet-bar { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px 16px; min-height: 56px; }
.rb-b-sheet-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-b-sheet-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rb-b-sheet-name-empty { color: var(--text-muted); font-weight: 600; }
.rb-b-sheet-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.rb-b-sheet-sub > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-b-sheet-chev { transition: transform .2s ease; line-height: 1; }
.rb-b-sheet-open .rb-b-sheet-chev { transform: rotate(180deg); }
.rb-b-sheet-icon {
  flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); cursor: pointer; padding: 0;
}
.rb-b-sheet-icon svg { width: 18px; height: 18px; }
.rb-b-sheet-icon:hover { border-color: var(--text-muted); }

/* ── Format pill ────────────────────────────────────────────────────────────── */
.rb-b-format-row { gap: 8px; }
.rb-b-format-label { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.rb-b-format-pill .db-meta-btn { padding: 6px 14px; font-size: 13px; }
#rb-b-format-confirm-slot .db-leader-reset-confirm { margin: 0 16px 10px; width: auto; }

.rb-b-mini-label { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; margin-right: 8px; }

/* ── Section tabs (riftatlas: Legend · Champion · Main Deck · Battlefields ·
   Sideboard · Runes). Six do not fit a phone, so the row scrolls sideways and
   the JS keeps the selected one in view. ──────────────────────────────────── */
.rb-b-zone-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rb-b-zone-tabs::-webkit-scrollbar { display: none; }
.rb-b-zone-tab {
  flex: 1 0 auto;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.rb-b-zone-tab-active { background: var(--accent); border-color: var(--accent); color: #111; }

.rb-b-select { flex: 1 1 130px; min-width: 0; }
.rb-b-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-b-link-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 13px; padding: 6px 8px; border-radius: 4px; white-space: nowrap;
}
.rb-b-link-btn:hover { color: var(--text); }

/* Domain identity bar */
.rb-b-identity { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rb-b-dom-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; }
.rb-b-dom-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); flex-shrink: 0; vertical-align: -1px; margin-right: 2px;
}
/* Legend slot: the Legend's domains as toggle buttons that filter the deck
   list (aria-pressed marks the one in use). 24px tall = WCAG 2.5.8 minimum. */
.rb-b-dom-filters { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.rb-b-dom-filter {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 9px;
  background: none; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.rb-b-dom-filter:hover { color: var(--text); border-color: var(--text-muted); }
.rb-b-dom-filter-on,
.rb-b-dom-filter-on:hover { color: var(--text); border-color: var(--accent); background: var(--surface2); }

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.rb-b-grid-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 14px;
}
.rb-b-grid-msg p { margin: 0 0 12px; }
.rb-b-sentinel { grid-column: 1 / -1; height: 1px; }

.rb-b-tile .db-pick-img-wrap img { aspect-ratio: 5 / 7; object-fit: contain; background: var(--surface2); }
.rb-b-tile-landscape .db-pick-img-wrap img { aspect-ratio: 7 / 5; }
.rb-b-grid-landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-b-tile-meta {
  display: flex; align-items: center; gap: 3px;
  padding: 0 5px 5px; font-size: 10.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden;
}
.rb-b-tile-energy {
  margin-left: auto; min-width: 18px; text-align: center;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: 10.5px; line-height: 16px; padding: 0 4px;
}
.rb-b-badge-illegal {
  position: absolute; top: 4px; left: 4px;
  background: #636e72; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 3px; padding: 1px 5px;
}
.rb-b-side-qty {
  position: absolute; top: 24px; right: 4px;
  background: var(--accent); color: #111; font-size: 10px; font-weight: 800;
  border-radius: 3px; padding: 1px 5px;
}

/* ── Deck panel ─────────────────────────────────────────────────────────────── */
.rb-b-mode-note {
  font-size: 12px; color: var(--accent);
  background: rgba(232,184,75,0.08); border: 1px solid var(--accent-dim);
  border-radius: var(--radius); padding: 7px 10px; margin-bottom: 8px;
}
.rb-b-champion-slot { min-height: 44px; }
.rb-b-legend-img { cursor: zoom-in; }
.db-panel .db-deck-list.rb-b-zone-list { flex: 0 0 auto; overflow: visible; min-height: 0; }

.rb-b-row { display: flex; flex-direction: column; gap: 3px; border-radius: 4px; }
.rb-b-row-main { gap: 6px; }
.rb-b-row-bad .rb-b-row-main { box-shadow: inset 3px 0 0 #e57373; }
.rb-b-row-energy {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 11px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.rb-b-thumb-land { width: 44px; }
.rb-b-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rb-b-row-flag { font-size: 10.5px; color: #e57373; font-weight: 700; }
/* riftatlas's "+ Add …" row on an empty section; opens that section's tab. */
.rb-b-add-btn {
  display: block; width: 100%; padding: 10px 12px; margin: 2px 0;
  background: none; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer;
}
.rb-b-add-btn:hover { color: var(--text); border-color: var(--text-muted); }
.db-leader-slot .rb-b-add-btn { margin: 0; border: 0; padding: 6px; }   /* the slot draws the dashed box */
.rb-b-row-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 4px 28px; }
.rb-b-mini-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: pointer;
  padding: 3px 9px; white-space: nowrap; line-height: 1.3;
}
.rb-b-mini-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* ── Art picker (riftbound_deck_builder.js openArtPicker) ──────────────────── */
/* The "N alt arts" control is a mini button in the row's action line: the
   32px row thumbnail is too narrow to carry riftatlas's on-thumbnail label.
   The thumbnail itself opens the picker too. */
.rb-b-art-btn { color: var(--text); }
.rb-b-thumb-art { cursor: pointer; }
.rb-b-thumb-art:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.db-leader-info .rb-b-art-btn { margin-top: 3px; }
.rb-b-slot-name {
  background: none; border: 0; padding: 0; margin: 0; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: zoom-in; max-width: 100%;
}
.rb-b-slot-name:hover { text-decoration: underline; }
/* Above the mobile deck drawer (100) and the hover preview (1000), below the
   lightbox (9999). A vertical strip of printings, as on riftatlas. */
.rb-b-art-pop {
  position: fixed; z-index: 1100;
  flex-direction: column; gap: 8px;
  width: 118px; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}
.rb-b-art-opt {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex-shrink: 0;
  background: none; border: 2px solid transparent; border-radius: 6px; padding: 2px; cursor: pointer;
  color: var(--text-muted); font-size: 11px; font-weight: 700;
}
.rb-b-art-opt img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; display: block; }
.rb-b-art-land img { aspect-ratio: 7 / 5; }
.rb-b-art-noimg { display: block; width: 100%; aspect-ratio: 5 / 7; background: var(--surface2); border-radius: 4px; }
.rb-b-art-opt:hover { border-color: var(--text-muted); color: var(--text); }
.rb-b-art-opt.on { border-color: var(--accent); color: var(--accent); }
.rb-b-art-code { text-align: center; letter-spacing: 0.02em; }

/* ── Deck sections: one column, two once the panel is wide (riftatlas) ─────── */
/* Legend, Champion, Main | Battlefields, Sideboard, Runes. riftatlas splits
   its deck pane at ~850px (measured 2026-09-28: one column at 839px, two at
   867px); ours is the panel body's content box, 32px narrower than the pane.
   Legend and Champion share a row once each has room for its actions. */
.rb-b-layout .db-panel-body { container: rbdeck / inline-size; }
.rb-b-deck-cols, .rb-b-deck-col, .rb-b-zone, .rb-b-slot-pair, .rb-b-slot-cell {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
@container rbdeck (min-width: 520px) {
  .rb-b-slot-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
}
@container rbdeck (min-width: 820px) {
  .rb-b-deck-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
}

/* ── Drop targets (Main / Sideboard) while a card is dragged ───────────────── */
/* riftatlas's cue: a tinted section with an inset ring and a "Drop into …"
   label (data-drop-label, set in the site language at dragstart). The
   padding/negative margin gives the ring room without moving the rows. */
.rb-b-zone[data-drop] { position: relative; border-radius: 8px; padding: 2px 6px; margin: 0 -6px; }
.rb-b-zone.rb-b-drop-on { background: rgba(232,184,75,0.08); box-shadow: inset 0 0 0 2px rgba(232,184,75,0.6); }
.rb-b-zone.rb-b-drop-on::after {
  content: attr(data-drop-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none;
}

/* Validation panel */
.rb-b-problems {
  margin-top: 12px; padding: 10px 12px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12.5px;
}
.rb-b-prob-status { margin: 0; font-weight: 700; color: var(--text-muted); }
.rb-b-prob-ok { color: #4caf50; }
.rb-b-prob-draft { color: #f1c40f; }
.rb-b-prob-bad { color: #e57373; }
.rb-b-prob-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rb-b-prob { margin: 0; padding-left: 10px; border-left: 3px solid var(--border); line-height: 1.45; color: var(--text); }
.rb-b-prob-error { border-left-color: #e57373; }
.rb-b-prob-warning { border-left-color: #f1c40f; color: var(--text-muted); }

.rb-b-curve-title { margin-top: 10px; display: block; }
.rb-b-type-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rb-b-type-stats .db-type-pill { font-size: 12px; }
.rb-b-desc { width: 100%; font-size: 13px; resize: vertical; margin-top: 10px; box-sizing: border-box; }

/* ── Footer: save / share / import ──────────────────────────────────────────── */
.rb-b-notice {
  align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 9px 12px;
  background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: 13px; color: var(--text);
}
.rb-b-notice > span { flex: 1; min-width: 0; }
.rb-b-notice-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.rb-b-warn {
  margin-bottom: 8px; padding: 10px 12px;
  background: rgba(241,196,15,0.10); border: 1px solid rgba(241,196,15,0.35);
  border-radius: var(--radius); font-size: 13px;
}
.rb-b-warn-title { margin: 0 0 6px; font-weight: 700; color: var(--text); }
.rb-b-warn-list { margin: 0 0 8px; padding-left: 18px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.rb-b-btn-row { display: flex; gap: 8px; align-items: stretch; }
.rb-b-btn-row > * { flex: 1; }
.rb-b-btn-sm { font-size: 12.5px; padding: 8px 10px; }
.rb-b-btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.rb-b-btn-ghost:hover { background: var(--surface); }
.rb-b-save-btn { width: 100%; margin-top: 2px; }
.rb-b-save-btn:disabled { opacity: .6; cursor: progress; }
.rb-b-io-row { margin-top: 8px; }

.rb-b-share {
  margin-top: 10px; padding: 12px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
}
.rb-b-share-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: #4caf50; }
.rb-b-share-url { flex: 3 !important; font-size: 12px; min-width: 0; }
.rb-b-view-deck {
  display: block; margin-top: 8px; padding: 8px; text-align: center;
  background: var(--accent); color: #111; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; text-decoration: none;
}

.rb-b-import { margin-top: 8px; }
.rb-b-import-hint { font-size: 11.5px; color: var(--text-muted); margin: 0 0 6px; line-height: 1.5; }
.rb-b-import-text { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; }
.rb-b-import-apply { width: 100%; margin-top: 6px; }
.rb-b-unresolved {
  margin-top: 6px; padding: 8px 10px;
  background: rgba(229,115,115,0.08); border: 1px solid rgba(229,115,115,0.4); border-radius: var(--radius);
  font-size: 12px;
}
.rb-b-unresolved-title { margin: 0 0 4px; font-weight: 700; color: #e57373; }
.rb-b-unresolved ul { margin: 0 0 8px; padding-left: 18px; max-height: 140px; overflow-y: auto; }
.rb-b-unresolved code { font-size: 11.5px; word-break: break-all; }

/* ── Login modal ────────────────────────────────────────────────────────────── */
.rb-b-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7);
  align-items: center; justify-content: center;
}
.rb-b-modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; width: min(340px, 90vw); text-align: center; box-sizing: border-box;
}
.rb-b-modal-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.rb-b-modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.rb-b-login-kakao, .rb-b-login-google {
  display: block; padding: 11px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 10px;
}
.rb-b-login-kakao { background: #FEE500; color: #181600; }
.rb-b-login-google { background: var(--surface2); color: var(--text); border: 1px solid var(--border); margin-bottom: 14px; }

/* ── Lightbox ───────────────────────────────────────────────────────────────── */
.rb-b-lb {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.78);
  align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.rb-b-lb-box {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; max-width: 760px; width: 100%; max-height: 100%; overflow-y: auto; box-sizing: border-box;
}
.rb-b-lb-img { width: min(300px, 45%); border-radius: 10px; flex-shrink: 0; display: block; }
.rb-b-lb-landscape { flex-direction: column; }
.rb-b-lb-landscape .rb-b-lb-img { width: 100%; }
.rb-b-lb-info { flex: 1; min-width: 0; }
.rb-b-lb-name { font-size: 19px; font-weight: 700; margin: 0 28px 6px 0; line-height: 1.3; }
.rb-b-lb-meta { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.6; }
.rb-b-lb-text { font-size: 13.5px; line-height: 1.65; margin: 0 0 12px; color: var(--text); }
.rb-b-lb-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.rb-b-lb-close {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); font-size: 15px; cursor: pointer;
}

.rb-b-toast { border-left-color: var(--accent); }

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rb-b-format-row { padding: 8px 12px; gap: 6px; }
  .rb-b-format-label { display: none; }
  .rb-b-format-pill { width: 100%; }
  .rb-b-format-pill .db-meta-btn { flex: 1; padding: 8px 4px; font-size: 12.5px; min-height: 36px; }
  .rb-b-zone-tab { min-height: 38px; font-size: 12.5px; padding: 6px 12px; }
  .rb-b-grid-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-b-mini-btn { font-size: 12px; padding: 7px 11px; min-height: 34px; }
  .rb-b-row-actions { padding-left: 0; }
  /* The "N alt arts" label stays on phones (owner, 2026-09-28) — riftatlas
     drops it there and leaves only the thumbnail, which is how a tester
     missed alternate arts in the first place. */
  .rb-b-lb-box { flex-direction: column; align-items: center; }
  .rb-b-lb-img { width: min(300px, 80vw); }
  .rb-b-lb-landscape .rb-b-lb-img { width: 100%; }
  /* (The legal footer's clearance for the collapsed deck sheet is in the
     "Deck sheet" block above.) */
  .rb-b-select { flex-basis: 100%; }
}
