:root {
  --chrome-line: rgba(255, 255, 255, 0.11);
  --chrome-line-bright: rgba(255, 255, 255, 0.22);
  --chrome-mint: #a5f2df;
  --chrome-lilac: #c9b6ff;
  --chrome-rainbow: linear-gradient(100deg, #f6a5dc 0%, #c9b6ff 26%, #9fddff 48%, #a5f2df 68%, #fff1b5 86%, #f6b3d3 100%);
}

.topbar { line-height: 1.6; position: relative; z-index: 40; border-bottom: 1px solid var(--chrome-line); background: rgba(10, 7, 23, 0.86); backdrop-filter: blur(18px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: auto; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 0; padding: 2px 0; text-decoration: none; }
.plaque-mark {
  display: inline-block; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 2rem; line-height: 1.18; letter-spacing: -.015em; white-space: nowrap;
  animation: wordmark-glow 12s ease-in-out infinite; transition: transform .18s ease;
}
.brand:hover .plaque-mark { transform: translateY(-1px); }
@keyframes wordmark-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(183, 146, 255, .55), 0 2px 10px rgba(0, 0, 0, .45); }
  25%      { text-shadow: 0 0 18px rgba(255, 130, 189, .55), 0 2px 10px rgba(0, 0, 0, .45); }
  50%      { text-shadow: 0 0 18px rgba(88, 183, 250, .55), 0 2px 10px rgba(0, 0, 0, .45); }
  75%      { text-shadow: 0 0 18px rgba(88, 210, 139, .55), 0 2px 10px rgba(0, 0, 0, .45); }
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .nav a:not(.pill) {
  display: inline-block; white-space: nowrap; padding: 9px 13px; border-radius: 11px; text-decoration: none;
  font-size: 0.85rem; font-weight: 650; color: #e2dff4;
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav .pill { background: var(--chrome-rainbow); color: #10132a; font-weight: 800; box-shadow: 0 8px 22px rgba(178, 186, 255, 0.18); }
.nav .pill:hover { color: #10132a; filter: brightness(1.05); transform: none; }
/* Same header box on every page: guide.css pages are otherwise a little narrower (1160 vs 1180)
   and give the button a border the other pages don't have. */
.topbar .shell { width: min(1180px, calc(100% - 32px)); }
.nav .pill { border: 0; }

.footer { position: relative; z-index: 40; margin-top: 56px; padding: 30px 0 44px; border-top: 1px solid var(--chrome-line); color: #968db4; font-size: .78rem; line-height: 1.6; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 17px;
  border: 1px solid var(--chrome-line); border-radius: 999px; background: rgba(255,255,255,.04);
  color: #e2dff4; font-size: .88rem; font-weight: 700; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.social a:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); border-color: var(--chrome-line-bright); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.social a[aria-label="Twitch"]:hover { color: #c9a6ff; border-color: rgba(201,166,255,.5); }
.social a[aria-label="Ko-fi"]:hover  { color: #ff9fc8; border-color: rgba(255,159,200,.5); }
.footer-line {
  margin: 22px auto 0; max-width: 46ch; text-align: center; color: var(--chrome-lilac);
  font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: 1.24rem; line-height: 1.35;
}
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--chrome-line); color: #968db4; font-size: .78rem;
}
.footer-meta a, .footer a { color: var(--chrome-mint); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-legal { margin: 14px 0 0; text-align: center; color: #7d7599; font-size: .72rem; }

@media (max-width: 640px) {
  .plaque-mark { font-size: 1.42rem; }
  .nav .pill { white-space: nowrap; padding: 9px 11px; font-size: .8rem; }
  .nav a, .nav a:not(.pill) { padding: 8px 9px; font-size: .8rem; }
  .nav { gap: 2px; }
  .footer-meta { justify-content: center; text-align: center; }
  .footer-line { font-size: 1.08rem; }
}
@media (max-width: 520px) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; row-gap: 4px; min-height: 0; height: auto; padding: 10px 0; }
  .nav { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .plaque-mark { animation: none; }
}
.embed-compact { aspect-ratio: auto !important; height: auto !important; display: grid; place-items: center; padding: 30px 16px; }
.embed-watch {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 14px;
  background: linear-gradient(100deg, #f6a5dc 0%, #c9b6ff 26%, #9fddff 48%, #a5f2df 68%, #fff1b5 86%, #f6b3d3 100%);
  color: #10132a !important; font-weight: 800; text-decoration: none;
}

/* Tablets and small laptops: the logo and the full menu no longer fit on one line, so the menu
   drops onto its own centred row under the logo. */
@media (max-width: 880px) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; row-gap: 4px; min-height: 0; height: auto; padding: 10px 0; }
  .nav { width: 100%; justify-content: center; }
}

/* Phones: the menu has five links, so tighten it to one row and let it wrap rather than run off the edge. */
@media (max-width: 440px) {
  .nav { flex-wrap: wrap; justify-content: center; gap: 0; row-gap: 4px; }
  .nav a, .nav a:not(.pill) { padding: 8px 6px; font-size: .76rem; }
  .nav .pill { margin-left: 4px; padding: 8px 10px; font-size: .76rem; }
}
