/* V27.4.2: presentation only; loaded separately from theme reader. */
html[data-nfn-theme=blue]{--p-base:#030b1d;--p-panel:#102443;--p-dark:#071225;--p-light:#e2f5ff;--p-accent:#369dff;--p-second:#79e6ff;--p-edge:#4576a9;--p-glow:#248aff55;--p-text:#f0f8ff}
html[data-nfn-theme=red]{--p-base:#100407;--p-panel:#39101b;--p-dark:#19070e;--p-light:#f3f4fa;--p-accent:#df2349;--p-second:#ff859b;--p-edge:#a4a6b3;--p-glow:#ed254955;--p-text:#fff2f4}
html[data-nfn-theme=purple]{--p-base:#0c061b;--p-panel:#29134c;--p-dark:#130b29;--p-light:#f3e9ff;--p-accent:#a855f7;--p-second:#51d9ff;--p-edge:#9065c8;--p-glow:#a855f755;--p-text:#f8efff}
html[data-nfn-theme] body{background:radial-gradient(ellipse at 15% 12%,var(--p-glow),transparent 45%),radial-gradient(ellipse at 90% 55%,var(--p-glow),transparent 48%),repeating-linear-gradient(120deg,transparent 0 95px,#ffffff06 96px,transparent 98px),var(--p-base)!important;color:var(--p-text);background-attachment:fixed!important}
html[data-nfn-theme] body::before,html[data-nfn-theme] body::after{background:none!important}
html[data-nfn-theme] header,html[data-nfn-theme] .v27nav{background:linear-gradient(115deg,var(--p-dark),var(--p-panel) 48%,var(--p-dark))!important;border-bottom:1px solid var(--p-edge)!important;box-shadow:0 3px 18px var(--p-glow)!important}
html[data-nfn-theme] .brand,html[data-nfn-theme] .sectionhead h2,html[data-nfn-theme] .nfn-poster-head h2,html[data-nfn-theme] .nfn-video-shell h2{color:var(--p-light)!important;text-shadow:0 0 12px var(--p-glow)}
html[data-nfn-theme] .v27nav a{color:var(--p-text)!important}
html[data-nfn-theme] .v27nav a:hover,html[data-nfn-theme] .v27nav a[aria-current]{background:linear-gradient(145deg,var(--p-panel),var(--p-accent))!important;box-shadow:inset 0 1px 0 #ffffff66,0 0 12px var(--p-glow);color:white!important}
html[data-nfn-theme] :is(.panel,.nfn-poster-shell,.nfn-video-shell,.nfn-channels-shell,.promo-card,.news-card,.layout article,.layout aside section,.nfn-channel){background:linear-gradient(145deg,var(--p-panel),var(--p-dark) 75%)!important;border-color:var(--p-edge)!important;box-shadow:inset 0 1px 0 #ffffff35,0 5px 20px var(--p-glow)!important}
html[data-nfn-theme] #cards > article.card{background:linear-gradient(145deg,var(--p-panel),var(--p-dark) 75%) padding-box,conic-gradient(from var(--nfn-angle),var(--p-edge),var(--p-light),var(--p-accent),var(--p-second),var(--p-edge)) border-box!important;box-shadow:0 0 16px var(--p-glow),inset 0 1px 0 #ffffff55!important}
html[data-nfn-theme] #cards > article.card::before{background:conic-gradient(from var(--nfn-angle),transparent 0 55deg,var(--p-light) 75deg,var(--p-second) 79deg,transparent 91deg 200deg,var(--p-accent) 219deg,var(--p-light) 222deg,transparent 235deg)!important;filter:drop-shadow(0 0 5px var(--p-accent))!important}
html[data-nfn-theme] :is(.promo-card,.nfn-channel)::before{background:conic-gradient(var(--p-edge),var(--p-light),var(--p-accent),var(--p-second),var(--p-edge))!important;animation:none!important}
html[data-nfn-theme] :is(.goldbtn,.promo-action,#news-tabs button[aria-pressed=true]){background:linear-gradient(180deg,var(--p-light),var(--p-accent) 45%,var(--p-panel))!important;color:#fff!important;text-shadow:0 1px 3px #000;border-color:var(--p-edge)!important;box-shadow:inset 0 1px 1px #ffffff99,0 0 12px var(--p-glow)!important}
html[data-nfn-theme] footer{background:var(--p-dark)!important;border-top:1px solid var(--p-edge)}
html[data-nfn-theme] :is(a,button):focus-visible{outline:2px solid var(--p-second);outline-offset:3px}
@media(prefers-reduced-motion:reduce){html[data-nfn-theme] #cards > article.card,html[data-nfn-theme] #cards > article.card::before,html[data-nfn-theme] #cards > article.card::after{animation:none!important}}

/* V27.4.3 responsive layout */
html[data-nfn-theme] main.container{border-color:var(--p-edge)!important}
@media(max-width:700px){
#cards.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch}
html[data-nfn-theme] #cards > article.card{display:flex!important;flex-direction:column;align-items:center;text-align:center;min-width:0;padding:12px 7px!important;gap:7px!important;min-height:0;border-radius:14px}
#cards > article.card > img,#cards > article.card > .placeholder{width:48px;height:48px;flex-shrink:0}
#cards .platform-info{width:100%;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center}
#cards .platform-info .name{justify-content:center;font-size:14px;line-height:1.3;gap:3px;overflow-wrap:anywhere;max-width:100%}
#cards .platform-info .desc{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#cards .details-toggle{max-width:100%;white-space:normal;padding:5px 7px;font-size:11px}
#cards .detail-body{width:100%;padding:7px;text-align:start;font-size:12px}
#cards > article.card > .goldbtn{margin:0!important;width:100%;max-width:120px;text-align:center;white-space:normal;padding:8px 5px!important;font-size:12px;overflow-wrap:anywhere}
html[data-nfn-theme] #cards > article.card::after{inset:-3px!important}
.nfn-float-telegram{position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;transform:none!important;margin:12px auto!important;width:fit-content!important;max-width:100%!important;z-index:1!important}
#v258-float-items{flex-direction:row;flex-wrap:wrap;justify-content:center;animation:none}
}

/* V27.4.4: wide header brand */
html header a[data-nfn-brand]{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;min-width:0;flex-shrink:1;text-decoration:none!important;}
html header a[data-nfn-brand] img{display:block!important;width:210px!important;max-width:100%!important;height:66px!important;object-fit:contain!important;object-position:left center!important;border-radius:0!important;background:transparent!important;margin:0!important;}
html header a[data-nfn-brand] .nfn-brand-slogan{display:block!important;font-size:10px!important;line-height:1.3!important;letter-spacing:1px!important;margin:0!important;white-space:nowrap;}
@media(max-width:540px){html header a[data-nfn-brand] img{width:145px!important;height:48px!important;}html header a[data-nfn-brand] .nfn-brand-slogan{font-size:9px!important;letter-spacing:0!important;}}

/* V27.4.5: logo only */
html header a[data-nfn-brand] .nfn-brand-slogan{display:none!important;}
html header a[data-nfn-brand]{gap:0!important;}
