/* Josh757 - original "raid HQ" look: charcoal + olive + khaki + amber, stencil type, pixel art. */
@font-face { font-family: 'Saira Stencil One'; src: url('assets/fonts/saira-stencil-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('assets/fonts/pixelify-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('assets/fonts/pixelify-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e100c; --bg2: #14170f; --panel: #1a1d14; --edge: #4a4d3a; --edge2: #7a7658;
  --text: #ece8d8; --muted: #b0ab94; --khaki: #c8b88a; --amber: #e8b030; --amber-d: #8a6a14;
  --twitch: #a970ff; --youtube: #ff5a5a; --kick: #53fc18; --discord: #7c8cff; --water: #2c4a7a;
  --font-display: 'Saira Stencil One', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Pixelify Sans', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.55;
  background-image:
    linear-gradient(rgba(200,184,138,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,184,138,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0;
}
img { image-rendering: pixelated; max-width: 100%; }
a { color: var(--amber); }
a:hover { color: #ffd86a; }
:focus-visible { outline: 3px solid #ffd86a; outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
code { background: #000; border: 1px solid var(--edge); padding: 0 .35em; color: #ffd86a; font-family: inherit; }
.stencil { font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #111; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* live note */
.livenote { background: #1d2a12; border-bottom: 2px solid var(--kick); text-align: center; }
.livenote a { display: block; padding: 8px 16px; color: #eaffd8; text-decoration: none; font-weight: 700; }
.livenote .dot { display: inline-block; width: 10px; height: 10px; background: var(--kick); margin-right: 10px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* header */
.top { border-bottom: 2px solid var(--edge); background: rgba(14,16,12,.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(4px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { font-family: var(--font-display); font-size: 24px; letter-spacing: .08em; color: var(--khaki); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 18px; height: 18px; background: var(--amber); box-shadow: 0 0 0 2px #000, inset -4px -4px 0 var(--amber-d); }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.top nav a { display: block; white-space: nowrap; padding: 8px 12px; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; border: 2px solid transparent; }
.top nav a:hover { border-color: var(--edge2); color: #fff; }

/* hero */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 0; overflow: hidden; background:
  radial-gradient(900px 340px at 78% 0%, rgba(232,176,48,.14), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, rgba(83,252,24,.05), transparent 70%); }
.hero::before { content: ''; position: absolute; inset: 0 0 18px 38%; background: url('assets/pond-night.png') right bottom / auto 100% no-repeat; image-rendering: pixelated; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); pointer-events: none; }
.hero .wrap { position: relative; padding: 0 0 clamp(36px, 6vw, 64px); }
.hero .wrap::before, .hero .wrap::after { content: ''; position: absolute; width: 28px; height: 28px; border: 3px solid var(--edge2); }
.hero .wrap::before { left: -14px; top: -22px; border-right: 0; border-bottom: 0; }
.hero .wrap::after { right: -14px; bottom: 22px; border-left: 0; border-top: 0; }
.eyebrow { margin: 0 0 8px; color: var(--khaki); letter-spacing: .22em; font-size: 15px; text-transform: uppercase; }
.eyebrow span { color: var(--amber); }
.hero h1 { margin: 0; font-size: clamp(56px, 15vw, 160px); line-height: .95; color: var(--text); text-shadow: .025em .025em 0 #000, .05em .05em 0 var(--amber-d); }
.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 38em; color: var(--text); margin: 18px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hazard { height: 18px; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px); border-block: 3px solid #000; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; font: 700 18px var(--font-body); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: #0b0b0b; background: var(--khaki); border: 3px solid #000; box-shadow: 4px 4px 0 #000; transition: transform .08s steps(2), box-shadow .08s steps(2); }
.btn:hover { color: #000; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.btn-twitch { background: var(--twitch); }
.btn-gold { background: var(--amber); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--edge2); box-shadow: 4px 4px 0 #000; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-discord { background: var(--discord); }
.btn-lg { font-size: 22px; padding: 16px 30px; }
.btn i { font-style: normal; }

/* sections */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-alt { background: var(--bg2); border-block: 2px solid var(--edge); }
.sec-title { font-size: clamp(28px, 5vw, 44px); margin: 0 0 24px; color: var(--khaki); }
.sec-title .idx { color: var(--amber); margin-right: .35em; font-size: .7em; vertical-align: .12em; }

/* watch cells (stash-style tiles) */
.cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; min-height: 170px; text-decoration: none; color: var(--text); background: var(--panel); border: 3px solid var(--edge); box-shadow: inset 0 0 0 2px #0c0d0a, 5px 5px 0 #000; position: relative; border-top: 10px solid var(--c, var(--edge2)); transition: transform .08s steps(2), border-color .1s; }
.cell:hover { transform: translate(-2px, -2px); border-color: var(--c); color: #fff; }
.cell-twitch { --c: var(--twitch); } .cell-youtube { --c: var(--youtube); } .cell-kick { --c: var(--kick); }
.cell-tag { font-family: var(--font-display); font-size: 34px; letter-spacing: .06em; color: var(--c); line-height: 1.1; }
.cell-name { color: var(--muted); font-size: 17px; word-break: break-all; }
.cell-go { margin-top: auto; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }

/* schedule + stats */
.sched, .stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sched li { display: grid; grid-template-columns: 9em 8em 1fr; gap: 12px; padding: 12px 16px; background: var(--panel); border: 2px solid var(--edge); }
.sched b { color: var(--amber); }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats li { padding: 16px; background: var(--panel); border: 2px solid var(--edge); text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 40px; color: var(--amber); }

/* pond section */
.pondsec { background: linear-gradient(#0a0c10, #0e100c 40%); border-top: 2px solid var(--edge); }
.banner { position: relative; overflow: hidden; border-block: 4px solid #000; background: #060912; }
.stage { position: relative; width: max(100%, 760px); margin-inline: auto; aspect-ratio: 480 / 172; container-type: inline-size; left: 50%; transform: translateX(-50%); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 60%, rgba(14,16,12,.85)); }
/* the single jumper. waterline is at 118/172 of the image */
.skyclip { position: absolute; left: 0; right: 0; top: 0; height: 68.6%; overflow: hidden; z-index: 3; }
.leap-x, .leap-y, .leap-r { position: absolute; }
.leap-x { left: var(--jx, 36cqw); bottom: 0; width: 13.4cqw; height: 13.4cqw; margin-bottom: -6.7cqw; opacity: 0; animation: lx 9s linear infinite, vis 9s step-end infinite; }
.leap-y, .leap-r { inset: 0; }
.leap-y { animation: ly 9s infinite; }
.leap-r { animation: lr 9s infinite; }
.atheon { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 6px rgba(255,74,42,.45)); }
@keyframes vis { 0%, 29.9% { opacity: 0; } 30%, 75% { opacity: 1; } 75.1%, 100% { opacity: 0; } }
@keyframes lx { 0%, 30% { transform: translateX(0); } 75% { transform: translateX(var(--jd, 24cqw)); } 100% { transform: translateX(var(--jd, 24cqw)); } }
@keyframes ly {
  0%, 30% { transform: translateY(11cqw); animation-timing-function: cubic-bezier(.15,.7,.35,1); }
  52.5% { transform: translateY(-17cqw); animation-timing-function: cubic-bezier(.6,.05,.85,.35); }
  75%, 100% { transform: translateY(11cqw); }
}
@keyframes lr {
  0%, 30% { transform: rotate(-62deg); animation-timing-function: ease-in-out; }
  52.5% { transform: rotate(-4deg); animation-timing-function: ease-in-out; }
  75%, 100% { transform: rotate(68deg); }
}
.shadow { position: absolute; z-index: 2; left: var(--jx, 36cqw); top: 77%; width: 16cqw; height: 3.6cqw; margin-left: -1.3cqw; background: #000; border-radius: 50%; opacity: 0; animation: sh 9s linear infinite; filter: blur(.4cqw); }
@keyframes sh { 0%, 8% { opacity: 0; } 14%, 28% { opacity: .7; } 33%, 100% { opacity: 0; } }
.ring { position: absolute; z-index: 4; top: 68.6%; width: 14cqw; height: 3cqw; margin-top: -1.5cqw; pointer-events: none; }
.ring i { position: absolute; inset: 0; border: .6cqw solid #dff0ff; border-radius: 50%; opacity: 0; transform: scale(.2); }
.ring-out { left: calc(var(--jx, 36cqw) + 6.7cqw - 7cqw); }
.ring-in { left: calc(var(--jx, 36cqw) + var(--jd, 24cqw) + 6.7cqw - 7cqw); }
.ring::before { content: ''; position: absolute; left: 50%; top: 50%; width: .8cqw; height: .8cqw; background: #e6f4ff; opacity: 0; box-shadow: -4.5cqw -.5cqw 0 #e6f4ff, -2.6cqw -2cqw 0 #bfe0ff, 2.6cqw -2.2cqw 0 #bfe0ff, 4.6cqw -.4cqw 0 #e6f4ff, -.8cqw -3.2cqw 0 #fff, 1.2cqw -2.8cqw 0 #bfe0ff; }
.ring-out::before { animation: drops-out 9s steps(8) infinite; }
.ring-in::before { animation: drops-in 9s steps(8) infinite; }
@keyframes drops-out { 0%, 29.9% { opacity: 0; transform: translateY(1cqw); } 30% { opacity: 1; transform: translateY(1cqw); } 36% { opacity: 1; transform: translateY(-3cqw); } 42%, 100% { opacity: 0; transform: translateY(1.5cqw); } }
@keyframes drops-in { 0%, 74.5% { opacity: 0; transform: translateY(1cqw); } 75% { opacity: 1; transform: translateY(1cqw); } 81% { opacity: 1; transform: translateY(-3.4cqw); } 87%, 100% { opacity: 0; transform: translateY(1.5cqw); } }
.ring-out i { animation: splash-out 9s steps(6) infinite; }
.ring-in i { animation: splash-in 9s steps(6) infinite; }
@keyframes splash-out { 0%, 29.9% { opacity: 0; transform: scale(.2); } 30% { opacity: .95; transform: scale(.2); } 40% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes splash-in { 0%, 72% { opacity: 0; transform: scale(.2); } 75% { opacity: .95; transform: scale(.3); } 86% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; transform: scale(1.6); } }

.pond-body { padding-top: 36px; display: grid; gap: 28px; }
.pond-copy .big { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 12px; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; text-decoration: none; color: var(--text); background: var(--panel); border: 3px solid var(--edge); box-shadow: inset 0 0 0 2px #0c0d0a, 4px 4px 0 #000; transition: transform .08s steps(2); }
.tile:hover { transform: translate(-2px, -2px); border-color: var(--amber); color: #fff; }
.tile img { width: 64px; height: 64px; background: radial-gradient(circle at 50% 60%, #28406a, #131b2c 70%); border: 2px solid #000; padding: 8px; }
.tile b { font-size: 22px; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.tile span { color: var(--muted); font-size: 16px; line-height: 1.4; }
.more { margin: 0; color: var(--muted); }
.school { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; border-top: 2px dashed var(--edge); }
.school li { animation: bob 3s steps(4) infinite; }
.school li:nth-child(2n) { animation-delay: -1s; } .school li:nth-child(3n) { animation-delay: -2s; }
.school img { width: 48px; height: 48px; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* discord */
.discord-card { background: var(--panel); border: 3px solid var(--edge); border-left: 10px solid var(--discord); padding: 22px; box-shadow: 5px 5px 0 #000; }
.discord-card p { margin: 0 0 12px; }
.todo { background: #3a1f10; border: 2px dashed var(--amber); padding: 10px 14px; color: #ffd9a0; }

/* footer */
.foot { border-top: 2px solid var(--edge); background: #0a0b08; padding: 22px 0; color: var(--muted); font-size: 16px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .sched li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav a { padding: 8px 6px; font-size: 13px; letter-spacing: .02em; }
  .top nav ul { gap: 0; }
  .brand { font-size: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn-lg { font-size: 19px; }
  .hero .wrap::before { left: -8px; } .hero .wrap::after { right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring::before { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .leap-x { opacity: 1; left: 44cqw; } .leap-y { transform: translateY(-14cqw); } .leap-r { transform: rotate(-4deg); }
  .shadow, .ring i { opacity: 0 !important; }
}
