/* Threshold notifications (threshold-notices.js). Glass cards in the cave light; techno type; no orange. */
.tn-layer{position:fixed;inset:0;z-index:70;pointer-events:none;contain:layout style}
.tn-layer[hidden]{display:none}
.tn-cards{position:absolute;inset:0;z-index:1}
.tn-card{position:absolute;left:0;top:0;width:min(212px,calc(100vw - 32px));opacity:0;visibility:hidden;pointer-events:none;transform-origin:50% 50%;will-change:transform;touch-action:none;user-select:none;-webkit-user-select:none}
.tn-card.is-out{opacity:1;visibility:visible;pointer-events:auto}
.tn-body{display:grid;gap:2px;padding:7px 24px 7px 11px;border:1px solid rgba(186,236,244,.2);border-radius:4px;background:linear-gradient(160deg,rgba(14,20,28,.9),rgba(5,7,12,.92));box-shadow:0 18px 44px rgba(0,0,0,.5),0 0 0 1px rgba(0,0,0,.4),0 0 28px rgba(124,246,255,.08) inset;color:#eef6f6;text-decoration:none;cursor:grab;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}
.tn-body::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:2px;border-radius:2px;background:var(--tn-accent,#7cf6ff);box-shadow:0 0 12px var(--tn-accent,#7cf6ff)}
.tn-body::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 30%,rgba(190,250,255,.16) 48%,transparent 66%);transform:translateX(-110%)}
/* no shine runs across a card as it arrives: it read as a flash */
.tn-card:hover .tn-body,.tn-body:focus-visible{border-color:rgba(186,236,244,.42)}
.tn-body:focus-visible{outline:2px solid #a8f5fb;outline-offset:3px}
.tn-card.is-dragging .tn-body{cursor:grabbing;box-shadow:0 26px 60px rgba(0,0,0,.6),0 0 0 1px rgba(124,246,255,.35),0 0 36px rgba(124,246,255,.14) inset}
.tn-card[data-tag=LIVE]{--tn-accent:#7dffb2}
.tn-card[data-tag=UPDATE]{--tn-accent:#a78bff}
.tn-card[data-tag=EVENT],.tn-card[data-tag=DROP]{--tn-accent:#ff7ad9}
.tn-tag{justify-self:start;font:800 7px/1 "DREAMERS Orbitron","DREAMERS Rajdhani",Arial,sans-serif;letter-spacing:.2em;padding:2px 4px 2px;border:1px solid var(--tn-accent,#7cf6ff);border-radius:2px;color:var(--tn-accent,#7cf6ff)}
.tn-title{font:900 11px/1.15 "DREAMERS Orbitron","DREAMERS Rajdhani",Arial,sans-serif;letter-spacing:.035em;text-transform:uppercase;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tn-line{font:700 11px/1.25 "DREAMERS Rajdhani",Arial,sans-serif;letter-spacing:.035em;text-transform:uppercase;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:rgba(232,242,242,.74)}
.tn-close{position:absolute;top:3px;right:3px;width:22px;height:22px;display:grid;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:rgba(232,242,242,.62);cursor:pointer}
.tn-close::before{content:"";position:absolute;inset:-5px}.tn-close svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tn-close:hover,.tn-close:focus-visible{color:#fff;background:rgba(255,255,255,.08)}
.tn-close:focus-visible{outline:2px solid #a8f5fb;outline-offset:1px}
.tn-bell{position:fixed;z-index:3;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:46px;height:46px;display:grid;place-items:center;padding:0;border:1px solid rgba(186,236,244,.32);border-radius:50%;background:rgba(6,10,14,.78);color:#e9f8f8;cursor:pointer;pointer-events:auto;box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 22px rgba(124,246,255,.12);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:tnBellIn .6s ease-in-out both}
.tn-bell[hidden]{display:none}
.tn-bell svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.tn-bell:hover,.tn-bell:focus-visible{border-color:#a8f5fb;color:#fff}
.tn-bell:focus-visible{outline:2px solid #a8f5fb;outline-offset:3px}
.tn-bell[aria-expanded=true]{border-color:rgba(168,245,251,.7)}
.tn-badge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;display:grid;place-items:center;background:#7cf6ff;color:#001014;font:900 10px/1 "DREAMERS Orbitron",Arial,sans-serif;box-shadow:0 0 12px rgba(124,246,255,.6)}
.tn-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@keyframes tnSweep{to{transform:translateX(110%)}}
@keyframes tnBellIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .tn-card{width:min(236px,calc(100vw - 24px))}
 .tn-body{padding:7px 26px 7px 10px;gap:2px}
 .tn-title{font-size:11px}.tn-line{font-size:10.5px}
 .tn-bell{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:44px;height:44px}
}
/* Reduced motion and MOTION OFF: no flights, cards simply fade. */
@media(prefers-reduced-motion:reduce){.tn-card{transition:opacity .3s ease,visibility 0s linear .3s}.tn-card.is-out{transition-delay:0s}.tn-bell{animation:none}.tn-card .tn-body::after{animation:none!important}}
body[data-motion=off] .tn-card{transition:opacity .3s ease,visibility 0s linear .3s}
body[data-motion=off] .tn-card.is-out{transition-delay:0s}
body[data-motion=off] .tn-bell{animation:none}
/* Nothing new: the bell still answers, with a short note just above it. */
.tn-badge[hidden]{display:none}
.tn-empty{position:absolute;left:0;top:0;width:min(260px,calc(100vw - 32px));display:grid;gap:4px;padding:12px 15px;border:1px solid rgba(186,236,244,.2);border-radius:6px;background:linear-gradient(160deg,rgba(14,20,28,.92),rgba(5,7,12,.94));box-shadow:0 18px 44px rgba(0,0,0,.5);color:#eef6f6;pointer-events:auto;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:tnBellIn .35s ease both}
.tn-empty[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.tn-empty{animation:none}}
/* Phones (threshold-notices.js compactQ: max-width 700px, or a touch screen held sideways): no cards on the
   Threshold. The bell keeps the count; a tap opens the same cards as a list in a panel attached to the bell. */
.tn-layer.is-compact .tn-cards{position:fixed;inset:auto;left:12px;bottom:72px;width:min(340px,calc(100vw - 24px));max-height:60vh;z-index:4;display:flex;flex-direction:column;gap:8px;padding:10px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 border:1px solid rgba(186,236,244,.24);border-radius:6px;background:linear-gradient(160deg,rgba(12,18,26,.96),rgba(4,6,10,.97));box-shadow:0 22px 60px rgba(0,0,0,.6);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
 opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility 0s linear .3s}
.tn-layer.is-compact.is-listing .tn-cards{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .3s ease}
.tn-layer.is-compact .tn-card{position:relative;flex:none;width:auto;transform:none!important;opacity:1;visibility:inherit;pointer-events:inherit;will-change:auto;touch-action:auto;user-select:auto;-webkit-user-select:auto;z-index:auto!important}
.tn-layer.is-compact .tn-body{padding:10px 44px 10px 12px;min-height:56px;cursor:pointer;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.03)}
.tn-layer.is-compact .tn-title{font-size:12px}.tn-layer.is-compact .tn-line{font-size:12px;-webkit-line-clamp:3}
.tn-layer.is-compact .tn-close{top:6px;right:6px;width:32px;height:32px}
.tn-layer.is-compact .tn-close::before{inset:-6px}
.tn-layer.is-compact .tn-empty{z-index:4}
@media(prefers-reduced-motion:reduce){.tn-layer.is-compact .tn-cards{transition:opacity .2s ease,visibility 0s linear .2s}}
