/* Streamer Page 2.0 — Modern Futuristic (fresh CSS).
   No web fonts: the system stack IS the design, so the fallback path is the tested path.
   No fixed-width columns: every grid track is minmax(0, ...) and long text wraps. */
:root {
  --bg: #070a12;
  --bg2: #0c1220;
  --panel: rgba(18, 26, 46, .72);
  --line: rgba(120, 170, 255, .18);
  --text: #e8eefc;
  --muted: #8fa0c4;
  --accent: #5ee1ff;
  --accent2: #9b7bff;
  --live: #ff4d6d;
  --ok: #46e6a0;
  --radius: 16px;
  --gap: clamp(12px, 2.2vw, 24px);
  --pad: clamp(14px, 3.4vw, 32px);
  --font: "Inter", "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(94, 225, 255, .10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(155, 123, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-color: var(--bg);
  overflow-x: hidden;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #001; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.top, main, .foot { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent2), var(--accent)); box-shadow: 0 0 24px rgba(94, 225, 255, .35); }
h1 { font-size: clamp(18px, 3.4vw, 26px); letter-spacing: .04em; font-weight: 700; overflow-wrap: anywhere; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); white-space: nowrap; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.badge.is-live { color: #fff; border-color: rgba(255, 77, 109, .6); background: rgba(255, 77, 109, .16); }
.badge.is-live .dot { background: var(--live); box-shadow: 0 0 10px var(--live); animation: pulse 1.6s ease-in-out infinite; }
.badge.is-offline .dot { background: #5d6b8c; }
.badge.is-unknown .dot { background: #e6c14d; }
@keyframes pulse { 50% { opacity: .35; } }

main { display: grid; gap: var(--gap); padding-bottom: 32px; }
.stage-wrap { display: grid; gap: 10px; min-width: 0; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 400px at 30% 20%, #16264a, #0a0f1d 70%); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.stage:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; transition: opacity .5s ease; }
.live { object-fit: contain; background: #000; }
.stage.is-live .live { opacity: 1; }
.stage.is-offline .ambient, .stage.is-unknown .ambient { opacity: 1; }
.stage.is-live .ambient { opacity: 0; }
.veil { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 16px;
  background: linear-gradient(180deg, rgba(7, 10, 18, .15), rgba(7, 10, 18, .6)); z-index: 2; transition: opacity .4s ease; }
.stage.is-live .veil { opacity: 0; pointer-events: none; }
.veil-title { font-size: clamp(16px, 3vw, 28px); font-weight: 700; letter-spacing: .06em; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.veil-sub { font-size: clamp(12px, 1.8vw, 15px); color: #c9d6f2; overflow-wrap: anywhere; }
.controls { position: absolute; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; }

.btn { appearance: none; font: inherit; color: var(--text); cursor: pointer; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(14, 22, 40, .8); backdrop-filter: blur(6px); min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(94, 225, 255, .18); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 13px; }
.tagline { color: var(--muted); font-size: clamp(13px, 2vw, 16px); overflow-wrap: anywhere; min-height: 1.6em; }
.tagline:empty { display: none; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 22px);
  backdrop-filter: blur(8px); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card h2 { font-size: 13px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.prose { white-space: pre-line; overflow-wrap: anywhere; color: #d6e0f7; }
.prose:empty::before { content: "—"; color: var(--muted); }

.schedule li { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.schedule li:first-child { border-top: 0; padding-top: 0; }
.schedule time { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.schedule .title { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.schedule .note { grid-column: 2; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.notices li { padding: 10px 0; border-top: 1px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }
.notices li:first-child { border-top: 0; padding-top: 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links .btn { max-width: 100%; overflow-wrap: anywhere; }
.links .k-twitch { border-color: rgba(155, 123, 255, .6); }
.links .k-youtube { border-color: rgba(255, 77, 109, .55); }
.links .k-discord { border-color: rgba(94, 225, 255, .5); }

.foot { padding-block: 24px 40px; color: var(--muted); }

/* ---- breakpoints (visually regression-tested at 1440 / 1024 / 800 / 768 / 390) ---- */
@media (max-width: 800px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card.wide { grid-column: auto; }
}
@media (max-width: 480px) {
  .stage { border-radius: 12px; }
  .schedule li { grid-template-columns: minmax(0, 1fr); }
  .schedule .note { grid-column: 1; }
  .controls { right: 6px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
