/* New Year's Eve at Helm's Deep: banner, waiting screen, sync bar. */
.ny-banner, .ny-wait, .ny-bar {
  --ny-gold: #d6aa5a;
  --ny-gold-hi: #f6d78a;
  --ny-ink: #f1e8d7;
  --ny-dim: #b9b3cf;
  color: var(--ny-ink);
  color-scheme: dark;
}
.ny-banner select, .ny-wait select { background: #1b1638; color: var(--ny-ink); border: 1px solid rgba(214,170,90,0.55); border-radius: 8px; padding: 5px 8px; font: inherit; }
.ny-banner select option, .ny-wait select option { background: #1b1638; color: var(--ny-ink); }
.ny-banner input[type="checkbox"], .ny-wait input[type="checkbox"] { accent-color: var(--ny-gold); }

.ny-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1.4px 1.4px at 12% 20%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 60%, #dfe8ff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 44% 14%, #f6d78a 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 44%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 78% 22%, #dfe8ff 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 5% 72%, #f6d78a 50%, transparent 52%),
    radial-gradient(1px 1px at 55% 78%, #fff 50%, transparent 52%),
    linear-gradient(180deg, #0a0c22 0%, #17143a 50%, #2b2050 100%);
  animation: ny-twinkle 5s ease-in-out infinite alternate;
}
@keyframes ny-twinkle { from { filter: brightness(0.9); } to { filter: brightness(1.12); } }
.ny-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; }
.ny-torch { transform-box: fill-box; transform-origin: center; animation: ny-flicker 2.2s ease-in-out infinite; }
.ny-torch.t2 { animation-delay: -0.8s; animation-duration: 2.7s; }
.ny-torch.t3 { animation-delay: -1.5s; animation-duration: 1.9s; }
@keyframes ny-flicker { 0%, 100% { opacity: 0.65; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.12); } }
.ny-moon { position: absolute; width: 64px; height: 64px; top: 14px; right: 210px; opacity: 0.95; pointer-events: none; }
.ny-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ny-snow i { position: absolute; top: -8px; border-radius: 50%; background: #fff; animation: ny-fall linear infinite; }
@keyframes ny-fall { 0% { top: -8px; margin-left: 0; } 50% { margin-left: 14px; } 100% { top: 104%; margin-left: -6px; } }
.ny-corner { position: absolute; width: 46px; height: 46px; opacity: 0.85; pointer-events: none; z-index: 4; }
.ny-corner.tl { top: 6px; left: 6px; }
.ny-corner.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.ny-corner.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.ny-corner.br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

.ny-kicker { font-family: 'Cinzel', Georgia, serif; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ny-gold-hi); font-weight: 700; }
.ny-title, .ny-wait-title { font-family: 'Cinzel', Georgia, serif; font-weight: 700; margin: 6px 0 8px; line-height: 1.18; background: linear-gradient(180deg, #fff6d6 10%, #d6aa5a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.ny-title { font-size: clamp(22px, 3.6vw, 34px); }
.ny-sub { margin: 0; color: var(--ny-dim); font-size: 15px; line-height: 1.5; max-width: 52ch; }

.ny-banner { position: relative; overflow: hidden; margin: 0 0 24px; border-radius: 18px; border: 1px solid rgba(214,170,90,0.6); box-shadow: 0 12px 40px rgba(6,4,24,0.65), inset 0 0 0 1px rgba(214,170,90,0.14); }
.ny-banner[hidden] { display: none; }
.ny-content { position: relative; z-index: 3; padding: 26px 30px 22px; }
.ny-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ny-head-text { min-width: 0; }
.ny-clockwrap { position: relative; width: 150px; height: 150px; flex: none; }
.ny-clockwrap .ny-ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(246,215,138,0.35)); }
.ny-clock-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ny-clock-label { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ny-dim); }
.ny-clock-main { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 25px; color: var(--ny-gold-hi); font-variant-numeric: tabular-nums; line-height: 1.15; }
.ny-clock-sub { font-size: 12.5px; color: var(--ny-dim); font-variant-numeric: tabular-nums; }

.ny-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.ny-plan { position: relative; display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(214,170,90,0.65); background: linear-gradient(90deg, rgba(7,7,22,0.94) 0%, rgba(7,7,22,0.78) 55%, rgba(7,7,22,0.4) 100%), var(--bg) center / cover; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.ny-plan:hover { transform: translateY(-2px); border-color: var(--ny-gold-hi); box-shadow: 0 8px 26px rgba(246,215,138,0.22); }
.ny-plan.dim { opacity: 0.5; }
.ny-plan img { width: 58px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; border: 1px solid var(--ny-gold); box-shadow: 0 4px 14px rgba(0,0,0,0.55); flex: none; }
.ny-plan-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ny-plan-name { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 16px; letter-spacing: 0.03em; }
.ny-plan-when { font-size: 13px; color: var(--ny-dim); font-variant-numeric: tabular-nums; line-height: 1.4; }
.ny-plan-go { flex: none; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: linear-gradient(180deg, #f6d78a, #c99a44); color: #241705; }

.ny-details { margin-top: 14px; text-align: left; }
.ny-details summary { cursor: pointer; color: #d9c9a4; font-size: 13px; }
.ny-details .ny-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--ny-ink); }
.ny-details .ny-opts label { display: flex; align-items: center; gap: 8px; }

/* Waiting screen inside the player */
.ny-wait { position: absolute; inset: 0; z-index: 25; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ny-wait[hidden] { display: none; }
.ny-wait-art { position: absolute; inset: 0; background: var(--bg) center / cover; opacity: 0.2; filter: blur(2px); }
.ny-wait .ny-scene { height: 46%; }
.ny-wait-card { position: relative; z-index: 3; text-align: center; max-width: 580px; margin: auto; }
.ny-wait-top { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ny-wait-poster { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--ny-gold); box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.ny-wait .ny-clockwrap { width: 168px; height: 168px; }
.ny-wait .ny-clock-main { font-size: 28px; }
.ny-wait-title { font-size: clamp(18px, 2.6vw, 24px); margin: 10px 0 6px; }
.ny-wait-sub { color: var(--ny-dim); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.ny-wait-buttons { display: flex; justify-content: center; }
.ny-btn { font: inherit; font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(214,170,90,0.6); background: rgba(10,8,30,0.6); color: var(--ny-ink); cursor: pointer; }
.ny-btn.primary { border: 0; background: linear-gradient(180deg, #f6d78a, #c99a44); color: #241705; box-shadow: 0 0 20px rgba(246,215,138,0.35); }
.ny-btn.primary.armed { background: linear-gradient(180deg, #a9dfb7, #5fa374); box-shadow: 0 0 20px rgba(127,216,160,0.35); }
.ny-link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ny-dim); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ny-wait .ny-details { text-align: center; }
.ny-wait .ny-details .ny-opts { align-items: center; }

/* Sync bar under the player */
.ny-bar { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px 12px 14px; margin: 12px 0; border-radius: 14px; border: 1px solid rgba(214,170,90,0.6); background: linear-gradient(90deg, #0f0d28 0%, #1a1543 60%, #261b52 100%); overflow: hidden; }
.ny-bar[hidden] { display: none; }
.ny-bar > * { position: relative; z-index: 2; }
.ny-bar .ny-corner { width: 28px; height: 28px; z-index: 1; }
.ny-bar-posters { display: flex; align-items: center; gap: 8px; }
.ny-bar-posters img { width: 38px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; border: 1px solid rgba(214,170,90,0.4); opacity: 0.45; filter: grayscale(0.6); }
.ny-bar-posters img.on { opacity: 1; filter: none; border-color: var(--ny-gold-hi); box-shadow: 0 0 14px rgba(246,215,138,0.4); }
.ny-bar-arrow { color: var(--ny-gold); font-size: 16px; }
.ny-bar-main { flex: 1 1 260px; min-width: 0; }
.ny-bar-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 14px; }
.ny-lamp { width: 11px; height: 11px; border-radius: 50%; background: #7fd8a0; box-shadow: 0 0 10px #7fd8a0; }
.ny-lamp.warn { background: #e8b04a; box-shadow: 0 0 10px #e8b04a; }
.ny-lamp.off { background: #8b86a3; box-shadow: none; }
.ny-bar-status { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: 0.04em; }
.ny-bar-status.ok { color: #9be6b5; }
.ny-bar-status.warn { color: #f0c169; }
.ny-bar-status.off { color: var(--ny-dim); }
.ny-bar-mid { color: var(--ny-dim); font-variant-numeric: tabular-nums; }
.ny-bar-btn { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--ny-gold); background: rgba(10,8,30,0.5); color: var(--ny-gold-hi); cursor: pointer; }
.ny-track { position: relative; height: 8px; margin: 10px 20px 2px 0; border-radius: 999px; background: rgba(241,232,215,0.14); }
.ny-track-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b8863a, #f6d78a); transition: width 0.5s linear; }
.ny-track-ring { position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; }
.ny-track-caption { display: flex; justify-content: space-between; margin: 6px 20px 0 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ny-dim); }

.ny-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 26; background: rgba(12,10,30,0.92); border: 1px solid var(--ny-gold); color: var(--ny-ink); padding: 8px 14px; border-radius: 999px; font-size: 13px; }

@media (max-width: 720px) {
  .ny-plans { grid-template-columns: 1fr; }
  .ny-head { flex-direction: column-reverse; align-items: flex-start; }
  .ny-moon,   .ny-content { padding: 22px 18px 18px; }
  .ny-wait-top { flex-direction: column; gap: 10px; }
  .ny-wait-poster { width: 70px; }
  .ny-wait .ny-clockwrap { width: 140px; height: 140px; }
  .ny-plan-go { display: none; }
}

.ny-hero { position: relative; min-height: 250px; overflow: hidden; }
.ny-hero .ny-scene { height: 74%; }
.ny-hero .ny-head { position: relative; z-index: 3; padding: 28px 34px 0; }
.ny-plans-area { position: relative; z-index: 3; padding: 6px 30px 22px 36px; background: linear-gradient(180deg, #0a0c1c 0%, #0d0b24 100%); }
.ny-plans-area .ny-plans { margin-top: 10px; }
.ny-plans-area .ny-details { margin-left: 4px; }
.ny-moon { right: 205px; top: 14px; }

.ny-hero .ny-sky { background: linear-gradient(90deg, rgba(6,8,22,0.86) 0%, rgba(6,8,22,0.4) 46%, rgba(6,8,22,0) 78%), url('/newyear-helmsdeep.webp') center 44% / cover; animation: none; }
.ny-hero { min-height: 275px; }
.ny-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(10,12,28,0), #0a0c1c); pointer-events: none; z-index: 2; }

.ny-fw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.ny-plan-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ny-when-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #d9c9a4; }
.ny-when-time { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 20px; color: #ffe39a; text-shadow: 0 0 14px rgba(246,215,138,0.45); }
.ny-when-in { font-size: 14px; font-weight: 700; color: #16100a; background: linear-gradient(180deg, #f6d78a, #d6aa5a); border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.ny-when-in.soon { background: linear-gradient(180deg, #ffb86b, #e0762b); }
.ny-when-in.late { background: linear-gradient(180deg, #ffb86b, #e0762b); }
.ny-when-note { font-size: 13px; color: #e8dcc0; }
.ny-begin-note { margin: 12px 4px 0; font-size: 13.5px; line-height: 1.5; color: #e8dcc0; }
.ny-begin-note b { color: #ffe39a; }

.ny-link { padding: 8px 18px; border: 1px solid rgba(214,170,90,0.55); border-radius: 999px; background: rgba(10,8,30,0.7); color: #f1e8d7; font-size: 14px; text-decoration: none; }
.ny-link:hover { background: rgba(214,170,90,0.2); }
.ny-wait-card { width: 100%; box-sizing: border-box; padding: 0 6px; }
.ny-wait-title { overflow-wrap: anywhere; }
