/* ===========================================================================
   BEELE x MÜNCHEN — Vintage paper / cozy retro-terminal theme
   (cream graph paper · espresso ink · terracotta · olive)
   =========================================================================== */
:root {
  /* Surfaces */
  --paper: #e7ddc4;        /* warm cream page */
  --paper-line: #d6cbac;   /* graph-paper grid line */
  --card: #f4eedb;         /* ivory panel */
  --card-2: #efe7cf;       /* slightly darker ivory (insets) */

  /* Ink + accents */
  --ink: #2c221c;          /* dark espresso: borders + dark text */
  --ink-soft: #6f5d49;     /* sepia body text */
  --rust: #bf5b40;         /* terracotta: brand, primary action, numbers */
  --rust-dark: #9c4630;    /* darker rust: hover/shadow */
  --olive: #6f8f4e;        /* muted green: secondary / success */
  --olive-dark: #57733c;
  --teal: #3f9aa6;         /* cool accent for bars */
  --gold: #ca8a3a;         /* warm highlight */

  --shadow: rgba(44, 34, 28, 0.30);   /* hard offset shadow */

  /* Type */
  --font: "Press Start 2P", "Courier New", monospace;     /* display / labels / numbers */
  --font-body: "VT323", "Courier New", monospace;          /* readable body / values */

  /* Legacy aliases — old neon token names remapped to the warm palette so that
     admin.css, inline styles, JS-set colors and legal pages re-theme automatically. */
  --green: var(--olive);
  --pink: var(--rust);
  --blue: var(--ink-soft);
  --yellow: var(--gold);
  --purple: var(--rust-dark);
  --bg: var(--paper);
  --bg2: var(--card);
  --scan: transparent;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
  font-size: 1.25rem;                 /* VT323 reads small; bump base size */
  /* Graph-paper background */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* The neon starfield/CRT overlays don't belong in the paper theme. */
#starfield { display: none; }

@media (prefers-reduced-motion: reduce) {
  .blink, .live-dot, .logo { animation: none; }
}

/* --- layout --- */
.crt { max-width: 720px; margin: 0 auto; padding: 22px 16px 90px; position: relative; z-index: 1; }

/* --- header: dark espresso bar like the reference chrome --- */
header {
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 24px 20px;
  margin-bottom: 26px;
  text-align: center;          /* centered marquee */
}
/* Neon-sign logo: warm amber tubes + magenta "x" echoing the sunset hero. */
.logo {
  font-family: var(--font);
  font-size: clamp(1.1rem, 5vw, 1.9rem);
  color: #ffd36b;
  letter-spacing: 3px;
  line-height: 1.5;
  text-shadow:
    0 0 4px #ffb733,
    0 0 11px #ff8a3d,
    0 0 22px #ff6a1f,
    2px 2px 0 rgba(0, 0, 0, 0.45);
  animation: neon-flicker 3.2s infinite;
}
.logo .x {
  color: #ff4d9d;
  text-shadow: 0 0 5px #ff4d9d, 0 0 14px #ff1f86, 0 0 26px #d3006a;
}
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.72; }
}
.subtitle {
  font-family: var(--font); color: var(--olive); font-size: 0.6rem;
  margin-top: 16px; letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(111, 143, 78, 0.55);
}
.subtitle .venue { color: #e7d6ad; display: block; margin-top: 10px; text-shadow: none; }

.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- pixel Beele portrait --- */
.hero { display: block; margin: 26px 0; text-align: center; }
#beele-hero {
  width: 100%;             /* same width as the panels/boxes */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--shadow);
  background: var(--card-2);
  image-rendering: auto;   /* smooth — it's a downscaled illustration, not a sprite */
}
/* legacy canvas portrait (no longer used) */
#beele-pixel { display: none; }
.hero figcaption { font-family: var(--font); color: var(--rust); font-size: 0.55rem; letter-spacing: 1px; display: block; margin-top: 14px; }

/* --- panels: ivory sticker cards with rust section chip --- */
.panel {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 30px 22px 24px;
  margin: 30px 0;
}
.panel h2 {
  position: absolute;
  top: -15px; left: 18px;
  font-family: var(--font);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--card);
  background: var(--rust);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 7px 12px;
  box-shadow: 3px 3px 0 var(--shadow);
}

/* --- ticket selector --- */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 540px) { .tickets { grid-template-columns: 1fr; } }

.ticket-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: var(--card-2);
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.08s, box-shadow 0.12s, background 0.2s;
  user-select: none;
}
.ticket-card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.ticket-card.selected { background: #f3ddcf; border-color: var(--rust); box-shadow: 4px 4px 0 var(--rust-dark); }
.ticket-card .tname { font-family: var(--font); font-size: 0.72rem; color: var(--ink); }
.ticket-card.selected .tname { color: var(--rust-dark); }
.ticket-card .tprice { font-family: var(--font); font-size: 1.5rem; color: var(--rust); margin: 16px 0; }
.ticket-card .tdesc { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }

/* --- form --- */
.field { margin-bottom: 18px; }
label { font-family: var(--font); display: block; font-size: 0.55rem; color: var(--ink-soft); margin-bottom: 9px; letter-spacing: 1px; }
input[type=text], input[type=email], input[type=tel], input[type=password] {
  width: 100%;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--ink);
  background: #fbf7ea;
  border: 3px solid var(--ink);
  border-radius: 5px;
  outline: none;
}
input:focus { border-color: var(--rust); box-shadow: 3px 3px 0 var(--shadow); }
input::placeholder { color: #b3a482; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .row { grid-template-columns: 1fr; } }

/* --- buttons --- */
.btn {
  display: inline-block;
  width: 100%;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 15px 22px;
  color: var(--card);
  background: var(--olive);
  border: 3px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.05s, box-shadow 0.1s, background 0.15s;
}
.btn:hover { background: var(--olive-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:disabled { background: #c7bda4; color: #8a7e66; box-shadow: 2px 2px 0 var(--shadow); cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Primary action (buy / pay / login) = terracotta */
.btn.pink { background: var(--rust); color: var(--card); }
.btn.pink:hover { background: var(--rust-dark); }

/* --- payment element host --- */
#payment-element { margin: 18px 0; min-height: 40px; background: var(--card-2); padding: 8px; border-radius: 6px; }
#pay-messages, #pay-messages-2 { color: var(--rust-dark); font-size: 1.05rem; min-height: 18px; margin: 8px 0; }

/* --- jingle button --- */
.jingle-btn {
  position: fixed; top: 14px; right: 14px; z-index: 9999;
  font-family: var(--font); font-size: 0.55rem;
  background: var(--rust); color: var(--card);
  border: 3px solid var(--ink); border-radius: 7px;
  padding: 10px 12px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
}
.jingle-btn:hover { background: var(--rust-dark); }

/* --- cookie banner --- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--ink); border-top: 3px solid var(--rust);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  font-size: 1.05rem; color: #d8ccae;
}
.cookie a { color: var(--gold); }
.cookie.hidden { display: none; }
.cookie .btn { width: auto; padding: 9px 18px; font-size: 0.55rem; }

/* --- footer --- */
footer { font-family: var(--font); text-align: center; font-size: 0.5rem; color: var(--ink-soft); padding: 34px 0; line-height: 2.4; }
footer a { color: var(--rust); margin: 0 6px; text-decoration: none; }
footer a:hover { color: var(--rust-dark); text-decoration: underline; }

/* --- success page --- */
.victory { text-align: center; padding: 50px 0; }
.victory h1 {
  font-family: var(--font);
  color: var(--rust); font-size: clamp(1.1rem, 5vw, 1.9rem);
  text-shadow: 3px 3px 0 var(--shadow); animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
.victory p { color: var(--ink); margin: 16px 0; font-size: 1.15rem; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

/* --- generic helpers --- */
.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: 1.02rem; }
.error-box { color: var(--rust-dark); border: 3px solid var(--rust); background: #f3ddcf; padding: 12px; border-radius: 6px; font-size: 1.05rem; }
.hidden { display: none !important; }

/* Headings inside long-form/legal blocks tuned for the body font */
h1, h2, h3 { font-family: var(--font); }
