:root{
  --bg:#ECEEF2; --surface:#FFFFFF; --surface2:#F5F6F9; --ink:#14161B; --muted:#596070; --line:#14161B; --soft:#D3D8E1;
  --red:#E2252B; --yellow:#FFC928; --blue:#1F5BFF;
  --st-canon:#11804F; --st-alt:#1F6FAE; --st-soon:#D8202A; --st-linked:#B66A00; --st-variant:#6B3FEF; --st-non:#6E7383;
  --panel-border:2px; --shadow:4px 4px 0 var(--line); --radius:6px;
  --f-display:"Oswald","Arial Narrow","Roboto Condensed",sans-serif;
  --f-body:"Golos Text",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:light;
}
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 120px)}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:30;background:var(--surface)}
a{color:inherit}
img,svg{max-width:100%}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:3px}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--f-display);font-weight:600;line-height:1.1;margin:0;letter-spacing:-.005em}
h1{font-size:clamp(34px,5.2vw,58px)}
h2{font-size:clamp(24px,3vw,32px)}
h3{font-size:20px;font-weight:500}
p{margin:0}
.muted{color:var(--muted)}
.lead{font-size:18px;max-width:68ch;color:var(--muted)}

/* ---------- header ---------- */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);border-bottom:var(--panel-border) solid var(--line)}
.top-row{display:flex;align-items:center;gap:16px;padding:12px 0}
.brand{display:flex;align-items:baseline;gap:10px;text-decoration:none;flex:none}
.brand b{font-family:var(--f-display);font-size:26px;font-weight:700;background:var(--red);color:#fff;padding:0 8px;border-radius:3px;line-height:1.25}
.brand span{font-family:var(--f-display);font-size:18px;font-weight:500}
.search{position:relative;flex:1;max-width:460px;margin-left:auto}
.search input{width:100%;padding:9px 12px;border:2px solid var(--line);border-radius:var(--radius);background:var(--surface2)}
.search input::placeholder{color:var(--muted)}
.sres{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);max-height:min(70vh,520px);overflow:auto;display:none;z-index:40}
.sres.open{display:block}
.sres a{display:flex;gap:10px;align-items:baseline;padding:8px 12px;text-decoration:none;border-bottom:1px solid var(--soft)}
.sres a:last-child{border-bottom:0}
.sres a.on,.sres a:hover{background:var(--surface2)}
.sres small{color:var(--muted);flex:none;width:72px}
.sres .none{padding:12px;color:var(--muted)}
nav.tabs{display:flex;gap:4px;overflow-x:auto;padding:0 0 10px;scrollbar-width:none}
nav.tabs::-webkit-scrollbar{display:none}
nav.tabs a{flex:none;text-decoration:none;padding:6px 12px;border-radius:999px;font-weight:500;font-size:15px;border:2px solid transparent}
nav.tabs a:hover{border-color:var(--soft)}
nav.tabs a.on{background:var(--ink);color:var(--surface)}
nav.tabs a.doom{border-color:var(--red);color:var(--red)}
nav.tabs a.doom.on{background:var(--red);color:#fff}

main.wrap{padding-top:44px;padding-bottom:80px;outline:none}
section{margin-top:40px}
section:first-child{margin-top:0}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}

/* ---------- panels / buttons / chips ---------- */
.panel{background:var(--surface);border:var(--panel-border) solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.pad{padding:20px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:2px solid var(--line);border-radius:var(--radius);background:var(--surface);font-weight:600;text-decoration:none;cursor:pointer;box-shadow:3px 3px 0 var(--line)}
.btn:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--line)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--line)}
.btn.primary{background:var(--red);color:#fff;border-color:var(--line)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border:1.5px solid var(--soft);border-radius:999px;font-size:14px;text-decoration:none;background:var(--surface);cursor:pointer;line-height:1.4}
.chip:hover{border-color:var(--ink)}
.chip.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.chip i{font-style:normal;color:var(--muted);font-size:12px}
.chip.on i{color:inherit;opacity:.75}
.dot{width:10px;height:10px;border-radius:50%;background:var(--c,#888);flex:none}
.st{--c:var(--st-non);display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:2px 9px;border-radius:999px;color:var(--c);background:color-mix(in srgb,var(--c) 13%,transparent);border:1px solid color-mix(in srgb,var(--c) 45%,transparent);white-space:nowrap}
.st::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c)}
.st-canon{--c:var(--st-canon)}.st-alt{--c:var(--st-alt)}.st-soon{--c:var(--st-soon)}.st-linked{--c:var(--st-linked)}.st-variant{--c:var(--st-variant)}.st-non{--c:var(--st-non)}
.imp{font-size:13px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--yellow);color:#14161B;white-space:nowrap}
.wbtn{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--soft);background:var(--surface);border-radius:999px;padding:4px 11px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.wbtn:hover{border-color:var(--ink)}
.wbtn[aria-pressed="true"]{background:var(--st-canon);border-color:var(--st-canon);color:#fff}
.ctrl{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:16px 0 22px}
.ctrl label{display:inline-flex;align-items:center;gap:7px;font-size:15px;cursor:pointer}
.ctrl select,.ctrl input[type=text]{padding:7px 10px;border:1.5px solid var(--soft);border-radius:var(--radius);background:var(--surface)}
.seg{display:inline-flex;border:2px solid var(--line);border-radius:var(--radius);overflow:hidden}
.seg button{border:0;background:var(--surface);padding:7px 14px;font-weight:600;cursor:pointer}
.seg button+button{border-left:2px solid var(--line)}
.seg button.on{background:var(--ink);color:var(--surface)}
.note{border-left:4px solid var(--yellow);background:var(--surface2);padding:12px 16px;border-radius:0 var(--radius) var(--radius) 0;max-width:72ch}
.back{display:inline-block;margin-bottom:14px;color:var(--muted);text-decoration:none;font-weight:500;background:none;border:0;padding:0;cursor:pointer}
.back:hover{color:var(--ink)}

/* ---------- covers ---------- */
.cover{--c:#333;position:relative;display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:2/3;background:var(--c);color:#fff;border:2px solid var(--line);border-radius:4px;overflow:hidden;padding:9px;text-decoration:none}
.cover::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.22) 1.3px,transparent 1.4px);background-size:7px 7px;-webkit-mask-image:linear-gradient(150deg,#000 0%,transparent 65%);mask-image:linear-gradient(150deg,#000 0%,transparent 65%)}
.cover::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(transparent,rgba(0,0,0,.45))}
.cover>*{position:relative;z-index:1}
.cv-y{font-family:var(--f-display);font-weight:600;font-size:13px;opacity:.9}
.cv-t{font-family:var(--f-display);font-weight:600;line-height:1.05;font-size:17px;text-wrap:balance}
.cover.s-variant,.cover.s-non,.cover.s-linked{filter:saturate(.55)}
.cover.mini{width:38px;padding:4px;border-width:1.5px;flex:none}
.cover.mini .cv-t{display:none}
.cover.mini .cv-y{font-size:10px}
.cover.big{width:min(210px,40vw);flex:none;padding:14px}
.cover.big .cv-t{font-size:26px}

/* ---------- home ---------- */
.hero{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:end}
.hero h1{max-width:17ch}
.hero .lead{margin-top:16px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.countdown{display:block;text-decoration:none;background:var(--yellow);color:#14161B;border:3px solid #14161B;border-radius:4px;padding:18px 22px 16px;box-shadow:6px 6px 0 #14161B;transform:rotate(-1.5deg);min-width:240px}
.countdown:hover{transform:rotate(-1.5deg) translate(-2px,-2px);box-shadow:8px 8px 0 #14161B}
.cd-num{display:block;font-family:var(--f-display);font-weight:700;font-size:96px;line-height:.9}
.cd-lbl{display:block;font-weight:600;font-size:17px;margin-top:6px;max-width:16ch;line-height:1.3}
.cd-date{display:block;font-size:14px;margin-top:8px}
.ribbon-box{overflow-x:auto;padding:6px 0 10px;scrollbar-width:thin}
.ribbon{display:block;max-width:none}
.rb-trunk{stroke:var(--ink);stroke-width:3}
.rb-band{fill:var(--surface2)}
.rb-band.odd{fill:var(--surface)}
.rb-era{fill:var(--ink);font-family:var(--f-display);font-size:13px;font-weight:600}
.rb-yrs{fill:var(--muted);font-size:11px}
.rb-branch{fill:none;stroke:var(--st-variant);stroke-width:2;stroke-dasharray:4 3}
.rb-blabel{fill:var(--st-variant);font-size:11px;font-weight:600}
.rb-dot{stroke:var(--surface);stroke-width:1.5;cursor:pointer}
.ribbon a:hover .rb-dot,.ribbon a:focus .rb-dot{stroke:var(--ink);stroke-width:2.5}
.rb-doom{fill:none;stroke:var(--red);stroke-width:3}
.rb-doomlbl{fill:var(--red);font-family:var(--f-display);font-weight:600;font-size:14px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.tile{display:block;text-decoration:none;padding:18px 18px 16px}
.tile h3{font-family:var(--f-display);font-size:24px;font-weight:600}
.tile p{color:var(--muted);margin-top:6px;font-size:15px}
.tile .n{font-family:var(--f-display);font-weight:700;font-size:15px;color:var(--red)}
.legend{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.legend div{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.legend p{font-size:15px;color:var(--muted)}

/* ---------- lists ---------- */
.era{margin-top:34px}
.era-h{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding-bottom:8px;border-bottom:2px solid var(--line);margin-bottom:4px}
.era-h small{color:var(--muted);font-size:15px}
.rows{list-style:none;margin:0;padding:0}
.row{display:grid;grid-template-columns:40px 38px 1fr auto;gap:14px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--soft)}
.row .num{font-family:var(--f-display);font-size:18px;font-weight:600;color:var(--muted);text-align:right}
.row .ttl{text-decoration:none;display:block;min-width:0}
.row .ttl b{font-weight:600;font-size:17px;display:block}
.row .ttl span{font-size:14px;color:var(--muted)}
.row .ttl:hover b{text-decoration:underline}
.row .side{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.row.w .ttl b{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px}
.card{display:flex;flex-direction:column;gap:8px;text-decoration:none}
.card .meta{font-size:14px;color:var(--muted);line-height:1.35}
.card b{font-weight:600;line-height:1.3}
.empty{padding:28px;text-align:center;color:var(--muted)}

/* ---------- detail ---------- */
.dhead{display:flex;gap:28px;align-items:flex-start}
.dhead .info{flex:1;min-width:0}
.dhead h1{font-size:clamp(30px,4.4vw,50px)}
.dhead .en{color:var(--muted);font-size:17px;margin-top:4px}
.badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;align-items:center}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:2px 20px;margin-top:20px;max-width:760px}
.facts div{padding:8px 0;border-top:1px solid var(--soft)}
.facts dt{font-size:13px;color:var(--muted)}
.facts dd{margin:0;font-weight:500}
.cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:28px;margin-top:30px;align-items:start}
.about{font-size:18px;max-width:66ch}
.keys{margin:12px 0 0;padding-left:20px;max-width:66ch}
.keys li{margin:6px 0}
.navpair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.navpair a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;text-decoration:none}
.navpair small{color:var(--muted);font-size:13px}
.navpair .nx{text-align:right}
.lnrow{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;padding:10px 0;border-top:1px solid var(--soft);font-size:15px}
.lnrow .lname{grid-column:1/-1}
.lnrow .nx{text-align:right}
.lnrow a{text-decoration:none}
.lnrow a:hover{text-decoration:underline}
.lnrow .lname{font-weight:600}
.who h3{font-size:16px;font-family:var(--f-body);font-weight:600;color:var(--muted);margin:16px 0 8px}
.mono{--c:#444;width:44px;height:44px;border-radius:50%;background:var(--c);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:600;font-size:17px;flex:none;border:2px solid var(--line)}
.mono.big{width:110px;height:110px;font-size:40px;border-width:3px}
.hcard{display:flex;gap:12px;align-items:center;padding:12px;text-decoration:none}
.hcard b{display:block;font-weight:600;line-height:1.25}
.hcard span{display:block;font-size:13px;color:var(--muted);line-height:1.35}
.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.path{list-style:none;margin:0;padding:0;counter-reset:p}
.path li{display:grid;grid-template-columns:30px 38px 1fr auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--soft)}
.path li::before{counter-increment:p;content:counter(p);font-family:var(--f-display);font-weight:600;font-size:18px;color:var(--red);text-align:right}
.path a{text-decoration:none}
.path a:hover b{text-decoration:underline}
.path b{display:block;font-weight:600}
.path span{font-size:14px;color:var(--muted)}
table.app{width:100%;border-collapse:collapse;font-size:15px}
table.app th{text-align:left;font-size:13px;color:var(--muted);font-weight:500;padding:6px 8px;border-bottom:2px solid var(--line)}
table.app td{padding:8px;border-bottom:1px solid var(--soft);vertical-align:top}
table.app a{text-decoration:none;font-weight:500}
table.app a:hover{text-decoration:underline}
.tbl{overflow-x:auto}

/* ---------- map ---------- */
.mapwrap{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.mapbox{padding:10px;overflow:hidden}
.map{display:block;width:100%;height:auto;background:color-mix(in srgb,var(--blue) 8%,var(--surface));border-radius:4px;touch-action:manipulation}
.map .land{fill:var(--surface2);stroke:var(--muted);stroke-width:.4}
.map .bord{fill:none;stroke:var(--soft);stroke-width:.35}
.map .mk{fill:var(--red);stroke:var(--surface);cursor:pointer;opacity:.92}
.map .mk.zero{fill:var(--surface);stroke:var(--muted)}
.map .mk.sel{fill:var(--yellow);stroke:var(--ink)}
.map .mk.nyc{fill:var(--blue)}
.map .mlbl{fill:var(--ink);font-weight:600;pointer-events:none;paint-order:stroke;stroke:var(--surface);stroke-linejoin:round}
.mside{padding:18px;position:sticky;top:calc(env(safe-area-inset-top,0px) + 130px)}
.mside h3{font-family:var(--f-display);font-size:24px;font-weight:600}
.mside p{font-size:15px;margin-top:8px}
.mside .chips{margin-top:12px}
.mside h4{margin:16px 0 6px;font-size:14px;color:var(--muted);font-weight:600}
.mside .map-place-visual{display:grid;place-items:center;height:176px;margin:12px 0 14px;overflow:hidden;border:1px solid rgba(156,177,217,.26);border-radius:12px;background:radial-gradient(circle at 50% 42%,#253453 0%,#10182c 62%,#060a15 100%)}
.mside .map-place-visual img{display:block;width:min(100%,230px);height:100%;object-fit:contain;transform:scale(1.09);filter:drop-shadow(0 9px 16px rgba(0,0,0,.45))}
.evlist{list-style:none;margin:0;padding:0}
.evlist li{font-size:15px;padding:5px 0;border-bottom:1px solid var(--soft)}
.evlist a{text-decoration:none;font-weight:500}
.evlist a:hover{text-decoration:underline}
.ptiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ptile{padding:14px;text-decoration:none;display:block}
.ptile b{display:block;font-weight:600}
.ptile span{display:block;font-size:14px;color:var(--muted);margin-top:4px;line-height:1.4}

/* ---------- events ---------- */
.tl{list-style:none;margin:0;padding:0;position:relative}
.tl::before{content:"";position:absolute;left:118px;top:0;bottom:0;width:3px;background:var(--ink)}
.tl li{display:grid;grid-template-columns:100px 1fr;gap:38px;padding:14px 0;position:relative}
.tl li::before{content:"";position:absolute;left:111px;top:22px;width:17px;height:17px;border-radius:50%;background:var(--red);border:3px solid var(--bg)}
.tl .yr{font-family:var(--f-display);font-weight:600;font-size:18px;text-align:right;padding-top:2px;line-height:1.2}
.tl h3{font-size:22px}
.tl h3 a{text-decoration:none}
.tl h3 a:hover{text-decoration:underline}
.tl p{margin-top:6px;max-width:68ch}
.tl .chips{margin-top:10px}

/* ---------- doomsday ---------- */
.prog{height:14px;border:2px solid var(--line);border-radius:999px;overflow:hidden;background:var(--surface);margin-top:10px;max-width:420px}
.prog i{display:block;height:100%;background:var(--st-canon)}
.tier{margin-top:30px}
.tier>p{margin-top:4px}
.why{font-size:14px;color:var(--muted)}
.cast .hcard{position:relative}
.cast .how{font-size:12px;font-weight:600;color:var(--red)}
.facts-list{margin:12px 0 0;padding-left:20px;max-width:70ch}
.facts-list li{margin:5px 0}
.prose p+p{margin-top:12px}
.prose{max-width:72ch}
.prose h3{margin:22px 0 8px}

@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .countdown{justify-self:start}
  .cols{grid-template-columns:1fr}
  .mapwrap{grid-template-columns:1fr}
  .mside{position:static}
}
@media (max-width:640px){
  .brand span{display:none}
  .top-row{gap:10px}
  .dhead{flex-direction:column;gap:18px}
  .cover.big{width:150px}
  .row{grid-template-columns:30px 32px 1fr;gap:10px}
  .row .side{grid-column:3;justify-content:flex-start}
  .cover.mini{width:32px}
  .tl::before{left:8px}
  .tl li{grid-template-columns:1fr;gap:4px;padding-left:34px}
  .tl li::before{left:1px}
  .tl .yr{text-align:left}
  .path li{grid-template-columns:24px 32px 1fr}
  .path li .wbtn{grid-column:3;justify-self:start}
  .navpair{grid-template-columns:1fr}
  .navpair .nx{text-align:left}
  .cd-num{font-size:72px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- v2 ---------- */
.cv-t{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow-wrap:anywhere;hyphens:auto}
.cover.lg .cv-t{font-size:15px}
.cover.xl .cv-t{font-size:13px}
.cover.big.lg .cv-t{font-size:22px}
.cover.big.xl .cv-t{font-size:18px}
.seasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.season{display:inline-flex;align-items:baseline;gap:6px;padding:6px 14px;border:2px solid var(--line);border-radius:var(--radius);text-decoration:none;font-weight:600;background:var(--surface)}
.season i{font-style:normal;font-weight:400;color:var(--muted);font-size:13px}
.season.on{background:var(--ink);color:var(--surface)}
.season.on i{color:inherit;opacity:.75}
.story{max-width:66ch;margin-top:10px}
h3.sub{font-family:var(--f-body);font-size:16px;font-weight:600;color:var(--muted);margin:18px 0 8px}
.eps{margin-top:30px}
.ep{display:grid;grid-template-columns:44px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid var(--soft)}
.ep-n{font-family:var(--f-display);font-weight:700;font-size:26px;color:var(--red);line-height:1}
.ep h3{font-size:19px}
.ep p{margin:6px 0 10px;max-width:66ch}
.tlmini{list-style:none;margin:10px 0 0;padding:0}
.tlmini li{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--soft)}
.tlmini b{font-family:var(--f-display);font-weight:600}
.kev{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:16px}
.kcard{display:flex;flex-direction:column;gap:4px;padding:12px 14px;text-decoration:none}
.kcard .yr{font-family:var(--f-display);font-weight:600;color:var(--red);font-size:15px}
.kcard b{font-weight:600;line-height:1.3}
h3.yh{font-family:var(--f-display);font-size:24px;margin:26px 0 6px;padding-bottom:6px;border-bottom:2px solid var(--line)}
.tld{list-style:none;margin:0;padding:0}
.tld li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:9px 0;border-bottom:1px solid var(--soft)}
.tld li>span{flex:1 1 320px;min-width:0}
table.app td:first-child{width:32px}
@media (max-width:640px){
  .tlmini li{grid-template-columns:1fr;gap:2px}
  .ep{grid-template-columns:30px 1fr}
  .cover.big .cv-t{font-size:20px}
}
.card .st{white-space:normal;align-items:flex-start;line-height:1.3}
.card .st::before{margin-top:5px;flex:none}
.grid>*{min-width:0}
.path .st{white-space:normal}
@media (max-width:900px){.cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.dhead{align-items:stretch}.dhead .info{width:100%}}
@media (max-width:640px){.path li .st{grid-column:3;justify-self:start}}
.cv-t{overflow-wrap:break-word}
@media (max-width:640px){.cover.big .cv-t{font-size:17px}.cover.big.lg .cv-t{font-size:16px}.cover.big.xl .cv-t{font-size:14px}}

/* ---------- v3: карты космоса и Иггдрасиля, события, анимации ---------- */
.smap,.ymap{display:block;width:100%;height:auto;border-radius:4px}
.ymap{background:radial-gradient(ellipse at 50% 40%,#1b2340 0%,#0b0f1e 70%)}
.star{fill:#fff;opacity:.5;animation:twinkle 4s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.25}50%{opacity:.95}}
.pl,.realm{cursor:pointer;outline:none}
.pl .body,.realm .body{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.pl .halo,.realm .halo{opacity:0;transition:opacity .25s ease,transform .25s ease;transform:scale(.85);transform-box:fill-box;transform-origin:center}
.pl:hover .halo,.pl:focus-visible .halo,.pl.sel .halo,.realm:hover .halo,.realm:focus-visible .halo,.realm.sel .halo{opacity:.35;transform:scale(1)}
.pl:hover .body,.pl.sel .body,.realm:hover .body,.realm.sel .body{transform:scale(1.08)}
.pl .body,.realm .body{transform-box:fill-box;transform-origin:center}
.pl-l{fill:#E8ECF7;font-size:13px;font-weight:600;paint-order:stroke;stroke:#070914;stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.ring-dot{opacity:.9}
.spin{animation:spin 40s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes spin{to{transform:rotate(360deg)}}
.worm{fill:none;stroke:#E2B26B;stroke-width:1.4;stroke-dasharray:3 5;opacity:.7}
.route{fill:none;stroke:#C9A227;stroke-width:1.5;stroke-dasharray:2 5;opacity:.7}
.yg-trunk{fill:none;stroke:#8B6A3E;stroke-width:16;stroke-linecap:round}
.yg-root{fill:none;stroke:#6E5230;stroke-width:8;stroke-linecap:round}
.yg-br{fill:none;stroke:#A07C4B;stroke-width:6;stroke-linecap:round}
.ymap .yg-trunk,.ymap .yg-root,.ymap .yg-br{stroke-dasharray:1;stroke-dashoffset:1}
#ygbox.in .yg-trunk,#ygbox.in .yg-root{animation:draw 1.1s cubic-bezier(.4,0,.2,1) forwards}
#ygbox.in .yg-br{animation:draw .9s cubic-bezier(.4,0,.2,1) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.realm,.realm-label{opacity:0}
.realm-label-layer{pointer-events:none}
#ygbox.in .realm,#ygbox.in .realm-label{animation:pop .5s cubic-bezier(.2,.9,.3,1.3) forwards}
@keyframes pop{from{opacity:0}to{opacity:1}}
.rl{fill:#F2EEDF;font-family:var(--f-display);font-size:16px;font-weight:600;paint-order:stroke;stroke:#0b0f1e;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.rn{fill:#fff;font-family:var(--f-display);font-size:18px;font-weight:700;pointer-events:none}
.mside.flash{animation:rise .3s cubic-bezier(.2,.7,.2,1)}
/* события */
.kev-item{display:block!important;padding:14px 16px!important;margin:8px 0;background:var(--surface);border:var(--panel-border) solid var(--line)!important;border-left:6px solid var(--red)!important;border-radius:var(--radius);box-shadow:3px 3px 0 var(--line)}
.kev-tag{display:inline-block;font-size:12px;font-weight:700;color:var(--red);margin-bottom:2px}
.kev-name{display:block;font-family:var(--f-display);font-size:21px;font-weight:600;text-decoration:none;line-height:1.2}
.kev-name:hover{text-decoration:underline}
.kev-item p{margin:6px 0 10px;max-width:70ch}
/* анимации */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
main.enter{animation:rise .38s cubic-bezier(.2,.7,.2,1) both}
.grid>*,.hgrid>*,.tiles>*,.ptiles>*,.rows>li,.kev>*,.tld>li,.legend>*{animation:rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:.3s}
.grid>*:nth-child(1),.hgrid>*:nth-child(1),.tiles>*:nth-child(1),.ptiles>*:nth-child(1),.rows>li:nth-child(1),.tld>li:nth-child(1){animation-delay:.03s}
.grid>*:nth-child(2),.hgrid>*:nth-child(2),.tiles>*:nth-child(2),.ptiles>*:nth-child(2),.rows>li:nth-child(2),.tld>li:nth-child(2){animation-delay:.06s}
.grid>*:nth-child(3),.hgrid>*:nth-child(3),.tiles>*:nth-child(3),.ptiles>*:nth-child(3),.rows>li:nth-child(3),.tld>li:nth-child(3){animation-delay:.09s}
.grid>*:nth-child(4),.hgrid>*:nth-child(4),.tiles>*:nth-child(4),.ptiles>*:nth-child(4),.rows>li:nth-child(4),.tld>li:nth-child(4){animation-delay:.12s}
.grid>*:nth-child(5),.hgrid>*:nth-child(5),.tiles>*:nth-child(5),.ptiles>*:nth-child(5),.rows>li:nth-child(5),.tld>li:nth-child(5){animation-delay:.15s}
.grid>*:nth-child(6),.hgrid>*:nth-child(6),.tiles>*:nth-child(6),.ptiles>*:nth-child(6),.rows>li:nth-child(6),.tld>li:nth-child(6){animation-delay:.18s}
.grid>*:nth-child(7),.hgrid>*:nth-child(7),.rows>li:nth-child(7),.tld>li:nth-child(7){animation-delay:.21s}
.grid>*:nth-child(8),.hgrid>*:nth-child(8),.rows>li:nth-child(8),.tld>li:nth-child(8){animation-delay:.24s}
.grid>*:nth-child(9),.hgrid>*:nth-child(9),.rows>li:nth-child(9),.tld>li:nth-child(9){animation-delay:.27s}
.card .cover{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease}
.card:hover .cover,.card:focus-visible .cover{transform:translateY(-4px) rotate(-.8deg);box-shadow:5px 6px 0 var(--line)}
.panel.tile,.panel.hcard,.panel.ptile,.panel.kcard,.navpair a{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease}
.panel.tile:hover,.panel.hcard:hover,.panel.ptile:hover,.panel.kcard:hover,.navpair a:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--line)}
.chip,.season,nav.tabs a,.seg button,.btn{transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.mono{transition:transform .25s cubic-bezier(.2,.9,.3,1.3)}
.hcard:hover .mono{transform:scale(1.08) rotate(-4deg)}
.sres.open{animation:drop .2s cubic-bezier(.2,.7,.2,1)}
@keyframes drop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.countdown{transition:transform .3s cubic-bezier(.2,.9,.3,1.3),box-shadow .3s ease}
.countdown:hover{transform:rotate(0deg) translate(-2px,-3px)}
.rb-dot{transition:r .2s ease,stroke-width .2s ease}
.ribbon a:hover .rb-dot{r:10}
.map .mk{transition:fill .2s ease}
@media (prefers-reduced-motion:reduce){
  .ymap .yg-trunk,.ymap .yg-root,.ymap .yg-br{stroke-dashoffset:0}
  .realm,.realm-label{opacity:1}
  .star,.spin{animation:none!important}
}
.apps{list-style:none;margin:0;padding:0}
.apps>li{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--soft);animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
.apps .an{font-family:var(--f-display);font-weight:600;font-size:18px;color:var(--red);text-align:right;line-height:1.4}
.apps .ah{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.apps .ah a{font-weight:600;font-size:17px;text-decoration:none}
.apps .ah a:hover{text-decoration:underline}
.apps p{margin-top:4px;max-width:62ch}
.rtag{font-size:12px;font-weight:600;padding:1px 8px;border-radius:999px;background:var(--surface2);border:1px solid var(--soft);color:var(--muted)}
.rtag.r-L{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.rtag.r-M{border-color:var(--ink);color:var(--ink)}
.tlmini li.k b{color:var(--red)}
.tlmini li.k a{font-weight:600}
.tld .chips{justify-content:flex-end}

/* ---------- v4: графика карт ---------- */
:root{--sea1:#CFE3F4;--sea2:#A9C9E6;--land1:#F7F4EC;--land2:#E4DECF;--grat:rgba(40,70,110,.12);--bord:rgba(90,80,60,.28);--edge:rgba(30,60,100,.35)}
.map{background:none}
.map .sea1{stop-color:var(--sea1)}.map .sea2{stop-color:var(--sea2)}.map .land1{stop-color:var(--land1)}.map .land2{stop-color:var(--land2)}
.map .grat{fill:none;stroke:var(--grat);stroke-width:.5}
.map .lshadow{fill:rgba(0,20,40,.22)}
.map .land{stroke:rgba(80,70,50,.35);stroke-width:.3}
.map .bord{fill:none;stroke:var(--bord);stroke-width:.3}
.map .sphere-edge{fill:none;stroke:var(--edge);stroke-width:1}
.map .mk{fill:var(--red);stroke:#fff;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.35))}
.map .mk.nyc{fill:var(--blue)}
.map .mk.sel{fill:var(--yellow);stroke:#14161B}
.map .pulse{fill:none;stroke:var(--yellow);transform-box:fill-box;transform-origin:center;animation:pulse 1.6s ease-out infinite}
@keyframes pulse{from{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(1.6)}}
.mapbox.dark{background:#05070f;border-color:var(--line)}
.spacewrap,.treewrap{position:relative;width:100%;border-radius:4px;overflow:hidden}
.spacewrap{aspect-ratio:1000/560}.treewrap{aspect-ratio:1000/650}
.spacewrap canvas,.treewrap canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.spacewrap svg,.treewrap svg{position:absolute;inset:0;width:100%;height:100%;background:none}
.smap .reg{fill:rgba(220,228,255,.55);font-family:var(--f-display);font-size:15px;letter-spacing:.04em;pointer-events:none}
.smap .reg.small{font-size:12px;fill:rgba(255,215,120,.7)}
.smap .empire{fill:rgba(74,111,209,.08);stroke:rgba(120,150,255,.45);stroke-width:1.2;stroke-dasharray:4 5}
.smap .pring{fill:none;stroke:rgba(255,230,180,.55);stroke-width:2}
.ymap .orbit{fill:none;stroke:rgba(255,230,160,.35);stroke-width:1}
.ymap{background:none!important}

/* ---------- v5: новые разделы ---------- */
@media (min-width:1000px){nav.tabs{flex-wrap:wrap;row-gap:4px}}
/* камни */
.gems{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-top:14px}
.gem-btn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:2px solid var(--soft);border-radius:var(--radius);background:var(--surface);cursor:pointer;text-align:left;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.gem-btn b{font-family:var(--f-display);font-weight:600;font-size:17px}
.gem-btn span:last-child{font-size:13px;color:var(--muted)}
.gem-btn:hover{transform:translateY(-2px)}
.gem-btn.on{border-color:var(--g);box-shadow:0 0 0 3px color-mix(in srgb,var(--g) 30%,transparent),4px 4px 0 var(--line)}
.gem{--g:#888;display:inline-block;width:26px;height:26px;transform:rotate(45deg);border-radius:5px;background:radial-gradient(circle at 30% 30%,#fff 0,color-mix(in srgb,var(--g) 60%,#fff) 18%,var(--g) 55%,color-mix(in srgb,var(--g) 60%,#000) 100%);box-shadow:0 0 14px color-mix(in srgb,var(--g) 70%,transparent);animation:shine 3.2s ease-in-out infinite;flex:none}
.gem.big{width:54px;height:54px;border-radius:9px;margin:10px}
@keyframes shine{0%,100%{box-shadow:0 0 10px color-mix(in srgb,var(--g) 55%,transparent)}50%{box-shadow:0 0 26px color-mix(in srgb,var(--g) 95%,transparent)}}
.art-dot{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,var(--g) 45%,color-mix(in srgb,var(--g) 55%,#000) 100%);flex:none;margin:4px}
.sdet{border-top:6px solid var(--g)}
.sdh{display:flex;gap:18px;align-items:flex-start}
.sdh h3{font-family:var(--f-display);font-size:26px;font-weight:600}
.sdh p{margin-top:4px;max-width:66ch}
.spath{list-style:none;margin:18px 0 0;padding:0;position:relative}
.spath::before{content:"";position:absolute;left:150px;top:6px;bottom:6px;width:3px;background:color-mix(in srgb,var(--g) 55%,var(--soft))}
.spath li{display:grid;grid-template-columns:136px 1fr;gap:30px;padding:10px 0;position:relative;animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
.spath li::before{content:"";position:absolute;left:144px;top:15px;width:15px;height:15px;border-radius:50%;background:var(--g);border:3px solid var(--surface);box-shadow:0 0 8px var(--g)}
.spath .sw{font-family:var(--f-display);font-weight:600;text-align:right;line-height:1.3}
.spath p{margin-bottom:6px}
/* связи */
.legend-row{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px}
.legend-row i{display:inline-block;width:22px;height:4px;border-radius:2px;margin-right:6px;vertical-align:middle}
.lg-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.lkmap{display:block;width:100%;height:auto}
.lk-l{stroke-width:2.5;opacity:.75;stroke-dasharray:1;stroke-dashoffset:1;animation:draw .5s ease forwards}
.lkmap line{pathLength:1}
.lk-n{cursor:pointer;opacity:0;animation:pop .4s ease forwards;outline:none}
.lk-n circle{transition:transform .2s ease;transform-box:fill-box;transform-origin:center}
.lk-n:hover circle,.lk-n:focus-visible circle{transform:scale(1.15)}
.lk-i{fill:#fff;font-family:var(--f-display);font-weight:600;font-size:15px;pointer-events:none}
.lk-t{fill:var(--ink);font-weight:600;font-size:13px;paint-order:stroke;stroke:var(--surface);stroke-width:3px;pointer-events:none}
.lk-s{fill:var(--muted);font-size:11px;paint-order:stroke;stroke:var(--surface);stroke-width:3px;pointer-events:none}
.lk-c circle{stroke:var(--line);stroke-width:3;animation:pop .4s ease both}
.lk-ci{fill:#fff;font-family:var(--f-display);font-weight:700;font-size:28px}
.lk-ct{fill:var(--ink);font-family:var(--f-display);font-weight:600;font-size:20px;paint-order:stroke;stroke:var(--surface);stroke-width:4px}
.mside h4{display:flex;align-items:center}
/* команды */
.team{margin-top:36px}
.team-h{border-left:8px solid var(--c);padding-left:14px;margin-bottom:12px}
.team-h p{margin-top:4px}
.phase{padding:14px 16px;margin-top:12px}
.ph-h{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-bottom:10px}
.ph-h b{font-family:var(--f-display);font-weight:600;font-size:18px}
.mem{display:flex;flex-wrap:wrap;gap:10px}
.mchip{display:flex;flex-direction:column;align-items:center;gap:4px;width:84px;text-align:center;text-decoration:none;font-size:13px;line-height:1.2;animation:rise .4s ease both}
.mchip .mono{transition:transform .2s cubic-bezier(.2,.9,.3,1.3)}
.mchip:hover .mono{transform:scale(1.1) rotate(-4deg)}
/* вселенные */
.uvmap{display:block;width:100%;height:auto}
.uv-l{fill:none;stroke-width:3;stroke-dasharray:6 6;opacity:.8;animation:rise .6s ease both}
.uv-n{cursor:pointer;opacity:0;animation:pop .5s ease forwards;outline:none}
.uv-n circle{stroke:var(--surface);stroke-width:3;transition:transform .2s ease;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.uv-n:hover circle,.uv-n:focus-visible circle{transform:scale(1.15)}
.uv-n text{fill:var(--ink);font-weight:600;font-size:13px;paint-order:stroke;stroke:var(--surface);stroke-width:3px;pointer-events:none}
.uv-c text.uv-ct{fill:#fff;stroke:none;font-family:var(--f-display);font-size:22px}
.ucard{margin-top:22px;scroll-margin-top:140px}
.back-note{color:var(--st-canon)}
.back-note span{font-weight:600}
.back-note .chip{margin-left:4px}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
/* глобус */
.globewrap{position:relative;display:none}
.mapbox.globe-on .globewrap{display:block}
.mapbox.globe-on #kmap{display:none}
#globe{display:block;width:100%;cursor:grab;touch-action:none}
#globe:active{cursor:grabbing}
.gl-zoom{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:6px}
.gl-zoom button{width:36px;height:36px;border:2px solid var(--line);border-radius:8px;background:var(--surface);font-size:20px;font-weight:700;cursor:pointer;box-shadow:2px 2px 0 var(--line)}
.gl-hint{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}
@media (max-width:640px){.spath::before{left:8px}.spath li{grid-template-columns:1fr;gap:2px;padding-left:30px}.spath li::before{left:1px}.spath .sw{text-align:left}.sdh{flex-direction:column}}

/* ---------- v6: ссылки в тексте, смерти, свои картинки ---------- */
a.ent{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:color-mix(in srgb,var(--red) 70%,transparent);text-underline-offset:3px;transition:color .15s ease,text-decoration-color .15s ease}
a.ent:hover,a.ent:focus-visible{color:var(--red);text-decoration-style:solid}
.cover.has-img{background-size:cover;background-position:center}
.cover.has-img::before,.cover.has-img::after,.cover.has-img .cv-t{display:none}
.cover.has-img .cv-y{align-self:flex-start;background:rgba(0,0,0,.55);padding:1px 6px;border-radius:3px}
.cover.mini.has-img .cv-y{display:none}
.mono.has-img{background-size:cover;background-position:center top}
.cvcol{display:flex;flex-direction:column;gap:8px;align-items:center;flex:none}
.imgone{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;border:1.5px dashed var(--soft);border-radius:999px;padding:4px 10px;transition:border-color .2s ease,color .2s ease}
.imgone:hover{border-color:var(--ink);color:var(--ink)}
.imgone input{position:absolute;width:1px;height:1px;opacity:0}
.linkbtn{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:13px}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;margin:22px 0;padding:34px 20px;border:3px dashed var(--soft);border-radius:12px;background:var(--surface);text-align:center;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.drop b{font-family:var(--f-display);font-size:24px;font-weight:600}
.drop span{color:var(--muted)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop.over,.drop:hover{border-color:var(--red);background:color-mix(in srgb,var(--red) 6%,var(--surface));transform:scale(1.01)}
.ok-note{color:var(--st-canon);font-weight:600;margin:10px 0}
.unm{display:grid;grid-template-columns:56px 1fr minmax(160px,260px) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--soft)}
.unm img{width:56px;height:56px;object-fit:cover;border-radius:6px}
.unm small{display:block;margin-top:5px;overflow-wrap:anywhere}
.unm input{padding:7px 10px;border:1.5px solid var(--soft);border-radius:var(--radius);background:var(--surface)}
.unm input.err{border-color:var(--red)}
.thumb{width:52px;height:72px;object-fit:cover;border-radius:4px;flex:none}
@media (max-width:640px){.unm{grid-template-columns:48px 1fr}.unm input,.unm .btn{grid-column:1/-1}.cvcol{align-items:flex-start}}

/* ---------- v7: админка ---------- */
.adm{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 14px);z-index:60;display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:10px 12px;background:#14161B;color:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:14px;animation:rise .35s ease}
.adm-t{font-family:var(--f-display);font-weight:600;font-size:16px;color:var(--yellow);margin-right:4px}
.adm button,.adm .adm-l{border:1.5px solid rgba(255,255,255,.25);background:transparent;color:#fff;border-radius:999px;padding:5px 12px;font-weight:600;cursor:pointer;text-decoration:none;font-size:14px;transition:background-color .2s ease,border-color .2s ease}
.adm button:hover,.adm .adm-l:hover{border-color:#fff}
.adm button.on{background:var(--yellow);color:#14161B;border-color:var(--yellow)}
.adm button.pub{background:var(--red);border-color:var(--red)}
.adm button.pub:disabled{opacity:.45;cursor:default}
.adm .adm-x{border-color:transparent;text-decoration:underline;font-weight:500}
.adm-s{color:rgba(255,255,255,.7);margin-left:4px}
body:has(.adm) main.wrap{padding-bottom:140px}
.ed{outline:2px dashed color-mix(in srgb,var(--blue) 55%,transparent);outline-offset:3px;border-radius:3px;cursor:text;transition:background-color .15s ease}
.ed:hover{background:color-mix(in srgb,var(--blue) 10%,transparent)}
.ed.empty{color:var(--muted);font-style:italic}
.ed-box{display:block;margin:6px 0}
.ed-ta{width:100%;font:inherit;line-height:1.5;padding:10px 12px;border:2px solid var(--blue);border-radius:var(--radius);background:var(--surface);color:var(--ink);resize:vertical}
.ed-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.ed-btns .btn{padding:6px 12px;font-size:14px}
.blk{position:relative;border:1.5px dashed var(--soft);border-radius:8px;padding:30px 10px 8px;margin:10px -10px}
.blk-bar{position:absolute;top:4px;left:8px;right:8px;display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
.blk-bar span{flex:1;font-weight:600}
.blk-bar button{border:1px solid var(--soft);background:var(--surface);border-radius:999px;padding:1px 9px;font-size:12px;cursor:pointer}
.blk-bar button:hover{border-color:var(--ink)}
.blk.is-hidden{opacity:.45;border-color:var(--red)}
.blk.is-hidden .blk-bar span{color:var(--red)}
.nav-off{text-decoration:line-through;opacity:.55}
.modal{position:fixed;inset:0;z-index:70;background:rgba(10,12,18,.55);display:flex;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 40px) 16px 40px;overflow:auto;animation:rise .25s ease}
.modal-c{width:min(720px,100%)}
.modal .chip input{margin:0}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 90px);z-index:80;background:var(--surface);color:var(--ink);border:2px solid var(--line);border-radius:10px;padding:10px 16px;box-shadow:var(--shadow);animation:rise .3s ease;transition:opacity .5s ease}
.toast.out{opacity:0}
.smap .reg.small2{font-size:11px;fill:rgba(220,228,255,.42);letter-spacing:.02em}
.kw-head{fill:#6B4E34;stroke:#C9A227;stroke-width:1;filter:drop-shadow(0 0 6px rgba(201,162,39,.45))}
.kw-eye{fill:#2A1E14}
.kw-l{fill:#FFD86B;animation:twinkle 2.6s ease-in-out infinite}
.kw:hover .kw-head,.kw.sel .kw-head{stroke-width:2}
.art-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;text-decoration:none;border-top:5px solid var(--g);transition:transform .2s ease,box-shadow .2s ease}
.art-card:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--line)}
.art-card b{font-family:var(--f-display);font-weight:600;font-size:17px}
.art-card span{font-size:13px;color:var(--muted)}
.art-dot.sm{width:26px;height:26px;margin:0}
@media (prefers-reduced-motion:reduce){.lk-n,.uv-n,.realm{opacity:1!important;animation:none!important}.lk-l{stroke-dasharray:none!important;stroke-dashoffset:0!important;animation:none!important}.kw-l{animation:none!important}}
.lk-n:focus-visible circle,.uv-n:focus-visible circle,.pl:focus-visible .body,.realm:focus-visible .body{stroke:var(--yellow);stroke-width:4}

/* ---------- v9: спойлеры, маршруты, релизы ---------- */
.spoil-wrap{position:relative;flex:none}
.spoil-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:70;width:min(340px,86vw);display:flex;flex-direction:column;gap:8px;animation:rise .2s ease}
.spoil-panel label{display:flex;gap:8px;align-items:center;cursor:pointer}
.spoil-panel select{padding:7px;border:1.5px solid var(--soft);border-radius:var(--radius);background:var(--surface);color:var(--ink);max-width:100%}
.spoil{position:relative;cursor:pointer;border-radius:8px;outline-offset:3px}
.spoil .spoil-in{filter:blur(7px);user-select:none;pointer-events:none;transition:filter .3s ease}
.spoil .spoil-tag{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;font-weight:600;font-size:13px;color:var(--ink);background:color-mix(in srgb,var(--surface) 35%,transparent);border:1.5px dashed var(--soft);border-radius:8px;min-height:32px}
.spoil:focus-visible{outline:3px solid var(--yellow)}
.spoil.open .spoil-in{filter:none;user-select:auto;pointer-events:auto}
.spoil.open .spoil-tag{display:none}
.spoil{min-height:34px}
.route-tile b{font-family:var(--f-display);font-size:19px}
.route-list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px}
.route-list li{display:grid;grid-template-columns:32px 64px 1fr;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--soft);animation:rise .4s ease both}
.route-list .an{font-family:var(--f-display);font-weight:700;font-size:22px;color:var(--red);text-align:right}
.route-cv .cover{width:64px}
.route-t{font-weight:600;font-size:18px;text-decoration:none}
.route-t:hover{text-decoration:underline}
.route-list p{margin-top:4px}
.sres .hint{font-size:13px;padding:8px 12px}
@media (max-width:640px){.route-list li{grid-template-columns:26px 48px 1fr;gap:10px}.route-cv .cover{width:48px}.spoil-panel{left:auto;right:-60px}}
@media (max-width:640px){
  .top-row{flex-wrap:wrap;row-gap:8px}
  .top-row .search{flex:1 1 100%;max-width:none;order:5;margin-left:0}
  .top-row .brand span{display:none}
  .spoil-panel{left:auto;right:auto}
}
@media (max-width:640px){.spoil-wrap{position:static}.spoil-panel{left:12px;right:12px;width:auto;top:calc(100% - 4px)}}
.lk-list #lk-graph{display:none}
.lk-list{grid-template-columns:minmax(0,1fr)!important}
.adm button:disabled{opacity:.35;cursor:default}

/* ---------- v12: спойлеры без размытия ---------- */
.spoil{display:block;margin:6px 0;filter:none}
.spoil .spoil-in,.spoil .spoil-tag{display:none}
.spoil-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1.5px dashed var(--soft);border-radius:var(--radius);background:var(--surface2);color:var(--ink);font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.spoil-btn::before{content:"";width:14px;height:14px;border-radius:50%;background:repeating-linear-gradient(45deg,var(--muted) 0 2px,transparent 2px 4px);flex:none}
.spoil-btn:hover{border-color:var(--ink)}
.spoil-btn:focus-visible,.spoil-hide:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.spoil.inl{display:inline;margin:0}.spoil.inl .spoil-btn{min-height:28px;padding:2px 10px;font-size:13px;font-weight:500}
.spoil-hide{margin-top:6px;background:none;border:0;padding:4px 0;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit;font-size:13px}
.spoil.inl .spoil-hide{margin:0}

/* ---------- v13: шесть разделов, хронология, каталог, энциклопедия ---------- */
nav.tabs{flex-wrap:nowrap}
nav.tabs a{min-height:40px;display:inline-flex;align-items:center}
@media (max-width:700px){nav.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;overflow:visible;padding-bottom:8px}nav.tabs a{justify-content:center;padding:6px 4px;font-size:14px;min-height:44px;text-align:center}}
@media (max-width:340px){nav.tabs a{font-size:12.5px}}
.crumb{display:inline-block;margin:4px 0 10px;color:var(--muted);text-decoration:none;font-weight:500}.crumb:hover{color:var(--ink);text-decoration:underline}
.tl-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 6px;max-width:760px}
.tl-switch button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:12px 16px;border:2px solid var(--soft);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;min-height:56px}
.tl-switch button b{font-family:var(--f-display);font-weight:600;font-size:19px}.tl-switch button span{font-size:13px;color:var(--muted)}
.tl-switch button.on{border-color:var(--ink);background:var(--ink);color:var(--surface)}.tl-switch button.on span{color:color-mix(in srgb,var(--surface) 75%,transparent)}
.tl-note{max-width:78ch;margin:-4px 0 18px;font-size:14px}
.tag-u{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--soft);color:var(--muted);white-space:nowrap;margin-left:4px}
.tag-u.soon{border-color:var(--red);color:var(--red)}
.era-x .era-h h2{font-size:22px}.era-note{margin:-4px 0 8px;font-size:14px}
.ct-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 12px}
.ct-top input[type=search]{flex:1 1 240px;min-height:44px;padding:8px 12px;border:1.5px solid var(--soft);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit}
.ct-fbtn .cnt{font-style:normal;background:var(--red);color:#fff;border-radius:999px;padding:0 7px;margin-left:4px;font-size:12px}
.ct-panel{margin-bottom:14px}.ct-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.ct-panel fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.ct-panel legend{font-weight:600;margin-bottom:4px}
.ct-panel label{display:flex;gap:8px;align-items:center;min-height:32px;cursor:pointer}
.ct-panel select{padding:7px;border:1.5px solid var(--soft);border-radius:var(--radius);background:var(--surface);color:var(--ink)}
.legend-d{margin-top:12px}.legend-d summary{cursor:pointer;font-weight:600;min-height:32px}
.ct-bar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.cbadge{display:inline-block;align-self:flex-start;font-size:12px;padding:1px 8px;border-radius:999px;border:1px solid var(--soft);color:var(--muted)}
.cbadge.soon{border-color:var(--red);color:var(--red)}
.card b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}
.enc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:22px}
.enc-card,.watch-way,.way{display:flex;flex-direction:column;gap:6px;padding:18px;text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
.enc-card b,.watch-way b,.way b{font-family:var(--f-display);font-weight:600;font-size:21px}
.enc-card:hover,.watch-way:hover,.way:hover{transform:translate(-2px,-2px)}
.watch-ways,.ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px}
.hero2{padding:26px 0 8px;max-width:820px}.hero2 h1{font-size:clamp(34px,6vw,60px);line-height:1.02}.hero2 .lead{margin-top:12px;max-width:62ch}
.cd-chip{display:inline-block;margin-top:16px;padding:6px 12px;border-radius:999px;background:var(--yellow);color:#14161B;font-weight:600;text-decoration:none;font-size:14px}
.grid.g4{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
@media (max-width:640px){.tl-switch{grid-template-columns:1fr}.hero2{padding-top:14px}}
.more-d{margin-top:8px}.more-d summary{cursor:pointer;font-weight:600;color:var(--muted);min-height:32px;display:list-item}
.row{grid-template-columns:40px 38px minmax(0,1fr) auto}
.row .side{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
@media (max-width:640px){.row{grid-template-columns:28px 38px minmax(0,1fr);gap:10px}.row .side{grid-column:3;justify-content:flex-start}.row .side:empty{display:none}.tag-u{white-space:normal;margin-left:0}}
@media (max-width:700px){.top{position:relative}.mside{position:static}}
.story+.story{margin-top:10px}
.impact{font-size:17px;line-height:1.55;margin:8px 0 10px;max-width:72ch}
.nextl li{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
/* облегчённые рамки и тени у мелких элементов */
.chip,.ct-top input[type=search],.ct-panel select,.unm input,.spoil-btn{border-width:1.5px}
.card .cover{box-shadow:none}
.panel{box-shadow:3px 3px 0 var(--line)}
.ptile,.enc-card,.watch-way,.way{box-shadow:3px 3px 0 var(--line)}
.legend-link{margin:-4px 0 10px;font-size:14px}.legend-link a{color:var(--muted)}

.version-heading{font-size:14px;font-weight:700;margin:16px 0 8px}.ver-switch{display:flex;flex-wrap:wrap;gap:8px}.ver-switch .season{flex:1 1 140px;white-space:normal;text-align:left;padding:10px 12px}.ver-switch .season i{display:block;font-size:12px;font-weight:400;font-style:normal;opacity:.8;margin-top:4px}
.episode-cast{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;margin-top:15px}.episode-person{padding:14px}.episode-person a{color:var(--ink)}.episode-person p{margin-top:8px;font-size:14px;line-height:1.5}.ep h3 a{color:inherit;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--red)}
@media(max-width:520px){.ver-switch .season{flex:1 1 45%}.episode-cast{grid-template-columns:1fr}}

.art-photo{display:block;width:100%;height:132px;object-fit:contain;background:var(--bg);border-radius:8px;margin-bottom:6px}.art-photo.big{width:170px;height:170px;max-width:40vw;flex:none}.watch-way{cursor:pointer;text-align:left}.item-admin-card{display:flex;flex-direction:column;min-width:0}.item-admin-card>.art-card{flex:1}.item-photo-controls{padding:8px 4px;font-size:13px}.item-categories{margin-top:18px}.item-categories [aria-current="page"]{background:var(--ink);color:var(--bg)}

.sacred-section{margin:22px 0 28px}.sacred-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.sacred-card{padding:16px;min-width:0}.sacred-card h3{font-size:17px;margin:8px 0 12px;line-height:1.35}
.sacred-card p{font-size:14px;line-height:1.5}.sacred-card p:last-child{margin-top:12px}.sacred-svg{width:100%;height:auto;display:block;margin:10px 0}
@media(max-width:760px){.sacred-grid{grid-template-columns:1fr}}

.cast-chip{display:inline-flex;align-items:center;gap:7px}.cast-chip .mono{width:27px;height:27px;min-width:27px;font-size:10px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.img-folder{margin-top:24px}.img-folder h3{margin-bottom:12px}
.place-image{margin:18px 0}.place-image img{display:block;max-width:100%;max-height:420px;object-fit:contain;border-radius:10px}
.portrait-trigger{border:0;background:transparent;padding:0;cursor:zoom-in;color:inherit}
.photo-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(5,8,12,.94);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:28px}
.photo-lightbox .photo-zoom-stage{position:relative;max-width:min(96vw,1200px);max-height:80vh}
.photo-lightbox .photo-zoom-stage>img{display:block;max-width:100%;max-height:80vh;object-fit:contain;border-radius:5px}
.photo-zoom-hotspots{position:absolute;inset:0;display:flex}
.photo-zoom-hotspot{min-width:0;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;touch-action:manipulation}
.photo-zoom-hotspot--prev,.photo-zoom-hotspot--next{flex:0 0 28%}
.photo-zoom-hotspot--close{flex:1}
.photo-zoom-hotspot--prev::before,.photo-zoom-hotspot--next::before{display:block;font-size:clamp(30px,4vw,48px);line-height:1;text-shadow:0 2px 12px #000;opacity:.55;transition:opacity .18s}
.photo-zoom-hotspot--prev::before{content:'‹'}
.photo-zoom-hotspot--next::before{content:'›'}
.photo-zoom-hotspot--prev:hover::before,.photo-zoom-hotspot--next:hover::before,.photo-zoom-hotspot--prev:focus-visible::before,.photo-zoom-hotspot--next:focus-visible::before{opacity:1}
.photo-zoom-hotspot:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.photo-lightbox .photo-zoom-caption{color:#eee;margin:0;text-align:center;font-size:14px;max-width:min(96vw,1200px)}
.photo-zoom-count{color:#aeb3ba;margin-left:10px;font-variant-numeric:tabular-nums}
@media(max-width:640px){.photo-lightbox{padding:16px;gap:12px}.photo-lightbox .photo-zoom-stage{max-width:100%;max-height:84vh}.photo-lightbox .photo-zoom-stage>img{max-height:84vh}}

.bio-events{margin:24px 0}.bio-event{padding:10px 0;border-bottom:1px solid var(--border,rgba(140,140,140,.2));font-size:14px}
.bio-event a{font-weight:600}.bio-event p{margin:7px 0 0}
/* Film-series selector: a quiet editorial highlight instead of a warning-like red outline. */
.film-series .grid{align-items:stretch;gap:16px}
.film-series-entry{min-width:0;padding:12px;border:1px solid transparent;border-radius:12px;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}
.film-series-entry>.muted{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:25px;margin-bottom:9px;font-size:13px;font-weight:600}
.film-series-entry.current{position:relative;background:linear-gradient(155deg,var(--surface) 0%,var(--surface2) 100%);border-color:var(--soft);box-shadow:inset 0 3px 0 var(--red),0 12px 30px rgba(20,22,27,.10);transform:translateY(-3px)}
.film-series-entry.current>.muted{color:var(--ink)}
.film-series-entry.current>.muted::after{content:"ОТКРЫТО";padding:6px 7px;border-radius:5px;background:var(--ink);color:var(--surface);font-size:10px;font-weight:700;line-height:1;letter-spacing:.05em;white-space:nowrap}
.film-series-entry.current>.card{outline:none;outline-offset:0}
.film-series-entry.current>.card .cover{box-shadow:0 4px 14px rgba(20,22,27,.12)}
.film-series-entry.current>.card:hover .cover{transform:translateY(-2px) rotate(0);box-shadow:0 8px 20px rgba(20,22,27,.18)}
.film-series-entry.current>.card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:520px){.film-series .grid{gap:10px}.film-series-entry{padding:8px;border-radius:10px}.film-series-entry>.muted{font-size:12px}.film-series-entry.current>.muted::after{padding:5px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.film-series-entry{transition:none}}
.character-looks{margin-top:16px}.character-looks h3{margin-bottom:10px}.character-looks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin:12px 0}.character-look{display:flex;flex-direction:column;gap:6px;min-width:0}.character-look img{display:block;width:100%;height:120px;object-fit:cover;border-radius:8px}.character-look .portrait-trigger{width:100%}.character-look input{min-width:0;width:100%;font:inherit;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:inherit}.character-look span{font-size:13px}
.project-items{margin-top:28px}.project-item-category{margin-top:16px}.project-item-category h3{margin-bottom:10px}
.character-groups-editor{border:1px solid var(--line);border-radius:10px;padding:14px;margin:16px 0;min-width:0}.character-groups-editor legend{padding:0 6px;font-weight:600}.character-groups-editor form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.character-groups-editor label{cursor:pointer}.character-groups-editor .chip{white-space:normal}.character-episodes{margin-top:12px}.character-episodes summary{cursor:pointer;font-weight:600}.character-episodes .apps{margin-top:12px}.character-episodes .an{font-size:12px;min-width:34px}

/* Independent fan-guide notice: sitewide footer */
.legal-footer{margin-top:64px;background:var(--surface);border-top:var(--panel-border) solid var(--line)}
.legal-footer__inner{padding-top:28px!important;padding-bottom:30px!important}
.legal-footer__notice{display:grid;gap:10px;max-width:940px;font-size:13px;line-height:1.65;color:var(--muted)}
.legal-footer__notice strong{color:var(--ink)}
.legal-footer__bottom{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;border-top:1px solid var(--soft);padding-top:15px;margin-top:22px;font-size:12px;color:var(--muted)}
.legal-footer__links{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}
.legal-footer__links a{text-underline-offset:3px}
.legal-footer__links a:hover{color:var(--ink)}
@media(max-width:640px){.legal-footer{margin-top:44px}.legal-footer__inner{padding-top:22px!important;padding-bottom:25px!important}.legal-footer__bottom{align-items:flex-start;flex-direction:column;gap:9px}}

/* ===== Карты: свои картинки, Нью-Йорк, редактор точек ===== */
.spacewrap.has-bg #spc,.treewrap.has-bg #ygc{display:none}
.spacewrap.has-bg .smap .reg{fill:#fff;opacity:.85;paint-order:stroke;stroke:rgba(0,0,0,.6);stroke-width:3px}
.pl.has-img image,.realm.has-img image{filter:drop-shadow(0 0 6px rgba(0,0,0,.6))}
.nycbox{padding:0;overflow:hidden;background:#070821}
.nycmap{width:100%;height:auto;display:block}
.nyc-lb{font:700 22px var(--f-display,system-ui);fill:#fff;opacity:.88;letter-spacing:.06em;text-transform:uppercase;paint-order:stroke;stroke:#2A2280;stroke-width:4px;pointer-events:none}
.nyc-lb.water{font-style:italic;font-weight:600;font-size:15px;fill:#8F9BFF;stroke:none;text-transform:none;letter-spacing:.02em}
.nyc-lb.nj{fill:#8F9BFF;font-size:16px;stroke:none}
.nyc-pin{cursor:pointer}.nyc-pg{fill:#FFD447;opacity:.7;filter:url(#nyc-mglow)}.nyc-pc{fill:#FFD447;stroke:#14161B;stroke-width:2.5}
.nyc-pl{font:700 12px system-ui;fill:#fff;paint-order:stroke;stroke:#14161B;stroke-width:3px;pointer-events:none}
.nyc-pin.sel .nyc-pc{fill:#E62429}.nyc-arrow{fill:#FFD447;stroke:#14161B;stroke-width:2}.nyc-pin.far.sel .nyc-arrow{fill:#E62429}.nyc-pin.sel .nyc-pg{fill:#E62429}
.nyc-pin:focus-visible .nyc-pc,.epin:focus-visible .epin-c{stroke:#fff;stroke-width:4}
.earthimg svg{width:100%;height:auto;display:block}
#kmapbox.img-mode .globewrap,#kmapbox.img-mode #kmap{display:none}
#kmapbox:not(.img-mode) .earthimg{display:none}
.epin{cursor:pointer}.epin-g{fill:#FFD447;opacity:.5}.epin-c{fill:#FFD447;stroke:#14161B;stroke-width:3}.epin.sel .epin-c,.epin.sel .epin-g{fill:#E62429}
[data-drag].dragging{opacity:.8;cursor:grabbing}
.map-adm{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin:12px 0;padding:10px 12px;border:1.5px dashed var(--soft);border-radius:var(--radius);font-size:14px}
.map-adm.side{display:block;margin-top:14px}.map-adm.side h4{margin:0 0 6px}.map-adm.side p{margin:6px 0}
.map-adm .muted{flex-basis:100%;margin:0}
.btn.sm{padding:2px 10px;min-height:30px}
.sacred-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin:10px 0;display:block}

/* Nested MCU location maps and provenance */
.place-breadcrumb{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.9rem;color:var(--muted);margin:1rem 0}
.place-location-note{font-size:.9rem;color:var(--muted);line-height:1.6;max-width:80ch;margin:.7rem 0}
.place-scheme,.place-local-map,.place-scenes{margin-top:2rem}
.place-scheme-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.place-scheme-head h2{margin:0}
.place-scheme-count{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:24px;padding:0 7px;border-radius:5px;background:var(--surface2);color:var(--muted);font:600 12px/1 var(--f-body)}
.place-scheme-context{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;margin:0 0 13px;color:var(--muted);font-size:13px}
.place-scheme-context a{font-weight:600;color:var(--ink);text-decoration:none;text-underline-offset:3px}
.place-scheme-context a:hover{text-decoration:underline}
.place-scheme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:7px}
.place-node{display:flex;align-items:center;gap:10px;min-height:46px;min-width:0;padding:9px 11px;border:1px solid var(--soft);border-radius:7px;background:var(--surface);color:var(--ink);font-size:13.5px;line-height:1.35;text-decoration:none;transition:background-color .16s ease,border-color .16s ease}
.place-node-label{min-width:0;overflow-wrap:anywhere}
.place-node-dot{width:6px;height:6px;flex:0 0 6px;border-radius:2px;background:#9ba3af}
.place-node::after{content:'›';margin-left:auto;color:var(--muted);opacity:0;font-size:17px;line-height:1}
.place-node:hover{background:var(--surface2);border-color:#aeb6c2}
.place-node:hover::after{opacity:1}
.place-node.selected{background:#fff3f3;border-color:#efbdc0}
.place-node.selected .place-node-dot{background:var(--red)}
.place-node.selected::after{content:'';width:3px;height:17px;flex:0 0 3px;border-radius:2px;background:var(--red);opacity:1}

.place-local-map svg{display:block;width:min(100%,800px);height:auto;aspect-ratio:1.6;background:var(--surface2);border:1px solid var(--soft);border-radius:6px;margin:14px 0 6px}.place-map-tiles{filter:saturate(.45)}.place-map-pin{fill:#754ee8}.place-map-halo{opacity:.22}.place-map-pin.selected{fill:var(--red)}.place-map-attribution{font-size:12px;margin-bottom:12px;color:var(--muted)}
.place-sources{margin:2rem 0;border-top:1px solid var(--line,#39364b);padding-top:1rem}.place-sources summary{cursor:pointer}.place-sources ul{line-height:1.8;overflow-wrap:anywhere;padding-left:1.4rem}.place-scenes ul{list-style:none;padding:0}.place-scenes li{padding:1rem 0;border-bottom:1px solid var(--line,#39364b)}.place-scenes .chips{margin:.6rem 0}.place-scenes p{line-height:1.6}
@media(max-width:600px){.place-scheme-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:6px}.place-node{min-height:44px;padding:9px 10px;font-size:13px}.place-local-map .chips{gap:6px}.place-breadcrumb{font-size:.8rem}}

/* Compact atlas panels and in-universe place previews */
.atlas-mapwrap>.mside{align-self:start;min-width:0;max-height:min(620px,72vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.atlas-side-photo{display:grid;place-items:center;overflow:hidden;border-radius:10px;margin:12px 0;background:#111d2f;aspect-ratio:16/9;border:1px solid rgba(140,159,185,.28)}
.mside .atlas-side-photo img{display:block;width:100%;height:100%;object-fit:cover;transform:none;filter:none}
.mside .atlas-side-icon img{object-fit:contain;width:min(100%,230px);filter:drop-shadow(0 8px 9px rgba(0,0,0,.5))}
.atlas-side-photo-empty{min-height:110px;background:linear-gradient(135deg,#182333,#293145);color:#c1cbd6;font-size:13px;text-align:center;padding:14px}
.atlas-side-more{margin:10px 0 0;border-top:1px solid var(--soft);padding-top:10px}
.atlas-side-more summary{font-size:13px;cursor:pointer;color:var(--red);font-weight:650}
.atlas-side-more .chips{padding:8px 0 4px}
.atlas-compact-section{margin-top:26px}
.atlas-compact-groups{display:grid;gap:9px}
.atlas-compact-group summary{padding:14px 18px;align-items:center}
.atlas-compact-links{display:flex;flex-wrap:wrap;gap:7px;padding:8px 16px 17px;max-height:310px;overflow-y:auto}
.atlas-compact-links .chip{font-size:13px}
.atlas-approx-note{font-size:13px!important;color:var(--muted);line-height:1.5;margin:7px 0 10px}
.atlas-approx-pin.mk{stroke:#f9c75b;stroke-dasharray:3 2}
.epin.atlas-approx-pin .epin-c{stroke:#f9c75b;stroke-dasharray:3 2;stroke-width:2.5}
#spacebox .smap,#ygbox .ymap{touch-action:auto;cursor:default}
.place-atlas-preview{margin:20px 0 24px}
.atlas-preview-link{display:block;overflow:hidden;max-width:780px;border:1px solid var(--soft);border-radius:14px;background:#101a29;text-decoration:none;color:var(--ink)}
.atlas-preview-link svg{display:block;max-height:320px;width:100%;height:auto;background:#091225}
.atlas-preview-footer{display:flex;gap:8px 22px;justify-content:space-between;align-items:center;flex-wrap:wrap;background:var(--surface2);padding:12px 16px;font-size:14px}
.atlas-preview-footer span{font-weight:600;color:var(--red)}
.atlas-preview-link:hover{border-color:var(--red)}
@media(max-width:900px){.atlas-mapwrap>.mside{position:static;max-height:390px;overflow-y:auto}.atlas-side-photo{max-height:210px}.atlas-compact-links{max-height:250px}}

/* Каталог героев */
.heroes-directory .directory-hero{min-height:clamp(240px,24vw,310px)}
.heroes-directory .directory-intro{padding-block:clamp(22px,3vw,40px)}
.hero-groups{
  display:grid;
  grid-template-columns:max-content repeat(3,minmax(0,1fr));
  align-items:start;
  gap:8px;
  margin:0 0 16px;
}
.hero-groups .chip{border-radius:3px}
.hero-groups .chip.on{background:var(--dir-red);border-color:var(--dir-red);color:#fff}
.hero-groups>.chip{justify-content:center;min-height:44px;padding-inline:14px;font-weight:600}
.hero-group-panel{min-width:0;border:1px solid var(--dir-line);border-radius:3px;background:var(--surface)}
.hero-group-panel>summary{
  cursor:pointer;
  display:flex;
  box-sizing:border-box;
  align-items:center;
  min-height:42px;
  gap:8px;
  padding:8px 10px;
  font-size:14px;
  font-weight:600;
  line-height:1.25;
  list-style:none;
}
.hero-group-panel>summary::-webkit-details-marker{display:none}
.hero-group-panel>summary::after{content:"";flex:none;width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);margin-right:2px}
.hero-group-panel[open]>summary::after{transform:translateY(2px) rotate(225deg)}
.hero-group-panel>summary small{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
.hero-group-panel>summary:hover,.hero-group-panel:has(.chip.on)>summary{background:#fbf7f8;color:var(--dir-red)}
.hero-group-items{padding:4px 10px 11px}
.hero-group-items .chip{text-align:left}

.heroes-directory .hgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.heroes-directory .hgrid .hcard{
  min-width:0;
  min-height:89px;
  gap:10px;
  padding:8px 10px 8px 8px;
  border:1px solid var(--dir-line);
  border-radius:3px;
  box-shadow:none;
  animation:none;
  transition:border-color .18s,background-color .18s;
}
.heroes-directory .hgrid .hcard:hover{transform:none;border-color:#ba7c85;background:#fbf7f8;box-shadow:none}
.heroes-directory .hcard .mono{
  display:inline-flex;
  width:68px;
  height:68px;
  border:0;
  border-radius:2px;
  color:#fff;
  font-size:20px;
  background-position:center 24%;
  transform:none;
}
.heroes-directory .hcard>span:last-child{min-width:0;overflow-wrap:anywhere}
.heroes-directory .hcard b{color:var(--ink);font:600 18px/1.2 var(--f-display);margin-bottom:3px}
.heroes-directory .hcard span span{font-size:12px}
.heroes-directory .hcard span span:empty{display:none}
@media(max-width:1100px){.heroes-directory .hgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
  .hero-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .heroes-directory .hgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px){
  .heroes-directory .directory-hero{min-height:0}
  .heroes-directory .directory-art{min-height:clamp(124px,35vw,190px)}
}
@media(max-width:510px){
  .heroes-directory .hgrid{grid-template-columns:1fr;gap:8px}
  .heroes-directory .hgrid .hcard{min-height:73px}
  .heroes-directory .hcard .mono{width:55px;height:55px}
}
@media(prefers-reduced-motion:reduce){.heroes-directory .hgrid .hcard{transition:none}}

/* Редактор статей */
.article-editor-head{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}
.article-editor-head .fld{margin:0;min-width:min(100%,260px)}
.article-editor-content{max-width:850px;display:grid;gap:13px;margin-top:18px}
.article-editor-content .fld{display:grid;gap:5px;margin:0}
.article-editor-content .ed-ta{border:1px solid var(--line)}
.article-editor-content .ed-ta:focus{border-color:var(--blue)}
.article-editor-section{border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px}
.article-editor-section summary{font-weight:700;cursor:pointer}
.article-editor-section[open]{padding-bottom:18px}
.article-photo-fields{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.article-photo-fields img{width:105px;max-height:135px;object-fit:cover;border-radius:var(--radius)}
.article-photo-fields>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.article-photo-fields .fld{flex-basis:100%}
.article-photo-fields .imgone:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.article-photo-hide{font-size:13px}
