/* Python Pass (public/js/pass.js): баннер сезона «import Noir», лента наград, «+опыт» под «Верно!».
   Баннер всегда тёмный, в духе нуара: дождь, полосы света сквозь жалюзи, ночной город и сыщик под фонарём. */

/* ---------- баннер */
.np-banner { --np-red: #d0021b; --np-lamp: #ffd98a; position: relative; display: block; overflow: hidden; isolation: isolate; margin: 18px 0; border-radius: 16px;
  min-height: 190px; padding: 22px 24px; color: #ece9e2; text-decoration: none; background: radial-gradient(ellipse at 78% 35%, rgba(255, 217, 138, .16), transparent 45%), linear-gradient(160deg, #1b1c22, #0b0b0e 60%, #050506);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); }
a.np-banner:hover { color: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(208, 2, 27, .5); }
.np-banner.big { min-height: 280px; padding: 30px 32px; margin-top: 4px; }
/* дождь — холстом (skins.rain), сверху немного тает */
.np-rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 25%); mask: linear-gradient(transparent, #000 25%); }
/* свет сквозь жалюзи — косые полосы, медленно скользят */
@keyframes np-blinds { 0%, 100% { transform: translateX(-4%) skewX(-24deg); } 50% { transform: translateX(4%) skewX(-24deg); } }
.np-blinds { position: absolute; top: -10%; bottom: -10%; left: 18%; width: 52%; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 236, 190, .1) 0 14px, transparent 14px 30px); filter: blur(1px);
  -webkit-mask: radial-gradient(ellipse at 40% 50%, #000 30%, transparent 70%); mask: radial-gradient(ellipse at 40% 50%, #000 30%, transparent 70%); animation: np-blinds 9s ease-in-out infinite; }
.np-glow { position: absolute; right: 6%; top: 14%; width: 160px; height: 160px; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 217, 138, .32), rgba(255, 217, 138, .08) 45%, transparent 70%); animation: np-flick 6s steps(1) infinite; }
@keyframes np-flick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .55; } 49% { opacity: 1; } 51% { opacity: .7; } 52% { opacity: 1; } }
.np-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.np-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; fill: #050506; opacity: .95; }
.np-city .win rect { fill: #ffd98a; opacity: .55; }
.np-city .win rect:nth-child(3n) { opacity: .2; }
.np-city .win rect:nth-child(5n) { fill: #ff4d5e; opacity: .5; }
.np-man { position: absolute; right: 4%; bottom: 0; height: 88%; max-height: 240px; }
.np-man .body, .np-man .post { fill: #020203; }
.np-man .lamp { fill: #ffe7ad; filter: drop-shadow(0 0 6px #ffd98a) drop-shadow(0 0 16px rgba(255, 217, 138, .8)); }
.np-text { position: relative; z-index: 2; max-width: min(560px, 68%); }
.np-kicker { font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .28em; color: var(--np-red); text-shadow: 0 0 10px rgba(208, 2, 27, .45); }
.np-title { margin: 8px 0 4px; font: 400 clamp(2.1rem, 6vw, 3.4rem)/1 "sk-elite", "sk-courier", "Courier New", monospace; color: #f4f1ea; letter-spacing: .01em; text-shadow: 0 2px 0 #000, 0 0 24px rgba(255, 255, 255, .12); }
.np-banner.big .np-title { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.np-title .kw { color: #9a9a9a; font-weight: 400; }
.np-title .nm { position: relative; }
.np-title .nm::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .09em; background: var(--np-red); box-shadow: 0 0 12px rgba(208, 2, 27, .7); }
.np-tag { margin: 6px 0 2px; font: italic 1.02rem/1.35 Georgia, "Times New Roman", serif; color: #c9c4b8; }
.np-dates { font-size: .82rem; color: #8f8a80; letter-spacing: .04em; }
.np-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.np-soon { font: 600 .9rem/1.2 system-ui, sans-serif; color: #d8d3c7; }
.np-cd { display: flex; gap: 6px; }
.np-cd-c { min-width: 52px; padding: 6px 6px 4px; border-radius: 8px; text-align: center; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .4); }
.np-cd-c b { display: block; font: 700 1.5rem/1 "sk-courier", "Courier New", monospace; color: #fff; font-variant-numeric: tabular-nums; }
.np-cd-c small { display: block; margin-top: 2px; font-size: .62rem; color: #9a958a; text-transform: uppercase; letter-spacing: .12em; }
.np-left .np-cd { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.np-left .np-cd-c { min-width: 34px; padding: 3px 4px 2px; }
.np-left .np-cd-c b { font-size: .9rem; }
.np-left .np-cd-c small { font-size: .5rem; }
.np-lv { display: flex; align-items: baseline; gap: 6px; }
.np-lv b { font: 700 2rem/1 "sk-courier", "Courier New", monospace; color: #fff; }
.np-lv span { color: #b6b1a6; font-size: .85rem; }
.np-bar { flex: 1 1 160px; height: 10px; min-width: 140px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.np-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7d0010, var(--np-red), #ff5468); box-shadow: 0 0 10px rgba(208, 2, 27, .8); transition: width .4s; }
.np-left { flex-basis: 100%; font-size: .8rem; color: #a8a398; }
@media (max-width: 640px) {
  .np-banner, .np-banner.big { padding: 18px 16px; min-height: 0; }
  .np-text { max-width: 100%; }
  .np-man { height: 70%; right: -4%; opacity: .55; }
  .np-cd-c { min-width: 44px; }
  .np-cd-c b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .np-blinds, .np-glow { animation: none; } }
body.sk-lite :is(.np-blinds, .np-glow) { animation: none; }

/* меню: уровень рядом с «Pass» */
.np-navlv { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 9px; font-size: .72rem; font-weight: 800; line-height: 1.5; color: #fff; background: #1b1c22; box-shadow: inset 0 0 0 1px #d0021b; }

/* ---------- страница #/pass: лента наград */
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.np-head h2 { margin: 0; }
.np-nav { display: flex; gap: 6px; }
.np-strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 12px; margin: 8px -2px 0; scrollbar-width: thin; }
.np-track { --fill: 0%; position: relative; display: flex; gap: 10px; padding: 0 2px 26px; width: max-content; }
/* линия прогресса под карточками */
.np-track::before, .np-track::after { content: ""; position: absolute; left: 0; bottom: 8px; height: 6px; border-radius: 3px; }
.np-track::before { right: 0; background: var(--surface-2); }
.np-track::after { width: var(--fill); background: linear-gradient(90deg, #7d0010, #d0021b, #ff5468); box-shadow: 0 0 10px rgba(208, 2, 27, .6); }
.np-cell { --r: #6b6f7a; position: relative; flex: none; width: 128px; min-height: 176px; padding: 26px 8px 10px; scroll-snap-align: center; border-radius: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(180deg, #23242c, #15161b); color: #e8e5dd;
  border-bottom: 4px solid var(--r); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.np-cell::after { content: ""; position: absolute; left: 50%; bottom: -21px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 3px var(--bg, #fff); }
.np-cell.got::after { background: #d0021b; }
.np-cell.next::after { background: #fff; box-shadow: 0 0 0 3px #d0021b, 0 0 12px #d0021b; }
.np-num { position: absolute; top: 6px; left: 8px; font: 700 .85rem/1 "sk-courier", "Courier New", monospace; color: #8f8a80; }
.np-cell.got .np-num { color: #ff6b7a; }
.np-cell.lock > :not(.np-num):not(.np-st) { opacity: .62; }
.np-cell.next { box-shadow: 0 0 0 2px #d0021b, 0 6px 18px rgba(208, 2, 27, .35); }
.np-cell.got { background: linear-gradient(180deg, #2b1c20, #17121a); }
.np-nm { font-size: .8rem; font-weight: 700; line-height: 1.2; }
.np-sub { font-size: .68rem; color: #9a958a; line-height: 1.2; }
.np-st { margin-top: auto; font-size: .68rem; color: #9a958a; }
.np-cell.got .np-st { color: #7ee2a8; }
.np-cell.next .np-st { color: #fff; font-weight: 700; }
.np-case { position: relative; width: 84px; height: 66px; display: grid; place-items: center; }
.np-case-img { width: 84px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.np-case.mystery { border-radius: 12px; background: repeating-linear-gradient(135deg, #2c2d36 0 8px, #22232b 8px 16px); box-shadow: inset 0 0 0 2px #3a3b46; }
.np-case.mystery .q { font: 700 2.1rem/1 "sk-courier", "Courier New", monospace; color: #d8d3c7; text-shadow: 0 0 12px rgba(255, 255, 255, .3); }
.np-x { position: absolute; right: -6px; bottom: -4px; padding: 0 6px; border-radius: 8px; font-size: .72rem; font-weight: 800; background: #d0021b; color: #fff; }
.np-skin { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 12px; font-size: 30px; font-weight: 800; color: var(--r);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--r) 30%, transparent), transparent 70%), #1a1b21; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r) 55%, transparent); }
.np-skin.secret { --r: #e4ae39; color: #ffe9a0; font-size: 34px; text-shadow: 0 0 10px #ffd54a; animation: np-secret 2.4s ease-in-out infinite; }
@keyframes np-secret { 50% { box-shadow: inset 0 0 0 2px #e4ae39, 0 0 18px rgba(228, 174, 57, .7); } }
.np-cell.final { width: 150px; --r: #e4ae39; background: radial-gradient(circle at 50% 30%, rgba(228, 174, 57, .22), transparent 60%), linear-gradient(180deg, #2a2316, #141008); }
.np-cell.final .np-num { color: #ffe9a0; }
.np-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 760px) { .np-info { grid-template-columns: 1fr; } .np-cell { width: 112px; } .np-cell.final { width: 132px; } }
.np-card { padding: 14px 16px; border-radius: var(--radius, 12px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.np-card h3 { margin: 0 0 6px; }
.np-card p { margin: 6px 0; }
.np-xp { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.np-xp span { padding: 4px 10px; border-radius: 20px; font-size: .85rem; background: var(--surface-2); }
.np-xp b { font-family: "sk-courier", "Courier New", monospace; }
.np-xp .e b { color: #2fa36b; } .np-xp .m b { color: #d68a00; } .np-xp .hd b { color: #d0021b; }
.np-today { font-weight: 700; }
.np-recent { list-style: none; margin: 6px 0 0; padding: 0; }
.np-recent li { padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.np-recent li:last-child { border-bottom: 0; }
.np-recent b { display: inline-block; min-width: 38px; font-family: "sk-courier", "Courier New", monospace; color: #d0021b; }
.np-recent li.rev { opacity: .65; text-decoration: line-through; }

/* ---------- под «Верно!»: +опыт */
@keyframes np-in { from { transform: translateY(6px); opacity: 0; } }
.np-gain { margin-top: 10px; padding: 8px 12px; border-radius: 10px; color: #ece9e2; background: linear-gradient(120deg, #1b1c22, #0b0b0e); box-shadow: inset 0 0 0 1px rgba(208, 2, 27, .45); animation: np-in .35s ease-out; }
.np-gain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: inherit; text-decoration: none; }
.np-gain-xp { font: 700 1.15rem/1 "sk-courier", "Courier New", monospace; color: #ff5468; text-shadow: 0 0 10px rgba(208, 2, 27, .6); }
.np-gain-t { font-size: .88rem; color: #c9c4b8; }
.np-gain-t b { color: #fff; }
.np-gain-bar { flex: 1 1 120px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.np-gain-bar i { display: block; height: 100%; background: #d0021b; }
.np-gain.up { box-shadow: inset 0 0 0 1px #d0021b, 0 0 18px rgba(208, 2, 27, .35); }
.np-gain-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: .86rem; }
.np-gain-list li { padding: 2px 0; color: #ffe1a6; }

/* «Забрать» (с 2026-10-31): награда открыта, но не забрана */
.np-cell.ready { box-shadow: 0 0 0 2px #ffd98a, 0 0 20px rgba(255, 217, 138, .45); animation: np-ready 1.6s ease-in-out infinite; }
.np-cell.ready::after { background: #ffd98a; box-shadow: 0 0 10px #ffd98a; }
@keyframes np-ready { 50% { box-shadow: 0 0 0 2px #ffd98a, 0 0 32px rgba(255, 217, 138, .7); } }
@media (prefers-reduced-motion: reduce) { .np-cell.ready { animation: none; } }
.np-claim { margin-top: auto; padding: 5px 10px; border: 0; border-radius: 7px; background: #ffd98a; color: #1a1408; font: 700 .74rem/1 inherit; cursor: pointer; }
.np-claim:hover { background: #ffe7b0; }
.np-claim:disabled { opacity: .6; cursor: default; }
.np-claim-all { margin-left: auto; background: #ffd98a; color: #1a1408; border-color: #ffd98a; }
.np-head { flex-wrap: wrap; gap: 8px; }
.np-claimed { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: linear-gradient(180deg, #2b2414, #17130c); border: 1px solid #ffd98a55; color: #f5ecd8; }
.np-claimed ul { margin: 6px 0; padding-left: 0; list-style: none; }
.np-ready { margin: 2px 0 6px; color: #ffd98a; font-weight: 700; font-size: .9rem; }
.np-gain-ready { display: block; margin-top: 6px; color: #b07a00; font-weight: 700; }
