/* ─── CSS Variables ─────────────────────────────────────────────────── */
:root {
  --color-bg: #0f0f13;
  --color-surface: #1a1a22;
  --color-surface-2: #23232e;
  --color-border: #2e2e3a;
  --color-text: #e8e8f0;
  --color-text-muted: #8a8a9e;
  --color-text-subtle: #5a5a6e;
  --color-accent: #7c6fe0;
  --color-accent-hover: #9b8ef5;
  --color-youtube: #ff3d3d;
  --color-youtube-hover: #ff6060;
  --color-twitch: #9146ff;
  --color-twitch-hover: #b06dff;
  --color-x: #1d9bf0;
  --color-x-hover: #4ab3f5;
  --color-live: #22c55e;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-danger-hover: #f87171;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Mono', monospace;
  --ad-slot-height: 90px;
  --transition: 150ms ease;
}

/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── Layout Utilities ──────────────────────────────────────────────── */
.page-center {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-page .page-center {
  flex: 1;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: .85rem 1rem;
}

.footer-links {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.footer-links__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--color-text-muted);
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copyright {
  text-align: center;
  color: var(--color-text-muted);
  font-size: .75rem;
  margin: .5rem 0 0;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header,
.legal-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.legal-header h1 {
  margin-top: .4rem;
  margin-bottom: .4rem;
  font-size: 1.55rem;
}

.legal-header p {
  color: var(--color-text-muted);
  font-size: .88rem;
}

.legal-main {
  flex: 1;
  display: grid;
  gap: 1rem;
}

.legal-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.legal-section h2 {
  font-size: 1rem;
  margin-bottom: .55rem;
}

.legal-list {
  padding-left: 1.25rem;
  display: grid;
  gap: .3rem;
}

.legal-note {
  font-size: .78rem;
  color: var(--color-text-subtle);
  margin-top: .4rem;
}

/* ─── Site Header / Logo ─────────────────────────────────────────────── */
.site-header { text-align: center; }
.site-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #9b8ef5, #7c6fe0, #5b9cf5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-desc {
  color: var(--color-text-muted);
  margin-top: .5rem;
  font-size: .95rem;
}

/* ─── Platform Select (Index) ──────────────────────────────────────── */
.platform-select {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
  min-width: 160px;
  box-shadow: var(--shadow-md);
}
.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.platform-btn--youtube { border-color: var(--color-youtube); }
.platform-btn--youtube:hover { background: rgba(255,61,61,.1); }
.platform-btn--twitch { border-color: var(--color-twitch); }
.platform-btn--twitch:hover { background: rgba(145,70,255,.1); }

.platform-icon { font-size: 2rem; }
.platform-sub { font-size: .8rem; color: var(--color-text-muted); font-weight: 400; }

/* ─── App Header ─────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #9b8ef5, #5b9cf5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.site-logo-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: .12rem .4rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-sans);
  white-space: nowrap;
  color: #fff;
  -webkit-text-fill-color: currentColor;
  background: var(--color-accent);
}

/* ─── Platform Tabs ─────────────────────────────────────────────────── */
.platform-tabs {
  display: flex;
  gap: .25rem;
  flex: 1;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.tab:hover { color: var(--color-text); background: var(--color-surface-2); }
.tab--active {
  background: var(--color-accent);
  color: #fff;
}
.tab--active:hover { background: var(--color-accent-hover); color: #fff; }

/* ─── Header Actions ─────────────────────────────────────────────────── */
.header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.hop-guide {
  margin: 0;
  font-size: .76rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .32rem .6rem;
  white-space: nowrap;
}

.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.shuffle-btn:hover { background: var(--color-accent-hover); }
.shuffle-btn:active { transform: scale(0.97); }

/* ─── Feed Meta ─────────────────────────────────────────────────────── */
.app-main { flex: 1; padding: 1.5rem; max-width: 1400px; margin: 0 auto; width: 100%; }
.viewer-priority-note {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  margin-bottom: .85rem;
}
.viewer-priority-note__lead {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.creator-entry {
  margin-top: .45rem;
  font-size: 0.84rem;
}
.creator-entry summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.creator-entry summary::after {
  content: '＋';
  color: var(--color-text-muted);
  font-weight: 700;
}
.creator-entry[open] summary::after {
  content: '−';
}
.creator-entry summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.creator-entry p,
.creator-entry ol {
  margin-top: .45rem;
}
.creator-entry ol {
  padding-left: 1.25rem;
}
.creator-entry a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admax-banner {
  width: 100%;
}
.admax-banner__label {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .12rem .48rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.admax-banner__slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--ad-slot-height);
}
.admax-banner__slot--pc {
  max-width: 728px;
}
.admax-banner__slot--sp {
  display: none;
}
.streamer-card--ad {
  padding: .7rem;
  justify-content: center;
}
.streamer-card--ad:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  transform: none;
}
.feed-meta {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ─── Streamer List / Grid ──────────────────────────────────────────── */
.streamer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: .7rem;
}

/* ─── Streamer Card ─────────────────────────────────────────────────── */
.streamer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.streamer-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface-2); }
.card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}
.card-media-link .card-thumb {
  transition: opacity .2s ease, transform .2s ease;
}
.card-media-link:hover .card-thumb {
  opacity: .8;
  transform: scale(1.04);
}
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.placeholder-icon {
  width: 1.75rem;
  height: 1.75rem;
  opacity: .5;
}

.card-body { padding: .6rem .7rem .35rem; flex: 1; }
.card-name {
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.card-title {
  font-size: .58rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .28rem;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  font-size: .55rem;
  font-weight: 700;
  color: var(--color-live);
  background: rgba(34,197,94,.12);
  padding: .1rem .35rem;
  border-radius: 99px;
  letter-spacing: .04em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  padding: .42rem .7rem .63rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  padding: .25rem .52rem;
  border-radius: var(--radius-sm);
  font-size: .56rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.card-link-label {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}

.card-link-icon {
  width: .72rem;
  height: .72rem;
  flex-shrink: 0;
}
.card-link--youtube { background: rgba(255,61,61,.12); color: var(--color-youtube); border-color: rgba(255,61,61,.25); }
.card-link--youtube:hover { background: var(--color-youtube); color: #fff; }
.card-link--twitch { background: rgba(145,70,255,.12); color: var(--color-twitch); border-color: rgba(145,70,255,.25); }
.card-link--twitch:hover { background: var(--color-twitch); color: #fff; }
.card-link--x { background: rgba(29,155,240,.12); color: var(--color-x); border-color: rgba(29,155,240,.25); }
.card-link--x:hover { background: var(--color-x); color: #fff; }

/* ─── Empty / Error / Loading States ───────────────────────────────── */
.empty-state, .error-state, .loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-headline { font-size: 1.05rem; font-weight: 600; color: var(--color-text); margin-bottom: .4rem; }
.empty-sub { font-size: .88rem; }
.error-state p { margin-bottom: .3rem; }
.loading::before {
  content: '';
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin .8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Admin Layout ──────────────────────────────────────────────────── */
.admin-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.admin-nav a {
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.admin-nav a:hover { color: var(--color-text); background: var(--color-surface-2); }
.admin-nav a.active { color: var(--color-text); background: var(--color-surface-2); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--secondary { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); }
.btn--secondary:hover { border-color: var(--color-accent); }
.btn--danger { background: rgba(239,68,68,.12); color: var(--color-danger); border: 1px solid rgba(239,68,68,.25); }
.btn--danger:hover { background: var(--color-danger); color: #fff; }
.btn--sm { padding: .35rem .75rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-icon {
  width: .95rem;
  height: .95rem;
  flex-shrink: 0;
}

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form-section { margin-bottom: 1.5rem; }
.form-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--color-border);
}

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--color-text-muted);
}
.form-label span { color: var(--color-danger); margin-left: .2rem; }

.form-input, .form-textarea {
  width: 100%;
  padding: .6rem .85rem;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: .92rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124,111,224,.2);
}
.form-textarea { resize: vertical; min-height: 80px; }

.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .9rem;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-hint { font-size: .78rem; color: var(--color-text-subtle); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--color-danger); margin-top: .3rem; }

.form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ─── Card / Panel ──────────────────────────────────────────────────── */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.panel-header h2 { font-size: 1rem; font-weight: 700; }
.panel-body { padding: 1.25rem; }

/* ─── Table ─────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th {
  text-align: left;
  padding: .7rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--color-surface-2); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.badge--active { background: rgba(34,197,94,.15); color: var(--color-success); }
.badge--inactive { background: rgba(239,68,68,.12); color: var(--color-danger); }
.badge--success { background: rgba(34,197,94,.15); color: var(--color-success); }
.badge--failure { background: rgba(239,68,68,.12); color: var(--color-danger); }
.badge--partial { background: rgba(245,158,11,.12); color: var(--color-warning); }

/* ─── Status Cards ──────────────────────────────────────────────────── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.status-card-title {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
}

.status-title-icon {
  width: .82rem;
  height: .82rem;
  flex-shrink: 0;
}
.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .85rem;
}
.status-item:last-child { border-bottom: none; }
.status-label { color: var(--color-text-muted); }
.status-value { font-weight: 600; font-family: var(--font-mono); font-size: .82rem; }
.status-value--good { color: var(--color-success); }
.status-value--bad { color: var(--color-danger); }
.status-value--none { color: var(--color-text-subtle); font-style: italic; }

/* ─── Alert / Toast ─────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert--success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.alert--error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.alert--info { background: rgba(124,111,224,.1); border: 1px solid rgba(124,111,224,.3); color: #a78bf8; }

/* ─── Separator / Utility ───────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: .85rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }

/* ─── Tour (first-time coach mark) ─────────────────────────────────── */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .45);
  animation: fade-in .18s ease both;
}

.tour-callout {
  position: fixed;
  z-index: 1001;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  max-width: 260px;
  box-shadow: var(--shadow-lg);
  animation: slide-down .22s ease both;
}

/* arrow pointing upward, aligned to the right of the callout */
.tour-callout::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 1.25rem;
  width: 14px;
  height: 14px;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  transform: rotate(45deg);
}

/* arrow pointing downward when callout is positioned above the button */
.tour-callout--above::before {
  top: auto;
  bottom: -7px;
  transform: rotate(225deg);
}

.tour-msg {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: .75rem;
}

.tour-dismiss-btn {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}
.tour-dismiss-btn:hover { background: var(--color-accent-hover); }

/* ─── Toast notification ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  z-index: 2000;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-size: .88rem;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
  animation: toast-show 2.5s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-show {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

/* ─── Static Intro Block (youtube/twitch pages) ─────────────────── */
.static-intro {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: .85rem;
}

.static-intro__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--color-text);
}

.static-intro__desc {
  font-size: .87rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: .4rem;
}

.static-intro__desc:last-child { margin-bottom: 0; }

/* ─── Noscript Notice ───────────────────────────────────────────── */
.noscript-notice {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.noscript-notice p { margin-bottom: .5rem; }
.noscript-notice p:last-child { margin-bottom: 0; }
.noscript-notice a { color: var(--color-accent); text-decoration: underline; }

/* ─── FAQ (about.html) ──────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: .75rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .75rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .3rem;
}

.faq-a {
  font-size: .87rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-left: 0;
}

.faq-a a { color: var(--color-accent); text-decoration: underline; }

/* ─── Landing Page ──────────────────────────────────────────────── */
.landing-section {
  text-align: center;
}

.landing-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.landing-about {
  max-width: 680px;
  width: 100%;
  text-align: left;
}

.landing-about__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.landing-about__desc {
  font-size: .92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: .5rem;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1.25rem 0;
}

.landing-feature {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .75rem;
}

.landing-feature__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.landing-feature__title {
  display: block;
  font-size: .85rem;
  margin-bottom: .2rem;
}

.landing-feature__desc {
  font-size: .78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.landing-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.landing-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.landing-cta__btn--youtube {
  background: rgba(255,61,61,.12);
  color: var(--color-youtube);
  border-color: rgba(255,61,61,.3);
}
.landing-cta__btn--youtube:hover { background: var(--color-youtube); color: #fff; }

.landing-cta__btn--twitch {
  background: rgba(145,70,255,.12);
  color: var(--color-twitch);
  border-color: rgba(145,70,255,.3);
}
.landing-cta__btn--twitch:hover { background: var(--color-twitch); color: #fff; }

.landing-register {
  max-width: 680px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.landing-register__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.landing-register__desc {
  font-size: .87rem;
  color: var(--color-text-muted);
  margin-bottom: .85rem;
  line-height: 1.65;
}

.landing-register__link {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
}
.landing-register__link:hover { background: var(--color-accent-hover); }


/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .app-header { padding: .6rem 1rem; gap: .5rem; }
  /* 視覚的に非表示にしつつ aria-describedby の参照先としてアクセシビリティツリーに残す */
  .hop-guide { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .app-main { padding: 1rem; }
  .admax-banner--inline { display: none; }
  .streamer-list { grid-template-columns: 1fr; }
  .admin-wrapper { padding: 1rem; }
  .platform-select { gap: 1rem; }
  .platform-btn { min-width: 140px; padding: 1.5rem 1.75rem; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-cta { flex-direction: column; }
  .landing-cta__btn { justify-content: center; }
}
