/* Sanctuary TCG — design system
   Palette/type pass: warm dungeon-stone dark, blood-red + aged gold accents,
   a gothic display face for the brand/titles — the D2 family's own colors
   (bone/parchment, brass-gold uniques, blood, ember rune-orange) instead of
   a generic purple-nebula fantasy look. */

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Cinzel:wght@600;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0805;
  --bg-alt: #140d08;
  --panel: #1e150d;
  --panel-2: #2a1d12;
  --border: #4a3319;
  --text: #e9dfc8;
  --text-dim: #b6a688;
  --text-faint: #7d6e54;
  --accent: #c9a24d;
  --gold: #e6b93a;
  --blood: #9c1c1c;
  --blood-bright: #d43333;

  --r-common: #cfc0a0;
  --r-magic: #6c8cff;
  --r-rare: #f0e23d;
  --r-gem: #2fd9c4;
  --r-rune: #ff7b3d;
  --r-unique: #d4a72c;
  --r-set: #2ecc40;
  --r-runeword: #e2432f;

  --font-title: 'Pirata One', 'Cinzel', serif;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, #1e1006 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  background-attachment: fixed;
  background-image:
    radial-gradient(ellipse 900px 550px at 12% -8%, rgba(156, 28, 28, 0.14), transparent 60%),
    radial-gradient(ellipse 800px 500px at 92% 8%, rgba(230, 185, 58, 0.07), transparent 60%),
    radial-gradient(ellipse 1200px 900px at 50% 120%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(ellipse at top, #1e1006 0%, var(--bg) 55%);
}

a { color: inherit; }

::selection { background: var(--blood); color: #f4e9cf; }

/* ---------- layout shell ---------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f4e9cf, var(--gold) 55%, var(--blood-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.brand .glyph {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(212, 51, 51, 0.55));
}

.nav {
  display: flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all .15s ease;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: #180f06;
  background: linear-gradient(135deg, #f0d27a, var(--gold));
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

h1.page-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(156, 28, 28, 0.25);
}
p.page-sub {
  color: var(--text-dim);
  margin: 0 0 34px;
  font-size: 0.98rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--panel); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.gold-icon {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.btn-primary {
  background: linear-gradient(135deg, #f0d27a, var(--gold) 55%, #b9871f);
  color: #1c1305;
  border: none;
  box-shadow: 0 8px 24px -8px rgba(230, 185, 58, 0.5);
}
/* .btn:hover sets a dark background for the default (--panel-2) button —
   without its own override here, .btn-primary fell through to that same
   dark background while keeping its dark text color, making the label
   nearly invisible on hover. Re-assert the gold gradient, brightened. */
.btn-primary:hover {
  background: linear-gradient(135deg, #f6dc96, var(--gold) 45%, #c99a2e);
  box-shadow: 0 10px 30px -6px rgba(230, 185, 58, 0.65);
}

/* ---------- rarity chip / label ---------- */

.rarity-label { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.r-common   { color: var(--r-common); }
.r-magic    { color: var(--r-magic); }
.r-rare     { color: var(--r-rare); }
.r-gem      { color: var(--r-gem); }
.r-rune     { color: var(--r-rune); }
.r-unique   { color: var(--r-unique); }
.r-set      { color: var(--r-set); }
.r-runeword { color: var(--r-runeword); }

/* ---------- card ---------- */

.card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  /* No transform transition here on purpose -- transform is driven by
     attachCardTilt() in app.js on every mousemove, and a transition would
     retarget on every single one of those, permanently "catching up" to
     the cursor instead of tracking it 1:1 (the janky/delayed feel). The
     settle-back-to-flat animation on mouseleave is applied as a temporary
     inline transition by attachCardTilt() instead, only for that moment. */
  transition: box-shadow .18s ease;
}

/* corner rivets -- echoes the treasure-chest illustration's own rivet
   motif so the card frame reads as part of the same object language,
   not a generic rounded rectangle. */
.card-rivet {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--glow, var(--border));
  box-shadow: 0 0 4px var(--glow, transparent);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}
.cr-bl { bottom: 8px; left: 8px; }
.cr-br { bottom: 8px; right: 8px; }

/* decorative divider between the art window and the name/text plate --
   standard trading-card structure (MTG/Hearthstone-style layout) instead
   of art and text just floating in the same panel. */
.card-divider {
  height: 1px;
  margin: 0 2px 8px;
  background: linear-gradient(90deg, transparent, var(--glow, var(--border)) 50%, transparent);
  opacity: 0.55;
}

/* holographic sheen -- positioned by attachCardTilt() to follow the
   pointer, faded in/out on enter/leave. */
.card-sheen {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 3;
}

.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(160deg, var(--glow, var(--border)), transparent 40%, var(--glow, var(--border)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

.card.rar-common   { --glow: var(--r-common); }
.card.rar-magic    { --glow: var(--r-magic); box-shadow: 0 0 20px -6px color-mix(in srgb, var(--r-magic) 55%, transparent); }
.card.rar-rare     { --glow: var(--r-rare); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--r-rare) 55%, transparent); }
.card.rar-gem      { --glow: var(--r-gem); box-shadow: 0 0 22px -6px color-mix(in srgb, var(--r-gem) 55%, transparent); }
.card.rar-rune     { --glow: var(--r-rune); box-shadow: 0 0 22px -6px color-mix(in srgb, var(--r-rune) 55%, transparent); }
.card.rar-unique   { --glow: var(--r-unique); box-shadow: 0 0 26px -6px color-mix(in srgb, var(--r-unique) 60%, transparent); }
.card.rar-set      { --glow: var(--r-set); box-shadow: 0 0 26px -6px color-mix(in srgb, var(--r-set) 60%, transparent); }
.card.rar-runeword {
  box-shadow: 0 0 34px -4px color-mix(in srgb, var(--r-runeword) 65%, transparent);
}
.card.rar-runeword::before {
  background: linear-gradient(120deg, var(--r-runeword), var(--gold), var(--r-gem), var(--r-runeword));
  background-size: 300% 300%;
  animation: prismatic 4s linear infinite;
}
@keyframes prismatic {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ethereal — real D2R property: translucent/ghosted item. Tint the sprite
   well icy-blue and add a faint pulse so it reads distinct from rarity glow. */
.card.is-ethereal .card-sprite-wrap {
  background: radial-gradient(circle, rgba(120, 200, 255, 0.14), transparent 70%);
}
.card.is-ethereal .card-sprite {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(120, 200, 255, 0.55));
  opacity: 0.88;
}

.card-tags {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.card-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10,7,16,0.75);
}
.tag-eth { color: #8fd3ff; border-color: rgba(143,211,255,0.4); }
.tag-sockets { color: var(--text-dim); }

.card-sprite-wrap {
  flex: 1;
  min-height: 0; /* flex items default to min-height:auto, which lets a
    tall/narrow sprite (e.g. Claws) grow to its full intrinsic height
    instead of shrinking to fit — that pushed the rarity label/name/sub
    text below it out of the card's clipped (overflow:hidden) box, so they
    silently disappeared instead of just failing to load. */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
}
.card-sprite {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  image-rendering: pixelated;
}
.card-sprite-fallback {
  font-size: 2.4rem;
  opacity: 0.5;
}

/* runewords: the actual rune icons in socket order, not a placeholder */
.rune-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 6px;
}
.rune-strip-icon {
  width: 22%;
  max-width: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 6px rgba(255, 79, 216, 0.35));
  image-rendering: pixelated;
}

.card-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  margin: 0 0 2px;
}
.card-sub {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin: 0 0 6px;
}

.card-count-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(10,7,16,0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  color: var(--text);
}

/* ---------- pack opening stage ---------- */

.pack-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 20px;
}

/* ---------- treasure chest (pack opener) ---------- */

.chest-wrap {
  position: relative;
  width: 260px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  user-select: none;
  margin-bottom: 30px;
}

.chest-glow {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 65%, rgba(233, 182, 79, 0.28), transparent 65%);
  filter: blur(2px);
  animation: chest-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes chest-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.chest-svg {
  position: relative;
  width: 100%; height: 100%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
  transition: transform .18s ease;
}
.chest-wrap:hover .chest-svg { transform: translateY(-2px) scale(1.015); }

#chestLid {
  transform-origin: 120px 116px;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}

/* anticipation shake before the lid pops */
.chest-wrap.shaking .chest-svg { animation: chest-shake .45s ease; }
@keyframes chest-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-3px) rotate(-1.2deg); }
  30% { transform: translateX(3px) rotate(1.2deg); }
  45% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(3px) rotate(1deg); }
  75% { transform: translateX(-2px) rotate(-0.5deg); }
}

/* lid pops open, held while cards reveal, then eases shut */
.chest-wrap.opened #chestLid {
  transform: rotate(-108deg) translate(-6px, 4px);
}

.chest-rays {
  position: absolute;
  left: 50%; top: 40%;
  width: 4px; height: 4px;
  pointer-events: none;
  opacity: 0;
}
.chest-wrap.opened .chest-rays {
  opacity: 1;
  animation: chest-rays-spin 3s linear infinite;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(255,240,200,0.35) 0deg 4deg,
      transparent 4deg 24deg);
  width: 340px; height: 340px;
  margin-left: -170px; margin-top: -170px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 0%, black 35%, transparent 70%);
}
@keyframes chest-rays-spin {
  to { transform: rotate(360deg); }
}

#burstCircle { transition: none; }
.chest-wrap.bursting #burstCircle {
  animation: chest-burst .7s cubic-bezier(.15,.7,.3,1) forwards;
}
@keyframes chest-burst {
  0% { r: 6; opacity: 0; }
  25% { opacity: 1; }
  100% { r: 120; opacity: 0; }
}

/* rising sparkle particles spawned by JS into .chest-burst */
.chest-burst {
  position: absolute;
  left: 50%; top: 46%;
  width: 0; height: 0;
  pointer-events: none;
}
.chest-particle {
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d6, var(--gold) 70%, transparent);
  opacity: 0;
  animation: chest-particle-rise 1.1s ease-out forwards;
}
@keyframes chest-particle-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: var(--particle-end) scale(1); }
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  width: 100%;
  margin-top: 30px;
}
@media (max-width: 860px) {
  .reveal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.reveal-slot {
  perspective: 1000px;
  opacity: 0;
  transform: translateY(16px);
  animation: slot-in .4s ease forwards;
}
@keyframes slot-in {
  to { opacity: 1; transform: translateY(0); }
}

.flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.flip-card.flipped { transform: rotateY(180deg); }

.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
}
.flip-back { transform: rotateY(180deg); }

.card-back {
  width: 100%; height: 100%;
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg, #241a38, #241a38 10px, #1a1329 10px, #1a1329 20px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.7;
}

/* ---------- grid pages (chest) ---------- */

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}
.filter-chip {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip.active {
  color: #1c1305;
  background: var(--gold);
  border-color: transparent;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-faint);
}
.empty-state .glyph { font-size: 3rem; margin-bottom: 14px; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 4, 12, 0.72);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.3rem; cursor: pointer;
}
.stat-line {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.stat-line:last-child { border-bottom: none; }
.stat-line.rolled { color: var(--accent); font-weight: 700; }
.stat-line.base { color: var(--text-dim); }
.stat-line.ethereal { color: #8fd3ff; font-weight: 700; }
.stat-block-gap { height: 14px; border-bottom: none !important; }

/* toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- login gate ---------- */

.login-gate {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(156,28,28,0.10), transparent 60%), rgba(6, 4, 2, 0.88);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.login-gate-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 65%);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 380px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.6);
}
.login-gate-glyph {
  font-size: 2.6rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(212,51,51,0.5));
}
.login-gate-card h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.9rem;
  margin: 0 0 10px;
  color: var(--text);
}
.login-gate-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 22px;
  line-height: 1.5;
}
.btn-discord {
  background: #5865f2;
  color: #fff;
  border: none;
  width: 100%;
}
.btn-discord:hover { background: #6873f5; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.user-pill a { color: var(--text-faint); text-decoration: none; font-size: 0.78rem; }
.user-pill a:hover { color: var(--blood-bright); }

/* ---------- near-miss goal callout ---------- */

.nearmiss-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, rgba(156,28,28,0.14), rgba(230,185,58,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 26px;
}
.nearmiss-callout .glyph { font-size: 1.6rem; }
.nearmiss-callout .text { flex: 1; font-size: 0.9rem; color: var(--text); }
.nearmiss-callout .text strong { color: var(--gold); }
.nearmiss-callout .sub { color: var(--text-faint); font-size: 0.78rem; }

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .shell { padding: 0 14px 60px; }

  /* topbar was a single no-wrap flex row (brand / nav / user-pill /
     currency-pill) sized for desktop width — on a phone that just runs
     off-screen. Let it wrap onto two rows: brand + currency up top,
     the nav pill (which can have 5-6 items) becomes its own full-width
     horizontally-scrollable row underneath instead of trying to shrink
     every link to fit. */
  .topbar {
    flex-wrap: wrap;
    gap: 10px 8px;
    padding: 14px 2px;
    margin-bottom: 22px;
  }
  .brand { font-size: 1.3rem; }
  .brand .glyph { width: 22px; height: 22px; }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 13px; font-size: 0.82rem; white-space: nowrap; }
  .user-pill { font-size: 0.72rem; gap: 6px; }
  .currency-pill { font-size: 0.82rem; padding: 6px 12px; margin-left: auto; }

  h1.page-title { font-size: 1.8rem; }
  p.page-sub { margin-bottom: 20px; font-size: 0.88rem; }

  .btn { padding: 11px 18px; font-size: 0.88rem; }
  .btn-primary, #openBtn { width: 100%; }

  .pack-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 10px; }

  .chest-wrap { width: 190px; height: 165px; margin-bottom: 22px; }

  .toolbar { gap: 6px; }
  .filter-chip { padding: 6px 11px; font-size: 0.76rem; }

  .modal-card { padding: 20px; max-width: 100%; }
  .login-gate-card { padding: 28px 22px; }

  .reveal-grid { gap: 10px; }
}
