/* Canary Network website */
:root {
  --yellow: #ffd23f;
  --yellow-deep: #f2b51d;
  --orange: #ff9f2e;
  --yellow-soft: rgba(255, 210, 63, 0.12);
  --ink: #1a1300;
  --bg: #0f0c09;
  --bg-2: #15110c;
  --card: #1b1610;
  --card-2: #251e15;
  --line: #31281c;
  --text: #f3eee6;
  --muted: #ab9f8f;
  --radius: 14px;
  --max: 1160px;
  --header-h: 72px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Lilita One", "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--yellow); }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--yellow); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--yellow); transform: rotate(45deg); border-radius: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, var(--yellow), var(--yellow-deep)); color: var(--ink); box-shadow: 0 6px 24px rgba(255, 190, 40, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 190, 40, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn-ghost { background: rgba(15, 12, 9, 0.6); color: var(--text); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header: logo and links on the left, play/Discord pills on the right. Transparent over the hero, solid once scrolled. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(15, 12, 9, 0.9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 1.25rem; max-width: 1320px; }
.brand { flex: none; display: block; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4); }
.brand img { width: 40px; height: 40px; background: #2a2116; }
.nav { display: flex; align-items: center; gap: 0.1rem; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a { display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(243, 238, 230, 0.8); padding: 0.45rem 0.7rem; border-radius: 8px; font-weight: 600; font-size: 0.93rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.nav-links a svg { width: 15px; height: 15px; opacity: 0.85; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.9rem; border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(20, 15, 10, 0.75); color: var(--text); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.pill:hover { border-color: var(--yellow); text-decoration: none; }
.pill svg { width: 15px; height: 15px; }
.pill .count { padding: 0.05rem 0.45rem; border-radius: 999px; background: rgba(0, 0, 0, 0.25); font-size: 0.72rem; }
.pill .count:empty { display: none; }
.pill-play { background: linear-gradient(180deg, var(--yellow), var(--yellow-deep)); color: var(--ink); border-color: transparent; box-shadow: 0 6px 20px rgba(255, 190, 40, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.pill-play:hover { border-color: transparent; transform: translateY(-1px); }
.pill.copied { background: var(--yellow); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: rgba(20, 15, 10, 0.75); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 0.75rem 16px 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-actions { margin: 0.75rem 0 0; flex-wrap: wrap; }
}

/* Hero: blurred screenshot, centred floating logo, info cards either side */
.hero { position: relative; min-height: clamp(640px, 100vh, 1080px); min-height: clamp(640px, 100svh, 1080px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; background: url("/assets/img/hero-spawn.webp") center 35% / cover no-repeat; filter: blur(7px) saturate(1.15); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(15, 12, 9, 0.05), rgba(15, 12, 9, 0.45) 75%),
              linear-gradient(180deg, rgba(15, 12, 9, 0.35) 0%, rgba(15, 12, 9, 0.05) 30%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 12, 9, 0) 0%, rgba(15, 12, 9, 0.55) 45%, rgba(15, 12, 9, 0.88) 75%, var(--bg) 100%); }
.hero .void { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(260px, 440px) 1fr; align-items: center; gap: 2.5rem; }
.hero-card { background: rgba(24, 18, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.15rem 1.35rem; backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); font-family: var(--mono); }
.hero-card.left { justify-self: end; min-width: 240px; }
.hero-card.right { justify-self: start; min-width: 260px; }
.hero-card small { display: block; color: rgba(243, 238, 230, 0.75); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.2rem; }
.hero-card .row + .row { margin-top: 1rem; }
.hero-card .val { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--yellow); font-weight: 700; font-size: 1.05rem; }
.hero-card .val.big { font-size: 1.6rem; }
.copy-icon { display: inline-grid; place-items: center; padding: 0.15rem; border: 0; background: none; color: rgba(243, 238, 230, 0.6); cursor: pointer; border-radius: 4px; }
.copy-icon:hover { color: var(--yellow); }
.copy-icon svg { width: 14px; height: 14px; }
.copy-icon.copied { color: #6ee7a0; }

.logo-float { position: relative; }
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5)); animation: logo-float 6s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.enter { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: rgba(243, 238, 230, 0.85); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.enter:hover { color: var(--yellow); text-decoration: none; }
.enter svg { width: 16px; height: 16px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 1.25rem; }
  .logo-float { order: -1; width: min(380px, 82vw); margin-bottom: 0.5rem; }
  .hero-card.left, .hero-card.right { justify-self: center; width: min(340px, 100%); }
}

/* Sections */
.section { padding: 96px 0; position: relative; }
.hero + .section { padding-top: 48px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.reverse > :first-child { order: 0; } }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Screenshot frame with corner brackets */
.frame { position: relative; padding: 10px; }
.frame img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.frame::before, .frame::after { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid var(--yellow); }
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card p:last-child { margin-bottom: 0; }

.modes { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.mode:hover { border-color: rgba(255, 210, 63, 0.45); transform: translateX(4px); }
.mode .idx { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 0.75rem; padding-top: 0.35rem; }
.mode h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.mode p { grid-column: 2; margin: 0.2rem 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.mode .addr { grid-column: 2; font-size: 0.85rem; color: var(--muted); }
.mode .addr code { color: var(--text); }
.badge { font-family: var(--font); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow); }
.badge.soon { background: var(--card-2); color: var(--muted); }
.tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }
.tags li { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.5rem; }

.mascot { width: min(320px, 70%); margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); animation: logo-float 7s ease-in-out infinite; }

/* CTA banner */
.banner { position: relative; display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 1.75rem; min-height: 150px; padding: 1.4rem 1.75rem 1.4rem 1.5rem; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #ffe07a 0%, transparent 55%), linear-gradient(100deg, #ffd23f 0%, #ffbe2e 50%, #ff9f2e 100%);
  color: var(--ink); box-shadow: 0 24px 60px rgba(255, 170, 40, 0.16), inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.banner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.12;
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.6) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.6) 75%), linear-gradient(45deg, rgba(0, 0, 0, 0.6) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.6) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.banner > * { position: relative; }
.banner img { width: 170px; margin: -64px 0 -24px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
.banner h2 { margin: 0 0 0.25rem; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); }
.banner p { margin: 0; font-weight: 600; opacity: 0.8; }
.banner .ip { font-family: var(--mono); font-weight: 700; }
.banner .btn-row { justify-content: flex-end; }
.banner .btn-dark { background: var(--ink); color: var(--yellow); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08); }
.banner .btn-dark:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.banner .btn-outline { border-color: rgba(26, 19, 0, 0.35); color: var(--ink); background: rgba(255, 255, 255, 0.22); }
.banner .btn-outline:hover { border-color: var(--ink); }
@media (max-width: 900px) {
  .banner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 1.25rem 1.5rem; margin-top: 70px; }
  .banner img { width: 150px; margin: -70px auto 0; }
  .banner .btn-row { justify-content: center; }
}

/* News cards */
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.news-card time { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.news-card h3 { margin: 0.5rem 0; }
.news-card p { color: var(--muted); font-size: 0.95rem; }
.news-card a.more { margin-top: auto; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Inner pages */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 64px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/spawn-sky.webp") center 40% / cover no-repeat; opacity: 0.35; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 12, 9, 0.5), var(--bg) 95%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.page-body { padding: 24px 0 96px; }
.prose { max-width: 780px; margin: 0 auto; }

.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.rules li { counter-increment: rule; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem 1.1rem 4rem; }
.rules li::before { content: counter(rule); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow); font-family: var(--display); font-size: 1.1rem; }
.rules strong { display: block; margin-bottom: 0.15rem; }
.rules span { color: var(--muted); font-size: 0.95rem; }

.vote-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vote-card h3 { margin: 0; font-size: 1.1rem; }
.vote-card .num { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

.staff-group { margin-bottom: 2.75rem; }
.staff-group h2 { font-size: 1.6rem; }
.staff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.staff { text-align: center; padding: 1.5rem 1rem; }
.staff img { width: 72px; height: 72px; margin: 0 auto 0.75rem; image-rendering: pixelated; border-radius: 10px; }
.staff strong { display: block; }
.staff span { color: var(--muted); font-size: 0.85rem; }

.post { margin-bottom: 1.5rem; }
.post time { color: var(--muted); font-size: 0.85rem; }
.post h2 { font-size: 1.8rem; margin-top: 0.3rem; }

.notice { border-left: 3px solid var(--yellow); background: var(--yellow-soft); padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; color: var(--text); margin-bottom: 1.5rem; }
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
ul.check li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.55rem; height: 0.55rem; background: var(--yellow); transform: rotate(45deg); border-radius: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { margin: 0 0 0.9rem; font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand img { width: 120px; margin-bottom: 0.75rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: var(--muted); font-size: 0.82rem; }

/* Toast (Play button) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--card-2); border: 1px solid rgba(255, 210, 63, 0.5); color: var(--text); padding: 0.75rem 1.1rem; border-radius: 10px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .mascot, .enter svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
