/* WizardlyPayload website - same wizard x farm palette as the stream overlays */
:root {
  --night: #170d2b;
  --plum: #2b1a4a;
  --plum-2: #3d2766;
  --arcane: #a77bff;
  --arcane-glow: rgba(167, 123, 255, 0.55);
  --gold: #e8b64c;
  --gold-2: #ffd978;
  --wheat: #f5e3ae;
  --leaf: #7cc46b;
  --live: #ff4d5e;
  --text: #fbf4e2;
  --muted: #cbbfe0;
  --radius: 16px;
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(ellipse at 50% -10%, #3a2463 0%, var(--night) 55%) fixed, var(--night);
  color: var(--text); font: 500 17px/1.6 var(--font-body);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: var(--gold-2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; letter-spacing: .5px; margin: 0 0 12px; }
h2 { font-size: clamp(24px, 4vw, 34px); color: var(--gold-2); text-shadow: 0 2px 10px rgba(0,0,0,.5); }

.panel {
  background: linear-gradient(160deg, rgba(43, 26, 74, 0.9), rgba(23, 13, 43, 0.9));
  border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.45), inset 0 0 18px rgba(167,123,255,.15);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 25%, #fff6d8 50%, var(--gold-2) 75%, var(--gold) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; background: rgba(23,13,43,.82); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(232,182,76,.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 18px var(--font-title); }
.brand img { border-radius: 50%; border: 2px solid var(--gold); }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.nav nav a:hover { color: var(--night); background: var(--gold-2); }

/* hero */
.hero { position: relative; text-align: center; padding: 64px 16px 48px; overflow: hidden; }
.cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: blur(6px) saturate(1.2); transform: scale(1.08); mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.avatar { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 40px var(--arcane-glow); }
.eyebrow { margin: 18px 0 4px; color: var(--leaf); font-weight: 800; letter-spacing: 4px; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(26px, 8.2vw, 76px); line-height: 1.1; overflow-wrap: anywhere; }
.tagline { font-size: 20px; color: var(--wheat); margin: 0 0 20px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); font-weight: 800; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #6d6085; }
.status.live { border-color: var(--live); }
.status.live .dot { background: var(--live); box-shadow: 0 0 12px var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, var(--plum-2), var(--plum)); border: 2px solid var(--gold); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px var(--arcane-glow); }
.btn.gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1a05; }

/* sections */
.section { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.hint { color: var(--muted); margin: 8px 0 16px; }

.embed-wrap { padding: 8px; overflow: hidden; }
#twitch-embed { aspect-ratio: 16 / 7.2; min-height: 320px; }
#twitch-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; display: block; }

.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.day { padding: 14px; text-align: center; }
.day h3 { font-size: 16px; color: var(--gold-2); margin-bottom: 6px; }
.day .time { font: 800 24px var(--font-title); }
.day .what { color: var(--muted); font-size: 15px; }
.day.rest { opacity: .55; border-color: rgba(232,182,76,.4); }
.day.today { box-shadow: 0 0 24px var(--arcane-glow); border-color: var(--gold-2); }
.day.today h3::after { content: ' · today'; color: var(--leaf); font-family: var(--font-body); font-size: 13px; }
.upcoming { display: grid; gap: 10px; }
.upcoming .panel { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.upcoming b { color: var(--gold-2); }

.about p { max-width: 800px; font-size: 18px; }
.farmers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.farmer { padding: 22px; display: flex; gap: 18px; align-items: center; }
.farmer .emoji { font-size: 54px; line-height: 1; filter: drop-shadow(0 0 12px var(--arcane-glow)); }
.farmer h3 { margin: 0; font-size: 22px; }
.farmer .role { color: var(--leaf); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.farmer p { margin: 6px 0 0; color: var(--muted); }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.clip { padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: transform .15s, box-shadow .15s; }
.clip:hover { transform: translateY(-3px); box-shadow: 0 0 24px var(--arcane-glow); }
.clip .thumb { position: relative; aspect-ratio: 16/9; background: #000 center/cover; }
.clip .thumb::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: #fff; text-shadow: 0 2px 12px #000; opacity: .85; }
.clip .len { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(0,0,0,.75); padding: 1px 8px; border-radius: 6px; font-size: 13px; }
.clip .info { padding: 10px 14px 14px; }
.clip .title { font-weight: 800; line-height: 1.3; }
.clip .meta { color: var(--muted); font-size: 14px; }

.commands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.command { padding: 14px 18px; }
.command code { display: block; font: 800 18px var(--font-body); color: var(--gold-2); }
.command span { color: var(--muted); }
.sounds { display: flex; flex-wrap: wrap; gap: 8px; }
.sounds span { padding: 6px 14px; border-radius: 999px; background: rgba(61,39,102,.8); border: 1px solid rgba(232,182,76,.5); font-weight: 700; }

.foot { position: relative; text-align: center; padding: 40px 16px 140px; color: var(--muted); overflow: hidden; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.socials a { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--gold); text-decoration: none; color: var(--text); font-weight: 800; background: rgba(43,26,74,.85); }
.socials a:hover { background: var(--gold-2); color: var(--night); }
.wheat {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background:
    repeating-linear-gradient(95deg, transparent 0 9px, rgba(232,182,76,.85) 9px 11px, transparent 11px 22px),
    linear-gradient(transparent 0 40%, #3b2a12);
  mask-image: linear-gradient(transparent, #000 45%); -webkit-mask-image: linear-gradient(transparent, #000 45%);
}

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8,4,16,.85); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(1000px, 100%); padding: 8px; }
.ratio { aspect-ratio: 16/9; }
.ratio iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.close { position: absolute; top: -16px; right: -12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); background: var(--plum); color: var(--text); font-size: 18px; cursor: pointer; z-index: 1; }

@media (max-width: 720px) {
  .nav { padding: 8px 16px; }
  .nav nav { display: none; }
  .section { padding: 36px 16px; }
  #twitch-embed { aspect-ratio: 16 / 9; min-height: 0; }
  .farmer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer, .status.live .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* What's coming up */
.coming { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.plan { padding: 16px 18px; }
.plan-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.plan-head b { color: var(--gold-2); }
.plan .tag { font-size: 13px; font-weight: 800; color: var(--leaf); text-transform: uppercase; letter-spacing: 1px; }
.plan.maybe { border-style: dashed; opacity: .85; }
.plan.maybe .tag { color: var(--muted); }
.plan h3 { font-size: 19px; margin: 8px 0 4px; }
.plan p { margin: 0; color: var(--muted); }
.notes { margin: 18px 0 0; padding-left: 22px; color: var(--wheat); }
.notes li { margin: 4px 0; }

.coming > .hint, .schedule > .hint { grid-column: 1 / -1; }
