/* ---------- Queer Boosters page ----------
   Colours come from variables so the wheel and panels follow the seasonal theme
   (theme.js puts halloween / thanksgiving / christmas on <html>; the sky and the
   panel backing for each season live in style.css and the theme stylesheets). */

:root {
  --w0: #ff2e9a; --w1: #ffc700; --w2: #00b8d4; --w3: #7b2ff7; --w4: #2bd35a; --w5: #ff7a1a;
  --bw-rim: #fdf6ff;
  --bw-glow: rgba(255, 46, 154, 0.45);
  --boost-accent: var(--gold);
}
html.halloween {
  --w0: #ff7a1a; --w1: #6a2fb3; --w2: #2a1a45; --w3: #ff9d3c; --w4: #3d9b4a; --w5: #8f2fd1;
  --bw-rim: #ffb35c; --bw-glow: rgba(255, 122, 26, 0.5); --boost-accent: #ff9d3c;
}
html.thanksgiving {
  --w0: #c2571a; --w1: #dfa326; --w2: #7a3418; --w3: #b5283c; --w4: #6b7a2d; --w5: #d98a2b;
  --bw-rim: #f1c36b; --bw-glow: rgba(224, 150, 60, 0.5); --boost-accent: #f1c36b;
}
html.christmas {
  --w0: #c0392b; --w1: #1e7a46; --w2: #8a1f1f; --w3: #2e8b57; --w4: #b8892b; --w5: #14587a;
  --bw-rim: #f4ecd8; --bw-glow: rgba(240, 200, 110, 0.5); --boost-accent: #f4d68a;
}

.boost { padding-bottom: 48px; }

.boost-panel {
  width: 100%;
  margin-top: 18px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 2px solid rgba(253, 246, 255, 0.12);
}

.boost-panel h2 {
  margin: 0 0 8px;
  font-family: "Bungee", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--boost-accent);
}

.boost-panel p { margin: 0 0 14px; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; }

.boost-panel form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.boost-panel input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid rgba(253, 246, 255, 0.25);
  background: rgba(15, 6, 32, 0.6);
  color: var(--ink);
  font: inherit;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.boost-panel input::placeholder { color: rgba(201, 184, 232, 0.6); letter-spacing: 0; text-transform: none; font-family: "Space Grotesk", sans-serif; }

.boost-panel button.boost-go,
.boost-panel form button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.boost-panel button:disabled { opacity: 0.55; cursor: progress; }

.boost-msg { min-height: 1.4em; margin: 14px 0 0 !important; color: var(--cyan) !important; font-size: 0.88rem !important; }
.boost-msg.is-error { color: #ff7a9c !important; }

/* ---- the wheel ---- */
.bw { position: relative; width: min(320px, 86vw); aspect-ratio: 1; margin: 6px auto 18px; filter: drop-shadow(0 0 22px var(--bw-glow)); }
.bw-svg { width: 100%; height: 100%; display: block; }
#bwWheel { transform-origin: 0 0; transition: transform 5.4s cubic-bezier(0.12, 0.7, 0.1, 1); }
.bw-rim { fill: none; stroke: var(--bw-rim); stroke-width: 7; }
.bw-wedge { stroke: rgba(15, 6, 32, 0.55); stroke-width: 2; }
.bw-gold { fill: #ffd700; stroke: #b8860b; stroke-width: 1; }
.bw-emoji-gold { font-size: 15px !important; }
.bw-emoji { font-size: 52px; text-anchor: middle; dominant-baseline: central; }
.bw-label { font: 700 15px "Space Grotesk", sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(15, 6, 32, 0.7); stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: 0.04em; }
.bw-pointer {
  position: absolute; top: -10px; left: 50%; z-index: 2;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 28px solid var(--bw-rim);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
}
.bw-hub {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--bw-rim) 55%, #b9a9d8);
  border: 4px solid rgba(15, 6, 32, 0.7);
  box-shadow: 0 0 0 3px var(--bw-rim);
}

/* ---- prize card ---- */
.boost-prize { border-color: var(--boost-accent); }
.boost-prize.is-golden { border-color: #ffd700; box-shadow: 0 0 32px rgba(255, 215, 0, 0.65); animation: bp-gold 1.6s ease-in-out infinite alternate; }
.boost-prize.is-golden .bp-name { color: #ffd700; text-shadow: 0 0 14px rgba(255, 215, 0, 0.7); }
@keyframes bp-gold { from { box-shadow: 0 0 18px rgba(255, 215, 0, 0.4); } to { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); } }
.boost-prize .bp-emoji { font-size: 56px; line-height: 1; }
.boost-prize .bp-name { margin: 6px 0 4px; font-family: "Bungee", "Space Grotesk", sans-serif; font-size: 1.5rem; color: var(--boost-accent); }
.boost-prize .bp-kicker { margin: 0 0 6px; font-family: "DM Mono", monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.bp-code { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(15, 6, 32, 0.55); border: 2px dashed rgba(253, 246, 255, 0.3); font-family: "DM Mono", monospace; letter-spacing: 0.08em; color: var(--ink); font-size: 0.9rem; }
.bp-code button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bp-actions button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--magenta), var(--violet)); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bp-actions button.is-quiet { background: rgba(255, 255, 255, 0.12); }
.bp-actions button:disabled { opacity: 0.55; cursor: progress; }
.bp-note { margin: 12px 0 0 !important; font-weight: 700; color: var(--boost-accent) !important; }

/* choose-a-bro / power-click heads */
.bro-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.bro { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 2px solid rgba(253, 246, 255, 0.18); border-radius: 14px; background: rgba(15, 6, 32, 0.5); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.bro img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #1a0b2e; }
.bro:hover:not(:disabled) { border-color: var(--boost-accent); }
.bro:active:not(:disabled) { transform: scale(0.94); }
.bro.is-picked { border-color: var(--boost-accent); background: rgba(255, 255, 255, 0.12); }
.bro:disabled { opacity: 0.5; cursor: not-allowed; }
/* Fast repeated taps (Jack of all Gays) must not zoom the page, select text or open the image menu. */
.bro, #powerPanel, .bro-row { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bro img { pointer-events: none; -webkit-user-drag: none; }

.power-bar { height: 10px; margin: 10px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.power-bar > span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--magenta), var(--boost-accent)); transform-origin: left; }
.power-count { margin: 0 !important; font-family: "Bungee", "Space Grotesk", sans-serif; font-size: 1.1rem; color: var(--ink) !important; }
.bomb-log { margin: 10px 0 0; padding: 0; list-style: none; max-height: 9.5em; overflow: auto; font-size: 0.9rem; color: var(--ink); }
.bomb-log li { padding: 3px 0; }

/* ---- lists ---- */
.boost-mine, .boost-live, .boost-legend { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.boost-mine:empty { display: none; }
.boost-mine li, .boost-live li, .boost-legend li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(15, 6, 32, 0.45); font-size: 0.9rem; color: var(--ink); }
.boost-mine .m-emoji, .boost-live .l-emoji, .boost-legend .g-emoji { font-size: 1.5rem; }
.boost-mine .m-text, .boost-live .l-text, .boost-legend .g-text { flex: 1; min-width: 0; }
.boost-legend .g-name { font-weight: 700; color: var(--boost-accent); }
.boost-legend .g-desc { display: block; color: var(--ink-dim); font-size: 0.82rem; line-height: 1.4; }
.boost-mine button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--magenta), var(--violet)); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.boost-none { color: var(--ink-dim) !important; justify-content: center; }
.boost-live .l-time { font-family: "DM Mono", monospace; font-size: 0.8rem; color: var(--ink-dim); }
.boost-live li.is-bomb { background: rgba(200, 30, 30, 0.35); border: 1px solid rgba(255, 90, 90, 0.6); }

@media (prefers-reduced-motion: reduce) {
  #bwWheel { transition: none; }
  .boost-prize.is-golden { animation: none; }
}
