/* Rookyard site. Dark by default, light when the visitor's device or the header switch says so. */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08060b;
  --bg-2: #110c18;
  --text: #f6f1ec;
  --muted: #a89fae;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.11);
  --orange: #ff7a0a;
  --amber: #ffb347;
  --ember: #f04e00;
  --purple: #8b5cf6;
  --violet: #c4b5fd;
  --on-orange: #1a0d02;
  --glow-o: rgba(255, 122, 10, 0.38);
  --glow-p: rgba(139, 92, 246, 0.36);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --display: "Bricolage", "Arial Narrow", sans-serif;
  --body: "Instrument", system-ui, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3fa; --bg-2: #efe8f6; --text: #17101f; --muted: #655a70;
  --glass: rgba(255, 255, 255, 0.62); --glass-2: rgba(255, 255, 255, 0.9); --edge: rgba(40, 20, 70, 0.13);
  --orange: #e85d04; --amber: #f59e0b; --ember: #c2410c; --purple: #6d28d9; --violet: #6d28d9;
  --on-orange: #ffffff; --glow-o: rgba(255, 122, 10, 0.3); --glow-p: rgba(139, 92, 246, 0.26);
  --shadow: 0 24px 60px rgba(60, 30, 100, 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f3fa; --bg-2: #efe8f6; --text: #17101f; --muted: #655a70;
    --glass: rgba(255, 255, 255, 0.62); --glass-2: rgba(255, 255, 255, 0.9); --edge: rgba(40, 20, 70, 0.13);
    --orange: #e85d04; --amber: #f59e0b; --ember: #c2410c; --purple: #6d28d9; --violet: #6d28d9;
    --on-orange: #ffffff; --glow-o: rgba(255, 122, 10, 0.3); --glow-p: rgba(139, 92, 246, 0.26);
    --shadow: 0 24px 60px rgba(60, 30, 100, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.9rem, 7.4vw, 5.9rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: 60ch; }
.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.muted { color: var(--muted); }

/* Sky: glows, orbit lines and stars behind everything */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 60%); }
.sky i { position: absolute; border-radius: 50%; filter: blur(90px); }
.sky .o1 { width: 46rem; height: 46rem; right: -14rem; top: -12rem; background: var(--glow-o); animation: drift 22s ease-in-out infinite alternate; }
.sky .o2 { width: 40rem; height: 40rem; left: -16rem; top: 22rem; background: var(--glow-p); animation: drift 28s ease-in-out infinite alternate-reverse; }
.sky .o3 { width: 30rem; height: 30rem; right: 10%; bottom: -14rem; background: var(--glow-p); opacity: 0.7; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
@keyframes drift { to { transform: translate(-4rem, 3rem) scale(1.12); } }

/* Glass */
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 1.5rem; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 800 1.3rem/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; filter: drop-shadow(0 0 10px var(--glow-o)); }
.pill { display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem; border-radius: 99rem; }
.pill a, .pill button { font: 600 0.95rem/1 var(--body); color: var(--text); text-decoration: none; padding: 0.65rem 1rem; border-radius: 99rem; border: 0; background: none; cursor: pointer; }
.pill a:hover, .pill button:hover, .pill a[aria-current="page"] { background: var(--glass-2); }
.pill button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; }
.pill button svg { width: 1.15rem; height: 1.15rem; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; } :root[data-theme="light"] .icon-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .icon-sun { display: block; } :root:not([data-theme="dark"]) .icon-moon { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0.8rem 1.6rem; border-radius: 99rem; font-weight: 700; text-decoration: none; border: 1px solid var(--edge); color: var(--text); background: var(--glass); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); background: var(--glass-2); }
.btn-main { color: var(--on-orange); border: 0; background: linear-gradient(135deg, var(--amber), var(--orange) 45%, var(--ember)); box-shadow: 0 10px 34px var(--glow-o), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-main:hover { background: linear-gradient(135deg, var(--amber), var(--orange) 45%, var(--ember)); box-shadow: 0 14px 44px var(--glow-o), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Hero */
.hero { display: grid; gap: 1rem; align-items: center; padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
@media (min-width: 62rem) { .hero { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 span { display: block; }
.hero h1 .fire { background: linear-gradient(100deg, var(--amber), var(--orange) 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero .lede { font-size: 1.22rem; margin-top: 1.5rem; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 99rem; font-size: 0.92rem; font-weight: 600; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.dot.p { background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.perch { position: relative; aspect-ratio: 1; max-width: 36rem; margin-inline: auto; width: 100%; }
.perch .sun { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--amber), var(--orange) 34%, var(--ember) 52%, #6d28d9 78%, transparent 80%); opacity: 0.92; box-shadow: 0 0 120px var(--glow-o), 0 0 200px var(--glow-p); }
.perch .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--edge); background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 45%); animation: spin 60s linear infinite; }
.perch .ring::before, .perch .ring::after { content: ""; position: absolute; border-radius: 50%; }
.perch .ring::before { width: 1rem; height: 1rem; top: 12%; left: 14%; background: var(--amber); box-shadow: 0 0 22px var(--amber); }
.perch .ring::after { width: 0.7rem; height: 0.7rem; bottom: 9%; right: 20%; background: var(--violet); box-shadow: 0 0 20px var(--purple); }
.perch img { position: absolute; inset: 4% 0 auto 0; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); animation: bob 7s ease-in-out infinite; }
.bubble { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06) 42%, rgba(139, 92, 246, 0.28) 100%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: bob 9s ease-in-out infinite; }
.bubble.b1 { width: 17%; height: 17%; left: -2%; top: 14%; }
.bubble.b2 { width: 11%; height: 11%; right: 2%; bottom: 12%; animation-delay: -4s; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06) 42%, rgba(255, 122, 10, 0.4) 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-2.2%); } }

/* Marquee of roles */
.ribbon { transform: rotate(-1.6deg) scale(1.03); border-block: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.ribbon div { display: flex; width: max-content; animation: slide 46s linear infinite; }
.ribbon span { font: 700 1.25rem/1 var(--display); padding: 1rem 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 2.8rem; }
.ribbon span::after { content: ""; width: 0.6rem; height: 0.6rem; background: var(--orange); transform: rotate(45deg); box-shadow: 0 0 12px var(--orange); }
.ribbon:hover div { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section.block { padding-block: clamp(3.5rem, 9vw, 7rem); }
.head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 56rem) { .head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } }

/* Dashboard mock */
.dash { padding: clamp(0.9rem, 2.2vw, 1.75rem); border-radius: 2rem; box-shadow: var(--shadow); display: grid; gap: clamp(0.75rem, 1.6vw, 1.1rem); }
@media (min-width: 56rem) { .dash { grid-template-columns: 1.25fr 1fr 0.85fr; } .dash .wide { grid-column: span 2; } .dash .tall { grid-row: span 3; } }
.panel { padding: 1.25rem; border-radius: 1.25rem; }
.panel > h3 { font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.panel > h3 small { font: 600 0.8rem/1 var(--body); color: var(--muted); letter-spacing: 0; }
.track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; position: relative; }
.track b { font: 700 0.86rem/1 var(--display); text-align: center; padding: 0.85rem 0.2rem; border-radius: 0.8rem; border: 1px solid var(--edge); background: var(--glass); animation: lit 18s linear infinite; }
.track b:nth-child(2) { animation-delay: 3s; } .track b:nth-child(3) { animation-delay: 6s; } .track b:nth-child(4) { animation-delay: 9s; }
.track b:nth-child(5) { animation-delay: 12s; } .track b:nth-child(6) { animation-delay: 15s; }
@keyframes lit { 0%, 15% { background: linear-gradient(135deg, var(--amber), var(--orange)); color: var(--on-orange); box-shadow: 0 0 26px var(--glow-o); border-color: transparent; } 18%, 100% { background: var(--glass); color: inherit; box-shadow: none; } }
.ticket { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--muted); }
.ticket strong { color: var(--text); }
.bars { display: grid; gap: 0.9rem; }
.bars label { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 600; }
.bar { height: 0.7rem; border-radius: 99rem; background: var(--glass-2); overflow: hidden; margin-top: 0.4rem; }
.bar i { display: block; height: 100%; border-radius: 99rem; background: linear-gradient(90deg, var(--orange), var(--amber)); box-shadow: 0 0 18px var(--glow-o); }
.bar i.p { background: linear-gradient(90deg, var(--purple), #c084fc); box-shadow: 0 0 18px var(--glow-p); }
.stop { display: grid; place-items: center; text-align: center; gap: 0.9rem; }
.stop .knob { width: 6.5rem; height: 6.5rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, var(--amber), var(--orange) 45%, var(--ember)); box-shadow: 0 0 0 0.7rem var(--glass), 0 0 0 0.75rem var(--edge), 0 0 50px var(--glow-o); }
.stop .knob svg { width: 2.4rem; height: 2.4rem; color: var(--on-orange); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.85rem; border-radius: 0.9rem; background: var(--glass); border: 1px solid var(--edge); font-size: 0.94rem; }
.rows li span:first-child { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.tag { font: 700 0.78rem/1 var(--body); padding: 0.4rem 0.7rem; border-radius: 99rem; border: 1px solid var(--edge); white-space: nowrap; }
.tag.go { background: linear-gradient(135deg, var(--amber), var(--orange)); color: var(--on-orange); border: 0; }
.panel p.note { font-size: 0.9rem; color: var(--muted); }

/* Stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: s; }
@media (min-width: 40rem) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stages li { counter-increment: s; padding: 1.5rem; position: relative; overflow: hidden; }
.stages li::before { content: "0" counter(s); font: 800 3.4rem/1 var(--display); background: linear-gradient(180deg, var(--orange), transparent 120%); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 0.9rem; }
.stages li:nth-child(even)::before { background-image: linear-gradient(180deg, var(--purple), transparent 120%); }
.stages p { color: var(--muted); margin-top: 0.4rem; font-size: 0.98rem; }

/* Departments and game */
.depts { display: grid; gap: 0.9rem; }
@media (min-width: 52rem) { .depts { grid-template-columns: 1.3fr 1fr 1fr; } }
.dept { padding: 1.6rem; position: relative; }
.dept p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }
.dept .chip { margin-top: 1.4rem; background: var(--glass-2); border: 1px solid var(--edge); }
.dept.live { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, var(--amber), var(--orange), var(--purple)) border-box; border: 1.5px solid transparent; box-shadow: 0 20px 60px var(--glow-o); }
.game { display: grid; gap: 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 2rem; box-shadow: var(--shadow); }
@media (min-width: 52rem) { .game { grid-template-columns: auto 1fr; gap: 3rem; } }
.card { width: min(100%, 17rem); padding: 0.8rem; border-radius: 1.6rem; margin-inline: auto; background: linear-gradient(160deg, rgba(255, 122, 10, 0.28), rgba(139, 92, 246, 0.3)); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 0 60px var(--glow-p), 0 0 40px var(--glow-o); transform: rotate(-3deg); }
.card img { border-radius: 1.1rem; width: 100%; aspect-ratio: 1; }
.card b { display: block; text-align: center; font: 700 1rem/1 var(--display); padding: 0.8rem 0 0.3rem; color: var(--text); text-decoration: none; }
.card { text-decoration: none; }
.game p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* Links page */
.linkpage { width: min(100% - 2rem, 28rem); margin-inline: auto; padding-block: 2.5rem 3rem; }
.linkpage header { text-align: center; position: relative; }
.linkpage header img { width: 8.5rem; margin: 0 auto 0.5rem; filter: drop-shadow(0 0 34px var(--glow-o)); }
.linkpage h1 { font-size: 2.6rem; }
.linkpage header p { margin: 0.5rem auto 0; color: var(--muted); }
.linkpage h2 { font: 700 0.95rem/1 var(--body); color: var(--muted); letter-spacing: 0; margin: 2rem 0 0.7rem 0.4rem; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.linklist a { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.9rem; align-items: center; min-height: 4.6rem; padding: 0.6rem 1rem 0.6rem 0.6rem; color: var(--text); text-decoration: none; border-radius: 1.2rem; transition: transform 0.15s, box-shadow 0.15s; }
.linklist a:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--glow-o); border-color: var(--orange); }
.linklist img { width: 3.4rem; height: 3.4rem !important; border-radius: 0.85rem; object-fit: cover; }
.linklist img.em { object-fit: contain; background: #0b080e; padding: 0.3rem; }
.linklist b { display: block; font: 700 1.08rem/1.2 var(--display); }
.linklist small { color: var(--muted); font-size: 0.9rem; }
.linklist svg { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.linklist li.hot a { background: linear-gradient(135deg, var(--amber), var(--orange) 50%, var(--ember)); color: var(--on-orange); border: 0; box-shadow: 0 12px 40px var(--glow-o); }
.linklist li.hot small, .linklist li.hot svg { color: var(--on-orange); opacity: 0.85; }
.linkpage .mode { display: flex; justify-content: center; margin-top: 2rem; }

/* Text pages and footer */
.prose { padding-block: 2rem 4rem; }
.prose .sheet { padding: clamp(1.5rem, 4vw, 3rem); }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose p { margin-top: 0.9rem; max-width: 66ch; color: var(--muted); }
footer.site { border-top: 1px solid var(--edge); padding-block: 2rem; margin-top: 2rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.95rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer.site a { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 40rem) { .sky .o1 { width: 26rem; height: 26rem; right: -12rem; top: -10rem; opacity: 0.8; } .sky .o2 { width: 24rem; height: 24rem; top: 30rem; } .ribbon span { font-size: 1.05rem; } }

/* Waitlist */
.wait { display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem; background: linear-gradient(135deg, rgba(255, 122, 10, 0.16), rgba(139, 92, 246, 0.18)), var(--glass); }
@media (min-width: 56rem) { .wait { grid-template-columns: 1fr 1.1fr; } }
.wait p { margin-top: 0.8rem; }
.wait label { font-weight: 600; font-size: 0.95rem; }
.wait .field { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.wait input { flex: 1 1 14rem; min-height: 3.1rem; padding: 0 1.2rem; border-radius: 99rem; border: 1px solid var(--edge); background: var(--glass-2); color: var(--text); font: inherit; }
.wait input::placeholder { color: var(--muted); }
.wait button { cursor: pointer; font: 700 1rem/1 var(--body); }
.wait .note { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; }
.linklist .tile { width: 3.4rem; height: 3.4rem; border-radius: 0.85rem; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 122, 10, 0.25), rgba(139, 92, 246, 0.3)); border: 1px solid var(--edge); }
.linklist .tile svg { width: 1.6rem; height: 1.6rem; color: var(--text); }
