/* Season 3 night-city theme shared by every player page. Desktop first (1920×1080). */

:root {
  --hw-void: #050814;
  --hw-night: #0b1428;
  --hw-night-2: #101c36;
  --hw-panel-top: rgba(16, 28, 58, 0.92);
  --hw-panel-bottom: rgba(7, 12, 28, 0.94);
  --hw-line: rgba(56, 189, 248, 0.22);
  --hw-line-strong: rgba(56, 189, 248, 0.55);
  --hw-pumpkin: #38bdf8;
  --hw-pumpkin-light: #e0f7ff;
  --hw-ember: #2563eb;
  --hw-slime: #4ade80;
  --hw-slime-dim: #166534;
  --hw-hex: #e879f9;
  --hw-hex-light: #f5d0fe;
  --hw-blood: #fb7185;
  --hw-bone: #eef6ff;
  --hw-mist: #9eb4d4;
  --hw-moon: #dbeafe;
  --hw-carrot: #fb923c;
  --hw-gold: #fbbf24;
  --hw-radius: 16px;
  --hw-topbar-h: 64px;
  --hw-font-display: "Tektur", "Exo 2", system-ui, sans-serif;
  --hw-font-head: "Tektur", "Exo 2", system-ui, sans-serif;
  --hw-font-body: "Exo 2", system-ui, sans-serif;

  /* Legacy names still used by page and minigame styles. */
  --tw-bg: var(--hw-void);
  --tw-bg-elevated: #10182e;
  --tw-surface: #10182e;
  --tw-border: rgba(56, 189, 248, 0.22);
  --tw-purple: #9146ff;
  --tw-purple-dim: #772ce8;
  --tw-text: var(--hw-bone);
  --tw-text-muted: var(--hw-mist);
}

@font-face {
  font-family: "Tektur";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/tektur-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tektur";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/tektur-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/exo2-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/exo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, textarea, select { font-family: inherit; }
html { color-scheme: dark; }
/* Built for 1920×1080 and up, not for phones. Text and spacing are in rem: 16px on a 1920×1080
   screen, growing with the screen (about 21px at 2560×1440, 32px at 3840×2160), so 1440p and 4K
   get the same layout. Width and height both cap it, so an ultrawide screen does not overflow. */
html { font-size: clamp(16px, min(100vw / 120, 100vh / 67.5), 32px); }

body.hw-body {
  font-family: var(--hw-font-body);
  color: var(--hw-bone);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(820px 480px at 88% 0%, rgba(232, 121, 249, 0.16), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(37, 99, 235, 0.22), transparent 68%),
    linear-gradient(180deg, #101a34 0%, #070b18 42%, #050814 100%);
  background-attachment: fixed;
}

::selection { background: rgba(56, 189, 248, 0.4); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, 0.45) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.7), rgba(232, 121, 249, 0.65));
  border-radius: 999px;
}

/* ---------- Night city behind everything ---------- */

.hw-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hw-stars {
  position: absolute;
  inset: 0 0 28% 0;
  background-image:
    radial-gradient(1.4px 1.4px at 24px 38px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 140px 90px, #7dd3fc 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 260px 30px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 330px 150px, #f0abfc 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 410px 70px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 90px 200px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 210px 240px, #7dd3fc 50%, transparent 52%),
    radial-gradient(1px 1px at 380px 260px, #fff 50%, transparent 52%);
  background-size: 460px 300px;
  opacity: 0.55;
  animation: hw-twinkle 7s ease-in-out infinite alternate;
}
.hw-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 60px 120px, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 300px 200px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 180px 20px, #f0abfc 50%, transparent 52%);
  background-size: 360px 260px;
  animation: hw-twinkle 4.5s ease-in-out infinite alternate-reverse;
}
@keyframes hw-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.9; }
}

.hw-moon {
  position: absolute;
  top: 72px;
  right: 8vw;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #dbeafe 42%, #93c5fd 78%, #60a5fa 100%);
  box-shadow:
    0 0 40px 12px rgba(191, 219, 254, 0.28),
    0 0 120px 40px rgba(56, 189, 248, 0.12);
  opacity: 0.85;
}

.hw-glow {
  position: absolute;
  width: 42vw;
  height: 38vh;
  filter: blur(8px);
  opacity: 0.9;
}
.hw-glow--cyan {
  left: -8vw;
  bottom: 8vh;
  background: radial-gradient(circle at 30% 70%, rgba(56, 189, 248, 0.2), transparent 68%);
}
.hw-glow--magenta {
  right: -6vw;
  top: 6vh;
  background: radial-gradient(circle at 70% 30%, rgba(232, 121, 249, 0.18), transparent 70%);
}

.hw-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.2) 30%, #050814 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 180'%3E%3Cg fill='%23070d1c'%3E%3Cpath d='M0 180V92h28v-22h18v22h22v-40h36v40h16v-58h8v-18h10v18h8v58h24v-34h40v34h18v-70h46v70h20v-28h32v28h14v-48h38v48h22v-16h16v16h26v-62h42v62h18v-36h30v36h12v-24h24v24h20v-44h34v44h8v-20h22v20H640v88z'/%3E%3C/g%3E%3Cg fill='%2338bdf8'%3E%3Crect x='40' y='78' width='4' height='6'/%3E%3Crect x='52' y='90' width='4' height='6'/%3E%3Crect x='118' y='48' width='4' height='6'/%3E%3Crect x='214' y='40' width='4' height='6'/%3E%3Crect x='300' y='70' width='4' height='6'/%3E%3Crect x='390' y='36' width='4' height='6'/%3E%3Crect x='470' y='58' width='4' height='6'/%3E%3Crect x='548' y='44' width='4' height='6'/%3E%3C/g%3E%3Cg fill='%23e879f9'%3E%3Crect x='66' y='100' width='4' height='6'/%3E%3Crect x='150' y='72' width='4' height='6'/%3E%3Crect x='250' y='86' width='4' height='6'/%3E%3Crect x='340' y='54' width='4' height='6'/%3E%3Crect x='430' y='78' width='4' height='6'/%3E%3Crect x='590' y='70' width='4' height='6'/%3E%3C/g%3E%3Cg fill='%23fbbf24'%3E%3Crect x='92' y='110' width='5' height='5'/%3E%3Crect x='188' y='96' width='5' height='5'/%3E%3Crect x='512' y='100' width='5' height='5'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 640px 180px repeat-x;
  opacity: 0.95;
}
.hw-skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 180'%3E%3Cg fill='%237dd3fc'%3E%3Crect x='168' y='62' width='3' height='5'/%3E%3Crect x='360' y='48' width='3' height='5'/%3E%3Crect x='560' y='52' width='3' height='5'/%3E%3C/g%3E%3C/svg%3E") 80px 100% / 640px 180px repeat-x;
  animation: hw-windows 3.6s ease-in-out infinite;
}
@keyframes hw-windows {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hw-siren {
  position: absolute;
  left: 7vw;
  bottom: 118px;
  width: 54px;
  height: 12px;
  border-radius: 999px;
  background: #0b1224;
}
/* Two lights fading in turn: opacity only, so the siren never repaints. */
.hw-siren::before,
.hw-siren::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: hw-siren 1.1s ease-in-out infinite;
}
.hw-siren::before { left: 0; box-shadow: -18px 0 26px #3b82f6; }
.hw-siren::after { right: 0; box-shadow: 18px 0 26px #fb7185; animation-delay: -0.55s; }
@keyframes hw-siren {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hw-fog {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -40px;
  height: 220px;
  background:
    radial-gradient(40% 55% at 20% 60%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(35% 50% at 55% 70%, rgba(232, 121, 249, 0.1), transparent 70%),
    radial-gradient(45% 60% at 85% 55%, rgba(56, 189, 248, 0.12), transparent 70%);
  filter: blur(14px);
  animation: hw-fog-drift 46s ease-in-out infinite alternate;
}
.hw-fog--front {
  bottom: -80px;
  opacity: 0.75;
  animation-duration: 31s;
  animation-direction: alternate-reverse;
}
@keyframes hw-fog-drift {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

@media (prefers-reduced-motion: reduce) {
  .hw-stars, .hw-stars::after, .hw-fog, .hw-skyline::after, .hw-siren::before, .hw-siren::after { animation: none !important; }
}
/* The player page stays open for hours and has many blurred panels over the sky; anything
   moving under a backdrop-filter makes the browser re-blur every frame, so the sky holds still. */
body.hw-home .hw-stars,
body.hw-home .hw-stars::after,
body.hw-home .hw-fog,
body.hw-home .hw-skyline::after,
body.hw-home .hw-siren::before,
body.hw-home .hw-siren::after { animation: none; }

/* ---------- Top bar ---------- */

.hw-topbar {
  position: relative;
  z-index: 30;
  height: var(--hw-topbar-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(8, 14, 32, 0.94), rgba(7, 12, 26, 0.9));
  border-bottom: 1px solid var(--hw-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(16px);
}
.hw-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85) 22%, rgba(232, 121, 249, 0.8) 58%, rgba(251, 146, 60, 0.7) 82%, transparent);
  opacity: 0.8;
}
.hw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--hw-bone);
  text-decoration: none;
  flex-shrink: 0;
}
.hw-brand svg { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55)); }
.hw-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.hw-brand-text strong {
  font-family: var(--hw-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #f8fbff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.65);
}
.hw-brand-text small {
  margin-top: 0.22rem;
  font-family: var(--hw-font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hw-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hw-nav a {
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  color: var(--hw-mist);
  text-decoration: none;
  font-family: var(--hw-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, background 0.15s ease;
}
.hw-nav a:hover { color: var(--hw-bone); background: rgba(56, 189, 248, 0.08); }
.hw-nav a.is-active,
body[data-hw-page="home"] .hw-nav a[data-hw-nav="home"],
body[data-hw-page="events"] .hw-nav a[data-hw-nav="events"],
body[data-hw-page="games"] .hw-nav a[data-hw-nav="games"],
body[data-hw-page="rules"] .hw-nav a[data-hw-nav="rules"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.05));
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}
.hw-nav a.is-active::after,
body[data-hw-page="home"] .hw-nav a[data-hw-nav="home"]::after,
body[data-hw-page="events"] .hw-nav a[data-hw-nav="events"]::after,
body[data-hw-page="games"] .hw-nav a[data-hw-nav="games"]::after,
body[data-hw-page="rules"] .hw-nav a[data-hw-nav="rules"]::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -9px;
  height: 3px;
  border-radius: 3px;
  background: var(--hw-pumpkin);
  box-shadow: 0 0 12px var(--hw-pumpkin), 0 0 24px rgba(56, 189, 248, 0.7);
}
.hw-nav a.hw-nav-admin { color: var(--hw-hex-light); }
.hw-nav a.hw-nav-admin:hover { color: #fff; background: rgba(232, 121, 249, 0.14); }

.hw-topbar-spacer { flex: 1; }
.hw-topbar-slot { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.hw-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--hw-line);
  background: rgba(8, 16, 36, 0.65);
  color: var(--hw-bone);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hw-user-chip:hover { border-color: var(--hw-line-strong); background: rgba(56, 189, 248, 0.1); }
.hw-user-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hw-pumpkin);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.hw-user-chip .hw-user-glyph {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1e3a5f, #0b1224);
  border: 2px solid var(--hw-pumpkin);
  font-size: 1rem;
}

.hw-topbar form.logout-form { margin: 0; }

/* ---------- Buttons ---------- */

.hw-btn,
.hw-topbar button.nav-logout,
.hw-topbar a.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--hw-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hw-bone);
  font: inherit;
  font-family: var(--hw-font-head);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hw-btn:hover:not(:disabled),
.hw-topbar button.nav-logout:hover { border-color: var(--hw-line-strong); background: rgba(56, 189, 248, 0.1); }
.hw-btn:active:not(:disabled) { transform: translateY(1px); }
.hw-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.hw-btn--pumpkin {
  color: #041018;
  border-color: #bff4ff;
  background: linear-gradient(180deg, #9aefff 0%, #2ec8ff 46%, #1d6dff 100%);
  box-shadow: 0 6px 18px rgba(46, 200, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: none;
}
.hw-btn--pumpkin:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(46, 200, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #9aefff 0%, #2ec8ff 46%, #1d6dff 100%);
}
.hw-topbar a.login-btn {
  color: #fff;
  border-color: #d8b4fe;
  background: linear-gradient(180deg, #c4b5fd 0%, #9146ff 52%, #6d28d9 100%);
  box-shadow: 0 8px 22px rgba(145, 70, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: none;
}
.hw-topbar a.login-btn:hover {
  filter: brightness(1.06);
  background: linear-gradient(180deg, #c4b5fd 0%, #9146ff 52%, #6d28d9 100%);
  box-shadow: 0 10px 26px rgba(145, 70, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hw-btn--hex {
  color: #fff;
  border-color: rgba(245, 208, 254, 0.55);
  background: linear-gradient(180deg, #e879f9 0%, #a21caf 100%);
  box-shadow: 0 6px 18px rgba(232, 121, 249, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hw-btn--hex:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(180deg, #e879f9 0%, #a21caf 100%); }
.hw-btn--slime {
  color: #052e16;
  border-color: rgba(187, 247, 208, 0.7);
  background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 50%, #16a34a 100%);
  box-shadow: 0 6px 18px rgba(74, 222, 128, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.hw-btn--slime:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 50%, #16a34a 100%); }

/* ---------- Panels ---------- */

.hw-panel {
  position: relative;
  border-radius: var(--hw-radius);
  border: 1px solid var(--hw-line);
  background: linear-gradient(180deg, var(--hw-panel-top), var(--hw-panel-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(56, 189, 248, 0.05);
}
.hw-panel--web::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  pointer-events: none;
  border-top-right-radius: var(--hw-radius);
  background:
    linear-gradient(135deg, transparent 46%, rgba(56, 189, 248, 0.55) 48% 52%, transparent 54%),
    linear-gradient(135deg, transparent 62%, rgba(232, 121, 249, 0.4) 64% 66%, transparent 68%);
  opacity: 0.7;
}
.hw-panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--hw-font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.hw-panel-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hw-pumpkin);
  box-shadow: 0 0 10px var(--hw-pumpkin);
  flex-shrink: 0;
}
.hw-display {
  font-family: var(--hw-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fbff;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}

/* ---------- Generic page shell for content pages ---------- */

.hw-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hw-page > .hw-topbar { position: sticky; top: 0; }
.hw-page-main {
  flex: 1;
  width: min(100% - 3rem, 80rem);
  margin: 0 auto;
  padding: 2.25rem 0 12rem;
}
.hw-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hw-page-head h1 {
  margin: 0;
  font-family: var(--hw-font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: #f8fbff;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
}
.hw-page-head p {
  margin: 0.5rem 0 0;
  color: var(--hw-mist);
}
.hw-page-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hw-section { margin-top: 2.25rem; }
.hw-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--hw-font-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hw-bone);
}
.hw-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hw-line-strong), transparent);
}
.hw-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--hw-line);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-size: 0.8rem;
  letter-spacing: 0;
}
.hw-empty-note {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--hw-line-strong);
  border-radius: var(--hw-radius);
  background: rgba(8, 16, 36, 0.66);
  color: var(--hw-mist);
}
.hw-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #dcfce7;
  font-weight: 600;
}
.hw-notice--warn { border-color: rgba(251, 146, 60, 0.5); background: rgba(251, 146, 60, 0.12); color: #ffedd5; }

.hw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  font-family: var(--hw-font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hw-badge--live { color: #dcfce7; background: rgba(74, 222, 128, 0.14); border-color: rgba(74, 222, 128, 0.5); }
.hw-badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hw-slime);
  box-shadow: 0 0 8px var(--hw-slime);
  animation: hw-live-pulse 1.6s ease-in-out infinite;
}
.hw-badge--soon { color: #ffedd5; background: rgba(251, 146, 60, 0.14); border-color: rgba(251, 146, 60, 0.5); }
.hw-badge--done { color: var(--hw-mist); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
@keyframes hw-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .hw-badge--live::before { animation: none; }
}

/* Character cutouts on content pages. They sit in the side margin on wide screens. */
.hw-cast {
  display: none;
}
@media (min-width: 1500px) {
  .hw-cast {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 200px;
    height: min(86vh, 760px);
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55));
  }
}
@media (min-width: 1800px) {
  .hw-cast { width: 280px; }
}

@media (max-width: 900px) {
  .hw-topbar {
    height: auto;
    min-height: var(--hw-topbar-h);
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    padding: 0.55rem 0.75rem;
  }
  .hw-nav { flex-wrap: wrap; }
  .hw-nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .hw-topbar a.login-btn,
  .hw-btn { white-space: nowrap; }
  .hw-page-head h1 { font-size: 2rem; }
  .hw-page-main { width: min(100% - 1.5rem, 80rem); }
}
