/* Dust & Decay MC — maquette */
:root {
  --bg: #0b0c0d; --bg2: #101214; --panel: #15181b; --panel2: #1b1f23;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --text: #ebe7e0; --muted: #9b968e; --dim: #6c6862;
  --red: #d0202a; --red2: #ff3b45; --amber: #f2a533; --tox: #9bd13a; --safe: #4fc38a; --blue: #4a8fe7;
  --display: 'Oswald', Impact, sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px; --r: 4px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; background: var(--noise); opacity: .05; pointer-events: none; z-index: 100; mix-blend-mode: overlay; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel2); padding: 1px 6px; border-radius: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
::selection { background: var(--red); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border-radius: var(--r); transition: .2s; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 0 0 1px rgba(255,80,80,.3) inset, 0 10px 30px -10px rgba(208,32,42,.7); }
.btn-red:hover { background: var(--red2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line2); background: rgba(10,10,10,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); transition: .2s; }
.icon-btn svg { width: 18px; fill: currentColor; }
.icon-btn:hover { background: #5865f2; border-color: #5865f2; }
.link { color: var(--amber); display: inline-block; margin-top: 10px; }
.link:hover { color: #fff; }

/* status */
.status, .srv-state { display: inline-flex; align-items: center; gap: 8px; }
.status i, .srv-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
[data-status].on i { background: var(--safe); box-shadow: 0 0 0 0 rgba(79,195,138,.6); animation: ping 2s infinite; }
[data-status].off i { background: var(--red); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(79,195,138,0); } 100% { box-shadow: 0 0 0 0 rgba(79,195,138,0); } }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red2); margin-right: 10px; animation: blink 1.2s steps(2) infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* topbar + nav */
.topbar { background: #070808; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; height: 34px; align-items: center; }
.topbar b { color: var(--amber); font-weight: 600; }
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11,12,13,.86); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav-in { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.nav-links a { font: 500 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); }
.nav-act { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 38px; height: 38px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: .25s; }
.burger span:first-child { top: 14px; } .burger span:last-child { top: 22px; }
.nav-open .burger span:first-child { top: 18px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 18px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: max(680px, calc(100svh - 34px)); margin-top: -68px; display: flex; align-items: flex-end; padding: 120px 0 96px; overflow: hidden; background: #0b0a0a url(../img/film/00.jpg) center/cover; isolation: isolate; }
#film, #ash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
#ash { z-index: -1; pointer-events: none; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.55) 45%, rgba(8,8,9,0) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11,12,13,0) 35%),
              linear-gradient(180deg, rgba(8,8,9,.7) 0%, rgba(8,8,9,0) 22%),
              radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.hero-in { position: relative; }
.tag { color: var(--muted); margin-bottom: 26px; display: flex; align-items: center; }
.hero-logo { width: min(500px, 92%); height: auto; filter: drop-shadow(0 12px 40px rgba(0,0,0,.7)); margin: 0 0 22px -10px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 700; letter-spacing: .005em; max-width: 12ch; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 em { font-style: normal; color: var(--red2); display: block; }
.lead { font-size: 18px; color: #cfcac2; max-width: 560px; margin: 20px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.ip { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 22px; align-items: center; text-align: left; padding: 8px 10px 8px 20px; border: 1px solid rgba(208,32,42,.6); background: linear-gradient(90deg, rgba(208,32,42,.22), rgba(208,32,42,.06)); border-radius: var(--r); backdrop-filter: blur(6px); transition: .2s; }
.ip:hover { border-color: var(--red2); background: rgba(208,32,42,.3); }
.ip-lbl { font-size: 10px; color: var(--muted); grid-column: 1; }
.ip strong { font-size: 17px; letter-spacing: .04em; grid-column: 1; text-transform: none; color: #fff; }
.ip-act { grid-column: 2; grid-row: 1 / 3; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 3px; font-size: 11px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.hero-meta li::before { content: '▪'; color: var(--red); margin-right: 8px; }
.radio { position: absolute; right: 24px; bottom: 44px; max-width: 420px; padding: 12px 16px; background: rgba(5,5,6,.7); border: 1px solid var(--line); border-left: 2px solid var(--amber); font-size: 11px; line-height: 1.6; color: #d8d3cb; text-transform: none; letter-spacing: .02em; backdrop-filter: blur(6px); min-height: 46px; }
.radio b { color: var(--amber); text-transform: uppercase; margin-right: 10px; letter-spacing: .12em; }
.caret { display: inline-block; width: 7px; height: 12px; background: var(--amber); margin-left: 3px; vertical-align: -1px; animation: blink 1s steps(2) infinite; }
.scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 10px; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll span { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* hazard tape */
.tape { position: relative; z-index: 2; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #141414 14px 28px); padding: 4px 0; transform: rotate(-1deg) scale(1.02); margin: -18px 0 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tape-run { display: flex; width: max-content; background: #0d0d0d; animation: tape 40s linear infinite; }
.tape span { padding: 11px 28px; color: var(--amber); font-size: 12px; white-space: nowrap; }
.tape span::after { content: '◆'; margin-left: 56px; color: #5a4a2a; }
@keyframes tape { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 110px 0; position: relative; }
.sec-dark { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 60px; max-width: 760px; }
.eyebrow { color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; }
.eyebrow b { color: var(--red2); font-weight: 600; margin-right: 6px; }
.sec h2 { font-size: clamp(34px, 4.6vw, 58px); }
.sec-lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 620px; }

/* framed images (tactical corners) */
.frame { position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; border: 2px solid rgba(255,255,255,.55); }
.frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* cycle */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; }
.step-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r); margin-bottom: 26px; background: var(--panel); }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .8s; filter: saturate(.85); }
.step:hover .step-img img { transform: scale(1.05); filter: saturate(1.1); }
.step-n { position: absolute; top: 12px; right: 14px; font: 700 64px/1 var(--display); color: rgba(255,255,255,.9); text-shadow: 0 4px 20px rgba(0,0,0,.8); z-index: 2; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--muted); }
.ticks { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { font-size: 10.5px; padding: 5px 9px; border: 1px solid var(--line2); border-radius: 3px; color: #c9c4bc; }
.risk { margin-top: 90px; padding: 34px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); }
.risk-head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 14px; }
.risk-head span:last-child { color: var(--amber); }
.risk-bar { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--safe), #c9b54a 32%, var(--amber) 52%, var(--red) 76%, var(--tox)); }
.risk-bar i { position: absolute; top: 50%; left: var(--p); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.risk-lbl { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 18px 0 0; font-size: 11px; color: var(--muted); }
.risk-lbl li:nth-child(2) { text-align: center; transform: translateX(-30%); }
.risk-lbl li:nth-child(3) { text-align: center; }
.risk-lbl li:nth-child(4) { text-align: center; transform: translateX(25%); }
.risk-lbl li:last-child { text-align: right; color: var(--tox); }

/* map */
.sec-map { background: radial-gradient(ellipse at 30% 50%, rgba(242,165,51,.05), transparent 60%), var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.map-view { background: linear-gradient(rgba(10,11,12,.86), rgba(10,11,12,.86)), url(../img/city.jpg) center/cover; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
#map-svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.z { cursor: pointer; transition: opacity .25s; }
.z > * { transition: .25s; }
.z-wild { fill: rgba(186,160,100,.05); stroke: rgba(186,160,100,.5); stroke-width: 2; stroke-dasharray: 8 8; }
.z-city { fill: rgba(242,165,51,.1); stroke: var(--amber); stroke-width: 2; }
.z-safe { fill: rgba(79,195,138,.35); stroke: var(--safe); stroke-width: 3; }
.z-tox { stroke: var(--tox); stroke-width: 2; }
.z-danger { stroke: var(--red); stroke-width: 2; }
.z-res { fill: rgba(74,143,231,.12); stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 4; }
.pin path { fill: var(--amber); stroke: #000; stroke-width: 2; }
.lz circle { fill: rgba(5,5,5,.8); stroke: #fff; stroke-width: 2; }
.lz text { fill: #fff; font: 700 15px var(--display); text-anchor: middle; pointer-events: none; }
.z:hover > *, .z.on > * { filter: brightness(1.5) drop-shadow(0 0 10px rgba(255,255,255,.25)); }
.z.on .z-wild, .z.on .z-city, .z.on .z-tox, .z.on .z-danger, .z.on .z-res, .z.on .z-safe { stroke-width: 4; }
.map-txt text { fill: rgba(235,231,224,.6); font: 600 13px var(--mono); letter-spacing: .14em; text-anchor: middle; pointer-events: none; }
.cross { stroke: rgba(242,165,51,.25); stroke-width: 1; pointer-events: none; opacity: 0; transition: opacity .2s; }
.map-view:hover .cross { opacity: 1; }
.map-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 10px 16px; font-size: 10.5px; color: var(--muted); background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
#coords { color: var(--amber); }
.intel { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--zc, var(--amber)); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.intel-tag { color: var(--dim); font-size: 10.5px; }
.intel h3 { font-size: 38px; }
.intel-type { color: var(--zc, var(--amber)); margin-top: -8px; }
.intel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.intel-stats div { background: var(--panel); padding: 12px 14px; }
.intel-stats dt { font-size: 10px; color: var(--dim); margin-bottom: 6px; }
.intel-stats dd { margin: 0; font-size: 12.5px; color: var(--text); }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 14px; height: 6px; background: var(--panel2); border: 1px solid var(--line2); }
.pips i.f { background: var(--zc, var(--red)); border-color: transparent; }
#i-desc { color: #c7c2ba; }
.intel-threat { color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: .03em; border-top: 1px dashed var(--line2); padding-top: 16px; margin-top: auto; }
.intel-threat b { color: var(--red2); text-transform: uppercase; letter-spacing: .1em; margin-right: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 10.5px; color: var(--muted); transition: .2s; }
.legend button:hover, .legend button.on { color: var(--text); border-color: var(--line2); background: var(--panel); }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.lg-safe { background: var(--safe); } .lg-city { background: var(--amber); } .lg-wild { border: 1px dashed #baa064; }
.lg-danger { background: var(--red); } .lg-tox { background: var(--tox); } .lg-res { background: var(--blue); }
.lg-pin { background: var(--amber); transform: rotate(45deg) scale(.8); } .lg-lz { border: 2px solid #fff; border-radius: 50% !important; }

/* infected */
.zgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.zcard { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px 18px; overflow: hidden; transition: transform .3s, border-color .3s; }
.zcard::before { content: ''; position: absolute; left: 50%; top: 40px; width: 160px; height: 160px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
.zcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.skin { image-rendering: pixelated; }
.zcard .skin { position: relative; width: 64px; height: 128px; margin: 14px auto 18px; filter: drop-shadow(0 12px 10px rgba(0,0,0,.6)); transition: transform .4s; }
.zcard:hover .skin { transform: scale(1.08) rotate(-2deg); }
.zthreat { position: absolute; top: 12px; left: 12px; font-size: 9.5px; color: var(--c); }
.zcard h3 { font-size: 19px; }
.zcard p { font-size: 13.5px; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; min-height: 60px; }
.bars { margin: 0; display: grid; gap: 8px; }
.bars dt { font-size: 9.5px; color: var(--dim); margin-bottom: 4px; }
.bars dd { margin: 0; height: 4px; background: var(--panel2); position: relative; }
.bars dd::after { content: ''; position: absolute; inset: 0; right: auto; width: calc(var(--v) * 100%); background: var(--c); }
.xp { display: block; margin-top: 16px; font-size: 10.5px; color: var(--amber); }
.horde { margin-top: 60px; border-radius: var(--r); overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.horde img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.horde::before { border-color: rgba(255,59,69,.7); }
.horde-txt { position: relative; z-index: 1; max-width: 520px; padding: 50px; margin-left: auto; background: linear-gradient(90deg, transparent, rgba(8,8,9,.85) 20%); height: 100%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.horde h3 { font-size: 40px; margin-bottom: 14px; }
.horde-txt > p:last-child { color: #c7c2ba; }
.ails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.ail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.ail svg { width: 30px; height: 30px; fill: var(--red2); stroke: var(--red2); margin-bottom: 16px; }
.ail:nth-child(3) svg { fill: var(--tox); stroke: var(--tox); stroke-width: 0; }
.ail:nth-child(3) svg path { fill: var(--tox); }
.ail h4 { font-size: 22px; margin-bottom: 8px; }
.ail p { color: var(--muted); font-size: 14.5px; }
.cure { display: inline-block; margin-top: 16px; font-size: 10.5px; color: var(--safe); border: 1px solid rgba(79,195,138,.3); background: rgba(79,195,138,.08); padding: 5px 9px; border-radius: 3px; }

/* factions */
.fac { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.fac-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.fac-tabs button { display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.fac-tabs button:last-child { border-bottom: 0; }
.fac-tabs button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--f); transform: scaleY(0); transition: transform .3s; }
.fac-tabs button:hover { background: var(--panel2); }
.fac-tabs button[aria-selected=true] { background: var(--panel2); }
.fac-tabs button[aria-selected=true]::before { transform: scaleY(1); }
.fac-tabs img { width: 40px; height: 40px; object-fit: cover; object-position: top; image-rendering: pixelated; border-radius: 3px; background: #0006; }
.fac-tabs b { display: block; font: 600 18px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.fac-tabs small { color: var(--dim); font-size: 10px; }
.fac-panel { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 44px; align-items: start; position: relative; overflow: hidden; }
.fac-panel::before { content: ''; position: absolute; left: -60px; top: -60px; width: 380px; height: 380px; background: radial-gradient(circle, color-mix(in srgb, var(--f, #fff) 22%, transparent), transparent 70%); pointer-events: none; }
.fac-skin { position: relative; width: 128px; height: 256px; margin: 0 auto; filter: drop-shadow(0 20px 16px rgba(0,0,0,.6)); }
.fac-body { position: relative; }
.fac-base { color: var(--f); margin-bottom: 10px; }
.fac-body h3 { font-size: 44px; }
.fac-body blockquote { margin: 18px 0; padding-left: 16px; border-left: 2px solid var(--f); font-style: italic; color: #d8d3cb; font-size: 17px; }
.fac-body > p { color: var(--muted); }
.fac-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.fac-cols h5, .rep h4, .foot h5 { font-size: 10.5px; color: var(--dim); margin: 0 0 12px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 12.5px; padding: 5px 10px; background: color-mix(in srgb, var(--f) 14%, transparent); border: 1px solid color-mix(in srgb, var(--f) 35%, transparent); border-radius: 3px; }
.rel { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 11px; text-transform: none; letter-spacing: .02em; }
.rel li::before { content: '●'; margin-right: 8px; }
.rel .ally::before { color: var(--safe); } .rel .enemy::before { color: var(--red2); } .rel .neutral::before { color: var(--muted); }
.fac-npc { margin-top: 26px; font-size: 10.5px; color: var(--dim); }
.fac-npc b { color: var(--text); font-weight: 400; }
.fac-panel.swap .fac-body, .fac-panel.swap .fac-skin { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.rep { margin-top: 28px; }
.rep-track { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; margin: 0; gap: 4px; }
.rep-track li { position: relative; padding: 14px 12px; background: var(--panel); border: 1px solid var(--line); font-size: 11px; color: var(--muted); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); padding-left: 22px; }
.rep-track li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-left: 14px; }
.rep-track .hostile { color: var(--red2); }
.rep-track .trade { color: var(--amber); background: rgba(242,165,51,.1); }
.rep-track .legend-lv { color: #fff; background: linear-gradient(90deg, var(--panel), rgba(208,32,42,.35)); }
.rep-track small { display: block; font-size: 9px; color: var(--amber); opacity: .8; margin-top: 2px; }

/* progression */
.prog { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; display: flex; flex-direction: column; }
.pcard h3 { font-size: 30px; margin-bottom: 14px; }
.pcard > p:not(.eyebrow) { color: var(--muted); }
.pcard .ticks { margin-top: auto; padding-top: 24px; }
.pcard-wide { background: linear-gradient(160deg, rgba(208,32,42,.14), transparent 50%), var(--panel); }
.pass { margin-top: 30px; }
.pass-bar { height: 6px; background: var(--panel2); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.pass-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--red), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .4s; }
.in .pass-bar i, html:not(.js) .pass-bar i { transform: none; }
.pass-lv { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 10px; text-align: center; color: var(--dim); }
.pass-lv li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg2); }
.pass-lv .done { color: var(--muted); border-color: rgba(79,195,138,.3); }
.pass-lv .now { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 20px -6px var(--amber); }
.pass-lv .gold { border-color: rgba(242,200,51,.35); }
.em { width: 12px; height: 12px; background: linear-gradient(135deg, #7af0a0, #17a34a 60%, #0b5d2a); transform: rotate(45deg); }
.done .em { opacity: .45; }
.ap { width: 14px; height: 14px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 35% 35%, #fff3a6, #f2c833 50%, #a87b0c); box-shadow: 0 0 12px rgba(242,200,51,.5); }
.pass-xp { margin-top: 12px; font-size: 10.5px; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.shot { position: relative; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.shot-big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .5s; filter: saturate(.8) brightness(.85); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.shot span { position: absolute; left: 14px; bottom: 12px; font-size: 10px; color: #fff; text-shadow: 0 1px 6px #000; z-index: 1; }
.shot::after { inset: 0; width: auto; height: auto; border: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.65)); }
.shot::before { z-index: 3; }

/* join */
.join { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.join-steps li { display: flex; gap: 26px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.join-steps li > span { font: 700 40px/1 var(--display); color: var(--red2); letter-spacing: 0; min-width: 50px; }
.join-steps h4 { font-size: 22px; margin-bottom: 6px; }
.join-steps p { color: var(--muted); }
.srv { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 14px; position: sticky; top: 92px; }
.srv-state { font: 600 24px var(--display); text-transform: uppercase; }
.srv-state i { width: 10px; height: 10px; }
.srv dl { margin: 4px 0 8px; border-top: 1px solid var(--line); }
.srv dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.srv dt { color: var(--dim); }
.srv dd { margin: 0; text-transform: none; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font: 600 21px var(--display); text-transform: uppercase; letter-spacing: .02em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 28px var(--mono); color: var(--red2); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--muted); padding: 0 50px 28px 0; max-width: 680px; }

/* cta */
.cta { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,9,.94), rgba(8,8,9,.55) 55%, rgba(8,8,9,.15)), linear-gradient(var(--bg2), transparent 28%, transparent 72%, #070808); }
.cta-in { position: relative; }
.cta h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 700; margin-bottom: 36px; }

/* footer */
.foot { background: #070808; border-top: 1px solid var(--line); padding: 70px 0 0; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.foot-in > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 10px; }
.foot-in a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-in a:hover { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; padding-bottom: 30px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--dim); }

/* toast + lightbox */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--safe); color: #04140b; padding: 12px 20px; border-radius: var(--r); font-weight: 600; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lb { padding: 0; border: 0; background: none; max-width: min(1280px, 94vw); overflow: visible; }
.lb::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(4px); }
.lb img { width: 100%; border-radius: var(--r); box-shadow: 0 30px 80px #000; }
.lb-x { position: absolute; top: -48px; right: 0; font-size: 34px; color: #fff; line-height: 1; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .zgrid { grid-template-columns: repeat(3, 1fr); }
  .prog { grid-template-columns: 1fr 1fr; }
  .pcard-wide { grid-column: 1 / -1; }
  .fac { grid-template-columns: 1fr; }
  .fac-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .fac-tabs button { flex: 1 0 auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .fac-tabs button::before { top: auto; right: 0; width: auto; height: 3px; transform: scaleX(0); }
  .fac-tabs button[aria-selected=true]::before { transform: scaleX(1); }
}
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: rgba(11,12,13,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a.on::after { display: none; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .nav { background: rgba(11,12,13,.97); }
  .burger { display: block; }
  .radio { display: none; }
  .loop { grid-template-columns: 1fr; gap: 50px; }
  .map, .join { grid-template-columns: 1fr; }
  .srv { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .horde-txt { max-width: none; margin: 0; background: linear-gradient(0deg, rgba(8,8,9,.92) 40%, transparent); justify-content: flex-end; padding: 30px; }
  .horde { min-height: 460px; align-items: stretch; }
  .fac-panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 20px; }
  .fac-skin { width: 80px; height: 160px; margin: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 90px 0; }
  .sec-head { margin-bottom: 40px; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero { padding: 120px 0 110px; }
  .hero-fx { background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,9,.55) 40%, rgba(8,8,9,.75) 100%); }
  .lead { font-size: 16px; }
  .ip { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .zgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .zcard p { min-height: 0; }
  .ails, .prog { grid-template-columns: 1fr; }
  .risk { padding: 22px; margin-top: 60px; }
  .risk-lbl { grid-template-columns: 1fr; gap: 4px; }
  .risk-lbl li { text-align: left !important; transform: none !important; }
  .rep-track { grid-template-columns: repeat(3, 1fr); }
  .rep-track li, .rep-track li:first-child { clip-path: none; padding-left: 12px; }
  .fac-cols { grid-template-columns: 1fr; }
  .fac-body h3 { font-size: 34px; }
  .intel { padding: 24px; }
  .intel h3 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .shot-big { grid-column: auto; grid-row: auto; }
  .join-steps li { padding: 22px; gap: 18px; }
  .pass-lv { grid-template-columns: repeat(5, 1fr); }
  .pcard { padding: 26px; }
  .faq summary { font-size: 18px; }
  .foot-in { grid-template-columns: 1fr; }
  .tape span { padding: 9px 20px; font-size: 11px; }
}
/* ================================================================ compte, grades, équipe */
:root { color-scheme: dark; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--muted); }
.nav-acc { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r); font: 500 13px var(--display); letter-spacing: .1em; text-transform: uppercase; transition: .2s; white-space: nowrap; }
.nav-acc:hover { border-color: var(--text); }
.nav-acc.on { padding-left: 7px; background: rgba(255,255,255,.04); }
.nav-acc canvas { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 2px; background: var(--panel2); }
.grade { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 45%, transparent); background: color-mix(in srgb, var(--g) 12%, transparent); border-radius: 3px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 3px; }
.pill::before, .dot { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill.on { color: var(--safe); border-color: rgba(79,195,138,.35); }
.pill.on::before, .dot { background: var(--safe); }
.dot { margin-right: 6px; vertical-align: 1px; }
.ok { color: var(--safe); }
.toast.bad { background: var(--red); color: #fff; }

/* statut + équipe sur l'accueil */
.srv-names { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 4px; font-size: 10.5px; text-transform: none; letter-spacing: .02em; }
.srv-names span { padding: 4px 8px; border: 1px solid rgba(79,195,138,.3); color: var(--safe); border-radius: 3px; }
.team { margin-top: 70px; }
.team h3 { font: 600 11px var(--mono); color: var(--dim); letter-spacing: .1em; margin-bottom: 18px; }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.team-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.team-list canvas { width: 64px; height: 128px; image-rendering: pixelated; filter: drop-shadow(0 10px 8px rgba(0,0,0,.6)); }
.team-list b { font: 600 17px var(--display); text-transform: uppercase; letter-spacing: .02em; }

/* page compte */
.acc-hero { position: relative; margin-top: -68px; padding: 150px 0 56px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.acc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.acc-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 10%, rgba(11,12,13,.6)), linear-gradient(0deg, var(--bg), transparent 60%); }
.acc-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; }
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 44px 110px; min-height: 50vh; }
.page .foot { padding-top: 0; }
.page .foot-legal { margin-top: 0; border-top: 0; }
.acc-loading { color: var(--dim); }
.alert { padding: 14px 18px; border: 1px solid rgba(208,32,42,.45); border-left: 3px solid var(--red2); background: rgba(208,32,42,.1); color: #f3c9cb; font-size: 12px; text-transform: none; letter-spacing: .02em; line-height: 1.6; border-radius: var(--r); }
.login { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px; padding: 48px; background: linear-gradient(150deg, rgba(208,32,42,.1), transparent 45%), var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.login h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.code-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; max-width: 540px; }
.code-steps li { display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.code-steps span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; font-size: 11px; color: var(--amber); }
kbd { font: 600 .9em var(--mono); color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; padding: 1px 7px; border-radius: 4px; }
.code-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.code-field { flex: 1 1 200px; height: 52px; font-size: 22px; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.code-field::placeholder { color: var(--dim); }
.code-note { color: var(--dim); font-size: 13.5px; margin-top: 14px; }
.login-art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.login-art img { width: 84px; image-rendering: pixelated; filter: drop-shadow(0 16px 12px rgba(0,0,0,.6)); }
.login-art img:nth-child(2) { width: 104px; }
.dossier { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.dossier-skin { display: grid; place-items: center; padding: 26px 0; background: radial-gradient(circle at 50% 40%, rgba(242,165,51,.14), transparent 65%); }
.dossier-skin canvas { width: 140px; height: 280px; image-rendering: pixelated; filter: drop-shadow(0 18px 14px rgba(0,0,0,.65)); }
canvas.no-skin { background: var(--panel2); border-radius: 3px; }
.dossier-id { color: var(--dim); font-size: 10.5px; text-transform: none; letter-spacing: .04em; }
.dossier h2 { font-size: clamp(38px, 5vw, 60px); margin: 6px 0 14px; overflow-wrap: anywhere; }
.dossier-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--panel); padding: 14px 16px; }
.facts dt { font-size: 10px; color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 12.5px; text-transform: none; letter-spacing: .02em; }
.dossier-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ranks { margin-top: 28px; }
.ranks h3, .admin h3 { font: 600 11px var(--mono); color: var(--dim); letter-spacing: .1em; margin-bottom: 14px; }
.ranks-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ranks-list li { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.ranks-list li:last-child { border-bottom: 0; }
.ranks-list li.me { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--amber); }
.ranks-note { color: var(--dim); font-size: 13.5px; margin-top: 14px; max-width: 760px; }

/* panneau de l'équipe */
.admin { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.admin-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.tabs { display: flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.tabs button { padding: 11px 18px; font-size: 11px; color: var(--muted); transition: .2s; }
.tabs button + button { border-left: 1px solid var(--line2); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { background: var(--panel2); color: var(--text); box-shadow: inset 0 -2px 0 var(--red2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.field { height: 42px; padding: 0 14px; min-width: 0; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); color: var(--text); font: 400 14px var(--body); transition: border-color .2s; }
.field:focus { outline: none; border-color: var(--amber); }
.toolbar .field { flex: 1 1 240px; max-width: 360px; }
.field-sm { height: 34px; padding: 0 10px; font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th { text-align: left; font-size: 10px; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table td.mono { font-size: 11px; text-transform: none; letter-spacing: .02em; }
.who { display: flex; align-items: center; gap: 12px; }
.who canvas { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 3px; background: var(--panel2); flex: none; }
.who b { display: block; font-weight: 600; }
.who small { font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: .02em; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.switch span { position: absolute; inset: 0; background: var(--panel2); border: 1px solid var(--line2); border-radius: 22px; transition: .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: rgba(79,195,138,.25); border-color: var(--safe); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--safe); }
.switch input:disabled + span { opacity: .5; }
.switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.solo-note { font-size: 13.5px; margin: -4px 0 18px; max-width: 700px; }
.solo-list, .log { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.solo-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.solo-list li:last-child, .log li:last-child { border-bottom: 0; }
.solo-list small { font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: .02em; }
.solo-list button { margin-left: auto; font-size: 10.5px; color: var(--red2); }
.solo-list button:hover { color: #fff; }
.solo-list .ok-btn { color: var(--safe); }
.solo-list .tag { margin-left: 0; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 11.5px; text-transform: none; letter-spacing: .02em; color: var(--muted); }
.log time { color: var(--dim); }
.log b { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .login, .dossier { grid-template-columns: 1fr; }
  .login { padding: 32px 24px; }
  .login-art { display: none; }
  .dossier { padding: 28px 24px; gap: 10px; }
  .dossier-skin canvas { width: 100px; height: 200px; }
}
@media (max-width: 640px) {
  .nav-play { display: none; }
  .nav-acc { padding: 0 10px; }
  .nav-act { gap: 6px; }
  .facts { grid-template-columns: 1fr; }
  .ranks-list li { grid-template-columns: 1fr; gap: 6px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 11px 8px; }
  .acc-hero { padding: 130px 0 40px; }
}

/* sanctions */
.bad { color: var(--red2); }
.warn { color: var(--amber); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 6px; font: 600 9.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; vertical-align: 2px; }
.tag.bad { background: rgba(208,32,42,.16); border: 1px solid rgba(255,59,69,.4); }
.tag.warn { background: rgba(242,165,51,.12); border: 1px solid rgba(242,165,51,.4); }
.who b { display: inline; }
.who small { display: block; }
.mini { padding: 7px 10px; font-size: 10px; color: var(--muted); border: 1px solid var(--line2); border-radius: 3px; white-space: nowrap; transition: .2s; }
.mini:hover { color: var(--text); border-color: var(--red2); background: rgba(208,32,42,.12); }
.alert-ban { margin-bottom: 18px; font-size: 12.5px; }
.alert-ban b { color: #fff; }
.punish { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; padding: 24px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.punish > label > span, .punish legend { display: block; font-size: 10px; color: var(--dim); margin-bottom: 8px; padding: 0; }
.punish .field { width: 100%; }
.punish-type { display: flex; flex-wrap: wrap; border: 0; margin: 0; padding: 0; min-width: 0; }
.punish-type legend { width: 100%; }
.punish-type label { position: relative; }
.punish-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.punish-type span { display: block; height: 42px; padding: 0 14px; font: 500 13px/40px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); margin-left: -1px; transition: .2s; }
.punish-type label:first-of-type span { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.punish-type label:last-of-type span { border-radius: 0 var(--r) var(--r) 0; }
.punish-type input:checked + span { color: #fff; background: rgba(208,32,42,.22); border-color: var(--red2); position: relative; z-index: 1; }
.punish-type input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.punish-time[hidden] + .punish-reason { grid-column: 1 / -1; }
.punish > .btn { justify-self: start; }
.sanctions { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.sanctions li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sanctions li:last-child { border-bottom: 0; }
.sanctions li.muted { display: block; }
.sanctions .grade { justify-self: start; }
.sanctions b { font-weight: 600; }
.sanctions p { color: #cfcac2; margin: 4px 0; font-size: 14.5px; overflow-wrap: anywhere; }
.sanctions small { display: block; font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: .02em; margin-top: 4px; }
@media (max-width: 640px) {
  .punish { grid-template-columns: 1fr; padding: 18px; }
  .punish-type label { flex: 1; }
  .punish-type span { padding: 0 6px; text-align: center; font-size: 12px; }
  .sanctions li { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
