/* ============================================================
   ART QUEUE / ART REDEEM PICKER — page-specific styles
   Loads after impheim.css
   ============================================================ */

/* ---- Page layout ---- */
.aq-section { padding-top: 1.5rem; padding-bottom: 2rem; }
.aq-wrap { max-width: 660px; margin: 0 auto; padding: 0 1rem 4rem; }

/* ---- Tab bar ---- */
.tab-bar {
  display: flex; gap: 2px; margin-bottom: 20px;
  width: 100%; border-bottom: 1px solid var(--border);
}
.tb {
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px; font-size: .82rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px; white-space: nowrap;
}
.tb:hover { color: var(--text); }
/* Active tab uses gold to match the site's primary accent */
.tb.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Badge counts on tab labels */
.tbadge {
  display: inline-block;
  background: var(--gold-dim); color: var(--gold);
  font-size: .6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 99px;
  margin-left: 4px; vertical-align: middle;
  min-width: 16px; text-align: center;
}

/* Tab content panels */
.tc { display: none; width: 100%; }
.tc.active { display: block; }

/* ---- Read-only item cards ---- */
.ql { display: flex; flex-direction: column; gap: 6px; }
.ic {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r-md); display: flex;
  align-items: stretch; overflow: hidden; min-height: 76px;
}
.ic-content { flex: 1; min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; }
.ic-header { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow: hidden; }
/* #ID pill — gold to match site accent */
.ic-id   { flex-shrink: 0; font-size: .63rem; font-weight: 800; color: var(--gold); background: var(--gold-dim); padding: 2px 7px; border-radius: 99px; }
/* Requester name — gold accent */
.ic-who  { flex-shrink: 0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.ic-date { font-size: .63rem; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.ic-what { font-size: .88rem; color: var(--text2); line-height: 1.45; }
.ic-stamps { display: flex; gap: 12px; flex-wrap: nowrap; overflow: hidden; margin-top: auto; padding-top: 6px; }
.ic-stamp { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.ic-stamp strong { color: var(--text2); font-weight: 600; }
/* Art thumbnail on the right of a card */
.ic-img-side { flex-shrink: 0; width: 88px; border-left: 1px solid var(--border2); cursor: pointer; overflow: hidden; }
.ic-img-side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.ic-img-side:hover img { opacity: .82; }
.q-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-style: italic; font-size: .9rem; }

/* ---- Spin modifier cards (mood & palette) ---- */
.mods { display: flex; gap: 12px; margin-bottom: 16px; width: 100%; }
.mc {
  flex: 1; background: var(--bg4); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px 12px; text-align: center;
  transition: opacity .4s, border-color .4s, transform .3s;
  opacity: .28; transform: scale(.97);
}
/* Activated modifier card highlights in gold */
.mc.on { opacity: 1; border-color: var(--gold); transform: scale(1); }
.mt { font-size: .58rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 9px; }
.mv { font-size: .9rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.md { font-size: .7rem; color: var(--muted); line-height: 1.3; }
/* Palette colour swatches */
.swatches { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.sw { width: 30px; height: 30px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.08); }
.hexrow { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.hx { font-size: .6rem; font-family: monospace; color: var(--muted); background: var(--bg); padding: 2px 5px; border-radius: 4px; }

/* ---- Slot machine housing ---- */
.machine {
  width: 100%; background: var(--bg4); border: 2px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px;
  transition: border-color .3s, box-shadow .3s; position: relative;
}
/* Machine glows gold while spinning */
.machine.spin { border-color: var(--gold); box-shadow: 0 0 40px rgba(201,168,76,.2); }

/* Reel viewport */
.sw-win { height: 440px; overflow: hidden; position: relative; }
.sw-win::before, .sw-win::after {
  content: ''; position: absolute; left: 0; right: 0; height: 150px;
  z-index: 10; pointer-events: none;
}
.sw-win::before { top: 0;    background: linear-gradient(to bottom, var(--bg4) 18%, transparent); }
.sw-win::after  { bottom: 0; background: linear-gradient(to top,   var(--bg4) 18%, transparent); }
.reel { position: absolute; left: 0; right: 0; will-change: transform; }
/* Individual reel items — gold-tinted separator */
.ri { height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 10px 24px; border-bottom: 1px solid rgba(201,168,76,.06); }
.ri-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
/* Requester name in reel — gold */
.ri-who  { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.ri-date { font-size: .59rem; color: var(--muted); }
.ri-id   { font-size: .59rem; color: var(--muted); margin-left: auto; }
.ri-what { font-size: .86rem; color: var(--text2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Winner overlay card ---- */
.wov { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 20; display: none; }
.wov.show { display: block; animation: win-in .42s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes win-in { from { opacity: 0; transform: translateY(calc(-50% + 14px)); } to { opacity: 1; transform: translateY(-50%); } }
/* Winner card highlighted in gold */
.wcard {
  background: var(--bg4);
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  box-shadow: 0 0 60px rgba(201,168,76,.2);
}
.wcard-body { padding: 16px 22px; }
.wm { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.wm-id   { font-size: .63rem; font-weight: 800; color: var(--gold); background: var(--gold-dim); padding: 2px 8px; border-radius: 99px; }
.wm-who  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.wm-date { font-size: .63rem; color: var(--muted); margin-left: auto; }
.wm-what { font-size: .98rem; color: var(--text); line-height: 1.52; margin-bottom: 12px; }
.wclose  { display: block; margin-left: auto; background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: .72rem; padding: 4px 6px; border-radius: 6px; }
.wclose:hover { color: var(--text); }

/* ---- Spin button — gold/red gradient to match site palette ---- */
.bwrap { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.sbtn {
  background: linear-gradient(135deg, #8b2a0a, var(--gold), var(--gold-bright));
  color: #1a0f00; border: none;
  padding: 13px 52px; font-size: 1rem; font-weight: 800;
  border-radius: 50px; cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(201,168,76,.35);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.sbtn:hover    { transform: scale(1.05); box-shadow: 0 0 55px rgba(201,168,76,.55); }
.sbtn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.cnt { font-size: .78rem; color: var(--muted); }

/* ---- Art lightbox ---- */
.aq-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 1000;
  cursor: pointer; align-items: center; justify-content: center;
}
.aq-lightbox.show { display: flex; }
.aq-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 8px 60px rgba(0,0,0,.6); }

/* ---- Confetti burst ---- */
.cfwrap { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 999; }
.cp { position: absolute; top: -12px; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(800deg); opacity: 0; } }
