@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #100e19;
  --paper: #f4e9e1;
  --muted: #c6b9c3;
  --gold: #e8bd81;
  --line: #59445c;
  font: 16px/1.6 'DM Sans', system-ui, sans-serif;
  color: var(--paper);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
.skip { position: absolute; inset: 8px auto auto 12px; z-index: 2; padding: .5rem 1rem; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.stream-page { background: #09080c; }
.site-header { display: flex; justify-content: center; padding: 10px 8px; }
.site-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid #4e4755; border-radius: 999px; background: linear-gradient(#24212c, #15131b); }
.site-nav a { color: var(--muted); border-radius: 999px; padding: .45rem clamp(.55rem, 2vw, 1.2rem); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] { background: #36303e; color: var(--paper); }
.site-nav span { color: var(--gold); }
.contact { width: min(480px, calc(100% - 32px)); margin: clamp(28px, 8vw, 88px) auto; }
.contact h1 { font-size: 2rem; margin-bottom: 18px; }
.contact-card { padding: clamp(20px, 5vw, 32px); background: #242126; border: 1px solid #4e4755; }
.contact-card + .contact-card { margin-top: 16px; }
.discord-card img { width: min(170px, 100%); margin-bottom: 20px; }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.discord-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.discord-actions button { padding: .4rem .8rem; font: inherit; color: inherit; background: #36303e; border: 1px solid #67596c; border-radius: 6px; cursor: pointer; }
.discord-actions button:hover { background: #4a3e53; }
.discord-actions button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.copy-status { min-height: 1.6em; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 420px); min-height: calc(100svh - 66px); }
.stream-main { min-width: 0; display: flex; flex-direction: column; }
.player { display: grid; flex: 1; background: #000; }
.player iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.player-mobile { display: none; padding: 1rem; color: var(--muted); }
.stream-info { padding: .8rem 1.2rem; background: #14111b; border-top: 1px solid #282330; }
.stream-info h1, .stream-chat h2 { font: 700 1rem/1.5 'DM Sans', system-ui, sans-serif; letter-spacing: normal; }
.stream-info p { color: var(--muted); font-size: .875rem; }
.stream-chat { display: flex; flex-direction: column; background: #100e15; border-left: 1px solid #282330; }
.stream-chat h2 { padding: .55rem .85rem; border-bottom: 1px solid #282330; }
.stream-chat iframe { display: block; width: 100%; min-height: 320px; flex: 1; border: 0; }
@media (max-width: 800px) {
  .stream-layout { grid-template-columns: minmax(0, 1fr); }
  .player iframe { height: max(300px, 56.25vw); }
  .stream-chat { height: 380px; border-left: 0; }
}
@media (width < 400px) {
  .player iframe { display: none; }
  .player-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
