/* THEME: default (the launch look: deep navy, silver, gold chase).
   Every color, radius, font, spacing, shadow, border width, glow and animation duration
   the site uses lives here as a CSS custom property. Component CSS (css/app.css) and JS only
   read these tokens. To make a new theme: copy this file to themes/<name>.css, edit values,
   add <name> to "themes" in site-config.json. See THEMING.md. */
:root{
  /* ---- color ---- */
  --accent:#c6d2e6;              /* primary buttons, selected view, focus, progress ring */
  --accent-2:#b9c7de;            /* lower stop of the primary button gradient */
  --accent-top:#eef3fb;          /* upper stop of the primary button gradient */
  --accent-ink:#0a1022;          /* text on accent */
  --color-bg:#070b18;
  --color-bg-2:#0c1326;
  --color-bg-3:#1a2648;
  --color-panel:#0f1830;
  --color-ink:#eef2fa;
  --color-mute:#9aa6c2;
  --color-faint:#6f7b98;
  --color-silver:#c6d2e6;
  --color-silver-2:#8fa0bf;
  --color-gold:#d4b05c;
  --color-gold-2:#f0d68c;
  --color-line:rgba(198,210,230,.16);
  --color-overlay:rgba(2,4,10,.8);
  --color-overlay-strong:rgba(2,4,10,.95);
  --color-header:linear-gradient(rgba(7,11,24,.94),rgba(7,11,24,.75));
  --color-chip:rgba(255,255,255,.04);
  --color-chip-hover:rgba(255,255,255,.08);
  --color-toast:#1b2747;
  --color-badge-bg:rgba(10,16,34,.82);
  --browser-chrome:#070b18;

  /* tier colors (keys come from data/sets.json; unknown keys fall back to --tier-default) */
  --tier-default:#c6d2e6;
  --tier-C:#8fa0bf; --tier-U:#7fc4c9; --tier-R:#8ea9ff; --tier-H:#b48cff; --tier-F:#68d7ff;
  --tier-UR:#ff9fd6; --tier-IR:#ffb36b; --tier-SR:#f0d68c; --tier-CH:#ffd27a; --tier-M:#9ff0d0;

  /* ---- backgrounds ---- */
  --page-bg:radial-gradient(900px 600px at 50% -8%,#1a2648 0,#0c1326 45%,#070b18 85%) fixed,#070b18;
  --album-bg:radial-gradient(800px 400px at 50% 0,rgba(255,255,255,.03),transparent 70%),repeating-linear-gradient(45deg,rgba(255,255,255,.012) 0 2px,transparent 2px 7px),linear-gradient(#0d1530,#0a1124);
  --album-frame:inset 0 0 0 6px #070b18,inset 0 0 0 7px rgba(198,210,230,.13),0 20px 60px rgba(0,0,0,.45);
  --pack-bg:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.13) 45%,transparent 60%) 0 0/250% 100%,var(--img-pack-art) center/cover no-repeat,repeating-linear-gradient(0deg,rgba(255,255,255,.024) 0 2px,transparent 2px 6px),radial-gradient(120% 80% at 50% 30%,#22305a,#0b1226 70%);
  --pack-edge:repeating-linear-gradient(90deg,rgba(198,210,230,.33) 0 6px,transparent 6px 10px);
  --slot-empty-bg:linear-gradient(160deg,rgba(255,255,255,.028),transparent 40%),rgba(10,16,34,.7);
  --slot-filler-bg:repeating-linear-gradient(135deg,rgba(255,255,255,.016) 0 6px,transparent 6px 12px);
  --sil-opacity:.42;          /* empty-slot silhouette strength */
  --sil-filter:none;          /* e.g. invert(1) for light themes */
  --slot-noart-bg:radial-gradient(90% 70% at 50% 35%,#22305a,#0b1226 75%);
  --scratch-foil:linear-gradient(135deg,#8d9bb8,#e8eef9 35%,#a9b6cf 55%,#dfe6f3 80%,#7f8eab);
  --scratch-1:#8d9bb8; --scratch-2:#e8eef9; --scratch-3:#a9b6cf; --scratch-4:#dfe6f3; --scratch-5:#7f8eab;
  --scratch-stripe:rgba(255,255,255,.08); --scratch-ink:#2a3554;
  --scratch-stripe-gap:6; --scratch-stripe-width:2; --scratch-brush:22;   /* scratch foil: stripe spacing/width and finger size, in CSS px (unitless, read by the scratch reveal) */
  --focus-ring:2px solid var(--accent); --focus-offset:2px;   /* keyboard focus outline on buttons, cards and the pack */
  --foil-sheen:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.33) 45%,transparent 60%) 0 0/250% 100%;
  --foil-rainbow:linear-gradient(115deg,transparent 25%,rgba(255,120,200,.16) 38%,rgba(120,220,255,.2) 48%,rgba(255,240,140,.16) 58%,transparent 72%) 0 0/250% 100%;

  /* ---- images (decorative; paths are relative to this file) ---- */
  --img-star:url("../assets/theme/default/star.svg");          /* empty-slot hole, filler */
  --img-star-gold:url("../assets/theme/default/star-gold.svg");/* featured (PQC) hole */
  --img-ring:url("../assets/theme/default/ring.svg");          /* pack emblem */
  --img-lock:url("../assets/theme/default/lock.svg");          /* chase / motion blanks */
  --img-pack-art:url("../assets/theme/default/pack-art.svg");

  /* ---- type ---- */
  --font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-display:Georgia,"Times New Roman",serif;
  --font-size-base:15px;
  --font-size-small:13px;
  --font-size-micro:12px;
  --font-size-tiny:10px;
  --font-size-h2:22px;
  --font-weight-strong:700;

  /* ---- shape ---- */
  --radius-card:9px;
  --radius-pack:14px;
  --radius-album:18px;
  --radius-sheet:18px;
  --radius-button:999px;
  --radius-panel-button:12px;
  --radius-checklist-button:10px;
  --radius-small:6px;
  --radius-tiny:3px;
  --border-width:1px;
  --border-width-strong:2px;
  --slot-outline:1px solid rgba(198,210,230,.18);
  --slot-outline-chase:1.5px dashed rgba(212,176,92,.45);
  --slot-outline-featured:1px solid rgba(212,176,92,.33);

  /* ---- spacing ---- */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:40px;
  --card-gap:10px;
  --card-gap-wide:14px;
  --page-max:1180px;
  --page-pad:14px;

  /* ---- shadows & glow ---- */
  --shadow-card:0 6px 18px rgba(0,0,0,.55);
  --shadow-card-featured:0 0 30px rgba(240,214,140,.33),0 8px 24px rgba(0,0,0,.6);
  --shadow-pack:inset 0 0 0 5px #0a1022,inset 0 0 0 6px rgba(198,210,230,.33),0 14px 40px rgba(0,0,0,.5);
  --shadow-button:0 4px 18px rgba(159,180,217,.2),inset 0 1px 0 #fff;
  --shadow-reveal:0 18px 50px rgba(0,0,0,.65);
  --shadow-viewer:0 20px 60px #000;
  --shadow-slot-inset:inset 0 2px 12px rgba(0,0,0,.5);
  --shadow-checklist-button:inset 0 0 0 4px #0a1022,inset 0 0 0 5px rgba(198,210,230,.13);
  --glow-strength:.95;
  --glow-blur:10px;
  --text-shadow-pack:0 2px 8px rgba(0,0,0,.65);

  /* ---- motion (durations; *-ms tokens are read by JS as numbers) ---- */
  --dur-fast:.15s;
  --dur-ui:.22s;
  --dur-toast:.25s;
  --dur-pop:.38s;
  --dur-burst:.7s;
  --dur-sheen:4s;
  --dur-shine:2.4s;
  --flip-dur-low:.5s; --flip-dur-mid:.75s; --flip-dur-high:1s; --flip-dur-top:1.4s;
  --hold-base-ms:1300;
  --hold-extra-mid-ms:300;
  --hold-extra-high-ms:600;
  --pop-delay-ms:320;
  --toast-ms:2200;
  --dur-none:.01ms;   /* used by prefers-reduced-motion */
  --shake-amount:3.2;
}
