@import url('/type.css');
:root{color-scheme:dark;--bg:#101512;--panel:#191f1a;--panel2:#20261f;--line:#343b30;--text:#ece9dd;--muted:#a5ad9b;--gold:#c4a46c;--green:#9db889;--red:#e89988;font-family:Arial,Helvetica,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{border:1px solid var(--line);border-radius:5px;background:var(--panel2);color:var(--text);padding:10px 14px;transition:background .16s,border-color .16s}button:hover:not(:disabled){background:#30382b;border-color:#737951}button.primary{background:var(--gold);border-color:var(--gold);color:#1b2118;font-weight:bold}button.primary:hover:not(:disabled){background:#ddbd83}button.ghost{background:transparent;border-color:transparent}button.danger{color:var(--red)}a{color:var(--gold)}h1,h2,h3,p{margin-top:0}h1,h2,.brand,.big-number{font-family:Georgia,'Times New Roman',serif;font-weight:normal}h1{font-size:42px;letter-spacing:-1px;margin-bottom:12px}h2{font-size:26px}h3{font-size:16px}p{line-height:1.6}small,.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2.5px;font-size:10px;font-weight:bold;color:var(--gold)}.icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column;background:#151a16;z-index:3}.brand{display:flex;align-items:center;gap:9px;font-size:25px;letter-spacing:2px}.brand img{width:32px}.brand-sub{font-size:9px;letter-spacing:2px;margin:9px 0 47px 44px;color:var(--muted)}.nav-label{font-size:10px;letter-spacing:2px;color:#8d9684;padding:0 14px;margin-bottom:12px}.nav{display:grid;gap:6px}.nav button{text-align:left;border-color:transparent;background:none;display:flex;gap:12px;align-items:center;padding:13px}.nav button.active{border:1px solid #4c5037;background:#2a3023;color:#d7bd82}.nav button small{font-size:9px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:24px 12px 0;border-top:1px solid var(--line)}.sidebar-bottom p{font-size:11px;margin-bottom:8px}.account{display:flex;align-items:center;gap:10px;margin-bottom:18px;max-width:100%;overflow:hidden}.avatar{width:34px;height:34px;border:1px solid #726140;display:grid;place-items:center;color:var(--gold);background:#2d3021;border-radius:50%}.main{min-width:0}.topbar{height:76px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{color:var(--text);margin-left:10px}.top-actions{display:flex;align-items:center;gap:14px}.status-dot{font-size:11px;color:var(--green)}.status-dot:before{content:'●';font-size:8px;margin-right:7px}.content{max-width:1600px;margin:auto;padding:28px 38px 50px}.hero{min-height:218px;background:linear-gradient(90deg,#20291eee,#20291e66 65%,#20291e11),url('/assets/ruins.svg') center/cover;border:1px solid #424b37;position:relative;padding:34px 36px;border-radius:6px;overflow:hidden}.hero .eyebrow{margin-bottom:15px}.hero p{color:#c0c7b5;max-width:450px;margin-bottom:20px}.hero-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.hero-badge{border:1px solid #87957555;padding:12px 16px;color:#c5cfb4;font-size:10px;letter-spacing:2px;white-space:nowrap;background:#18221999}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 19px}.toolbar h2{margin:0 0 6px}.toolbar p{margin:0;font-size:12px;color:var(--muted)}.row{display:flex;gap:10px;align-items:center}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 24px}.metric{padding:18px 20px;background:var(--panel);border:1px solid var(--line);border-radius:5px;display:flex;align-items:center;justify-content:space-between;gap:10px}.metric label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);margin-bottom:8px}.metric strong{font:28px Georgia,serif}.metric small{font:12px Arial;margin-left:5px}.metric>.icon{width:29px;height:29px;color:#9c875b}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:24px;gap:28px}.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:12px 0 15px;color:var(--muted)}.tabs button.active{border-color:var(--gold);color:var(--gold)}.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:22px;align-items:start}.section-label{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}.section-label h3{text-transform:uppercase;letter-spacing:1.5px;font-size:11px;color:#b6beaa;margin:0}.section-label small{font-size:10px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:25px}.unit-card{background:var(--panel);border:1px solid var(--line);border-radius:5px;text-align:left;padding:0;overflow:hidden;width:100%}.unit-card.selected{border-color:#b19660;box-shadow:0 0 0 1px #b1966022}.unit-top{padding:17px;display:flex;gap:13px;align-items:center}.portrait{width:52px;height:58px;display:grid;place-items:center;background:linear-gradient(145deg,#414837,#20271e);border:1px solid #566043;clip-path:polygon(0 0,100% 0,100% 82%,50% 100%,0 82%);color:#c0b68f;flex-shrink:0}.portrait .icon{width:33px;height:33px}.unit-title{min-width:0;flex:1}.unit-title strong{display:block;font:17px Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unit-title small{display:block;margin-top:6px;font-size:10px}.unit-cost{font-size:12px;color:var(--gold);white-space:nowrap}.unit-stats{display:grid;grid-template-columns:repeat(9,1fr);padding:0 13px 13px;gap:2px}.unit-stats span{text-align:center;font-size:12px}.unit-stats small{display:block;font-size:9px;color:#909b87;margin-bottom:5px}.unit-stats .boost{color:var(--gold)}.unit-footer{border-top:1px solid var(--line);padding:11px 16px;display:flex;gap:8px;align-items:center;color:#acb89c;font-size:10px;min-height:40px}.unit-footer .icon{width:15px;height:15px}.unit-footer .xp{margin-left:auto;color:#b8a16b;white-space:nowrap}.add-card{border:1px dashed #47513d;color:#a9b496;background:#1b221855;min-height:165px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.add-card .icon{width:26px;height:26px}.inspector{background:var(--panel);border:1px solid var(--line);border-radius:5px;position:sticky;top:20px}.inspector-head{padding:20px;border-bottom:1px solid var(--line)}.inspector-head h2{font-size:22px;margin:7px 0 0}.inspector-body{padding:18px}.field{display:grid;gap:7px;margin-bottom:15px;font-size:12px;color:#c1c8b7}.field input,.field select,input,select{min-width:0;width:100%;color:var(--text);background:#111710;border:1px solid #3d4734;border-radius:4px;padding:10px 11px}.field input:focus,input:focus{border-color:var(--gold)}.field small{line-height:1.5}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tag{font-size:10px;border:1px solid #3c4a34;padding:4px 7px;border-radius:3px;color:#b9c4a9;display:inline-block;margin:0 3px 5px 0}.equipment-chip{display:flex;align-items:center;gap:9px;font-size:12px;padding:9px 0;border-bottom:1px solid #30392b}.equipment-chip button{margin-left:auto;padding:2px 7px;background:none;border:0;color:var(--muted)}.equipment-chip small{margin-left:auto}.wide{width:100%}.notice{padding:12px 15px;background:#2b291b;border:1px solid #625738;border-radius:4px;color:#d6c594;font-size:12px;line-height:1.6;margin-bottom:18px}.notice.ok{background:#1f2b20;border-color:#3d5639;color:#b0c6a2}.rule-note{font-size:11px;line-height:1.6;color:var(--muted);margin:15px 0}.actions{display:flex;gap:10px;justify-content:flex-end}.footer{margin-top:30px;padding-top:17px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#8f9a84;gap:15px}.footer a{color:#a4ae96}.loading{padding:50px}.empty{padding:50px 25px;text-align:center;background:var(--panel);border:1px dashed var(--line);border-radius:5px}.empty .icon{width:42px;height:42px;color:var(--gold);margin-bottom:20px}.empty p{max-width:500px;margin:12px auto 22px;color:var(--muted)}.library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.library-card{padding:25px;border:1px solid var(--line);border-radius:5px;background:var(--panel)}.library-card h2{margin:16px 0 10px}.library-card p{color:var(--muted);font-size:12px}.library-card .row{margin-top:20px;justify-content:space-between}.library-card .icon{color:var(--gold)}dialog{color:var(--text);background:#1a211b;border:1px solid #596044;border-radius:8px;width:min(620px,94vw);max-height:90vh;padding:28px;box-shadow:0 30px 120px #0009}dialog::backdrop{background:#060b08c9;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-head h2{margin:0}.modal-head button{padding:4px 9px;background:none}.modal-intro{color:var(--muted);font-size:13px}.form-error{color:var(--red);font-size:12px;line-height:1.5;margin:12px 0}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.choice{padding:20px 12px;text-align:center}.choice.active{border-color:var(--gold);background:#333824}.choice strong{display:block;font:19px Georgia;margin:10px 0}.choice small{display:block;font-size:11px}.choice .icon{width:30px;height:30px;color:var(--gold)}.recruits{display:grid;gap:9px}.recruit{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:4px}.recruit .info{flex:1}.recruit strong{display:block;margin-bottom:5px}.recruit small{font-size:11px}.recruit button{white-space:nowrap}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;margin:18px 0}.check input{width:auto;margin-top:3px}.catalog{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.catalog button{text-align:left;display:flex;align-items:center;gap:9px;font-size:12px;padding:13px 10px}.catalog button span{flex:1}.catalog button small{color:var(--gold)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#d1ba86;color:#182013;padding:13px 22px;border-radius:5px;z-index:20;box-shadow:0 10px 35px #0008;max-width:90vw;display:none}#toast.show{display:block}.summary-table{width:100%;border-collapse:collapse}.summary-table td,.summary-table th{padding:14px;border-bottom:1px solid var(--line);text-align:left}.summary-table th{color:var(--muted);font-size:11px}.summary-panel{padding:25px;background:var(--panel);border:1px solid var(--line)}.search-form{display:grid;grid-template-columns:1fr 150px auto;gap:12px;margin-bottom:25px}.location-help{font-size:11px;color:var(--muted)}.saved-note{font-size:10px;color:var(--muted);margin-right:7px}.mobile-brand{display:none}.subtle{font-size:11px;color:var(--muted)}
@media(min-width:1500px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.board-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1150px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:25px 10px}.brand{font-size:20px}.content{padding:25px 24px}.topbar{padding:0 24px}.board-layout{grid-template-columns:minmax(0,1fr) 265px}.cards{grid-template-columns:1fr}.hero-badge{display:none}.library{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.shell{display:block}.sidebar{height:auto;position:relative;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:23px}.brand-sub,.nav-label,.sidebar-bottom{display:none}.nav{display:flex;gap:3px;overflow:auto;margin-top:15px}.nav button{white-space:nowrap;padding:10px;font-size:12px}.nav button small{display:none}.nav .icon{width:16px;height:16px}.topbar{height:61px;padding:0 20px}.top-actions{gap:4px}.status-dot{display:none}.content{padding:20px}.hero{padding:26px;min-height:205px}h1{font-size:34px}.hero p{font-size:12px;max-width:300px}.hero .eyebrow{font-size:9px}.metrics{grid-template-columns:repeat(2,1fr);gap:9px}.metric{padding:15px}.board-layout{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.inspector{position:static}.toolbar{align-items:flex-start}.toolbar>.row{flex-wrap:wrap;justify-content:flex-end}.saved-note{display:none}.library{grid-template-columns:1fr}.footer{flex-direction:column}.search-form{grid-template-columns:1fr 100px}.search-form button{grid-column:1/-1}}
@media(max-width:480px){.cards{grid-template-columns:1fr}.content{padding:15px}.topbar{padding:0 15px}.breadcrumb{font-size:10px}.hero{padding:23px}.hero-row{display:block}.toolbar h2{font-size:23px}.toolbar .row{max-width:160px;gap:6px}.toolbar button{font-size:11px;padding:9px}.choices{grid-template-columns:1fr}.choice{display:flex;align-items:center;gap:12px;padding:12px}.choice strong{font-size:17px}.catalog{grid-template-columns:1fr}.split{grid-template-columns:1fr}.summary-table td,.summary-table th{padding:10px 5px;font-size:11px}.tabs{gap:24px}.brand{font-size:22px}.top-actions button{padding:8px;font-size:11px}}
@media(min-width:801px) and (max-width:1150px){.brand{font-size:17px;letter-spacing:1.3px;gap:5px}.brand img{width:26px}.brand-sub{font-size:8px;letter-spacing:1px;margin-left:31px;line-height:1.5}}
.language-select{width:auto;min-width:94px;padding:8px;font-size:12px}.search-form{grid-template-columns:1fr auto}
@media(max-width:800px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:12px;padding:14px 20px}.top-actions{flex-wrap:wrap}.breadcrumb{font-size:10px}.search-form button{grid-column:auto}.language-select{min-width:89px}}
@media(max-width:480px){.topbar{align-items:flex-start}.breadcrumb{width:100%}.top-actions{width:100%;justify-content:space-between;gap:7px}.top-actions button{font-size:11px}.language-select{font-size:11px}.recruit .info{min-width:0}.recruit strong{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.unit-card{display:block;overflow:visible;padding:0;min-width:0;text-align:left}.unit-open{width:100%;padding:18px;background:transparent;border:0;text-align:left}.unit-open .unit-stats{margin-bottom:12px}.experience{padding:8px 0}.experience-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:9px;color:var(--gold)}.xp-boxes{display:grid;gap:2px;width:100%;max-width:520px}.xp-boxes.hero{grid-template-columns:repeat(30,minmax(0,1fr));padding:0;min-height:0;background:none;border:0;border-radius:0}.xp-boxes.henchman{grid-template-columns:repeat(7,14px);width:max-content}.xp-box{display:block;aspect-ratio:1;border:1px solid #68715e;background:transparent;min-width:0}.xp-box.advance{border:2px solid #c4a46c}.xp-box.filled{background:#a8bb8b}.xp-box.filled.advance{background:#d9b87a;border-color:#f0dbb2}.roster-gear{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 14px}.gear-tip{position:relative;display:inline-flex;gap:5px;align-items:center;padding:5px 7px;border:1px solid var(--line);border-radius:4px;font-size:11px;cursor:help;max-width:100%;outline-offset:2px}.gear-tip .icon{width:15px;height:15px}.gear-tooltip{display:none;position:absolute;z-index:20;bottom:calc(100% + 6px);left:0;width:300px;max-width:70vw;white-space:pre-line;background:#090e0b;color:var(--text);padding:12px;border:1px solid var(--gold);border-radius:6px;line-height:1.6;box-shadow:0 10px 30px #0008;text-align:left;font-weight:normal}.gear-tip:hover>.gear-tooltip,.gear-tip:focus>.gear-tooltip,.gear-tip.show-tip>.gear-tooltip{display:block}.gear-tip:focus{outline:2px solid var(--gold)}.unit-details{padding:16px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.detail-section{min-width:0}.detail-section h4{color:var(--gold);margin:0 0 8px;font-size:12px}.detail-section p{margin:0;font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.detail-section .gear-tip{margin:0 3px 4px 0}.incomplete{border-color:var(--red)}.incomplete-label{color:var(--red);padding:0 18px;font-size:12px}.view-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0}.view-switch [aria-pressed=true]{border-color:var(--gold);color:var(--gold)}.view-switch small{flex:1;min-width:180px}.expanded .cards{grid-template-columns:1fr}.storage-panel{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.storage-panel p{font-size:12px}.storage-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding:12px 0}.storage-row strong{margin-right:auto}.catalog-item{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:10px;min-width:0}.catalog-item .gear-tip{flex:1;border:0}.catalog .catalog-item button{width:auto;display:block;flex-shrink:0;padding:8px;font-size:12px}.catalog{overflow:visible}.cart-panel{margin-top:20px;padding:16px;border:1px solid var(--gold);border-radius:6px;background:var(--panel)}.cart-item{display:inline-flex;align-items:center;gap:5px;padding:5px;font-size:12px}.cart-item button{padding:3px 7px}.cart-panel h3{margin-bottom:10px}.cart-panel p{margin:12px 0;font-size:13px}.record-head{display:flex;justify-content:space-between;color:var(--gold);margin-bottom:20px}textarea{width:100%;resize:vertical;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:10px;line-height:1.5}textarea:focus-visible{outline:2px solid var(--gold)}#unit-journal{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}dialog:has(#unit-journal){width:850px;max-width:calc(100vw - 24px)}dialog:has(#catalog){width:760px;max-width:calc(100vw - 24px)}.equipment-chip>.gear-tip{flex:1}.equipment-chip>button{flex:0;padding:4px 7px}.recruits>.wide{margin-bottom:8px}
@media(max-width:600px){.unit-details{grid-template-columns:1fr}.catalog{grid-template-columns:1fr}.storage-panel{padding:12px}.storage-panel .section-label{flex-wrap:wrap;gap:10px}.gear-tooltip{max-width:65vw;width:260px}.xp-boxes.hero{gap:2px}.unit-open{padding:14px}}
.inspector .gear-tooltip{left:auto;right:0}
@media(max-width:600px){.gear-tooltip,.inspector .gear-tooltip{position:fixed;left:16px;right:auto;bottom:16px;width:calc(100vw - 32px);max-width:none}}
/* Gothic Premium: charcoal, moonlight and restrained brass. */
:root{--bg:#0d1015;--panel:#171b22;--panel2:#20252c;--line:#373941;--text:#eee9df;--muted:#a5a8b0;--gold:#c6a66e;--green:#a5b6a1;--red:#e89b8d}
body{background:radial-gradient(ellipse at 80% 0,#242a35 0,transparent 48%),var(--bg)}
.sidebar{background:linear-gradient(180deg,#171b22,#0e1117);border-right-color:#504634}.brand{font-size:19px;letter-spacing:1px;gap:8px}.brand small{display:block;font:10px Arial,sans-serif;letter-spacing:5px;color:var(--gold);margin-top:6px}.brand-sub{margin-top:15px;font-size:8px;letter-spacing:1px}.nav button.active{background:linear-gradient(90deg,#50412c77,#262730);border-color:#786342;color:#e4c895}.nav-label,.footer,.footer a{color:var(--muted)}.avatar{background:#282732}.topbar{background:#10141bb0;border-bottom-color:#443e34}
section.hero{background:linear-gradient(90deg,#10141be8,#10141b77 45%,#10141b12),url('/assets/gothic-city.png') center/cover;border:1px solid #766144;min-height:250px;box-shadow:inset 0 0 70px #070a0f88,0 12px 36px #0004;border-radius:4px}section.hero h1{text-shadow:0 3px 20px #000}section.hero p{color:#cbcbd1}.hero-badge{background:#141923aa;border-color:#8a745655;color:#d3c7b2}
h1,h2,.unit-title strong{color:#f0e7d8}button:hover:not(:disabled){background:#30313b;border-color:#998159}button.primary{background:linear-gradient(#d5b780,#b99459);color:#17171b;border-color:#dbbe84}.unit-card,.metric,.storage-panel,.library-card,.summary-panel{background:linear-gradient(135deg,#1c2028,#141820);border-color:#4b443a;box-shadow:0 5px 20px #0002}.unit-card.selected{border-color:#b99b64}.unit-open:hover:not(:disabled){background:#ffffff04}.portrait{background:linear-gradient(145deg,#3c414c,#191d26);border-color:#8d7753;color:#d5bd8f}.unit-stats small,.section-label h3{color:#b2b0ac}.unit-footer{color:#b6b3af}.add-card{background:#191c2455;border-color:#665a46;color:#c7b795}.board-layout{display:block}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.expanded .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.xp-box{border-color:#616571}.xp-box.filled{background:#8c9d9c}.xp-box.filled.advance{background:#cfb37d}
input,select,.field input,.field select,textarea{background:#10141b;border-color:#444550}.field{color:#c7c5c3}dialog{background:linear-gradient(145deg,#1d222c,#11151c);border-color:#9a8055;box-shadow:0 25px 100px #000c}dialog::backdrop{background:#060910d9}.choice.active{background:#4d422c66}.gear-tooltip{background:#0b0f16;border-color:#9a8055;z-index:60}.gear-item{position:relative;display:inline-flex;max-width:100%}.gear-tip[role=button]{cursor:pointer}.gear-tip[role=button]:hover{border-color:var(--gold);background:#c6a66e12}.gear-item.menu-open{z-index:70}.menu-open .gear-tooltip{display:none!important}.item-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:70;width:260px;padding:14px;border:1px solid #b69763;border-radius:6px;background:#171d27;box-shadow:0 15px 45px #000b;display:grid;gap:8px}.item-menu strong{font:18px Georgia,serif;color:var(--gold)}.item-menu small{font-size:11px;line-height:1.5}.item-menu button{width:100%;text-align:left;padding:10px;font-size:12px}.add-gear{padding:3px;width:29px;height:29px;display:inline-grid;place-items:center;border:1px dashed #9a8055;border-radius:50%;color:var(--gold);background:transparent}.add-gear .icon{width:15px;height:15px}#unit-journal{border:0;padding:0;margin:0}#unit-journal>.roster-gear{padding:10px 0 22px;margin-bottom:20px;border-bottom:1px solid var(--line)}.record-head{align-items:center;gap:16px}.level-seal{border:1px solid #9a8055;padding:9px 15px;font-family:Georgia,serif;white-space:nowrap}.record-actions{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
@media(min-width:1500px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.cards,.expanded .cards{grid-template-columns:1fr}.brand{font-size:15px}.brand small{font-size:9px;letter-spacing:4px}.brand-sub{margin-left:0;text-align:center}}
@media(max-width:800px){.brand{font-size:18px}section.hero{min-height:230px;background-position:65% center}}
@media(max-width:600px){dialog{padding:20px 16px}.record-actions{flex-wrap:wrap}.record-actions button{flex:1}.item-menu{position:fixed;top:auto;bottom:20px;left:16px;width:calc(100vw - 32px)}.storage-row{gap:8px}.storage-row button{font-size:11px}.gear-tooltip{z-index:80}}
.unit-rules{margin-bottom:22px}.unit-rules p{margin-bottom:10px}.unit-rules small{display:block;line-height:1.6}
/* Roster records: one labelled row per category, shared by board and unit dialog. */
.metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.metric{padding:16px 14px}.metric strong{font-size:25px}.band-achievements{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:-5px 0 20px;border:1px solid var(--line);border-radius:5px;background:var(--panel)}.band-achievements h3{margin:0;font-size:12px;font-weight:normal;color:var(--gold)}.achievement-badges{display:inline-flex;gap:4px;flex-wrap:wrap;margin-left:8px}.achievement-badges:empty{display:none}.achievement-badges .gear-tip{color:var(--gold);padding:5px}.modal-head h2{display:flex;align-items:center;gap:8px}.record-category{display:inline-flex;align-items:center;gap:5px;color:var(--gold);min-width:82px;flex-shrink:0;padding:5px 0}.record-category small{font-size:10px;color:var(--muted)}.record-category>.icon{width:16px;height:16px}.record-rows{padding:0 16px 14px}.record-rows:has(>.record-row){border-top:1px solid var(--line);padding-top:10px}.record-row{display:flex;align-items:flex-start;gap:8px;padding:4px 0}.record-values{display:flex;gap:5px;flex-wrap:wrap;min-width:0}.record-value{display:inline-flex;align-items:center;max-width:100%}.remove-record{padding:4px 7px;color:var(--red);border:0;background:none}.record-tip{line-height:1.4}.record-reference{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.record-reference details{border:1px solid var(--line);border-radius:5px;margin-bottom:8px;padding:12px}.record-reference summary{cursor:pointer;color:var(--gold);font-size:13px}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.reference-card{border:1px solid var(--line);padding:12px;border-radius:4px;background:var(--bg)}.reference-card p{font-size:12px;color:var(--muted);margin:12px 0 0}.reference-card>small{display:block;margin-top:9px;color:var(--gold);line-height:1.5}#unit-journal>.roster-gear{padding-bottom:10px;margin-bottom:0;border:0}#unit-journal>.record-rows{padding:8px 0 18px;margin-bottom:20px;border-top:0;border-bottom:1px solid var(--line)}.unit-title{min-width:60px}.unit-top .achievement-badges{max-width:70px}.unit-top:has(.achievement-badges:not(:empty)){flex-wrap:wrap}.unit-top .achievement-badges .gear-tooltip{left:auto;right:0}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-grid{grid-template-columns:1fr}.record-row{display:block}.record-category{min-width:0}.band-achievements{flex-wrap:wrap}.unit-top .achievement-badges .gear-tooltip{left:16px;right:auto}}
/* Mobile-first gateway and hierarchical pages. */
.mobile-shell{min-height:100svh;background:radial-gradient(ellipse at top,#24242d,#0d1016 65%);padding-bottom:env(safe-area-inset-bottom)}.app-header{position:sticky;top:0;z-index:10;min-height:72px;display:flex;align-items:center;gap:14px;padding:calc(10px + env(safe-area-inset-top)) 24px 10px;border-bottom:1px solid #8e75472e;background:#10141de8;backdrop-filter:blur(18px)}.app-header .language-select{margin-left:auto;min-width:65px;width:65px;min-height:44px;background:#0b10198c}.app-header h1{font:22px Georgia,serif;letter-spacing:.2px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border-color:#9d825044;flex-shrink:0}.back-button .icon{color:var(--gold);width:24px;height:24px}.home-wordmark{font:24px Georgia;color:#e8d4a5;letter-spacing:3px}.home-wordmark span{color:#9e8359}.page-content{max-width:1280px;margin:auto;padding:28px 28px 48px}.app-footer{padding:20px;text-align:center;font-size:10px;letter-spacing:1.6px;color:#9a968f}.is-home{background:linear-gradient(#080b1460,#090d1550 45%,#070b12e8),url('/assets/gothic-city.png') 65% center/cover fixed}.is-home .app-header{position:absolute;width:100%;background:linear-gradient(#090c15c9,transparent);border:0;backdrop-filter:none}.is-home .page-content{padding:0;max-width:none}.home-gateway{min-height:calc(100svh - 55px);padding:90px 24px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center}.home-heading{text-align:center;text-shadow:0 3px 25px #000;max-width:600px}.home-heading>img{width:45px;filter:drop-shadow(0 0 15px #d5ae6366)}.home-heading .eyebrow{margin:20px 0 14px;font-size:9px;letter-spacing:3px}.home-heading h1{font:clamp(48px,8vw,80px) Georgia,serif;letter-spacing:-2px;margin:0;color:#f4e3b8}.home-heading h1 span{display:block;font:12px Arial,sans-serif;text-transform:uppercase;letter-spacing:9px;margin:12px 0 20px;padding-left:9px;color:#dbbd80}.home-heading>p:last-child{font-size:13px;color:#d2cfc8;margin-bottom:28px}.home-menu{width:min(100%,430px);display:grid;gap:12px}.glass-menu{min-height:62px;display:flex;align-items:center;gap:18px;text-align:left;border:1px solid #b59a626e;background:linear-gradient(110deg,#121a24c9,#43433965);backdrop-filter:blur(12px);box-shadow:inset 0 1px #fff1,0 8px 24px #0004;border-radius:7px;padding:16px 20px;color:#f2e6cb}.glass-menu span{flex:1;font:19px Georgia,serif;letter-spacing:.3px}.glass-menu>.icon{color:#d9bc7e;width:22px;height:22px}.glass-menu>.icon:last-child{width:16px;opacity:.6}.glass-menu:hover:not(:disabled){background:#494431b8;border-color:#d9bc7e}.home-caption{font:italic 12px Georgia,serif;color:#c0b29a;margin:25px 0 0}.page-intro{margin:0 0 26px}.page-intro h2{font-size:34px;margin:12px 0}.page-intro p{color:var(--muted);font-size:14px}.page-intro>.primary{margin-top:6px}.warband-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.warband-tile{position:relative;min-height:300px;border:1px solid #90744388;border-radius:9px;overflow:hidden;display:flex;align-items:flex-end;background:#11151c}.warband-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.warband-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#090c1380 35%,#090c13f5)}.warband-tile-content{position:relative;z-index:1;padding:24px;width:100%}.warband-tile h2{font-size:29px;margin:12px 0;overflow-wrap:anywhere}.warband-tile p{font-size:12px;color:#d0c9bd}.warband-tile .row{justify-content:space-between;flex-wrap:wrap}.warband-tile .tag{background:#11151b8c}.example-section{margin-top:32px;border-top:1px solid var(--line);padding-top:22px}.example-section>h3{font:19px Georgia;color:var(--gold)}.example-tile{width:100%;display:flex;align-items:center;gap:18px;text-align:left;padding:12px;background:#1c2029}.example-tile img{width:100px;height:74px;object-fit:cover;border-radius:4px}.example-tile>span{flex:1}.example-tile strong{font:19px Georgia;display:block}.example-tile small{display:block;line-height:1.5;font-size:11px;margin-top:7px}.profile-page{max-width:650px;margin:30px auto;text-align:center;padding:28px 20px;border:1px solid #72603b66;background:#161d29bd;border-radius:10px}.profile-emblem{width:86px;height:86px;display:grid;place-items:center;border:1px solid #ad8b52;border-radius:50%;margin:0 auto 24px;color:var(--gold);background:#a98b3f15}.profile-emblem .icon{width:44px;height:44px}.profile-page button{margin:6px}.rules-accordion>details{margin-bottom:12px;padding:16px;border:1px solid #75613d77;border-radius:6px;background:#171c26}.rules-accordion summary{font:19px Georgia;cursor:pointer;color:#ddc396}.rules-accordion summary .icon{margin-right:8px}.origin-reference{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.origin-reference img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:4px}.origin-reference h3{margin:14px 0 6px}.origin-reference p{font-size:12px;color:var(--muted)}.reference-card p{white-space:pre-line}.choice{position:relative;background:linear-gradient(#10141b44,#10141bed),var(--origin-art) center/cover;min-height:150px;border-color:#897148;overflow:hidden}.choice.active{background:linear-gradient(#10141b10,#10141bcf),var(--origin-art) center/cover;box-shadow:inset 0 0 0 1px var(--gold)}.choice:hover:not(:disabled){background:linear-gradient(#10141b10,#10141bcf),var(--origin-art) center/cover}.choice strong{color:#fff0cc}.choice small{color:#e1d6bd}.choice .icon{filter:drop-shadow(0 2px 5px #000)}.page-content section.hero{background:linear-gradient(90deg,#10141bef,#10141b66),var(--band-art,url('/assets/gothic-city.png')) center/cover}.page-content>.hero{border-radius:7px}.mobile-shell button{touch-action:manipulation}.mobile-shell .unit-open{min-height:44px}.mobile-shell .add-gear{width:36px;height:36px}.mobile-shell .tabs{overflow-x:auto;gap:24px}.mobile-shell .tabs button{white-space:nowrap}.mobile-shell .unit-cost{margin-left:auto}
@media(min-width:1100px){.is-home .home-gateway{align-items:flex-start;padding-left:max(8vw,calc((100vw - 1100px)/2));background:linear-gradient(90deg,#090d15c9,transparent 80%)}.home-heading{width:430px}.home-caption{width:430px;text-align:center}.home-gateway{padding-top:100px}.app-header{padding-left:max(24px,calc((100vw - 1224px)/2));padding-right:max(24px,calc((100vw - 1224px)/2))}}
@media(max-width:700px){.page-content{padding:18px 15px 30px}.app-header{padding-left:15px;padding-right:15px;gap:12px;min-height:66px}.app-header h1{font-size:20px}.warband-library{grid-template-columns:1fr;gap:18px}.warband-tile{min-height:280px}.warband-tile-content{padding:20px}.page-intro h2{font-size:29px}.origin-reference{grid-template-columns:1fr}.origin-reference article{display:grid;grid-template-columns:110px 1fr;gap:0 14px;align-items:center}.origin-reference img{grid-row:span 2}.origin-reference h3{margin:0}.origin-reference p{margin:5px 0}.mobile-shell .toolbar{flex-wrap:wrap;gap:14px}.mobile-shell .toolbar>.row{max-width:none;justify-content:flex-start;width:100%}.mobile-shell .toolbar button{min-height:44px}.mobile-shell .cards,.mobile-shell .expanded .cards{grid-template-columns:1fr}.mobile-shell .metric{padding:14px}.mobile-shell .metric label{font-size:9px;letter-spacing:1px}.mobile-shell .metric strong{font-size:24px}.mobile-shell .metric>.icon{width:23px;height:23px}.mobile-shell .metrics{gap:8px;margin:14px 0 18px}.mobile-shell .view-switch button{min-height:44px}.mobile-shell .storage-row button{min-height:44px}.mobile-shell .record-values{gap:7px}.mobile-shell .gear-tip{min-height:32px}.home-gateway{padding-top:85px}.is-home{background-attachment:scroll;background-position:62% center}.home-heading .eyebrow{letter-spacing:2px}.home-menu{gap:10px}.glass-menu{min-height:59px}.home-heading>p:last-child{margin-bottom:22px}.home-heading h1{font-size:55px}.mobile-shell .hero h1{font-size:32px;overflow-wrap:anywhere}.mobile-shell .hero{padding:24px;min-height:220px}.example-tile img{width:80px;height:72px}.example-tile{gap:12px}.example-tile strong{font-size:17px}.mobile-shell .saved-note{display:inline;font-size:10px}.mobile-shell .notice button{min-height:44px}}
@media(max-width:480px){dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 20px);padding:20px 16px}dialog button{min-height:40px}dialog input,dialog select,dialog textarea,.search-form input{font-size:16px}dialog .choices{grid-template-columns:1fr;gap:10px}.choices .choice{min-height:90px;display:flex;justify-content:flex-start;gap:14px;padding:18px}.choices .choice strong{font-size:22px;flex:1;text-align:left}.choices .choice small{font-size:11px}.modal-head h2{font-size:24px}#unit-journal>.unit-stats{padding:0 0 14px}.record-reference details{padding:10px}.item-menu button{min-height:44px}.mobile-shell .unit-top{padding:10px 0}.mobile-shell .unit-open{padding:16px}.mobile-shell .roster-gear{padding:0 16px 12px}.mobile-shell .record-row{display:block}.mobile-shell .gear-tooltip{max-height:45dvh;overflow:auto}.app-footer{font-size:8px}.page-content .summary-panel{padding:14px}.page-content .summary-table{table-layout:fixed}.summary-table td{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
[data-variant="reikland"],[data-origin="reikland"]{--origin-art:url('/assets/warbands/concepts/reikland-b-oil.png');--band-art:var(--origin-art)}
[data-variant="middenheim"],[data-origin="middenheim"]{--origin-art:url('/assets/warbands/concepts/middenheim-b-oil.png');--band-art:var(--origin-art)}
[data-variant="marienburg"],[data-origin="marienburg"]{--origin-art:url('/assets/warbands/concepts/marienburg-b-oil-v2.png');--band-art:var(--origin-art)}
