:root{color-scheme:dark;--bg:#0d1821;--panel:#15232e;--well:#0e1922;--edge:#354552;--fg:#ecf2f8;--sub:#acbdcc;--amber:#ffb437;--blue:#8dcbff;--green:#a6ef82;--red:#ff928b;font:16px/1.5 "Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
@font-face {
  font-family: "Hit Analyzer Nunito";
  src: url("assets/hit-hd/Nunito-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
#originals .ha-hd text {
  font-family: "Hit Analyzer Nunito", Arial, sans-serif;
  font-weight: 800;
}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{margin:0;background:var(--bg);color:var(--fg)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #ffd681;outline-offset:3px}
[hidden]{display:none!important}
h1,h2,h3,p,figure,dl,dd{margin:0}
header{background:#111e28;border-bottom:1px solid var(--edge)}
.bar,main,footer{width:min(97%,1560px);margin:auto}
.bar{display:flex;align-items:center;gap:1.4rem;min-height:4.25rem;padding:0 .3rem}
.brand{display:inline-flex;align-items:center;letter-spacing:-.055em;font-size:1.7rem;font-weight:850;white-space:nowrap}
.brand b{color:var(--amber)}.logo{width:27px;height:27px;display:grid;grid-template-columns:repeat(2,1fr);gap:2px;margin-right:.5rem}
.logo i{border-radius:2px;background:#ffb627}.logo i:nth-child(2){background:#e1e9f0}.logo i:nth-child(3){background:#607583}.logo i:nth-child(4){background:#f29716}
.modname{padding-left:1.3rem;border-left:1px solid var(--edge);font-weight:700;font-size:1.12rem}
nav{margin-left:auto;display:flex;align-items:center;gap:1.6rem;font-weight:650;font-size:.94rem;color:var(--sub)}
nav a:last-child,.button{background:#1c2a35;border:1px solid var(--edge);border-radius:6px;padding:.58rem .95rem;color:var(--fg);font-weight:700}
a:hover,button:hover{color:#ffca79}nav a:last-child:hover,.button:hover{border-color:#e6a33c}
main{padding:0 .3rem}
.hero{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(205px,.63fr) minmax(0,1.42fr);gap:1rem;margin:1.4rem 0 1.65rem;align-items:stretch}
.intro{padding:.45rem .25rem .35rem 0;align-self:center}
.over{font-size:.73rem;letter-spacing:.13em;color:var(--amber);text-transform:uppercase;font-weight:800}
h1{font-size:clamp(2.5rem,3.7vw,4.1rem);line-height:1.06;letter-spacing:-.055em;margin:.28rem 0 .5rem}
.intro h2{color:var(--amber);font-size:clamp(1.26rem,1.7vw,1.85rem);line-height:1.2;letter-spacing:-.03em}
.intro p{color:#c9d5df;margin:.85rem 0;max-width:38ch}
.quick,.buttons{display:flex;flex-wrap:wrap;gap:.55rem .9rem;align-items:center}
.quick{font-size:.91rem;color:#c4d2de;font-weight:650}.quick i{font-size:1.13rem;color:var(--amber);font-style:normal;margin-right:.35rem}.buttons{margin-top:1.2rem;gap:.55rem}.button{display:inline-block;font-size:.93rem}
.primary{color:#1b2227;background:#ffac2b;border-color:#ffac2b}.primary:hover{background:#ffc15b;color:#17222b}
.panel,.history-card{background:var(--panel);border:1px solid var(--edge);border-radius:9px;min-width:0}
.mini,.showcase{overflow:hidden}.mini{padding:.8rem;display:flex;flex-direction:column}.minihead,.battleline,.history-foot,.show-foot,.dialog-bar,.section-head{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.minihead{justify-content:flex-start}.mini h2{font-size:1rem}.symbol{color:var(--amber);font-size:1.25rem}
.modes{display:flex;gap:3px;margin:.5rem 0}.modes span{color:inherit;text-align:center;flex:1;padding:.4rem .16rem;white-space:nowrap;font-size:.82rem;border:1px solid var(--edge);border-radius:5px;background:#1d2a35;font-weight:650}.modes .shown{background:#49391f;border-color:#e79c2b;color:#ffc16b}
#mini-content{flex:1;display:flex;flex-direction:column;justify-content:center}.mini-shot{padding:0;border:0;border-radius:4px;background:var(--well);display:block;width:100%;overflow:hidden}.mini-shot img{display:block;width:100%;max-height:208px;object-fit:contain}.mini p{font-size:.84rem;color:var(--sub);margin-top:.35rem}.mini strong{font-size:1.15rem}.mini-summary{padding:.65rem;background:#101c26;border-radius:5px}.mini-summary p+p{margin-top:.75rem}
.showcase{display:flex;flex-direction:column}.battleline{padding:.63rem 1rem;line-height:1.3}.battleline h2{font-size:clamp(1.35rem,2.1vw,2rem);letter-spacing:-.035em}.battleline b{color:#c6d6e2}
.hero-scene,.scene-figure{position:relative;padding:0;border:0;display:block;overflow:hidden;background:var(--well);width:100%}
.hero-scene{flex:1;min-height:10rem}.hero-scene img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}.zoom-icon{position:absolute;bottom:.55rem;right:.55rem;background:#10202ae8;border:1px solid #60717e;border-radius:5px;padding:.17rem .45rem;font-size:.76rem;font-weight:700;color:white}
.show-foot{padding:.68rem 1rem;font-weight:700;font-size:.94rem;flex-wrap:wrap}.tag{font-size:.82rem;font-weight:750;border-radius:5px;display:inline-block;padding:.18rem .6rem}.amber{color:#ffcf7a;background:#503f27}.green{color:var(--green);background:#275032}.red{color:var(--red);background:#52272b}.blue-text{color:var(--blue)}.sub{color:var(--sub)}
.archive{display:grid;grid-template-columns:minmax(146px,.65fr) 3fr;gap:1rem;align-items:center;border-top:1px solid var(--edge);padding:1.35rem 0 1.6rem}
.archive h2,.section-title{font-size:clamp(1.32rem,1.9vw,1.9rem);letter-spacing:-.035em;line-height:1.18}.archive p,.caption{color:var(--sub);font-size:.92rem;margin-top:.36rem}.archive-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.history-card{color:var(--fg);padding:5px;display:flex;align-items:center;text-align:left;gap:.65rem;background:#17252f}
.history-card:hover,.shot-button:hover,.mini-shot:hover,.scene-figure:hover{border-color:#9d8053}.history-card[aria-pressed=true]{border-color:var(--amber);background:#2c2d28}
.history-card img{width:26%;max-width:88px;height:3.8rem;object-fit:cover;border-radius:4px}.history-copy{display:flex;flex:1;flex-direction:column;min-width:0}.history-copy strong{font-size:1.01rem}.history-foot{justify-content:flex-start;flex-wrap:wrap;gap:0 .5rem;margin-top:.12rem;font-weight:650;font-size:.8rem;color:var(--sub)}.history-foot .amber,.history-foot .green,.history-foot .red{background:none}
.analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.055fr);gap:1rem;align-items:start}.originals,.point,.battle{padding:clamp(.85rem,1.24vw,1.3rem)}
.real-cards{display:grid;grid-template-columns:1.05fr 1fr;align-items:start;gap:.65rem;margin-top:1rem}
.shot-button{border:1px solid #334754;background:#101b24;padding:0;border-radius:6px;overflow:hidden;width:100%;text-align:left;display:flex;flex-direction:column}
.shot-button img{width:100%;height:auto;display:block}.shot-button span{width:100%;padding:.48rem .45rem;text-align:center;color:var(--amber);font-weight:700;font-size:.85rem}
.side{display:grid;gap:1rem}.scene-figure{margin:.85rem 0 .65rem;border-radius:6px;border:1px solid var(--edge);aspect-ratio:3.16}.scene-figure img{display:block;width:100%;height:100%;object-fit:cover}.marker{display:block;width:20px;height:20px;position:absolute;border:1.5px solid #ffd879;border-radius:50%;box-shadow:0 0 0 1px #273541;transform:translate(-50%,-50%)}.marker:after{content:attr(data-label);position:absolute;bottom:calc(100% + 5px);left:90%;border:1px solid #81704f;background:#15232e;color:white;font-size:.75rem;font-weight:700;border-radius:4px;padding:0 .45rem}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.stat{border-radius:6px;background:#23333f;padding:.5rem .62rem}.stat dt{font-size:.83rem;font-weight:600;color:#c4d0dc}.stat dd{font-size:clamp(1.05rem,1.72vw,1.65rem);font-weight:750;margin:.12rem 0 0;line-height:1.26}.stat.amber{background:#3d342a}.stat.green{background:#233e32}
.battle-visual{display:flex;align-items:center;gap:.8rem;margin:.9rem 0}.battle-visual img{width:76px;height:60px;border-radius:4px;object-fit:cover}.battle-visual h3{font-size:1.12rem}.battle-visual p,.battle small{color:var(--sub);font-size:.87rem}.battle-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.9rem}.battle-actions .button{padding:.38rem .75rem;font-size:.84rem}.empty{padding:1.2rem;background:var(--well);border-radius:7px;margin-top:1rem}.empty p{color:#c3d3df}.empty button{margin-top:.7rem}.map-detail{width:100%;max-height:220px;object-fit:cover;border-radius:6px;margin-top:.9rem}
footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--edge);padding:1.1rem .3rem;margin-top:1.6rem;color:var(--sub);font-size:.9rem}
dialog{color:var(--fg);background:#13202b;border:1px solid #587182;border-radius:10px;width:min(680px,94vw);max-height:92dvh;padding:0}
dialog::backdrop{background:#030a11cd}.dialog-bar{position:sticky;top:0;background:#16232e;padding:.7rem .9rem;border-bottom:1px solid var(--edge);z-index:1}.dialog-bar h2{font-size:1.1rem}.dialog-bar button{background:#253540;color:var(--fg);border:1px solid #5d7282;border-radius:5px;padding:.35rem .7rem}.zoom-body{display:grid;place-items:center;padding:.7rem;background:#0e1922}.zoom-body img{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain}#zoom-text{padding:.7rem 1rem 1rem;color:#c8d3dc;font-size:.99rem}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){html{font-size:18px}}
@media(max-width:1000px){.hero{grid-template-columns:minmax(0,1.07fr) minmax(162px,.66fr) minmax(0,1.25fr);gap:.6rem}.mini{padding:.5rem}.hero-scene{min-height:9rem}nav{gap:.85rem}.archive{grid-template-columns:1fr;gap:.65rem}.archive>div:first-child{display:flex;gap:1rem;align-items:baseline}.history-foot{font-size:.77rem}}
@media(max-width:800px){.bar,main,footer{width:94%}.bar{flex-wrap:wrap;min-height:auto;padding:.6rem 0;gap:.3rem .85rem}.brand{font-size:1.45rem}.modname{padding-left:.85rem}nav{margin:0;width:100%;gap:1.15rem;font-size:.84rem;padding-top:.2rem}nav a:last-child{border:0;padding:0;background:none;color:var(--sub)}.hero{grid-template-columns:1fr 1.65fr;gap:.7rem;margin:1rem 0}.intro{grid-column:1/-1}.intro p{max-width:58ch}.quick{column-gap:1.3rem}.buttons{margin-top:.8rem}.analysis-grid{grid-template-columns:1fr}.history-card{gap:.4rem}.history-card img{width:28%}.originals img{max-height:460px;object-fit:contain}.side{grid-template-columns:1fr}.stat dd{font-size:1.25rem}.scene-figure{max-height:240px}.real-cards{grid-template-columns:1fr 1fr}}
@media(max-width:539px){.hero{grid-template-columns:1fr}.showcase{grid-row:2}.hero-scene{min-height:0;flex:initial;aspect-ratio:2.75}.mini{padding:.65rem}.mini .modes{margin:.45rem 0}.mini-shot img{max-height:170px}.archive-list{grid-template-columns:1fr;gap:.4rem}.history-card img{width:60px;height:45px}.history-foot{gap:.65rem}.history-copy strong{font-size:1rem}.archive{padding:1.05rem 0}.archive p{font-size:.83rem}.real-cards{gap:.38rem}.shot-button span{font-size:.78rem}.stat{padding:.4rem}.stat dt{font-size:.76rem}.show-foot{font-size:.87rem}.scene-figure{aspect-ratio:2.65}.scene-figure img{object-fit:fill}.bar,main,footer{width:94.5%}.brand{font-size:1.35rem}.mini-summary p+p{margin-top:.3rem}.mini-summary{padding:.4rem .65rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep the entire tank and its in-game hit indicator inside the preview. */
.hero-scene { min-height: 12rem; aspect-ratio: 2.05; }
.hero-scene img { object-fit: contain; object-position: center; }
.mini-shot { position: relative; }
.mini-shot .zoom-icon { font-size: .7rem; }
.show-foot .button { margin-left: auto; padding: .25rem .55rem; font-size: .82rem; }
.scene-figure { aspect-ratio: auto; max-height: none; }
.scene-figure img { width: 100%; height: auto; object-fit: contain; }
.return-shot { margin-top: 1rem; }
#zoom[open] {
  width: min(96vw, 112rem); max-width: none; height: min(94dvh, 76rem);
  max-height: none; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
}
#zoom.view-card { width: min(95vw, 60rem); }
.zoom-tools, .zoom-foot { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; padding: .48rem .9rem; }
.zoom-tools { border-bottom: 1px solid var(--edge); }
.zoom-tools button { background: #22323f; color: var(--fg); border: 1px solid #526775; padding: .24rem .6rem; border-radius: 5px; min-height: 2.15rem; }
.zoom-tools button:disabled { opacity: .45; cursor: default; }
#zoom-level { width: 4.3ch; text-align: center; font-variant-numeric: tabular-nums; }
#zoom-viewport { overflow: auto; position: relative; background: #091219; overscroll-behavior: contain; align-content: safe center; }
#zoom-media { position: relative; margin: 0 auto; }
#zoom-media > img, #zoom-media > svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.point-ring { position: absolute; border: 1.5px solid #ffdc79; width: 1.25rem; height: 1.25rem; border-radius: 100%; box-shadow: 0 0 0 1px #16212c; transform: translate(-50%, -50%); pointer-events: none; }
.zoom-foot { justify-content: space-between; border-top: 1px solid var(--edge); }
.zoom-foot #zoom-text { padding: 0; font-size: .9rem; }
.live-panel { display: grid; grid-template-columns: minmax(15rem, .86fr) repeat(2,minmax(0,1fr)); align-items: start; gap: clamp(1rem,2vw,2.2rem); margin: 1.2rem 0; padding: clamp(1rem,2vw,2rem); }
.live-intro p { color: #d1dce6; max-width: 48ch; margin: .8rem 0 0; }
.live-example h3 { font-size: 1.05rem; margin: 0 0 .55rem; }
@media(max-width:880px) {
  .live-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .live-intro { grid-column: 1/-1; }
  .live-intro p { max-width: 72ch; }
}
@media(max-width:540px) {
  .live-panel { grid-template-columns: minmax(0,1fr); }
  .bar nav { flex-wrap: wrap; column-gap: .85rem; }
}
#zoom-original { color: var(--amber); text-decoration: underline; font-weight: 650; font-size: .9rem; }

/* The original panels now hold illustrations and text that stay visible as you read. */
#mini-content > img { display: block; width: 100%; height: auto; max-height: 208px; object-fit: contain; }
.case-tank img, .fauteur-card { display: block; width: 100%; height: auto; }
.access-details { margin-top: 1rem; }
#access { margin-bottom: 1.4rem; }
.hangar-overview { grid-column: 1/-1; overflow: hidden; }
.hangar-overview .hangar-heading, .hangar-overview figcaption { padding: .8rem clamp(.85rem,1.24vw,1.3rem); }
.hangar-overview img { display: block; width: 100%; height: auto; }
.hangar-overview figcaption { color: var(--sub); }
.hangar-overview figcaption strong { color: var(--fg); }
.real-cards figcaption { padding: .5rem; color: var(--sub); font-size: .9rem; text-align: center; width: 100%; }
.live-intro h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.live-explanation h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.live-explanation dt { color: var(--fg); font-weight: 700; margin: 1.1rem 0 .2rem; }
.live-explanation dd { color: #d1dce6; }
.live-explanation dd strong { font-weight: 650; }
@media(max-width:540px) {
  .battle-example .real-cards { grid-template-columns: minmax(0, 1fr); }
  #mini-content > img { max-height: 170px; }
}
@media(max-width:539px) {
  #zoom[open], #zoom.view-card { width: 100%; height: 100dvh; border-radius: 0; margin: 0; }
  .hero-scene { min-height: 0; }
  .zoom-tools, .zoom-foot { padding: .45rem .65rem; }
  .shot-button > span { font-size: .88rem; }
  .scene-figure img { object-fit: contain; }
}

.site-header { position: sticky; top: 0; z-index: 6; }
.site-navigation { flex-wrap: wrap; }
.site-navigation a:last-child { background: none; border: 0; padding: 0; color: inherit; }
.article-navigation { min-height: 3.1rem; border-bottom: 1px solid var(--edge); }
.article-navigation .modname { padding-left: 0; border: 0; }
html { scroll-padding-top: 5rem; }
@media (max-width:800px) {
  .site-header .bar { gap: .35rem 1rem; }
  .site-navigation { width: auto; flex: 1 1 26rem; gap: .35rem 1rem; }
  html { scroll-padding-top: 7.5rem; }
}
