/* ---------- Gece çubuğu (nightclock.js) ---------- */
#nightclock { position: fixed; z-index: 61; width: 280px; user-select: none; background: #0d0b14e8; border: 1px solid #3a3150; border-radius: 10px; padding: 6px 10px 8px; box-shadow: 0 8px 22px #000b; color: #e6e1f2; }
#nightclock.hidden { display: none; }
#nightclock .nc-head { display: flex; align-items: baseline; gap: 8px; cursor: grab; touch-action: none; padding-bottom: 4px; }
#nightclock .nc-head:active { cursor: grabbing; }
#nightclock .nc-day { flex: 1; font-size: 11.5px; color: #a79fbf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nightclock .nc-time { font: 700 15px ui-monospace, Consolas, monospace; color: #f3e6c8; }
#nightclock .nc-track { position: relative; display: flex; padding-top: 4px; touch-action: none; }
body.is-gm #nightclock .nc-track { cursor: ew-resize; }
#nightclock .nc-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: #2a2438; overflow: hidden; }
#nightclock .nc-fill { height: 100%; background: linear-gradient(90deg, #c8322a, #6a5bc4 50%, #e9a6a0); transition: width .35s; }
#nightclock.dragging .nc-fill, #nightclock.dragging .nc-knob { transition: none; }
#nightclock .nc-knob { position: absolute; bottom: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #f3e6c8; box-shadow: 0 0 0 2px #0d0b14, 0 0 8px #f3e6c8aa; transition: left .35s; pointer-events: none; }
#nightclock .nc-seg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0 10px; background: none; border: 0; color: #7d7594; opacity: .45; cursor: inherit; transition: opacity .25s, transform .25s; }
#nightclock .nc-seg svg { width: 26px; height: 26px; }
#nightclock .nc-seg small { font-size: 10.5px; white-space: nowrap; }
#nightclock .nc-seg.past { opacity: .3; }
#nightclock .nc-seg.on { opacity: 1; color: #f3e6c8; transform: scale(1.12); }
#nightclock .nc-gm { display: none; justify-content: flex-end; gap: 4px; margin-top: 8px; }
body.is-gm #nightclock .nc-gm { display: flex; }
#nightclock .nc-gm .btn { padding: 2px 8px; }
#nightclock .nc-gm .grow { flex: 1; }
/* saat cetveli: 20:00 … 06:00, iki saatte bir */
#nightclock .nc-ticks { position: relative; height: 14px; margin-top: 3px; font: 9.5px ui-monospace, Consolas, monospace; color: #7d7594; }
#nightclock .nc-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
#nightclock .nc-ticks span:first-child { transform: none; }
#nightclock .nc-ticks span:last-child { transform: translateX(-100%); }
#nightclock .nc-seg { min-width: 0; }
/* sürüklerken düğmenin üstünde hedef saat */
#nightclock .nc-pv { display: none; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: #f3e6c8; color: #0d0b14; font: 700 11px ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
#nightclock.dragging .nc-pv { display: block; }
#nightclock[data-phase="3"] .nc-fill { background: linear-gradient(90deg, #c8322a, #6a5bc4 50%, #f0c27a); }
