/* ── Christmas theme ──────────────────────────────────────
   Seasonal overlay for the public exchange page only. Loaded after
   style.css by index.html. To remove: delete the christmas.css and
   christmas.js tags from index.html.
   Buy/sell green/red are left alone so price colours keep their meaning. */

:root {
  --bg: #0a100d;
  --bg-2: #0f1712;
  --panel: #101a14;
  --panel-2: #142019;
  --line: #2a3a2e;
  --line-soft: #1c2a20;
  --text: #e8efe6;
  --muted: #8a9a88;
  --diamond: #9fdcff;      /* frost accent */
  --gold: #ffd35a;
  --xmas-red: #d63a3a;
  --xmas-red-dk: #8f1f24;
  --xmas-green: #1f6b3a;
}

body {
  background:
    radial-gradient(ellipse at 85% -15%, #6b1a1f55, transparent 55%),
    radial-gradient(ellipse at 5% 115%, #1f6b3a40, transparent 55%),
    radial-gradient(circle at 50% 0%, #9fdcff10, transparent 40%),
    var(--bg);
}

/* ── top bar: candy-cane edge + string lights ──────────── */
.topbar {
  background: linear-gradient(180deg, #1a1414, #0d110e);
  border-bottom: 0;
  padding-bottom: 20px;
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(-45deg,
    var(--xmas-red) 0 10px, #f4f4f4 10px 20px);
}
.xmas-lights {
  position: absolute; left: 0; right: 0; bottom: -9px; height: 14px;
  display: flex; justify-content: space-around; pointer-events: none;
  overflow: hidden;
}
.xmas-lights i {
  width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  animation: xmas-twinkle 1.6s ease-in-out infinite;
  animation-delay: var(--d);
}
.xmas-lights i::before {
  content: ''; display: block; width: 5px; height: 3px; margin: -3px auto 0;
  background: #3b463c;
}
@keyframes xmas-twinkle { 0%,100% { opacity: 1 } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c) } }

/* ── brand: cube becomes a wrapped present ─────────────── */
.cube {
  background:
    linear-gradient(90deg, transparent 7px, var(--gold) 7px 11px, transparent 11px),
    linear-gradient(0deg, transparent 7px, var(--gold) 7px 11px, transparent 11px),
    var(--xmas-red);
  box-shadow: inset -3px -3px 0 var(--xmas-red-dk), inset 3px 3px 0 #f06a6a;
  position: relative;
}
.cube::before, .cube::after {   /* bow */
  content: ''; position: absolute; top: -6px; width: 7px; height: 6px;
  border: 2px solid var(--gold); border-radius: 50% 50% 0 50%;
}
.cube::before { left: 1px; }
.cube::after  { right: 1px; border-radius: 50% 50% 50% 0; }
.brand-accent { color: var(--xmas-red); text-shadow: 0 0 10px #d63a3a66; }
.brand-name::after {
  content: '❄'; margin-left: 8px; color: var(--diamond); font-size: 13px;
  display: inline-block; animation: xmas-spin 8s linear infinite;
}
@keyframes xmas-spin { to { transform: rotate(360deg) } }

/* ── panels: snow-capped headers ───────────────────────── */
.panel { position: relative; }
.panel::before {
  content: ''; position: absolute; left: -1px; right: -1px; top: -4px; height: 8px;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 6px 0, #f2f7ff 5px, transparent 5.5px) 0 0 / 22px 8px repeat-x,
    linear-gradient(#f2f7ff, #f2f7ff) 0 0 / 100% 3px no-repeat;
  filter: drop-shadow(0 1px 0 #00000055);
}
.panel-head h2::before { content: '✦ '; color: var(--gold); }

/* ── buttons ───────────────────────────────────────────── */
.btn { box-shadow: 0 3px 0 #4e8fb3; }
.btn:active { box-shadow: 0 1px 0 #4e8fb3; }
.row.active { background: #1a2a20; }

/* ── greeting under the top bar ────────────────────────── */
.xmas-banner {
  max-width: 1240px; margin: 18px auto -6px; padding: 0 22px;
  font-family: 'Silkscreen', monospace; font-size: 12px; letter-spacing: 1px;
  color: var(--muted); text-align: center;
}
.xmas-banner b { color: var(--gold); font-weight: 400; }

/* ── snowfall ──────────────────────────────────────────── */
.xmas-snow {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
}

@media (max-width: 880px) {
  .xmas-banner { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .brand-name::after { animation: none; }
}
