/* =========================================================
   NIGHT MODE / EVENT CONTROL ROOM / TAKEOVERS
   ========================================================= */

/* ---------- NIGHT MODE ---------- */
.night-veil {
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(124, 199, 255, .16), transparent 32%),
    linear-gradient(180deg, rgba(3, 5, 16, .7) 0%, rgba(2, 3, 9, .84) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .85s var(--ease);
}
body.night-mode .night-veil { opacity: 1; }
.night-veil__moon {
  position: absolute;
  top: 8%;
  right: 9%;
  width: clamp(78px, 10vw, 136px);
  height: clamp(78px, 10vw, 136px);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fbf7e8 0%, #d9e8ff 45%, rgba(124, 199, 255, .22) 72%, transparent 74%);
  box-shadow: 0 0 70px rgba(124, 199, 255, .42), 0 0 180px rgba(124, 199, 255, .18);
  opacity: .9;
}
.night-veil__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(244, 241, 232, .8), transparent 60%),
    radial-gradient(1px 1px at 28% 8%, rgba(244, 241, 232, .7), transparent 60%),
    radial-gradient(1.6px 1.6px at 44% 22%, rgba(185, 217, 255, .9), transparent 60%),
    radial-gradient(1px 1px at 61% 12%, rgba(244, 241, 232, .65), transparent 60%),
    radial-gradient(1.3px 1.3px at 73% 28%, rgba(244, 241, 232, .8), transparent 60%),
    radial-gradient(1px 1px at 88% 16%, rgba(185, 217, 255, .8), transparent 60%),
    radial-gradient(1.4px 1.4px at 18% 42%, rgba(244, 241, 232, .55), transparent 60%),
    radial-gradient(1px 1px at 36% 54%, rgba(244, 241, 232, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 54% 44%, rgba(185, 217, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 69% 58%, rgba(244, 241, 232, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 48%, rgba(244, 241, 232, .7), transparent 60%),
    radial-gradient(1px 1px at 94% 64%, rgba(185, 217, 255, .6), transparent 60%),
    radial-gradient(1px 1px at 8% 72%, rgba(244, 241, 232, .5), transparent 60%),
    radial-gradient(1.3px 1.3px at 24% 84%, rgba(244, 241, 232, .65), transparent 60%),
    radial-gradient(1px 1px at 48% 76%, rgba(185, 217, 255, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 66% 88%, rgba(244, 241, 232, .5), transparent 60%),
    radial-gradient(1px 1px at 82% 78%, rgba(244, 241, 232, .6), transparent 60%),
    radial-gradient(1.4px 1.4px at 92% 92%, rgba(185, 217, 255, .55), transparent 60%);
  opacity: .75;
  animation: nightTwinkle 6s ease-in-out infinite alternate;
}
.night-veil__shadow {
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: clamp(82px, 9vw, 128px);
  height: clamp(130px, 15vw, 210px);
  border-radius: 48% 48% 22% 22% / 38% 38% 12% 12%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(2, 4, 12, .94));
  filter: blur(1.5px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  animation: shadowFloat 4.6s ease-in-out infinite;
}
body.night-mode .night-veil__shadow { opacity: .92; transform: translateY(0); }
.night-veil__shadow i {
  position: absolute;
  top: 24%;
  width: 8%;
  height: 4%;
  border-radius: 50%;
  background: #b9d9ff;
  box-shadow: 0 0 9px rgba(185, 217, 255, .9);
}
.night-veil__shadow i:first-child { left: 30%; }
.night-veil__shadow i:last-child { right: 30%; }

.night-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.night-btn:hover { color: var(--cream); border-color: var(--line-strong); }
.night-btn__icon { font-size: 14px; line-height: 1; transform: translateY(-1px); }
.night-btn.is-on {
  border-color: rgba(124, 199, 255, .42);
  background: rgba(124, 199, 255, .08);
  color: #b9d9ff;
}
body.night-mode .onair { border-color: rgba(124, 199, 255, .3); color: #b9d9ff; }
body.night-mode .onair i { background: #b9d9ff; }
body.night-mode .hero__title-line--serif { color: #b9d9ff; text-shadow: 0 0 70px rgba(124, 199, 255, .2); }
body.night-mode .ticker-wrap { filter: hue-rotate(24deg) saturate(.78); }

/* ---------- EVENTS SECTION ---------- */
.events {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(123, 92, 255, .13), transparent 42%),
    radial-gradient(ellipse at 12% 88%, rgba(198, 255, 61, .06), transparent 38%),
    #07080d;
}
.events::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(244, 241, 232, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, .028) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 76%);
  pointer-events: none;
}
.events > * { position: relative; z-index: 1; }
.events__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}
.events .display { max-width: 800px; }
.events .display em { color: var(--lime); }
.events__intro {
  max-width: 360px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.events__signal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  color: rgba(244, 241, 232, .42);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}
.events__signal-track {
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}
.events__signal-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--violet), var(--pink));
  box-shadow: 0 0 14px rgba(198, 255, 61, .7);
  transition: width .15s linear;
}
.events__signal b {
  min-width: 42px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: right;
}
.events__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.event-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0c0d13;
  color: var(--cream);
  text-align: left;
  transition: transform .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}
.event-card--wide { grid-column: span 6; min-height: 300px; }
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 255, 61, .5);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .38);
}
.event-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.52) saturate(.95);
  transition: transform .9s var(--ease), filter .55s var(--ease);
}
.event-card:hover .event-card__img { transform: scale(1.06); filter: brightness(.68) saturate(1.05); }
.event-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 7, 10, .08) 0%, rgba(6, 7, 10, .88) 82%);
}
.event-card__index {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: transparent;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.09em;
  -webkit-text-stroke: 1px rgba(244, 241, 232, .34);
}
.event-card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(244, 241, 232, .28);
  border-radius: 999px;
  color: rgba(244, 241, 232, .7);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .15em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.event-card__body { position: relative; z-index: 2; display: block; }
.event-card__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}
.event-card__body span {
  display: block;
  max-width: 330px;
  margin-top: 8px;
  color: rgba(244, 241, 232, .66);
  font-size: 11px;
  line-height: 1.55;
}
.event-card__action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
}
.event-card__action i { font-style: normal; transition: transform .3s var(--ease); }
.event-card:hover .event-card__action i { transform: translate(3px, -3px); }
.events__hint {
  margin-top: 24px;
  color: rgba(244, 241, 232, .34);
  font-size: 9px;
  line-height: 1.6;
}
.events__hint kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(244, 241, 232, .05);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 8px;
}

/* ---------- TAKEOVER SHELL ---------- */
.takeover {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background: #06070a;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.takeover.is-active { visibility: visible; opacity: 1; }
.takeover__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.takeover__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 241, 232, .22);
  border-radius: 50%;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.takeover__close:hover {
  border-color: var(--lime);
  background: rgba(198, 255, 61, .08);
  transform: rotate(90deg);
}
.takeover__content {
  position: relative;
  z-index: 5;
  width: min(900px, 100%);
  max-height: 88vh;
  padding: 18px;
  overflow-y: auto;
  text-align: center;
}
.takeover__kicker {
  position: relative;
  z-index: 3;
  display: inline-block;
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
}
.takeover__word {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding-top: .12em;
  padding-bottom: .07em;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 13vw, 11rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.takeover__sub {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 28px auto 0;
  color: rgba(244, 241, 232, .68);
  font-size: 13px;
  line-height: 1.7;
}
.takeover__extra {
  position: relative;
  z-index: 3;
  margin-top: 26px;
}
.takeover__cta { position: relative; z-index: 4; margin-top: 26px; }
.takeover__cta[hidden] { display: none !important; }

/* ---------- TAKEOVER VARIANTS ---------- */
.takeover.is-yo {
  background: var(--lime);
  color: var(--ink);
}
.takeover.is-yo .takeover__kicker,
.takeover.is-yo .takeover__sub { color: rgba(6, 7, 10, .66); }
.takeover.is-yo .takeover__word {
  color: var(--ink);
  text-shadow: 10px 10px 0 rgba(123, 92, 255, .24);
  animation: yoStrobe .85s steps(2) infinite;
}
.takeover.is-yo .takeover__cta { background: var(--ink); color: var(--cream); }
.takeover.is-yo .takeover__close { border-color: rgba(6, 7, 10, .3); color: var(--ink); }

.takeover.is-door {
  background:
    radial-gradient(circle at 50% 42%, #20172f 0%, #0b0912 48%, #06070a 100%);
}
.takeover.is-door .takeover__word { color: var(--cream); }
.takeover.is-door .takeover__word em { color: var(--lime); font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.takeover.is-star {
  background:
    radial-gradient(circle at 50% 42%, #191244 0%, #0a0818 48%, #06070a 100%);
}
.takeover.is-star .takeover__word {
  color: var(--lime);
  text-shadow: 0 0 40px rgba(198, 255, 61, .4), 0 0 110px rgba(198, 255, 61, .18);
}
.takeover.is-star .takeover__sub { color: rgba(244, 241, 232, .72); }

.takeover.is-sky {
  background: linear-gradient(180deg, #07122e 0%, #0a1d4a 42%, #2b1a55 76%, #100a22 100%);
}
.takeover.is-sky .takeover__kicker { color: #b9d9ff; }
.takeover.is-sky .takeover__word {
  color: #e8f4ff;
  text-shadow: 0 0 40px rgba(124, 199, 255, .4), 0 0 120px rgba(124, 199, 255, .2);
}
.takeover.is-sky .takeover__sub { color: rgba(232, 244, 255, .72); }
.takeover.is-sky .takeover__cta { background: #b9d9ff; color: #07122e; }

.takeover.is-flame {
  background:
    radial-gradient(circle at 50% 82%, #ff8a00 0%, #c92a06 32%, #4b0a00 62%, #170300 100%);
}
.takeover.is-flame .takeover__kicker { color: #ffe7a3; }
.takeover.is-flame .takeover__word {
  color: #fff3d6;
  text-shadow: 0 0 28px #ffb347, 0 0 80px rgba(255, 92, 168, .4);
  animation: flameFlicker .24s infinite alternate;
}
.takeover.is-flame .takeover__sub { color: rgba(255, 243, 214, .76); }
.takeover.is-flame .takeover__cta { background: #fff3d6; color: #4b0a00; }

.takeover.is-glitch { background: #020203; }
.takeover.is-glitch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(244, 241, 232, .06) 3px 4px);
  pointer-events: none;
}
.takeover.is-glitch .takeover__kicker { color: #ff5ca8; }
.takeover.is-glitch .takeover__word {
  color: var(--cream);
  text-shadow: 3px 0 #ff5ca8, -3px 0 #7cc7ff;
  animation: glitchShift .22s steps(2) infinite;
}
.takeover.is-glitch .takeover__word::before,
.takeover.is-glitch .takeover__word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .7;
  pointer-events: none;
}
.takeover.is-glitch .takeover__word::before {
  color: #ff5ca8;
  transform: translate(-5px, 2px);
  clip-path: inset(12% 0 48% 0);
  animation: glitchSlice .35s steps(2) infinite;
}
.takeover.is-glitch .takeover__word::after {
  color: #7cc7ff;
  transform: translate(5px, -2px);
  clip-path: inset(52% 0 8% 0);
  animation: glitchSlice .28s steps(2) infinite reverse;
}
.takeover.is-glitch .takeover__sub { color: rgba(244, 241, 232, .58); }
body.is-glitching .topbar { animation: glitchBar .2s steps(2) infinite; }
body.is-glitching .grain { opacity: .1; }

/* ---------- BUG WINDOW (GLITCH SCENE) ---------- */
.bug-window {
  width: min(430px, 88vw);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: 10px;
  background: rgba(2, 2, 3, .86);
  box-shadow:
    0 0 0 1px rgba(255, 92, 168, .16),
    0 30px 90px rgba(0, 0, 0, .62);
  text-align: left;
}
.bug-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(244, 241, 232, .12);
  background: rgba(244, 241, 232, .045);
  color: rgba(244, 241, 232, .38);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
}
.bug-window__bar span:first-child {
  color: #ff5ca8;
  letter-spacing: .28em;
}
.bug-window__body { padding: 18px; }
.bug-window__body strong {
  display: block;
  color: #ff5ca8;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: .04em;
  text-shadow: 2px 0 rgba(124, 199, 255, .55), -2px 0 rgba(255, 92, 168, .55);
  animation: glitchShift .3s steps(2) infinite;
}
.bug-window__body p {
  margin-top: 10px;
  color: rgba(244, 241, 232, .6);
  font-size: 11px;
  line-height: 1.8;
}

.takeover.is-gladyo {
  background:
    radial-gradient(circle at 50% 26%, #4b0c0c 0%, #1a0606 38%, #06070a 72%);
}
.takeover.is-gladyo .takeover__kicker { color: #ffd36e; }
.takeover.is-gladyo .takeover__word {
  color: #ffd36e;
  text-shadow: 0 0 34px rgba(255, 92, 168, .4), 8px 8px 0 rgba(123, 92, 255, .3);
}
.takeover.is-gladyo .takeover__sub { color: rgba(255, 243, 214, .7); }

.takeover.is-azer {
  background:
    radial-gradient(circle at 50% 28%, #2b1d06 0%, #120d05 40%, #06070a 72%);
}
.takeover.is-azer .takeover__kicker { color: #ffd36e; }
.takeover.is-azer .takeover__word {
  color: #ffd36e;
  text-shadow: 0 0 40px rgba(255, 211, 110, .35), 8px 8px 0 rgba(123, 92, 255, .22);
}
.takeover.is-azer .takeover__sub { color: rgba(255, 243, 214, .72); }
.takeover.is-azer .takeover__cta { background: #ffd36e; color: #120d05; }

.takeover.is-yakup {
  background: radial-gradient(circle at 50% 34%, #0a1733 0%, #050a18 48%, #020308 100%);
}
.takeover.is-yakup .takeover__kicker { color: #b9d9ff; }
.takeover.is-yakup .takeover__word { color: #dcecff; text-shadow: 0 0 46px rgba(124, 199, 255, .32); }
.takeover.is-yakup .takeover__sub { color: rgba(220, 236, 255, .72); }
.takeover.is-yakup .takeover__cta { background: #b9d9ff; color: #07122e; }

.takeover.is-alican {
  background: radial-gradient(circle at 50% 30%, #2a0b2b 0%, #120616 48%, #06070a 100%);
}
.takeover.is-alican .takeover__kicker { color: #ff8dbe; }
.takeover.is-alican .takeover__word {
  color: #ff8dbe;
  text-shadow: 0 0 40px rgba(255, 92, 168, .4), 8px 8px 0 rgba(123, 92, 255, .25);
}
.takeover.is-alican .takeover__sub { color: rgba(255, 232, 244, .72); }
.takeover.is-alican .takeover__cta { background: #ff8dbe; color: #120616; }

.takeover.is-raid {
  background: radial-gradient(circle at 50% 30%, #3a0b16 0%, #16060b 45%, #06070a 100%);
}
.takeover.is-raid .takeover__kicker { color: #ff5ca8; }
.takeover.is-raid .takeover__word {
  color: #f4f1e8;
  text-shadow: 0 0 40px rgba(255, 92, 168, .4), 8px 8px 0 rgba(198, 255, 61, .18);
}
.takeover.is-raid .takeover__sub { color: rgba(244, 241, 232, .72); }
.takeover.is-raid .takeover__cta { background: var(--lime); color: var(--ink); }

/* ---------- RAID SCENE ---------- */
.raid-scene {
  width: min(420px, 88vw);
  margin: 0 auto;
}
.raid-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(198, 255, 61, .32);
  border-radius: 14px;
  background: rgba(6, 7, 10, .45);
}
.raid-count b {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.raid-count span {
  color: rgba(244, 241, 232, .5);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}
.raid-chat {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  text-align: left;
  font-size: 10px;
  color: rgba(244, 241, 232, .6);
}
.raid-chat span {
  padding: 6px 9px;
  border-left: 2px solid rgba(198, 255, 61, .4);
  background: rgba(244, 241, 232, .03);
  animation: raidChatIn .5s var(--ease) both;
}
.raid-chat span:nth-child(2) { animation-delay: .08s; }
.raid-chat span:nth-child(3) { animation-delay: .16s; }
.raid-chat span:nth-child(4) { animation-delay: .24s; }
.raid-chat span:nth-child(5) { animation-delay: .32s; }
.raid-chat b { color: var(--lime); font-weight: 600; }

/* ---------- MEDIA FRAME / AZER ---------- */
.media-frame {
  position: relative;
  width: min(390px, 86vw);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, .18);
  border-radius: 14px;
  background: #0b0c12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  aspect-ratio: 16 / 9;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
}
.media-frame--gold {
  border-color: rgba(255, 211, 110, .5);
  box-shadow:
    0 0 0 1px rgba(255, 211, 110, .16),
    0 30px 80px rgba(0, 0, 0, .55);
}
.media-frame--gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 7, 10, .74));
  pointer-events: none;
}
.media-frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgba(255, 211, 110, .4);
  border-radius: 999px;
  background: rgba(6, 7, 10, .5);
  color: #ffd36e;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .16em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- SLEEP SCENE / YAKUP ---------- */
.sleep-scene {
  position: relative;
  width: min(320px, 80vw);
  height: 190px;
  margin: 0 auto;
}
.sleep-moon {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: inset -16px -10px 0 0 #dcecff;
  filter: drop-shadow(0 0 24px rgba(185, 217, 255, .42));
  transform: translateX(-50%) rotate(-18deg);
}
.sleep-z {
  position: absolute;
  color: #b9d9ff;
  font-family: var(--font-display);
  font-weight: 700;
  opacity: 0;
  animation: sleepZ 4.2s ease-in-out infinite;
}
.sleep-z--1 { left: 58%; top: 30%; font-size: 18px; animation-delay: 0s; }
.sleep-z--2 { left: 66%; top: 22%; font-size: 25px; animation-delay: .9s; }
.sleep-z--3 { left: 76%; top: 12%; font-size: 34px; animation-delay: 1.8s; }
.sleep-pillow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 180px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #243b63, #111c33);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .12);
  transform: translateX(-50%);
}
.sleep-pillow::before,
.sleep-pillow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 46px;
  height: 26px;
  border-radius: 50%;
  background: rgba(185, 217, 255, .08);
  transform: translateY(-50%);
}
.sleep-pillow::before { left: 12px; }
.sleep-pillow::after { right: 12px; }

/* ---------- VINYL SCENE / ALICAN ---------- */
.vinyl-scene {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0b0b10 0 2px, #15151d 2px 4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 241, 232, .12);
  animation: vinylSpin 4.5s linear infinite;
}
.vinyl::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5ca8 0 18%, #7b5cff 18% 42%, #0b0b10 42% 100%);
}
.vinyl__label {
  position: absolute;
  inset: 38%;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f1e8;
  color: #06070a;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}
.vinyl__note {
  position: absolute;
  top: 6%;
  right: 4%;
  color: #ff8dbe;
  font-size: 34px;
  text-shadow: 0 0 18px rgba(255, 92, 168, .7);
  animation: noteFloat 3.2s ease-in-out infinite;
}
.vinyl__note--two {
  top: auto;
  right: auto;
  bottom: 8%;
  left: 2%;
  color: #b9d9ff;
  font-size: 26px;
  animation-delay: -1.4s;
}

.takeover.is-night {
  background: radial-gradient(circle at 50% 38%, #0a1733 0%, #050a18 48%, #020308 100%);
}
.takeover.is-night .takeover__kicker { color: #b9d9ff; }
.takeover.is-night .takeover__word { color: #dcecff; text-shadow: 0 0 46px rgba(124, 199, 255, .32); }
.takeover.is-night .takeover__sub { color: rgba(220, 236, 255, .72); }
.takeover.is-night .takeover__cta { background: #b9d9ff; color: #07122e; }

.takeover.is-ban {
  background:
    radial-gradient(circle at 50% 30%, #171a27 0%, #0a0b12 52%, #06070a 100%);
}
.takeover.is-ban .takeover__word {
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: .9;
  color: var(--cream);
}
.takeover.is-ban .takeover__kicker { color: #ffd36e; }

.takeover.is-bot {
  background:
    radial-gradient(circle at 50% 30%, #10251b 0%, #08120d 48%, #06070a 100%);
}
.takeover.is-bot .takeover__word {
  color: var(--kick);
  text-shadow: 0 0 40px rgba(83, 252, 24, .28);
}
.takeover.is-bot .takeover__kicker { color: var(--kick); }

/* ---------- DOOR SCENE ---------- */
.door-scene {
  position: relative;
  width: min(270px, 68vw);
  height: min(340px, 44vh);
  margin: 0 auto;
  perspective: 1000px;
}
.door-scene::before {
  content: '';
  position: absolute;
  inset: -18px -18px 0;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: 130px 130px 0 0;
  background: linear-gradient(180deg, rgba(244, 241, 232, .03), transparent 70%);
  pointer-events: none;
}
.door {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid rgba(244, 241, 232, .2);
  border-radius: 8px 8px 0 0;
  background: #090a10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.door__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(198, 255, 61, .3), transparent 62%);
  opacity: .8;
}
.door__face {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 78%;
  max-height: 88%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 46% 46% 0 0;
  filter: drop-shadow(0 0 30px rgba(198, 255, 61, .3));
  transform: translateX(-50%);
}
.door__panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, #191426, #2b2243 58%, #151020);
  border-right: 2px solid rgba(244, 241, 232, .18);
  transform-origin: left center;
  animation: doorOpen 1.15s .55s var(--ease) forwards;
  box-shadow: 12px 0 30px rgba(0, 0, 0, .35);
}
.door__panel::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f1e8, #8fbf1e);
  box-shadow: 0 0 10px rgba(198, 255, 61, .5);
  transform: translateY(-50%);
}
.door__panel::after {
  content: '0211';
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(244, 241, 232, .22);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .12em;
}
.door__knock {
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: 4;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  opacity: 0;
  transform: translateX(-50%);
  animation: knockFlash 1.2s .15s ease-out forwards;
}

/* ---------- STAR SCENE ---------- */
.star-burst {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto;
}
.star-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--lime);
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(198, 255, 61, .7);
  transform-origin: 0 0;
  animation: starOrbit 4.8s linear infinite;
}
.star-burst span:nth-child(1) { animation-delay: 0s; }
.star-burst span:nth-child(2) { animation-delay: -1.2s; color: #fff; }
.star-burst span:nth-child(3) { animation-delay: -2.4s; color: var(--violet); }
.star-burst span:nth-child(4) { animation-delay: -3.6s; color: var(--pink); }
.star-burst span:nth-child(5) { animation-delay: -4.4s; color: #7cc7ff; }

/* ---------- SKY SCENE ---------- */
.sky-scene { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sky-moon {
  position: absolute;
  top: 12%;
  right: 12%;
  width: clamp(86px, 11vw, 150px);
  height: clamp(86px, 11vw, 150px);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fffdf2 0%, #e7f2ff 42%, rgba(124, 199, 255, .24) 72%, transparent 74%);
  box-shadow: 0 0 60px rgba(185, 217, 255, .45), 0 0 180px rgba(124, 199, 255, .2);
}
.sky-stars { position: absolute; inset: 0; }
.sky-stars i {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #e8f4ff;
  opacity: var(--o, .7);
  animation: skyTwinkle var(--dur, 4s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.sky-shoot {
  position: absolute;
  top: 18%;
  left: -20%;
  width: 220px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e8f4ff);
  filter: drop-shadow(0 0 6px #b9d9ff);
  transform: rotate(18deg);
  animation: skyShoot 3.2s ease-in infinite;
}
.sky-shoot--two { top: 42%; animation-delay: 1.6s; animation-duration: 4.1s; }

/* ---------- FLAME SCENE ---------- */
.flame-scene { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.flame {
  position: absolute;
  bottom: -18%;
  width: 34vw;
  height: 70vh;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(ellipse at 50% 78%, #fff3d6 0%, #ffb347 18%, #ff5c00 42%, rgba(255, 92, 0, 0) 72%);
  filter: blur(14px);
  opacity: .6;
  animation: flameRise 2.8s ease-in-out infinite alternate;
}
.flame--1 { left: -8%; animation-delay: -0.4s; }
.flame--2 { left: 28%; width: 40vw; height: 82vh; animation-delay: -1.3s; opacity: .5; }
.flame--3 { right: -10%; animation-delay: -2s; }
.flame--4 { left: 12%; width: 18vw; height: 52vh; animation-delay: -0.9s; opacity: .7; }

/* ---------- GLADYO SCENE ---------- */
.gladyo-scene { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.gladyo-spot {
  position: absolute;
  top: -20%;
  width: 34vw;
  height: 130vh;
  background: linear-gradient(180deg, rgba(255, 211, 110, .22), transparent 72%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  animation: spotSway 5s ease-in-out infinite alternate;
}
.gladyo-spot--l { left: -6%; transform: rotate(8deg); }
.gladyo-spot--r { right: -6%; transform: rotate(-8deg); animation-delay: -2s; }
.gladyo-sword {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 211, 110, .16);
  font-size: clamp(120px, 24vw, 300px);
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-18deg);
}

/* ---------- BAN FORM ---------- */
.ban-form {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  margin: 0 auto;
  text-align: left;
}
.ban-form label {
  display: grid;
  gap: 6px;
  color: rgba(244, 241, 232, .48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ban-form input,
.ban-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(244, 241, 232, .05);
  color: var(--cream);
  font-size: 13px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.ban-form input:focus,
.ban-form select:focus { border-color: rgba(198, 255, 61, .55); background: rgba(198, 255, 61, .05); }
.ban-form select option { background: #0b0c12; color: var(--cream); }
.ban-form .btn { justify-self: start; margin-top: 4px; }
.ban-result {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(198, 255, 61, .4);
  border-radius: 14px;
  background: rgba(198, 255, 61, .08);
  text-align: left;
}
.ban-result strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.03em;
}
.ban-result p { margin-top: 8px; color: rgba(244, 241, 232, .68); font-size: 12px; line-height: 1.65; }
.ban-result b { color: var(--cream); }

/* ---------- BOT GAME ---------- */
.bot-game { width: min(470px, 100%); margin: 0 auto; }
.bot-game__screen {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 7, 10, .62);
  text-align: left;
}
.bot-game__screen.is-hit { animation: botHit .16s steps(2); }
.bot-game__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 241, 232, .5);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
}
.bot-game__row b { color: var(--cream); font-family: var(--font-display); font-size: 10px; }
.bot-game__bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 241, 232, .08);
}
.bot-game__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #ff8dbe);
  transition: width .08s linear;
}
.bot-game__bar--you i { background: linear-gradient(90deg, var(--lime), #53fc18); }
.bot-game__status {
  margin-top: 15px;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.6;
}
.bot-game__hit { margin-top: 16px; min-width: 210px; }
.bot-game__hint { margin-top: 10px; color: rgba(244, 241, 232, .38); font-size: 9px; line-height: 1.5; }
.bot-game.is-win .bot-game__bar i { background: linear-gradient(90deg, var(--lime), #53fc18); }
.bot-game.is-win .bot-game__status { color: var(--lime); }
.bot-game.is-lose .bot-game__status { color: #ff8dbe; }

/* ---------- CHAT LIVE FEED ---------- */
.chat-card__list li.is-new { background: rgba(198, 255, 61, .055); }

/* ---------- KEYFRAMES ---------- */
@keyframes nightTwinkle {
  from { opacity: .45; }
  to { opacity: .85; }
}
@keyframes sleepZ {
  0% { opacity: 0; transform: translate(0, 0) scale(.8); }
  24% { opacity: .8; }
  100% { opacity: 0; transform: translate(16px, -42px) scale(1.18); }
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .55; }
  50% { transform: translateY(-12px) rotate(6deg); opacity: 1; }
}
@keyframes raidChatIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shadowFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes yoStrobe {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.035) rotate(-.8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes doorOpen {
  0% { transform: rotateY(0deg); }
  70% { transform: rotateY(-108deg); }
  100% { transform: rotateY(-108deg); }
}
@keyframes knockFlash {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}
@keyframes flameFlicker {
  from { transform: scale(1) rotate(-.6deg); }
  to { transform: scale(1.025, .98) rotate(.6deg); }
}
@keyframes flameRise {
  from { transform: translateY(6%) scaleX(.94); opacity: .45; }
  to { transform: translateY(-4%) scaleX(1.06); opacity: .7; }
}
@keyframes glitchShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}
@keyframes glitchSlice {
  0% { clip-path: inset(12% 0 48% 0); }
  50% { clip-path: inset(42% 0 22% 0); }
  100% { clip-path: inset(62% 0 6% 0); }
}
@keyframes glitchBar {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2px, -1px); }
  100% { transform: translate(-1px, 1px); }
}
@keyframes starOrbit {
  from { transform: rotate(0deg) translateX(96px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(96px) rotate(-360deg); }
}
@keyframes skyTwinkle {
  from { opacity: .25; transform: scale(.8); }
  to { opacity: .9; transform: scale(1.2); }
}
@keyframes skyShoot {
  0% { transform: translate3d(0, 0, 0) rotate(18deg); opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translate3d(130vw, 38vh, 0) rotate(18deg); opacity: 0; }
}
@keyframes spotSway {
  from { transform: rotate(6deg) translateX(-2%); }
  to { transform: rotate(-6deg) translateX(2%); }
}
@keyframes botHit {
  0% { transform: translate(0, 0); }
  50% { transform: translate(3px, -2px); }
  100% { transform: translate(0, 0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .events__heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .events__intro { max-width: 560px; padding-bottom: 0; }
  .event-card,
  .event-card--wide { grid-column: span 6; min-height: 250px; }
}

@media (max-width: 680px) {
  .events__grid { grid-template-columns: 1fr; gap: 12px; }
  .event-card,
  .event-card--wide { grid-column: span 1; min-height: 235px; padding: 20px; }
  .event-card__body strong { font-size: 1.5rem; }
  .event-card__index { font-size: 38px; }
  .events__signal { font-size: 7px; }
  .night-btn { width: 34px; padding: 0; justify-content: center; }
  .night-btn__label { display: none; }
  .takeover { padding: 14px; }
  .takeover__content { max-height: 86vh; padding: 8px; }
  .takeover__word { font-size: clamp(2.8rem, 17vw, 6rem); }
  .takeover__sub { font-size: 12px; }
  .takeover__close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .door-scene { width: min(230px, 70vw); height: min(300px, 40vh); }
  .star-burst { width: 190px; height: 190px; }
  .star-burst span { animation-name: starOrbitSmall; }
  .media-frame { width: min(360px, 90vw); }
  .sleep-scene { height: 170px; }
  .vinyl-scene { width: 180px; height: 180px; }
  .ban-form .btn { width: 100%; }
  .bot-game__hit { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .takeover__word { font-size: 16vw; }
  .takeover.is-ban .takeover__word { font-size: 1.9rem; }
  .event-card__body span { font-size: 10px; }
}

@media (max-height: 720px) {
  .takeover { padding: 10px; }
  .takeover__content { max-height: 94vh; padding: 8px 14px 14px; }
  .takeover__word {
    margin-top: 6px;
    font-size: clamp(2.8rem, 10vw, 6.4rem);
  }
  .takeover__sub { margin-top: 16px; font-size: 12px; }
  .takeover__extra { margin-top: 16px; }
  .takeover__cta { margin-top: 16px; }
  .takeover__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 19px; }
  .raid-count { padding: 9px 12px; }
  .raid-count b { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .raid-chat span:nth-child(n+4) { display: none; }
  .sleep-scene,
  .vinyl-scene { margin-top: -10px; margin-bottom: -10px; transform: scale(.84); }
}

@media (max-height: 500px) {
  .takeover__content { max-height: 96vh; padding: 2px 10px 8px; }
  .takeover__kicker { font-size: 7px; }
  .takeover__word { margin-top: 2px; font-size: clamp(2.1rem, 8vw, 3.8rem); }
  .takeover__sub { margin-top: 8px; font-size: 11px; line-height: 1.45; }
  .takeover__extra { margin-top: 8px; }
  .takeover__cta { min-height: 38px; margin-top: 8px; padding: 10px 16px; }
  .raid-count { padding: 4px 8px; }
  .raid-count b { font-size: 1.45rem; }
  .raid-chat { display: none; }
  .media-frame { width: min(230px, 48vw); }
  .sleep-scene,
  .vinyl-scene { margin: -28px 0; transform: scale(.55); }
}

@keyframes starOrbitSmall {
  from { transform: rotate(0deg) translateX(72px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(72px) rotate(-360deg); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .night-veil,
  .night-veil__shadow,
  .event-card,
  .event-card__img,
  .takeover,
  .takeover__word,
  .takeover__word::before,
  .takeover__word::after,
  .bug-window__body strong,
  .door__panel,
  .flame,
  .gladyo-spot,
  .star-burst span,
  .sky-stars i,
  .sky-shoot,
  .sleep-z,
  .vinyl,
  .vinyl__note,
  .raid-chat span {
    animation: none !important;
    transition: none !important;
  }
  .door__panel { transform: rotateY(-108deg); }
  .night-veil__shadow { opacity: .92; transform: none; }
  .sky-shoot { opacity: 0; }
}
