/* The auction pages borrow vault/main.css for its panels, which also
   carries vault's grey body. The page itself keeps the site sand. */
body {
    background-color: var(--bg-primary);
}

/* One banner language for the whole site.
   Every banner — game sponsor and ownership winner alike — is built from the
   same .gbs-* classes. The deliberate size: banners cap at 600px, the game
   column width, and center themselves in any container. */

.gbs-wrap {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  margin: 12px auto 8px;
  font-size: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Bright, vibrant banner display */
.gbs-display {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #ffffff;
  padding: 1px 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gbs-display a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #bae6fd;
  text-underline-offset: 2px;
}

.gbs-display a:hover {
  text-decoration-color: #ffffff;
}

.gbs-sponsor-label {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* The stripe itself as a link, with a headline (ownership winner banner) */
a.gbs-display {
  text-decoration: none;
  box-shadow: inset 0 0 0 0 #ffffff;
  transition: box-shadow 0.2s;
}
a.gbs-display:hover {
  box-shadow: inset 0 -2px 0 0 #ffffff;
}

.gbs-headline {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Gold skin */
.gbs-skin-gold {
  background: linear-gradient(135deg, #1a1a1a, #2d2200);
  color: #d4af37;
}
.gbs-skin-gold a {
  color: #f4d03f;
  text-decoration-color: #8a7223;
}
.gbs-skin-gold a:hover {
  text-decoration-color: #f4d03f;
}
.gbs-skin-gold .gbs-sponsor-label {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.gbs-skin-gold .gbs-loading,
.gbs-skin-gold .gbs-empty-slot {
  color: #b08d2f;
}

.gbs-loading,
.gbs-empty-slot {
  color: #e0f2fe;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gbs-buy-trigger {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* On the info row the owner is quiet plain text, one voice with the status */
.gbs-buy-trigger .gbs-sponsor-label {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.gbs-buy-trigger .gbs-sponsor-label:empty { display: none; }

.gbs-status-text {
  font-size: 0.75rem;
  color: #64748b;
  flex: 1;
  min-width: 0;
}

.gbs-open-btn {
  background: none;
  border: none;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.gbs-open-btn:hover { color: var(--accent-teal-dark); }

.gbs-login-link {
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}
.gbs-login-link:hover { text-decoration: underline; }

.gbs-panel {
  background: var(--accent-teal);
  border-top: 1px solid var(--surface-3);
  padding: 12px;
}

.gbs-panel-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.gbs-tiers {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.gbs-tier {
  flex: 1;
  min-width: 90px;
}

.gbs-tier input { display: none; }

.gbs-tier span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.gbs-tier span small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  margin-top: 3px;
  font-weight: 400;
}

.gbs-tier span:hover {
  background: #f1f5f9;
}

.gbs-tier input:checked + span {
  border-color: var(--accent-teal);
  background: var(--surface-2);
  color: var(--accent-teal);
  box-shadow: 0 0 0 1px var(--accent-teal);
}

.gbs-tier input:checked + span small {
  color: var(--accent-teal);
}

.gbs-text-input,
.gbs-url-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--accent-teal);
  border-radius: 6px;
  color: var(--accent-teal);
  padding: 9px 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gbs-text-input::placeholder,
.gbs-url-input::placeholder {
  color: var(--dark-ink-2);
}

.gbs-text-input:focus,
.gbs-url-input:focus {
  outline: none;
  border-color: var(--accent-teal-dark);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.gbs-balance {
  margin: 6px 0 12px;
  color: #64748b;
  font-size: 0.8rem;
}
.gbs-balance strong {
  color: #1e293b;
}

.gbs-actions {display: flex;
  gap: 10px;
}

.gbs-submit-btn {
  background: var(--accent-teal);
  color: var(--surface);
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
  transition: background 0.2s, transform 0.1s;
}

.gbs-submit-btn:hover:not(:disabled) { 
  background: var(--accent-teal-dark); 
  transform: translateY(-1px);
}

.gbs-submit-btn:disabled { 
  background: var(--dark-ink-2); 
  color: var(--surface-2); 
  cursor: not-allowed; 
  box-shadow: none;
}

.gbs-cancel-btn {
  background: var(--surface-2);
  border: 1px solid var(--accent-teal);
  border-radius: 6px;
  padding: 9px 16px;
  color: var(--bg-footer);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.gbs-cancel-btn:hover { 
  background: var(--surface-2);
  border-color: var(--dark-ink-2); 
  color: var(--accent-teal-dark); 
}

.gbs-msg {
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
}

.gbs-msg.ok  { color: var(--accent-activity); }
.gbs-msg.err { color: var(--danger); }

.gbs-crown-pending {
  font-size: 0.72rem;
  color: #e0f2fe;
  font-style: italic;
}

@media (max-width: 480px) {
  .gbs-wrap { margin: 10px auto 6px; border-radius: 6px; }
  .gbs-display { padding: 1px 4px; }
  .gbs-buy-trigger { padding: 1px 4px; }
  .gbs-panel { padding: 4px; }
  .gbs-tiers { flex-direction: column; gap: 8px; }
  .gbs-tier { min-width: unset; }
  .gbs-display { flex-wrap: wrap; }
}

/* ── Slot formats — admin-set stripe height and text size ──
   Standard is the bare class; these presets step it up or down. */

.gbs-h-slim  { min-height: 28px; padding-top: 5px; padding-bottom: 5px; }
.gbs-h-tall  { min-height: 60px; padding-top: 16px; padding-bottom: 16px; }
.gbs-t-small { font-size: 0.78rem; }
.gbs-t-large { font-size: 1.05rem; }
.gbs-t-small .gbs-headline { font-size: 0.8rem; }
.gbs-t-large .gbs-headline { font-size: 1.05rem; }

/* ── Auction cards — one card for the list and the single-auction page ──
   Both pages show the same object: a place, the stripe running in it, and
   what it costs. The rules live here so a palette pass touches one file. */

.ba-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}
a.ba-card { transition: box-shadow 0.15s, transform 0.1s; }
a.ba-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
/* Gold edge says the same thing here as everywhere: this one is held. */
.ba-card-won { border-color: var(--accent-gold); }

.ba-meta-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--surface);
}

/* The goods: the slot's own stripe, at its admin-set height, carrying
   whatever runs there now. Narrower than a page, so it wraps and clips. */
.ba-card .gbs-display { flex-wrap: wrap; gap: 6px; }
.ba-card .gbs-headline,
.ba-card .gbs-empty-slot {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Terms are the small print of the lot, never a headline. */
.ba-card .ba-terms { justify-content: center; }
.ba-card .ba-terms .gbs-headline {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.ba-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
}
.ba-bid-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.ba-bid-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-left: 0.25rem;
}
/* Gold says one thing only: this place is held. */
.ba-bid-user {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ba-held { color: var(--accent-gold); }

/* A fact under the hero: the label is body ink, the value is heading ink.
   Two colours the site already owns, not one colour at two strengths. */
.ba-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--text-main);
}
.ba-row strong { color: var(--ink); }

/* The heading carries the one fact a visitor wants, so the count
   never needs a row of its own. */
.ba-page-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}
.ba-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-teal);
}
/* Same disc as the cart badge in base.css — one shape, one red. */
.ba-page-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1rem;
    font-weight: 700;
    color: #e44;
}

.ba-section-title {
    margin: 1.2rem 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-teal);
}

@media (max-width: 480px) {
    .ba-page-head { margin-bottom: 0.6rem; padding: 0 0.25rem 0.4rem; }
    .ba-page-title { font-size: 1.15rem; letter-spacing: 0.04em; }
    .ba-page-count { min-width: 24px; height: 24px; font-size: 0.9rem; }
    .ba-meta-top { padding: 0.4rem 4px; }
    .ba-hero { padding: 0.5rem 4px; }
    .ba-row { padding: 0.4rem 4px; }
}
