/* ===========================================================
   BuckFoozle — shared death-metal design system
   used by: home, Schedule.html, Cheers.html
   =========================================================== */
@font-face {
  font-family: 'Morvanh';
  src: url('Morvanh-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #060607;
  --fg: #f3f2f0;
  --dim: #74747a;
  --dimmer: #46464b;
  --line: rgba(255,255,255,.12);
  --accent: #9b30ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--fg);
  font-family: 'Space Mono', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; }

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 80;
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(0,0,0,.5) 100%);
}

/* ---------- mono label kit ---------- */
.lbl { font-size: 11px; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lbl b { color: var(--fg); font-weight: 700; }
.accent { color: var(--accent); }
.chip {
  display: inline-block; background: var(--accent); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--accent);
}
.chip.ghost { background: transparent; color: var(--accent); }
.chip.mute { background: transparent; color: var(--dim); border-color: var(--line); }
.chip.mute:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- header / nav ---------- */
header {
  display: flex; align-items: center; gap: 26px;
  padding: 20px 34px;
}
header.bar { position: sticky; top: 0; z-index: 60; background: rgba(6,6,7,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark-img { height: 38px; width: auto; display: block; }
.grow { flex: 1; }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.nav a:hover { color: var(--fg); }
.nav a.cur { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.sound { display: inline-flex; gap: 9px; }
.sound span { cursor: pointer; }
.sound .on { color: var(--accent); }
.sound .off { color: var(--dimmer); }

/* ---------- page header block ---------- */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  padding: 46px 34px 54px;
}
.page-head h1 {
  margin: 0; font-family: 'Morvanh', cursive; font-weight: 700;
  font-size: clamp(38px, 6.5vw, 88px); line-height: .85; padding-bottom: .14em;
  filter: drop-shadow(0 0 34px rgba(155,48,255,.22));
}
.page-head .sub { text-align: right; }

/* ---------- generic section ---------- */
section.block { position: relative; z-index: 20; padding: 0 34px 70px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 16px 0 20px; }
.sec-head h2 { margin: 0; font-family: 'Morvanh', cursive; font-size: clamp(28px, 5vw, 56px); line-height: .8; font-weight: 700; }

/* ---------- media frame ---------- */
.frame {
  position: relative; border: 1px solid var(--line); background: #0b0b0d;
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color .15s;
}
.frame::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.play {
  position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--accent); flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpolygon points='1,1 11,7 1,13' fill='%23f3f2f0'/%3E%3C/svg%3E") no-repeat;
  background-position: 55% center; background-size: 20px 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px rgba(155,48,255,.22); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.is-live .accent { animation: pulse 1.6s ease-in-out infinite; }

/* ---------- calendar ---------- */
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.cal-top h2 { margin: 0; font-family: 'Morvanh', cursive; font-size: clamp(30px, 5vw, 56px); line-height: .8; white-space: nowrap; }
.cal-legend { display: flex; gap: 14px; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal .dow { background: var(--bg); text-align: center; padding: 11px 0; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.cell { background: #0b0b0d; min-height: 116px; padding: 8px 9px; }
.cell .d { font-size: 12px; color: var(--dim); }
.cell.out { background: #08080a; }
.cell.out .d { color: var(--dimmer); }
.cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.today .d { color: var(--accent); font-weight: 700; }
.ev { display: block; margin-top: 6px; font-size: 11px; line-height: 1.2; padding: 4px 6px; border: 1px solid var(--line); color: var(--fg); letter-spacing: .03em; cursor: default; }
.ev.stream { border-color: rgba(155,48,255,.55); color: var(--accent); }
.ev.special { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }

/* ---------- setlist rows ---------- */
.dates { border-top: 1px solid var(--line); }
.date-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background .15s;
}
.date-row:hover { background: #0e0e10; }
.date-row .d { font-weight: 700; }
.date-row .title { font-family: 'Morvanh', cursive; font-size: 24px; line-height: .9; }
.date-row .meta { font-size: 11px; color: var(--dim); letter-spacing: .04em; margin-top: 3px; }
.date-row.special .d, .date-row.special .title { color: var(--accent); }

/* ---------- cheers grid ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 0 34px 22px; }
.cheer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cheer { background: var(--bg); padding: 18px; cursor: pointer; transition: background .15s; }
.cheer:hover { background: #0e0e10; }
.cheer:hover .frame { border-color: rgba(155,48,255,.6); }
.cheer .frame { aspect-ratio: 16/9; }
.cheer .row { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 14px; gap: 12px; }
.cheer .name { font-family: 'Morvanh', cursive; font-size: 24px; line-height: .9; }
.cheer .desc { color: var(--dim); font-size: 11px; margin-top: 5px; letter-spacing: .03em; line-height: 1.4; }
.cheer .cost { color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .04em; }
.cheer.hidden { display: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3,3,4,.86); }
.lb.open { display: flex; }
.lb-card { width: min(700px, 100%); border: 1px solid var(--line); background: var(--bg); padding: 22px; position: relative; box-shadow: 0 0 80px rgba(155,48,255,.18); }
.lb-close { position: absolute; top: 12px; right: 16px; cursor: pointer; z-index: 4; }
.lb-card .frame { aspect-ratio: 16/9; }
.lb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.lb-name { font-family: 'Morvanh', cursive; font-size: 30px; line-height: .85; }

/* ---------- home hero ---------- */
header.abs {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  background: none; backdrop-filter: none; border-bottom: none;
}
.hero {
  position: relative; width: 100%;
  overflow: hidden;
  margin: 0; padding: 0;
}
.hero-bg {
  display: block; width: 100%; height: auto; max-width: none;
  vertical-align: top;
  will-change: transform;
}
.hero-bg.flash { animation: flash .55s ease; }
@keyframes flash {
  0%,100% { filter: none; }
  15% { filter: brightness(1.9) contrast(1.25) saturate(1.3); }
  35% { filter: brightness(.65); }
  55% { filter: brightness(1.6) contrast(1.15); }
  75% { filter: brightness(.85); }
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,7,.72) 0%, transparent 20%, transparent 66%, rgba(6,6,7,.94) 100%);
}
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding: 26px 34px;
}
.foot-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- home stream / chat ---------- */
.stream-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stream-grid > * { background: var(--bg); }
.chat { display: flex; flex-direction: column; min-height: 400px; }
.chat .chat-row { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.chat .chat-row b { color: var(--accent); }

/* ---------- footer ---------- */
footer { padding: 40px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
footer .mark-img { height: 64px; }

@media (max-width: 820px) {
  .cheer-grid { grid-template-columns: repeat(2, 1fr); }
  .cell { min-height: 78px; }
}
@media (max-width: 600px) {
  header { flex-wrap: wrap; gap: 14px; }
  .cheer-grid { grid-template-columns: 1fr; }
  .date-row { grid-template-columns: 70px 1fr; }
  .date-row .chip { grid-column: 2; justify-self: start; }
  .cal .dow { font-size: 9px; }
  .cell { min-height: 60px; padding: 5px; }
  .ev { font-size: 9px; padding: 2px 4px; }
}

