/* ═══════════════════════════════════════════════
   PENSÉES TCG — main.css
   Base · Reset · Variables · Layout shell
   ═══════════════════════════════════════════════ */

:root {
  --navy:          #060e1c;
  --navy-mid:      #0a1628;
  --navy-side:     #080f1e;
  --gold:          #c9a84c;
  --gold-light:    #fde68a;
  --border-subtle: rgba(201,168,76,.09);
  --topbar-h:      52px;
  --strip-h:       100px;
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%; overflow: hidden;
  background: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #e8d5a3;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.55); }

/* ── SHELL ── */
#app {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; overflow: hidden;
}

#topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--topbar-h); flex-shrink: 0;
  background: rgba(6,12,26,.97);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 100; gap: 12px;
}

#main { display: flex; flex: 1; overflow: hidden; }

#center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201,168,76,.04) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(15,32,64,.7) 0%, transparent 55%),
    linear-gradient(160deg, #0a1628 0%, #060e1c 100%);
}
#center .grid-bg {
  position: absolute; inset: 0; opacity: .034; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.9) 1px, transparent 1px);
  background-size: 38px 38px;
}
#preview-wrap { position: relative; z-index: 2; transition: opacity .3s; }

#bottom-strip {
  height: var(--strip-h); flex-shrink: 0;
  background: rgba(4,10,20,.97);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px; overflow-x: auto; overflow-y: hidden;
}
#strip-cards { display: flex; align-items: center; gap: 8px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 120px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16,185,129,.92); color: #ecfdf5;
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .15em;
  padding: 10px 22px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .3s ease;
  z-index: 999; white-space: nowrap; backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .filter-row { display: none !important; }
}
@media (max-width: 700px) {
  #sidebar-left { display: none !important; }
  .logo-sub { display: none; }
}
