:root {
  --ink: #090f0d;
  --ink-soft: #111b17;
  --panel: #17231e;
  --panel-light: #22372c;
  --line: rgba(213,235,221,.18);
  --text: #f4f8f5;
  --muted: #bacdc2;
  --gold: #c6a356;
  --gold-bright: #f5d98c;
  --gold-dark: #72613c;
  --christmas-red: #b72e43;
  --christmas-green: #184e35;
}

body { background: var(--ink); }
.christmas-site { padding-inline: 24px; }
.recruitment-strip { color: #fff; background: #98263a; }
.site-header { background: rgba(9,15,13,.97); border-bottom-color: var(--line); }
.nav-menu { color: var(--text); }
.nav-submenu, .admin-nav-group { background: #13251c; border-color: var(--gold-dark); }
.nav-submenu a:hover, .nav-logout-form button:hover { background: #214431; }
.brand-mark, .footer-brand .brand-mark { border-radius: 0; object-fit: contain; }

.hero {
  --hero-gutter: max(76px, calc((100% - 1480px) / 2));
  min-height: calc(100svh - 155px);
  padding: 72px var(--hero-gutter) 96px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero::before { background: #0e2017 url('../images/christmas-hero-evergreen.png') center / cover no-repeat; }
.hero .grid-pattern { display: none; }
.hero h1 { font-size: 96px; letter-spacing: 0; }
.hero-copy { position: relative; z-index: 1; width: auto; min-width: 0; margin: 0; padding: 0; }
.hero-copy>p:not(.eyebrow) { max-width: 640px; margin-block: 24px; color: var(--muted); font-size: 18px; }
.hero-visual {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  width: min(100%, 560px, max(180px, calc(100svh - 310px)));
  margin: 0 auto;
  transform: none;
}
.hero-visual>img {
  width: 90%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}
.hero-visual .command-deck, .hero-visual .logo-rings { display: none; }
.hero-status { left: var(--hero-gutter); letter-spacing: 0; }

.primary, .nav-menu .nav-apply, .nav-menu .nav-apply:hover, .dark-button {
  color: #fff;
  background: var(--christmas-red);
  border-color: #e56f7e;
}
.primary:hover, .dark-button:hover { color: #fff; background: #cc3e54; }
.secondary { color: var(--gold-bright); background: #11271b; }
.button, .nav-menu .nav-portal { border-color: var(--gold); }
.button, .eyebrow, .founder-role { letter-spacing: 0; }
.stats-bar { color: var(--text); background: #18412e; }
.stats-bar strong { color: var(--gold-bright); letter-spacing: 0; }
.stats-bar div { border-color: rgba(213,235,221,.2); }

.radio-section, .divisions, .pay-system, .apply-section, .unit-apply, .site-footer, .blank-main {
  background: var(--ink-soft);
  border-color: var(--line);
}
.radio-shell, .pay-card, .founder-card, .division-grid article, .blank-heading,
.admin-panel, .rank-division, .ic-division, .training-script-panel, .coc-card,
.newsletter-viewer, .punishment-card, .alliance-card, .donator-card {
  background: var(--panel);
  border-color: var(--line);
}
.founder-card:hover, .division-grid article:hover, .ic-slot:hover { border-color: var(--gold); }
.founder-avatar, .ic-avatar, .radio-dj-avatar { background: #0e1712; border-color: var(--gold); }
.radio-shell::after { display: none; }
.radio-top i { background: #86d8ae; box-shadow: 0 0 8px #86d8ae; }
.radio-heart { color: #ffacba; background: #35171f; border-color: #b95469; }
.radio-play, .radio-live-flag { color: #101a13; background: var(--gold-bright); border-color: #f8e6b8; }
.christmas-radio-art {
  display: block;
  width: 293px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 293 / 321;
  margin: 24px auto 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.apply-section, .unit-apply,
.apply-section h2, .apply-section em, .apply-section>div:last-child p,
.unit-apply h2, .unit-apply em, .unit-apply p { color: var(--text); }
.apply-section .eyebrow.dark, .unit-apply .eyebrow.dark { color: var(--gold-bright); }
.apply-section .eyebrow.dark span { background: currentColor; }
.section h2, .radio-copy h2, .apply-section h2, .blank-heading h1, .founder-card h3 { letter-spacing: 0; }

/* Keep snowfall inside the viewport without changing the document's scrolling. */
#snow {
  position: fixed;
  inset: 0;
  z-index: 18;
  overflow: hidden;
  contain: strict;
  opacity: .65;
}
#snow, #snow * { pointer-events: none; user-select: none; }
#snow .snowflake {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: linear-gradient(white, white);
  border-radius: 50%;
  filter: drop-shadow(0 0 2px white);
}
.christmas-site #snow.is-paused .snowflake { animation-play-state: paused; }

/* Decorative rails live outside the content gutter and never capture input. */
.christmas-lights, .christmas-lights * { pointer-events: none; user-select: none; }
.christmas-light-string {
  position: fixed;
  z-index: 19;
  top: 0;
  bottom: 0;
  display: flex;
  width: 18px;
  padding-block: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  contain: layout;
}
.christmas-light-string--left { left: 3px; }
.christmas-light-string--right { right: 3px; }
.christmas-light-string::before {
  position: absolute;
  inset-block: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: #325b40;
  content: "";
}
.christmas-bulb {
  --bulb-color: #ff657a;
  position: relative;
  display: block;
  width: 9px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--bulb-color);
  background: currentColor;
  border-radius: 45% 45% 55% 55%;
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  transform: rotate(14deg);
  animation: christmas-light-chase 6s ease-in-out infinite;
  animation-delay: calc(var(--bulb-index) * .25s - 6s);
}
.christmas-light-string--right .christmas-bulb { animation-delay: calc(var(--bulb-index) * -.25s); }
.christmas-bulb:nth-child(2n) { transform: rotate(-14deg); }
.christmas-bulb:nth-child(4n+2) { --bulb-color: #86e1b1; }
.christmas-bulb:nth-child(4n+3) { --bulb-color: #f8dc8e; }
.christmas-bulb:nth-child(4n) { --bulb-color: #d7eef8; }
.christmas-bulb::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: calc(100% - 2px);
  height: 5px;
  border-radius: 1px;
  background: #426b4c;
  content: "";
}
.christmas-bulb::after {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255,255,255,.85);
  content: "";
}
@keyframes christmas-light-chase {
  0%, 12%, 100% { opacity: 1; }
  42%, 75% { opacity: .32; }
}

@media (max-width: 1100px) {
  .hero { --hero-gutter: 32px; padding-block: 56px 76px; gap: 32px; }
  .hero h1 { font-size: 64px; }
  .hero-visual { opacity: 1; }
}
@media (max-width: 760px) {
  .christmas-site { padding-inline: 12px; }
  .christmas-light-string { width: 10px; }
  .christmas-light-string--left { left: 1px; }
  .christmas-light-string--right { right: 1px; }
  .christmas-bulb { width: 6px; height: 10px; flex-basis: 10px; box-shadow: 0 0 4px currentColor; }
  .christmas-bulb::after { left: 1px; width: 1px; }
  .hero { --hero-gutter: 20px; display: flex; min-height: auto; padding: 28px var(--hero-gutter) 52px; flex-direction: column; gap: 14px; align-items: stretch; }
  .hero::before { background-image: url('../images/christmas-hero-evergreen-mobile.png'); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 48px; }
  .hero-copy>p:not(.eyebrow) { margin-block: 16px; font-size: 16px; }
  .hero .actions { gap: 8px; }
  .hero .button { min-height: 44px; }
  .hero-visual { width: 160px; max-width: 80%; }
  .hero-status { right: 0; left: 0; justify-content: center; font-size: 8px; gap: 7px; text-shadow: 0 1px 4px #08140e; }
  .nav-menu { right: 12px; left: 12px; }
  .christmas-radio-art { width: 220px; margin: 24px auto 0; }
}
@media (max-height: 560px) {
  .christmas-bulb { height: 8px; flex-basis: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
  .christmas-bulb, .logo-rings { animation: none; opacity: .85; }
}
@media print {
  #snow, .christmas-lights { display: none; }
  .christmas-site { padding-inline: 0; }
}
