/* ---- basis-0 ---- */
*{box-sizing:border-box}body{margin:0;background:#0d1015;color:#eee;font-family:system-ui,Segoe UI,Arial}
.top{position:sticky;top:0;z-index:10;background:#171b22;border-bottom:1px solid #343b47;padding:13px 18px;display:flex;justify-content:space-between;gap:16px;align-items:center}.brand{font-weight:900}.stats{display:flex;gap:15px;font-size:13px}
.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 60px)}nav{background:#12161c;border-right:1px solid #2e3540;padding:12px}nav button{display:block;width:100%;margin:5px 0;text-align:left;background:#1a2029;border:1px solid #333b47;color:#fff;padding:10px;border-radius:8px}nav button.active{background:#743333}
.main{max-width:1500px;width:100%;margin:auto;padding:22px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.market-card{min-width:0}.market-actions{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.market-actions select{min-width:0;width:100%}.card{background:#171c24;border:1px solid #2c333e;border-radius:12px;padding:15px;min-width:0}.between{display:flex;justify-content:space-between;align-items:center;gap:10px}.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
button,select,input{font:inherit}button{cursor:pointer;background:#1d242e;color:#fff;border:1px solid #394250;border-radius:8px;padding:9px 12px}button:hover{background:#29313d}.primary{background:#813939}.gold{color:#e7bd62}.muted{color:#99a3b2}.kpi{font-size:27px;font-weight:850}
.tag{display:inline-block;background:#252c36;border:1px solid #37404c;padding:3px 7px;border-radius:999px;font-size:11px;margin:2px}.portrait{width:100%;height:230px;border-radius:10px;background:#11161d;border:1px solid #343c48}.weapon{height:120px;width:100%;background:#11161d;border:1px solid #343c48;border-radius:10px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:30;display:flex;align-items:center;justify-content:center;padding:20px}.modalbox{background:#171c24;border:1px solid #414a58;border-radius:14px;max-width:1100px;width:100%;max-height:90vh;overflow:auto;padding:18px}.close{float:right}.log{height:175px;overflow:auto;background:#090c10;border-radius:8px;padding:10px;font:12px ui-monospace,monospace}.fightcanvas{width:100%;height:430px;background:#141a20;border:1px solid #353e49;border-radius:12px}
.wheel{width:320px;height:320px;border:10px solid #8d6a38;border-radius:50%;margin:24px auto;position:relative;overflow:visible;background:conic-gradient(from -22.5deg,#5a2e2e 0 45deg,#293f59 45deg 90deg,#5b4b2d 90deg 135deg,#334f3b 135deg 180deg,#6b3c3c 180deg 225deg,#3e4d63 225deg 270deg,#614e35 270deg 315deg,#4d344d 315deg 360deg);transition:transform 1.8s cubic-bezier(.15,.75,.2,1);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.wheel:after{content:"";position:absolute;z-index:4;top:-30px;left:calc(50% - 12px);border-left:12px solid transparent;border-right:12px solid transparent;border-top:26px solid #e2c27a;filter:drop-shadow(0 2px 2px #000)}
.wheel-center{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:92px;height:92px;border-radius:50%;background:#151a20;border:3px solid #d4b15c;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;box-shadow:0 0 0 5px rgba(0,0,0,.18)}
.wheel-cell{position:absolute;left:50%;top:50%;width:120px;height:44px;margin:0;text-align:center;font-size:19px;font-weight:800;color:#fff;transform-origin:60px 22px;line-height:20px;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-112px) rotate(calc(-1 * var(--a)));text-shadow:0 2px 3px #000;pointer-events:none}.wheel-cell small{font-size:9px;white-space:nowrap}
.wheel-title{max-width:720px;margin:0 auto}


@media(max-width:800px){.layout{grid-template-columns:1fr}nav{display:flex;gap:5px;overflow:auto}nav button{min-width:max-content}.stats{display:none}.main{padding:12px}}

.fighter-stage{display:grid;grid-template-columns:1fr 90px 1fr;gap:12px;align-items:center;margin:14px 0}.fighter-panel{background:#171c24;border:1px solid #2c333e;border-radius:12px;padding:12px;text-align:center}.fighter-panel svg{width:100%;height:220px}.fighter-panel.right{transform:none}.vs{font-size:30px;font-weight:900;text-align:center;color:#d6b35e}.statline{margin:6px 0;font-size:14px}.equip-lines{font-size:13px}.small{font-size:12px}.tag{display:inline-block;margin:2px 4px 2px 0;padding:3px 7px;border-radius:999px;background:#29313d;font-size:12px}.gold{color:#e0b94f}
@media(max-width:900px){.fighter-stage{grid-template-columns:1fr}.vs{display:none}}
.rename{float:right;border:0;background:transparent;padding:4px 6px;font-size:16px}.settings-top{margin-left:8px;padding:6px 9px}.training-scene{height:190px;border-radius:12px;background:#11161d;border:1px solid #343c48;display:flex;align-items:center;justify-content:center;font-size:82px;overflow:hidden}.training-action{animation:trainPulse .65s infinite alternate}@keyframes trainPulse{from{transform:translateY(8px) scale(.96)}to{transform:translateY(-8px) scale(1.04)}}.stat-up{color:#7bdc8b;font-weight:800}.stat-down{color:#ef8b8b;font-weight:800}.strength-bar{height:8px;background:#262c35;border-radius:5px;overflow:hidden}.strength-bar i{display:block;height:100%;background:#b88d45}.ludi-rank{font-size:12px;color:#d5b46b}.offer-price{font-size:22px;font-weight:850;color:#e7bd62}
.other-ludi-page{display:flex;gap:8px;align-items:center;justify-content:center;margin:18px 0}
.other-ludi-page button{min-width:120px}

.world-ludus-card p b{color:#e5c27a}.world-ludus-modal-head p{margin:.3rem 0}.world-ludus-rep{font-size:.72em;color:#d8b76b;font-weight:600}

/* ---- basis-1 ---- */
.tournament{display:flex;flex-direction:column;gap:8px;margin-top:14px}.match-row{display:grid;grid-template-columns:48px 1fr 55px 1fr auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #303846;border-radius:10px;background:#121720}.match-row.winner{border-color:#3d8f57}.winner-side{background:rgba(45,145,75,.16);border-radius:8px;padding:6px}.winner-badge{color:#70e090;font-weight:700}.dead .match-side{opacity:.72}.match-num{font-weight:700;color:#c9a55a}.match-vs{text-align:center;font-weight:800}.modal button:disabled{opacity:.45;cursor:not-allowed}

/* ---- v89-fixes ---- */
/* v8.9 wheel: static wheel, rotating pointer/arrow */
.cave-wheel-modal .wheel{width:360px;height:360px;margin:34px auto 24px;position:relative;border:10px solid #8d6a38;border-radius:50%;overflow:visible;background:conic-gradient(from -22.5deg,#5a2e2e 0 45deg,#293f59 45deg 90deg,#5b4b2d 90deg 135deg,#334f3b 135deg 180deg,#6b3c3c 180deg 225deg,#3e4d63 225deg 270deg,#614e35 270deg 315deg,#4d344d 315deg 360deg);box-shadow:0 8px 30px rgba(0,0,0,.35);transform:none!important}
.cave-wheel-modal .wheel-pointer{position:absolute;left:50%;top:-25px;width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:30px solid #e2c27a;filter:drop-shadow(0 2px 2px #000);z-index:10;transform-origin:0 205px;transform:translateX(-13px) rotate(0deg);transition:transform 1.9s cubic-bezier(.12,.74,.17,1)}
.cave-wheel-modal .wheel-pointer.spinning{transform:translateX(-13px) rotate(var(--pointer-rotation))}
.cave-wheel-modal .wheel-cell{position:absolute!important;width:118px!important;height:62px!important;margin:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;font-size:15px!important;font-weight:900!important;line-height:17px!important;color:#fff!important;text-shadow:0 2px 4px #000!important;pointer-events:none!important;z-index:4!important;transform:translate(-50%,-50%)!important}
.cave-wheel-modal .wheel-cell small{font-size:10px!important;line-height:12px!important;max-width:112px!important;white-space:normal!important}
.cave-wheel-modal .wheel-center{z-index:8}

/* ---- v810-wheel-fix ---- */
.cave-wheel-modal .wheel:after{content:none!important;display:none!important}
.cave-wheel-modal .wheel{transform:none!important;transition:none!important}
.cave-wheel-modal .wheel-pointer{left:calc(50% - 13px)!important;top:-27px!important;width:26px!important;height:30px!important;border-left:13px solid transparent!important;border-right:13px solid transparent!important;border-top:30px solid #e2c27a!important;transform:rotate(0deg)!important;transform-origin:13px 207px!important}
.cave-wheel-modal .wheel-pointer.spinning{transform:rotate(var(--pointer-rotation))!important}
.cave-wheel-modal .wheel-cell{width:96px!important;height:56px!important;font-size:12px!important;line-height:14px!important}
.cave-wheel-modal .wheel-cell small{font-size:9px!important;line-height:10px!important;max-width:92px!important}

/* ---- v812-final-fixes ---- */
/* Cave wheel: one static wheel, one pointer rotating around the wheel centre. */
  .cave-wheel-modal .wheel{position:relative!important;width:360px!important;height:360px!important;margin:34px auto 24px!important;border:10px solid #8d6a38!important;border-radius:50%!important;overflow:visible!important;transform:none!important;transition:none!important;}
  .cave-wheel-modal .wheel-pointer{position:absolute!important;left:50%!important;top:-27px!important;width:26px!important;height:30px!important;margin:0!important;border-left:13px solid transparent!important;border-right:13px solid transparent!important;border-top:30px solid #e2c27a!important;filter:drop-shadow(0 2px 2px #000)!important;z-index:20!important;transform-origin:13px 207px!important;transform:rotate(0deg)!important;transition:none!important;}
  .cave-wheel-modal .wheel-pointer.spinning{transform:rotate(var(--wheel-pointer-rotation))!important;transition:transform var(--wheel-spin-duration) cubic-bezier(.10,.72,.12,1)!important;}
  .cave-wheel-modal .wheel-cell{position:absolute!important;left:50%!important;top:50%!important;width:104px!important;height:58px!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:13px!important;font-weight:900!important;line-height:14px!important;color:#fff!important;text-shadow:0 2px 4px #000!important;pointer-events:none!important;z-index:5!important;transform:translate(-50%,-50%) rotate(var(--label-angle)) translateY(-112px) rotate(calc(-1 * var(--label-angle)))!important;}
  .cave-wheel-modal .wheel-cell small{font-size:9px!important;line-height:11px!important;max-width:102px!important;white-space:normal!important;}

/* ---- v91-roman-ui-skin ---- */
/* =========================================================
   GLADIUS MAGNATUS v9.1 – Roman / bronze UI skin
   Visual direction based on the supplied reference:
   dark carved wood, bronze frames, parchment panels, red-brown headers.
   Functional DOM/classes are intentionally preserved.
   ========================================================= */
:root{
  --wood0:#171008;--wood1:#24170c;--wood2:#35200f;--wood3:#4b2b13;
  --bronze:#9a6a2f;--bronze2:#c4944a;--bronze3:#e0bc72;
  --red:#6e241b;--red2:#8f3424;--parch:#4a321b;--parch2:#5c3f21;
  --ink:#f0d9a2;--ink2:#d4b477;--line:#7d5628;
}
html,body{min-height:100%;}
body{
 background:
  radial-gradient(circle at 50% -10%,rgba(196,148,74,.12),transparent 35%),
  linear-gradient(90deg,rgba(0,0,0,.35),transparent 12%,transparent 88%,rgba(0,0,0,.35)),
  repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px),
  linear-gradient(#21150b,#120c07 70%);
 color:#f1dfb7;font-family:Georgia,'Times New Roman',serif;
}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.18;background:repeating-linear-gradient(90deg,transparent 0 80px,rgba(205,150,74,.08) 81px 83px,transparent 84px 160px);mix-blend-mode:screen}
.top{
 position:sticky;top:0;z-index:20;min-height:86px;padding:8px 18px 8px 28px;
 background:
  linear-gradient(180deg,rgba(76,46,20,.98),rgba(30,18,9,.98)),
  repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 2px,transparent 2px 12px);
 border-bottom:3px solid #6f4a22;box-shadow:0 4px 16px rgba(0,0,0,.65);
 display:flex;justify-content:space-between;gap:18px;align-items:center
}
.brand{font-family:Georgia,'Times New Roman',serif;font-size:22px;letter-spacing:.9px;text-transform:uppercase;color:#f1d39a;text-shadow:0 2px 2px #000;max-width:52%}
.stats{display:flex;gap:8px;align-items:center;font-size:14px;flex-wrap:wrap;justify-content:flex-end}
.stats span{padding:9px 12px;border:1px solid #6e4a23;background:linear-gradient(#3d2612,#25170b);box-shadow:inset 0 1px rgba(255,221,157,.12);border-radius:3px;color:#d9bc82}
.stats b{color:#f3d28d}.settings-top{background:linear-gradient(#6c3a23,#351b10)!important;border-color:#9a6831!important;color:#f5dba7!important}
.layout{grid-template-columns:205px 1fr;min-height:calc(100vh - 86px)}
nav{padding:12px 10px;background:linear-gradient(90deg,#1b1008,#2b1a0c);border-right:3px solid #6d4820;box-shadow:5px 0 18px rgba(0,0,0,.3)}
nav:before{content:'⚜  GLADIUS MAGNATUS';display:block;text-align:center;font-size:13px;letter-spacing:.7px;color:#d9b56d;padding:10px 5px 13px;border-bottom:1px solid #67431f;margin-bottom:8px}
nav button{
 display:block;width:100%;margin:7px 0;text-align:left;padding:11px 12px;border-radius:4px;
 color:#ead09b;background:linear-gradient(180deg,#4a2d16,#2a190d);border:1px solid #765025;
 box-shadow:inset 0 1px rgba(255,226,171,.10),0 2px 4px rgba(0,0,0,.35);font-family:Georgia,'Times New Roman',serif;font-size:15px
}
nav button:hover{background:linear-gradient(180deg,#64401f,#38210f);border-color:#aa7836;color:#fff1c9}
nav button.active{background:linear-gradient(180deg,#8a3224,#561d16);border-color:#b57b37;box-shadow:inset 0 1px rgba(255,215,145,.18),0 2px 5px rgba(0,0,0,.5);color:#ffe5ae}
.main{max-width:1600px;padding:24px 26px;margin:0 auto;width:100%}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:#f1d39b;text-shadow:0 2px 2px #000}
h1{letter-spacing:.4px}.muted{color:#c4a66e}.gold{color:#efc65f}.kpi{color:#f0d49b}
.card{
 background:
  linear-gradient(rgba(88,58,28,.88),rgba(54,35,17,.92)),
  repeating-linear-gradient(0deg,rgba(255,255,255,.02) 0 2px,transparent 2px 5px);
 border:2px solid #704a22;border-radius:5px;padding:16px;min-width:0;
 box-shadow:inset 0 0 0 1px rgba(216,165,82,.13),inset 0 0 25px rgba(0,0,0,.22),0 5px 12px rgba(0,0,0,.35)
}
.card:hover{border-color:#9b6b30}
.card .card{background:linear-gradient(rgba(59,39,19,.92),rgba(39,25,12,.94));border-color:#5e3d1d;box-shadow:inset 0 0 14px rgba(0,0,0,.2)}
.section-banner{
 background:linear-gradient(180deg,#873126,#5a1d16);border:2px solid #9b6930;border-radius:4px;
 color:#f6d79e;padding:9px 16px;text-align:center;text-transform:uppercase;letter-spacing:1px;font-family:Georgia,serif;
 box-shadow:inset 0 1px rgba(255,226,160,.15),0 3px 8px rgba(0,0,0,.35)
}
button,select,input{font-family:Georgia,'Times New Roman',serif}
button{background:linear-gradient(#5b3a1b,#32200f);color:#f0d4a0;border:1px solid #8c5f2b;border-radius:4px;padding:9px 13px;box-shadow:inset 0 1px rgba(255,226,166,.12),0 2px 4px rgba(0,0,0,.35)}
button:hover{background:linear-gradient(#73491f,#432812);border-color:#bd8942;color:#fff0c8}
button.primary{background:linear-gradient(#963a2b,#5e2119);border-color:#b47734;color:#ffe5b0}
.tag{background:#39240f;border-color:#805728;color:#e7c88d;border-radius:3px}
input,select{background:#24170b!important;color:#f2d7a3!important;border:1px solid #795128!important;border-radius:3px!important;padding:9px!important}
.portrait{background:#24170d;border-color:#8a5d2c;border-radius:4px;box-shadow:inset 0 0 25px rgba(0,0,0,.35)}
.weapon{background:#24170d;border-color:#8a5d2c;border-radius:4px}
.modal{background:rgba(9,5,2,.82)}
.modalbox{background:linear-gradient(#432b16,#25170c);border:2px solid #9a6b31;border-radius:5px;box-shadow:0 18px 60px #000,inset 0 0 35px rgba(0,0,0,.25);color:#f1d9a5}
.close{background:linear-gradient(#71301f,#3e190f);color:#f4d59a;border-color:#95652d}
.log{background:#0b0805;border:1px solid #704820;color:#f0d9a5}
.fightcanvas{background:radial-gradient(circle at 50% 35%,#654020 0,#332013 45%,#120c07 100%);border:2px solid #8d612b;box-shadow:inset 0 0 70px rgba(0,0,0,.45)}
.fighter-panel{background:linear-gradient(#493018,#2b1b0d);border:2px solid #775027;border-radius:4px;box-shadow:inset 0 0 18px rgba(0,0,0,.25)}
.vs{color:#e2b961;text-shadow:0 2px 2px #000}
.match-row{background:linear-gradient(#3e2814,#24160b);border-color:#704a22;border-radius:4px}
.winner-side{background:rgba(53,115,50,.25);outline:1px solid #8eb05b}
.winner-badge{color:#a8d878}.dead .match-side{opacity:.55}
.tournament{gap:9px}
.strength-bar{background:#1b1008;border:1px solid #6b471f}.strength-bar i{background:linear-gradient(90deg,#7c241a,#c79646)}
.fight-result-modal .modalbox{background:linear-gradient(#4b3017,#25170b);border-color:#ad7833}
.fight-epic-text{color:#f2d7a0}
.training-scene{background:radial-gradient(circle,#5a3a1b,#24170c);border-color:#81562a}
.other-ludi-page button{min-width:120px}
/* wheel: keep functional animation, but frame it like an old Roman game device */
.cave-wheel-modal .modalbox{background:linear-gradient(#4a3018,#25170b)}
.cave-wheel-modal .wheel{box-shadow:0 0 0 5px #3c2410,0 12px 35px rgba(0,0,0,.65),inset 0 0 30px rgba(0,0,0,.25);border-color:#b0803a!important}
.cave-wheel-modal .wheel-center{background:#211308;border-color:#d2a94f;color:#f4d89d}
.cave-wheel-modal .wheel-pointer{filter:drop-shadow(0 3px 2px #000)}
/* make list cards feel like the reference's framed gladiator roster */
.market-card,.grid>.card{position:relative}
.market-card:before,.grid>.card:before{content:"";position:absolute;inset:4px;pointer-events:none;border:1px solid rgba(205,153,72,.08);border-radius:2px}
/* Scrollbars */
*{scrollbar-color:#8a5e2a #1b1008;scrollbar-width:thin}
@media(max-width:900px){.layout{grid-template-columns:1fr}nav{display:flex;flex-wrap:wrap;gap:5px;border-right:0;border-bottom:3px solid #6d4820}nav:before{width:100%}nav button{min-width:150px;width:auto}.brand{max-width:100%;font-size:17px}.stats{display:none}.main{padding:14px}}

/* ---- v93-reference-layout ---- */
:root{--gold1:#d8a84d;--gold2:#8b5a20;--wood:#24150a;--wood2:#3b220e;--red:#742719;--red2:#9a3926;--parch:#4a3018;--cream:#f0d39a}
body{background:radial-gradient(circle at 50% 0,#3a2410 0,#171008 38%,#0d0905 100%);color:var(--cream);font-family:Georgia,'Times New Roman',serif}
.top{height:96px;min-height:96px;padding:0 18px 0 22px;background:linear-gradient(#3b2410,#1c1008);border-bottom:3px solid #8d6025;box-shadow:0 5px 20px #000;position:sticky;top:0}
.brand-block{display:flex;align-items:center;gap:16px}.spqr{width:82px;height:104px;margin-top:8px;background:linear-gradient(#8f261b,#4c160f);border:2px solid #b17a2f;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:900;color:#e7c37d;clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%);text-shadow:0 2px 2px #000}.brand{font-size:28px;letter-spacing:2px;color:#f3d59b}.brand-sub{font-size:15px;color:#c8a468;margin-top:4px}.top-stats{display:flex;align-items:stretch;height:100%;gap:0}.top-stat{min-width:150px;padding:15px 18px;border-left:1px solid #6f4a20;display:grid;grid-template-columns:30px 1fr;align-content:center}.top-stat>span{grid-row:1/3;font-size:27px}.top-stat b{font-size:18px;color:#f1d49a}.top-stat em{font-style:normal}.top-stat small{color:#79c56f;font-size:12px}.top-icon{min-width:60px;border:0;border-left:1px solid #6f4a20;border-radius:0;background:linear-gradient(#3b2410,#1c1008);font-size:25px;color:#e9c77d}.top-icon:hover{background:#5b3016}
.layout{grid-template-columns:190px 1fr;min-height:calc(100vh - 96px)}nav{padding:12px 8px;background:linear-gradient(90deg,#1b1007,#2c190b);border-right:3px solid #79501f}nav:before{display:none}.nav-title{padding:12px 5px 16px;text-align:center;color:#d7b56e;font-weight:900;letter-spacing:1px;font-size:13px;border-bottom:1px solid #67451e;margin-bottom:6px}nav button{margin:0 0 7px;padding:13px 12px;border-radius:2px;background:linear-gradient(#422710,#28160b);border:1px solid #714b21;color:#e8ca8d;font-size:16px;box-shadow:inset 0 1px rgba(255,220,150,.08)}nav button.active{background:linear-gradient(#8b3224,#551b14);border-color:#bd8739;color:#ffe6ae}
.main{max-width:none;padding:14px 18px 24px}.roman-dashboard{display:grid;grid-template-columns:minmax(300px,1.05fr) minmax(360px,1fr) minmax(350px,1.05fr);gap:10px;min-height:calc(100vh - 130px)}.dash-col{background:linear-gradient(#4b3018,#2d1b0d);border:2px solid #6f4a21;box-shadow:inset 0 0 25px rgba(0,0,0,.3),0 5px 15px #000;min-width:0}.section-banner{margin:0;border-radius:0;border:1px solid #9d6930;background:linear-gradient(#8c3122,#5b1c15);padding:9px 14px;font-size:18px}.roster-col{padding-bottom:10px}.glad-row{display:grid;grid-template-columns:95px 1fr;min-height:105px;border-bottom:1px solid #6d471f;padding:7px;cursor:pointer;background:linear-gradient(90deg,#38230f,#24150a)}.glad-row:hover,.glad-row.selected{background:linear-gradient(90deg,#5a3415,#2d190b);outline:1px solid #a06c2e}.mini-portrait{width:90px;height:90px;overflow:hidden}.mini-portrait svg{width:120px;height:100px;transform:translate(-15px,-4px)}.glad-info{padding:7px 4px}.glad-info b{display:block;font-size:17px;color:#f0d09a}.glad-info span{display:block;color:#d2ae70;font-size:13px;margin:2px 0 7px}.glad-info div{font-size:12px;color:#ead8b3;line-height:1.6}.dash-action{margin:12px;width:calc(100% - 24px);background:linear-gradient(#5c3516,#2b180b);border-color:#9a672c}.detail-col{padding-bottom:10px}.detail-head{display:flex;justify-content:center;gap:10px;align-items:center;padding:15px 10px 0}.detail-head h1{margin:0;font-size:24px;color:#e9c98d}.style-name{font-size:17px;color:#d1ad6c;text-align:center}.laurel{font-size:28px;color:#d9ad4e}.hero-portrait{height:390px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 35%,#5b3a1b,#2b190b 62%,#1a0f08);margin:8px;border:1px solid #765027;overflow:hidden}.hero-portrait svg{width:390px;height:390px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #765027;margin:8px}.stat-grid div{padding:7px 10px;border-bottom:1px solid #5d3d1c;color:#e6cc98;font-size:14px}.stat-grid div:nth-child(odd){border-right:1px solid #5d3d1c}.stat-grid b{float:right;color:#f1d49a}.detail-actions{display:flex;justify-content:center;gap:8px;padding:8px}.detail-actions button{min-width:120px}.equipment-col{padding-bottom:0}.equip-tabs{padding:10px;text-align:center;border-bottom:1px solid #6f4a20;font-size:22px;color:#d8b267;background:#2a180a}.equip-row{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #6d471f;background:linear-gradient(90deg,#38230f,#24150a)}.equip-row svg{width:72px;height:58px;background:transparent;border:0}.equip-row b{display:block;color:#f0d29a;font-size:15px}.equip-row small{display:block;color:#c8a96f;margin-top:4px}.last-title{margin-top:10px}.last-fight{padding:18px 12px;display:grid;grid-template-columns:1fr 55px 1fr;gap:10px;text-align:center;align-items:center}.last-fight b{display:block;font-size:15px}.last-fight small{color:#c7a96d}.last-fight strong{font-size:22px;color:#d2ad63}.last-result{grid-column:1/4;color:#8bd36d;font-size:22px;font-weight:900;padding-top:5px}.reward-row{display:flex;justify-content:space-around;padding:12px;border-top:1px solid #6d471f;color:#aee08b}.bottom-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:10px}.bottom-actions button{border-radius:2px;padding:13px;background:linear-gradient(#4a2c12,#26150a);font-size:14px;color:#e9c98c;border-color:#805627}.bottom-actions button:hover{background:#66391a}
.card{border-radius:2px}.empty-panel{padding:25px;text-align:center;color:#c5a56b}.equip-lines{font-size:12px}.rename{color:#e2bd78}
@media(max-width:1200px){.top-stat{min-width:110px;padding:10px}.top-icon{min-width:48px}.roman-dashboard{grid-template-columns:1fr 1fr}.equipment-col{grid-column:1/-1}.hero-portrait{height:330px}}@media(max-width:850px){.top{height:auto;min-height:82px}.top-stats{display:none}.layout{grid-template-columns:1fr}nav{display:flex;overflow:auto;gap:4px}.nav-title{display:none}nav button{min-width:max-content}.roman-dashboard{grid-template-columns:1fr}.bottom-actions{grid-template-columns:1fr 1fr}.equipment-col{grid-column:auto}}

/* ---- v100-settings-theme ---- */
.brand-block{gap:0;min-width:300px}.brand{font-size:30px;line-height:1}.brand-sub{text-transform:none;font-size:18px;letter-spacing:.8px;margin-top:5px;color:#d6b278}.brand-meta{display:flex;gap:16px;margin-top:5px;font-size:12px;color:#c4a66e}.brand-meta b{color:#ecd6a8}.spqr{display:none!important}
.hero-portrait{position:relative}.hero-rename{position:absolute!important;right:12px;top:10px;z-index:20;min-width:0!important;width:34px;height:32px;padding:4px!important;border-radius:4px!important;font-size:17px!important;background:linear-gradient(#5b3a1b,#32200f)!important;color:#f0d4a0!important}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:12px}.settings-card{min-height:180px}.settings-card h2{margin-top:0}.settings-card input,.settings-card select{width:100%;margin-top:6px}.settings-save{display:flex;justify-content:center;padding:14px}.settings-save button{min-width:260px}.color-preview-row{display:flex;gap:8px;margin-top:14px}.color-preview-row span{width:30px;height:20px;border:2px solid #c9a56a;box-shadow:0 2px 5px #000;border-radius:3px}.danger-button{background:linear-gradient(#71301f,#3e190f)!important;border-color:#9b4f36!important}.city-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin-top:15px}.city-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:13px;background:linear-gradient(#5b3a1b,#32200f)}.city-choice small{color:#cdb486;line-height:1.35}.city-choice.selected{outline:2px solid #d0a75b;background:linear-gradient(#71301f,#43220f)}
body.theme-roman{--theme-main:#8f3325;--theme-dark:#4b1e16;--theme-accent:#d2a35a;--theme-soft:#5b3418}body.theme-bronze{--theme-main:#8a5a2b;--theme-dark:#4a321c;--theme-accent:#e0b86b;--theme-soft:#6b4725}body.theme-blue{--theme-main:#315a7d;--theme-dark:#1d3448;--theme-accent:#8eb6d4;--theme-soft:#304b61}body.theme-green{--theme-main:#3f684f;--theme-dark:#243c2e;--theme-accent:#a6c58e;--theme-soft:#38553f}body.theme-purple{--theme-main:#64466f;--theme-dark:#392744;--theme-accent:#d2a6d8;--theme-soft:#55385f}
body[class*="theme-"] .top{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 65%,#17100a),#1b1109);border-bottom-color:var(--theme-accent)}body[class*="theme-"] nav{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-dark) 75%,#17100a),#24160c);border-right-color:var(--theme-accent)}body[class*="theme-"] nav button.active{background:linear-gradient(180deg,var(--theme-main),var(--theme-dark));border-color:var(--theme-accent)}body[class*="theme-"] .section-banner{background:linear-gradient(90deg,var(--theme-main),color-mix(in srgb,var(--theme-dark) 75%,#1c1008) 55%,var(--theme-main));border-color:var(--theme-accent)}body[class*="theme-"] .glad-row:hover,body[class*="theme-"] .glad-row.selected{outline-color:var(--theme-accent);background:linear-gradient(90deg,color-mix(in srgb,var(--theme-main) 48%,#24150a),#24150a)}body[class*="theme-"] .detail-head h1,body[class*="theme-"] .brand,body[class*="theme-"] .brand-sub{color:var(--theme-accent)}body[class*="theme-"] .stat-grid,body[class*="theme-"] .hero-portrait,body[class*="theme-"] .equip-row{border-color:color-mix(in srgb,var(--theme-accent) 55%,#5d3d1c)}body[class*="theme-"] .hero-rename{border-color:var(--theme-accent)!important}body[class*="theme-"] .top-stat{border-left-color:color-mix(in srgb,var(--theme-accent) 55%,#6f4a20)}
@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.city-choice-grid{grid-template-columns:1fr}.brand-block{min-width:0}.brand-meta{gap:8px}}

/* ---- v114-newgame-fixes ---- */
.new-game-choice.disabled{opacity:.28!important;filter:grayscale(.7);cursor:not-allowed!important}
.new-game-choice.selected{border-color:#e6b85e!important;box-shadow:0 0 0 2px rgba(230,184,94,.16),inset 0 0 18px rgba(230,184,94,.08)!important}
.difficulty.selected{border-color:#e6b85e!important;box-shadow:0 0 0 2px rgba(230,184,94,.16),inset 0 0 20px rgba(230,184,94,.08)!important}

/* ---- v116-newgame-polish ---- */
.new-game-title{justify-content:flex-start!important}.new-game-title>div{margin-left:0!important}.new-game-note{display:none!important}.new-game-footer{min-height:36px}.new-game-footer #ngValidation:empty{display:none}.prologue-story p{line-height:1.7;margin:0 0 14px}.prologue-modal{max-width:850px}.prologue-modal h2{text-align:center}.prologue-quote{margin-top:18px}

/* ---- basis-10 ---- */
.nav-subgroup{margin:0 0 5px 8px;padding-left:7px;border-left:2px solid #303845;display:grid;gap:4px}
.nav-subgroup .sub{font-size:12px;padding:8px 10px;background:#12171e}
.wheel{position:relative;width:360px;height:360px;margin:28px auto 20px;border-radius:50%;overflow:visible}
.wheel .wheel-cell{position:absolute;transform:translate(-50%,-50%);width:112px;height:58px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-size:20px;font-weight:900;line-height:18px;color:#fff;text-shadow:0 2px 4px #000;pointer-events:none;z-index:4}
.wheel .wheel-cell small{font-size:11px;line-height:13px;max-width:110px;white-space:normal}
.wheel.spinning{animation:wheelSpin 1.9s cubic-bezier(.12,.74,.17,1)}
@keyframes wheelSpin{from{transform:rotate(0deg)}to{transform:rotate(var(--spin-deg))}}
.match-row.winner .match-side{border-color:#4caf68;background:linear-gradient(180deg,#18351f,#111a14);box-shadow:0 0 0 1px rgba(76,175,104,.22)}
.match-row .winner-badge{color:#71e08c;font-weight:900}
.combat-stage{background:radial-gradient(circle at 50% 35%,#3a2d1f 0,#171b22 48%,#0c0f14 100%);border:1px solid #5b4b35;box-shadow:inset 0 0 70px rgba(0,0,0,.45),0 12px 35px rgba(0,0,0,.3)}
.combat-action{transition:background .2s,transform .2s}
.damage-pop{font-weight:900;font-size:20px}
@media(max-width:700px){.wheel{width:300px;height:300px}.wheel .wheel-cell{width:92px;font-size:16px}.wheel .wheel-cell small{font-size:9px}}

/* ---- basis-11 ---- */
.cave-wheel-modal .wheel{position:relative!important;width:360px!important;height:360px!important;margin:34px auto 24px!important;border:10px solid #8d6a38!important;border-radius:50%!important;overflow:visible!important;transform:none!important;transition:none!important;}
.cave-wheel-modal .wheel-pointer{position:absolute!important;left:calc(50% - 13px)!important;top:-27px!important;width:26px!important;height:30px!important;margin:0!important;border-left:13px solid transparent!important;border-right:13px solid transparent!important;border-top:30px solid #e2c27a!important;filter:drop-shadow(0 2px 2px #000)!important;z-index:30!important;transform-origin:13px 207px!important;}
.cave-wheel-modal .wheel-cell{position:absolute!important;left:50%!important;top:50%!important;width:112px!important;height:62px!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-size:13px!important;font-weight:900!important;line-height:15px!important;color:#fff!important;text-shadow:0 2px 4px #000!important;pointer-events:none!important;z-index:5!important;transform:translate(-50%,-50%) rotate(var(--label-angle)) translateY(-116px) rotate(calc(-1 * var(--label-angle)))!important;}
.cave-wheel-modal .wheel-cell small{font-size:10px!important;line-height:11px!important;max-width:108px!important;white-space:normal!important;}

/* ---- basis-12 ---- */
.cave-wheel-modal .wheel-pointer{transform-origin:13px 207px!important;z-index:40!important;}
.cave-wheel-modal .wheel-pointer.spinning{animation:none!important;}
.fightcanvas{display:block!important;min-height:430px!important;background:#141a20!important;}

/* ---- basis-13 ---- */
.fight-result-modal{max-width:820px!important;text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.55);border-color:#8d6a38!important;}
.fight-result-header{font-size:30px;font-weight:900;color:#f0d07a;margin:8px 0 4px;}
.fight-result-header span{color:#fff;}
.fight-result-mode{color:#aeb7c3;font-size:13px;margin-bottom:18px;}
.fight-result-versus{display:grid;grid-template-columns:1fr 90px 1fr;gap:14px;align-items:center;margin:10px 0 18px;}
.fight-result-fighter{padding:15px;border:1px solid #303846;border-radius:12px;background:#11161e;}
.winner-result{border-color:#4f9a61!important;background:rgba(48,132,69,.12)!important;}
.dead-result{border-color:#7e3d3d!important;background:rgba(130,45,45,.12)!important;}
.fight-result-fighter h2{margin:5px 0 7px;font-size:20px;}
.result-crown{font-size:27px;min-height:32px;}
.result-vs{font-weight:900;font-size:25px;color:#d4b05e;}
.fight-epic-text{max-width:700px;margin:0 auto 14px;padding:15px 18px;border-left:3px solid #b18b4b;border-right:3px solid #b18b4b;background:#0d1218;border-radius:8px;line-height:1.55;color:#e8e1d4;}
.death-notice{margin:10px auto 14px;max-width:700px;padding:10px;border-radius:8px;background:rgba(145,50,50,.16);color:#f0b1b1;font-size:13px;}
.result-actions{margin-top:16px;}
/* Remove every older wheel transform rule; JS controls the pointer directly. */
.cave-wheel-modal .wheel{transform:none!important;transition:none!important;}
.cave-wheel-modal .wheel-pointer{transform:none!important;transition:none!important;animation:none!important;transform-origin:13px 207px!important;}
.cave-wheel-modal .wheel:after{display:none!important;content:none!important;}

/* ---- v94-reference-exact ---- */
:root{--r-gold:#d2a14d;--r-gold2:#8a5b20;--r-red:#7d2b1d;--r-red2:#9d3b28;--r-dark:#120c06;--r-panel:#33200f;--r-panel2:#4a2e17;--r-cream:#f0d29a}
    html,body{min-height:100%;overflow-x:hidden}
    body{background:radial-gradient(circle at 48% -10%,#4b3018 0,#211309 32%,#0d0905 72%,#080604 100%);color:var(--r-cream)}
    .top{height:100px;min-height:100px;padding:0 10px 0 18px;display:flex;align-items:stretch;background:linear-gradient(180deg,#3a2410 0%,#211308 58%,#120a05 100%);border-bottom:3px solid #8a5b22;box-shadow:0 4px 16px #000}
    .brand-block{width:390px;min-width:390px;gap:16px;align-items:center}.spqr{width:84px;height:108px;margin-top:8px;font-size:22px;flex:none}.brand{font-size:27px;line-height:1.05;letter-spacing:1.8px}.brand-sub{font-size:16px;color:#d1ad70;margin-top:5px}
    .top-stats{height:100%;flex:1;display:flex;justify-content:flex-end;align-items:stretch;overflow:hidden}.top-stat{min-width:150px;padding:12px 16px;border-left:1px solid #6b461e;display:grid;grid-template-columns:31px 1fr;align-content:center}.top-stat>span{font-size:27px}.top-stat b{font-size:18px}.top-stat small{font-size:12px}.top-icon{position:relative;width:60px;min-width:60px;padding:0;border-left:1px solid #6b461e!important;background:linear-gradient(#3a230f,#1c1008)!important;font-size:25px}.top-icon i{position:absolute;right:7px;top:9px;width:21px;height:21px;line-height:21px;border-radius:50%;background:#a84429;color:#fff1d0;font:bold 12px Georgia;font-style:normal;border:1px solid #d18a43}
    .layout{grid-template-columns:208px 1fr;min-height:calc(100vh - 100px)}
    nav{padding:12px 8px 14px;background:linear-gradient(90deg,#1b1007,#2c190b 78%,#1d1008);border-right:3px solid #79501f;box-shadow:4px 0 18px rgba(0,0,0,.55)}
    nav .nav-title{display:none} nav button{height:57px;margin:0 0 7px;padding:10px 13px;border-radius:2px;display:flex;align-items:center;gap:10px;background:linear-gradient(#422710,#29170b);border:1px solid #714b21;color:#ead09b;font-size:16px;box-shadow:inset 0 1px rgba(255,220,150,.08),0 2px 4px #000}
    nav button:hover{background:linear-gradient(#633b17,#3b210d)} nav button.active{background:linear-gradient(#8b3224,#551b14);border-color:#bd8739;color:#ffe6ae;box-shadow:inset 0 1px rgba(255,215,145,.18),0 2px 5px #000}
    .main{padding:10px 14px 14px;max-width:none;width:100%}
    .roman-dashboard{grid-template-columns:minmax(360px,1.05fr) minmax(355px,1fr) minmax(420px,1.25fr);gap:9px;height:calc(100vh - 190px);min-height:760px;overflow:hidden}
    .dash-col{border:2px solid #704a21;background:linear-gradient(180deg,#4b3018,#2a190d);box-shadow:inset 0 0 25px rgba(0,0,0,.35),0 4px 14px #000;overflow:hidden}
    .section-banner{height:42px;display:flex;align-items:center;justify-content:center;padding:0 12px;font-size:18px;letter-spacing:.8px;border:1px solid #9d6930;background:linear-gradient(#8d3323,#5b1d15);box-shadow:inset 0 1px rgba(255,225,165,.16)}
    .roster-col{display:flex;flex-direction:column}.glad-row{grid-template-columns:104px 1fr;min-height:104px;height:104px;padding:6px;border-bottom:1px solid #6d471f}.mini-portrait{width:98px;height:94px;display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(180deg,#392513,#24150a);border-right:1px solid #5f3d1b}.mini-portrait svg{width:132px;height:110px;transform:translateY(4px)}.glad-info{padding:7px 8px}.glad-info b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.glad-info span{font-size:13px;margin:2px 0 5px}.glad-info div{font-size:12px;line-height:1.65}.dash-action{margin:auto 10px 10px;width:calc(100% - 20px);height:43px}
    .detail-col{display:flex;flex-direction:column}.detail-head{height:68px;padding:8px 10px 0}.detail-head h1{font-size:22px}.style-name{font-size:16px}.hero-portrait{height:365px;margin:0 8px 7px;background:radial-gradient(circle at 50% 35%,#694321 0,#3b2614 54%,#211208 100%);border:1px solid #7a5126}.hero-portrait svg{width:405px;height:405px;filter:drop-shadow(0 7px 6px rgba(0,0,0,.55))}
    .stat-grid{margin:0 8px;grid-template-columns:1fr 1fr;border-color:#765027}.stat-grid div{padding:5px 9px;font-size:13px;height:28px}.detail-actions{padding:7px 8px}.detail-actions button{min-width:102px;height:35px;padding:5px 9px}
    .equipment-col{display:flex;flex-direction:column}.equip-tabs{height:55px;display:flex;align-items:center;justify-content:space-around;padding:5px 8px;font-size:24px;border-bottom:1px solid #704a20}.equip-row{grid-template-columns:82px 1fr 78px;min-height:69px;height:69px;padding:5px 8px;background:linear-gradient(90deg,#3a2411,#24150a);border-bottom:1px solid #6d471f}.equip-row svg{width:74px;height:58px}.equip-row b{font-size:15px}.equip-row small{font-size:12px}.equip-row .equip-use{font-size:12px;color:#e2bd78;text-align:right}.last-title{margin-top:auto;height:42px}.last-fight{padding:9px 12px;grid-template-columns:1fr 45px 1fr;gap:5px;min-height:94px}.last-fight b{font-size:14px}.last-result{font-size:20px}.reward-row{padding:8px;font-size:13px}
    .bottom-actions{height:72px;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:8px}.bottom-actions button{height:72px;padding:7px 5px;border:1px solid #7d5424;background:linear-gradient(#493018,#27170a);font-size:15px;color:#eacb8d;box-shadow:inset 0 1px rgba(255,225,165,.1),0 2px 5px #000}.bottom-actions button:hover{background:linear-gradient(#663a18,#321b0b)}
    .equipment-slot-panel{position:absolute;left:8px;right:8px;top:76px;height:300px;pointer-events:none}.detail-stage{position:relative}.equip-slot{position:absolute;width:62px;height:62px;border:1px solid #8d612b;background:linear-gradient(#3d2712,#211309);box-shadow:inset 0 0 12px #000;display:flex;align-items:center;justify-content:center;font-size:26px;color:#d7b56d}.equip-slot.left1{left:6px;top:8px}.equip-slot.left2{left:6px;top:78px}.equip-slot.left3{left:6px;top:148px}.equip-slot.left4{left:6px;top:218px}.equip-slot.right1{right:6px;top:8px}.equip-slot.right2{right:6px;top:78px}.equip-slot.right3{right:6px;top:148px}.equip-slot.right4{right:6px;top:218px}
    .detail-stage{height:365px}.detail-stage .hero-portrait{height:365px}.detail-stage .hero-portrait svg{width:405px;height:405px}.detail-stage .detail-head{position:absolute;top:-67px;left:0;right:0;z-index:2}
    .detail-stage .equip-slot{pointer-events:auto;cursor:pointer}.detail-stage .equip-slot:hover{border-color:#d1a14d;background:#4a2d14}
    .empty-panel{padding:20px;text-align:center;color:#c8a86e}
    @media(max-width:1250px){.brand-block{width:330px;min-width:330px}.top-stat{min-width:120px;padding:10px}.roman-dashboard{grid-template-columns:1fr 1fr;min-height:760px;height:auto}.equipment-col{grid-column:1/-1}.detail-col{min-height:760px}.bottom-actions{margin-bottom:12px}}
    @media(max-width:850px){.top{height:auto;min-height:84px}.brand-block{width:auto;min-width:0}.top-stats{display:none}.layout{grid-template-columns:1fr}nav{display:flex;overflow:auto;gap:4px;border-right:0;border-bottom:3px solid #79501f}.main{padding:8px}.roman-dashboard{grid-template-columns:1fr}.bottom-actions{grid-template-columns:repeat(2,1fr);height:auto}.bottom-actions button{height:58px}}

/* ---- v95-gladiator-refinement ---- */
.detail-head{position:relative;padding-right:72px!important}
    .mini-rename{position:absolute;right:8px;top:7px;font-size:11px!important;height:25px!important;min-width:0!important;padding:3px 7px!important;opacity:.9}
    .detail-actions .style-action{min-width:110px}
    .stat-grid .value-row{grid-column:1/-1;white-space:nowrap;display:flex!important;justify-content:space-between;align-items:center}
    .stat-grid .value-row b{font-size:13px;letter-spacing:.2px}
    .equip-slot.empty{color:#654b2c;background:linear-gradient(#24160b,#160d07)}
    .equip-slot.has-item{border-color:#b8873d;box-shadow:inset 0 0 10px #000,0 0 5px rgba(210,161,77,.22)}
    .equip-slot img{max-width:46px;max-height:46px}
    .last-fight.clickable{cursor:pointer;transition:.15s}
    .last-fight.clickable:hover{background:#3d2613}
    .fighter-mini-stat{margin:7px 9px 8px;padding:7px 9px;border:1px solid #6d481f;background:linear-gradient(#30200f,#1c1008);font-size:12px;line-height:1.65}
    .fighter-mini-stat strong{color:#f0d29a}
    .last-fight-note{font-size:11px;color:#b99a65;text-align:center;padding:0 8px 5px}
    .equip-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .equip-choice{display:grid;grid-template-columns:62px 1fr;gap:8px;align-items:center;padding:8px;border:1px solid #6f4a21;background:linear-gradient(90deg,#3b2410,#241509);cursor:pointer}
    .equip-choice:hover{border-color:#d2a14d;background:#4a2d14}
    .equip-choice svg{width:58px;height:52px}
    .equip-choice small{display:block;color:#bda16c;font-size:11px;margin-top:2px}
    .equip-choice .equipped-now{color:#77c56b}
    .equip-empty{padding:18px;text-align:center;color:#bda16c;border:1px dashed #6b481f}
    .fight-history-modal{max-width:760px}
    .fight-history-card{padding:18px;border:1px solid #765027;background:linear-gradient(#34200e,#1b1008);text-align:center}
    .fight-history-card .versus{font-family:Georgia,serif;font-size:22px;color:#d7b56d;margin:10px 0}
    .fight-history-card .epic{margin-top:15px;padding:14px;border-left:3px solid #a87a34;border-right:3px solid #a87a34;background:#100b07;line-height:1.55;color:#ead7ad}
    @media(max-width:700px){.equip-choice-grid{grid-template-columns:1fr}}

/* ---- v96-gladiator-layout ---- */
.roman-dashboard{grid-template-columns:minmax(350px,1fr) minmax(420px,1.15fr) minmax(300px,.78fr)!important}
    .detail-head{padding-right:112px!important}
    .mini-rename{right:8px;top:7px;font-size:10px!important;height:24px!important;padding:3px 6px!important;letter-spacing:.3px}
    .detail-head .style-name{display:none!important}
    .armor-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 10px 0;padding:7px 9px;border:1px solid #6d481f;background:linear-gradient(180deg,#3a2412,#24150b);box-shadow:inset 0 0 10px rgba(0,0,0,.3)}
    .armor-summary div{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:12px;color:#c9ab76}.armor-summary b{color:#f0d29a;font-size:14px;white-space:nowrap}
    .stat-grid>div{min-height:27px;display:flex;justify-content:space-between;align-items:center;gap:8px}.stat-grid>div b{color:#f0d29a}.stat-grid .value-row{grid-column:1/-1;white-space:nowrap;display:flex!important;justify-content:space-between;align-items:center}
    .career-col{padding:0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#4b3018,#28170c)}
    .career-card{margin:10px;border:1px solid #8b5d28;background:linear-gradient(180deg,#3a2412,#211208);box-shadow:inset 0 0 16px rgba(0,0,0,.35)}
    .career-title{padding:9px 10px;text-align:center;font-size:16px;font-weight:bold;letter-spacing:1px;color:#f0d29a;border-bottom:1px solid #765021;background:linear-gradient(#6e291c,#4d1b13)}
    .career-line{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;font-size:12px;border-bottom:1px solid rgba(123,79,31,.45);color:#dbc08a}.career-line:last-child{border-bottom:0}.career-line b{color:#f0d29a}
    .career-col .last-title{margin-top:4px}.career-col .last-fight{margin:10px}.career-col .last-fight-note{padding-bottom:10px}
    .style-choice-grid{grid-template-columns:repeat(2,minmax(250px,1fr));gap:10px}.style-choice-card{min-height:180px}.style-choice-card.style-current{border-color:#b8873d;box-shadow:inset 0 0 18px rgba(184,135,61,.12)}.style-choice-card .row{margin-top:10px;display:flex;gap:7px}.style-choice-card .row button{flex:1;font-size:11px;padding:7px 5px}
    .style-description-body{padding:8px 4px}.style-description-body h2{text-align:center;color:#f0d29a;margin:8px 0}.style-lead{font-size:14px;line-height:1.6;text-align:center;color:#e2c48b;max-width:850px;margin:0 auto 14px}.style-description-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.style-description-grid>div{border:1px solid #6d481f;background:linear-gradient(#30200f,#1c1008);padding:12px}.style-description-grid h3{margin-top:0;color:#f0d29a}.style-description-grid p{font-size:12px;line-height:1.55}.style-description-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #6d481f}.style-description-footer span{margin-right:auto;color:#c8a96f;font-size:12px}
    @media(max-width:1200px){.roman-dashboard{grid-template-columns:1fr 1fr!important}.career-col{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.career-col .last-title,.career-col .last-fight,.career-col .last-fight-note{margin-left:10px;margin-right:10px}.style-description-grid{grid-template-columns:1fr}}
    @media(max-width:850px){.roman-dashboard{grid-template-columns:1fr!important}.career-col{grid-column:auto;display:block}.armor-summary{grid-template-columns:1fr}.style-choice-grid{grid-template-columns:1fr}}

/* ---- v97-gladiator-cleanup ---- */
.style-filter-bar{display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-bottom:1px solid #6d471f;background:linear-gradient(#2f1c0d,#211208)}
    .style-filter{flex:1 1 auto;min-width:72px;padding:7px 6px!important;font-size:11px!important;border-radius:2px!important;background:linear-gradient(#3f2611,#24150a)!important;border:1px solid #70491f!important;color:#d9bb7c!important}
    .style-filter.active{background:linear-gradient(#873225,#541a13)!important;border-color:#bd8739!important;color:#ffe7b0!important;box-shadow:inset 0 0 10px rgba(255,210,120,.12)}
    .roster-col{overflow:hidden}.glad-row{min-height:100px}
    .detail-head{position:relative!important}.mini-rename{font-size:10px!important;padding:3px 7px!important;height:24px!important}
    .detail-stage .equipment-slot-panel{left:0!important;right:0!important}.detail-stage .equip-slot.left1{left:34px!important}.detail-stage .equip-slot.left2{left:34px!important}.detail-stage .equip-slot.left3{left:34px!important}.detail-stage .equip-slot.right1{right:34px!important}.detail-stage .equip-slot.right2{right:34px!important}.detail-stage .equip-slot.right3{right:34px!important}
    .armor-summary{margin-bottom:30px!important}
    .career-card{margin:12px!important}.career-title{font-size:19px!important;padding:11px 12px!important}.career-line{font-size:14px!important;padding:11px 12px!important}.career-main span{font-weight:700}.career-secondary{font-size:13px!important}
    .training-option p{font-size:14px}.style-choice-card h3{color:#f0d29a}.style-choice-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}
    @media(max-width:850px){.style-filter{min-width:85px}.detail-stage .equip-slot.left1,.detail-stage .equip-slot.left2,.detail-stage .equip-slot.left3{left:18px!important}.detail-stage .equip-slot.right1,.detail-stage .equip-slot.right2,.detail-stage .equip-slot.right3{right:18px!important}}

/* ---- v98-gladiator-detail-polish ---- */
/* Keep the center panel compact and aligned with the Roman UI. */
    .detail-col{overflow:hidden!important}
    .detail-stage{position:relative!important;height:338px!important;min-height:338px!important;margin:0 4px!important}
    .detail-stage .hero-portrait{height:338px!important;margin:0!important;border-radius:3px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
    .detail-stage .hero-portrait svg{width:340px!important;height:340px!important;max-width:100%!important;filter:drop-shadow(0 7px 6px rgba(0,0,0,.48))}
    .detail-stage .equipment-slot-panel{top:34px!important;height:250px!important;left:0!important;right:0!important}
    .detail-stage .equip-slot{width:52px!important;height:52px!important;font-size:22px!important}
    .detail-stage .equip-slot.left1{left:10px!important;top:0!important}
    .detail-stage .equip-slot.left2{left:10px!important;top:66px!important}
    .detail-stage .equip-slot.left3{left:10px!important;top:132px!important}
    .detail-stage .equip-slot.right1{right:10px!important;top:0!important}
    .detail-stage .equip-slot.right2{right:10px!important;top:66px!important}
    .detail-stage .equip-slot.right3{right:10px!important;top:132px!important}
    .armor-summary{margin:0 8px 30px!important;min-height:48px!important;display:grid!important;grid-template-columns:1fr 1fr!important;border:1px solid #765027!important;background:linear-gradient(#3a2411,#241408)!important}
    .armor-summary>div{padding:8px 11px!important;border-right:1px solid #5d3d1c!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
    .armor-summary>div:last-child{border-right:0!important}
    .armor-summary span{color:#d7b87c!important;font-size:13px!important}.armor-summary b{color:#f0d29a!important;font-size:14px!important}
    .stat-grid{margin:0 8px!important}
    .stat-grid div{min-height:31px!important;padding:6px 10px!important;box-sizing:border-box!important}
    .stat-grid .value-row{grid-column:1/-1!important;border-top:1px solid #8a5b25!important;background:linear-gradient(#3b2410,#29170b)!important;font-size:14px!important}
    .detail-actions{padding:9px 8px!important}
    .detail-actions button{min-width:105px!important}
    .detail-head{height:52px!important;padding:7px 10px 0!important}
    .detail-head h1{font-size:20px!important}
    .mini-rename{position:absolute!important;right:10px!important;top:10px!important;font-size:9px!important;padding:3px 6px!important;height:22px!important;min-width:auto!important}
    /* The portrait itself contains no text label; style is shown only in the stat table / roster. */
    .character-portrait text{display:none!important}
    @media(max-width:1200px){.detail-stage{height:318px!important;min-height:318px!important}.detail-stage .hero-portrait{height:318px!important}.detail-stage .hero-portrait svg{width:320px!important;height:320px!important}}
    @media(max-width:850px){.detail-stage{height:330px!important;min-height:330px!important}.detail-stage .hero-portrait{height:330px!important}.detail-stage .hero-portrait svg{width:320px!important;height:320px!important}.detail-stage .equip-slot.left1,.detail-stage .equip-slot.left2,.detail-stage .equip-slot.left3{left:6px!important}.detail-stage .equip-slot.right1,.detail-stage .equip-slot.right2,.detail-stage .equip-slot.right3{right:6px!important}.armor-summary{grid-template-columns:1fr!important}.armor-summary>div{border-right:0!important;border-bottom:1px solid #5d3d1c!important}.armor-summary>div:last-child{border-bottom:0!important}}

/* ---- v99-center-detail-layout ---- */
/* Let the armor summary and the attribute table participate in normal flow.
       The previous fixed-height detail stage caused the stat table to sit behind
       the armor summary. */
    .detail-stage{
      height:auto!important;
      min-height:0!important;
      margin:0 4px!important;
      overflow:visible!important;
    }
    .detail-stage .hero-portrait{
      height:338px!important;
      margin:0!important;
      overflow:hidden!important;
    }
    .detail-stage .hero-portrait svg{
      width:340px!important;
      height:340px!important;
      max-width:100%!important;
    }
    .detail-stage .equipment-slot-panel{
      top:52px!important;
      left:0!important;
      right:0!important;
      height:250px!important;
    }
    /* Bring the equipment slots close to the portrait instead of placing them
       against the outer edges of the center column. */
    .detail-stage .equip-slot.left1,
    .detail-stage .equip-slot.left2,
    .detail-stage .equip-slot.left3{left:38px!important}
    .detail-stage .equip-slot.right1,
    .detail-stage .equip-slot.right2,
    .detail-stage .equip-slot.right3{right:38px!important}

    .armor-summary{
      position:relative!important;
      z-index:3!important;
      margin:8px 8px 14px!important;
      min-height:48px!important;
      height:48px!important;
      box-sizing:border-box!important;
    }
    /* Clear visual separation before the attributes table. */
    .stat-grid{
      position:relative!important;
      z-index:2!important;
      margin:14px 8px 0!important;
      clear:both!important;
    }
    .stat-grid>div{min-height:31px!important;box-sizing:border-box!important}
    .stat-grid .value-row{grid-column:1/-1!important}

    /* The portrait itself must never display the campaign style name. */
    .detail-stage .character-portrait text,
    .detail-stage .portrait text{display:none!important}

    @media(max-width:1200px){
      .detail-stage .hero-portrait{height:318px!important}
      .detail-stage .hero-portrait svg{width:320px!important;height:320px!important}
      .detail-stage .equip-slot.left1,.detail-stage .equip-slot.left2,.detail-stage .equip-slot.left3{left:30px!important}
      .detail-stage .equip-slot.right1,.detail-stage .equip-slot.right2,.detail-stage .equip-slot.right3{right:30px!important}
    }
    @media(max-width:850px){
      .detail-stage .hero-portrait{height:330px!important}
      .detail-stage .hero-portrait svg{width:320px!important;height:320px!important}
      .detail-stage .equip-slot.left1,.detail-stage .equip-slot.left2,.detail-stage .equip-slot.left3{left:22px!important}
      .detail-stage .equip-slot.right1,.detail-stage .equip-slot.right2,.detail-stage .equip-slot.right3{right:22px!important}
      .armor-summary{margin-left:8px!important;margin-right:8px!important}
    }

/* ---- v100-equipment-slot-position ---- */
/* Desktop: move all three left slots 4 cm inward/right and 2 cm downward;
       mirror the same movement for the three right slots. */
    .detail-stage .equip-slot.left1,
    .detail-stage .equip-slot.left2,
    .detail-stage .equip-slot.left3{
      left:calc(38px + 4cm)!important;
    }
    .detail-stage .equip-slot.right1,
    .detail-stage .equip-slot.right2,
    .detail-stage .equip-slot.right3{
      right:calc(38px + 4cm)!important;
    }
    .detail-stage .equip-slot.left1,
    .detail-stage .equip-slot.right1{top:calc(0px + 2cm)!important}
    .detail-stage .equip-slot.left2,
    .detail-stage .equip-slot.right2{top:calc(66px + 2cm)!important}
    .detail-stage .equip-slot.left3,
    .detail-stage .equip-slot.right3{top:calc(132px + 2cm)!important}

    /* Make room for the lowest slot after the downward movement without
       changing the position of the armor/stat sections below the portrait. */
    .detail-stage .equipment-slot-panel{
      height:340px!important;
      overflow:visible!important;
    }

    @media(max-width:1200px){
      .detail-stage .equip-slot.left1,
      .detail-stage .equip-slot.left2,
      .detail-stage .equip-slot.left3{left:calc(30px + 4cm)!important}
      .detail-stage .equip-slot.right1,
      .detail-stage .equip-slot.right2,
      .detail-stage .equip-slot.right3{right:calc(30px + 4cm)!important}
    }
    @media(max-width:850px){
      .detail-stage .equip-slot.left1,
      .detail-stage .equip-slot.left2,
      .detail-stage .equip-slot.left3{left:calc(22px + 4cm)!important}
      .detail-stage .equip-slot.right1,
      .detail-stage .equip-slot.right2,
      .detail-stage .equip-slot.right3{right:calc(22px + 4cm)!important}
    }

/* ---- v1011-settings-polish ---- */
.brand-meta{display:flex;gap:18px;flex-wrap:wrap;margin-top:7px;font-size:13px;color:#d8bd86;letter-spacing:.2px}
    .brand-meta span{padding:4px 9px;border:1px solid color-mix(in srgb,var(--theme-accent,#8f6b32) 60%,#5a3b1c);background:linear-gradient(180deg,rgba(70,42,18,.78),rgba(30,17,9,.9));box-shadow:inset 0 1px rgba(255,225,170,.08),0 2px 4px rgba(0,0,0,.28);border-radius:3px}
    .brand-meta b{color:#e7cc95}.brand-meta strong{color:#f3d9a2;font-weight:800}
    .mini-rename{width:30px!important;height:28px!important;min-width:30px!important;padding:2px!important;font-size:16px!important;line-height:1!important;border-radius:4px!important;display:flex!important;align-items:center!important;justify-content:center!important}
    .hero-portrait-editable{position:relative!important;overflow:visible!important}.hero-rename{position:absolute!important;right:12px!important;top:12px!important;width:32px!important;height:30px!important;min-width:32px!important;padding:0!important;border:1px solid #b9904a!important;border-radius:5px!important;background:linear-gradient(180deg,rgba(88,47,22,.96),rgba(45,25,13,.98))!important;color:#f0cf91!important;font-size:16px!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;z-index:20!important;box-shadow:0 2px 6px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.12)!important}.hero-rename:hover{transform:translateY(-1px);filter:brightness(1.12);box-shadow:0 3px 9px rgba(0,0,0,.65),0 0 0 1px rgba(240,198,108,.18)!important}.hero-rename:active{transform:translateY(0)}
    .settings-heading{margin-bottom:8px}
    .settings-heading h1{margin-bottom:0}
    .color-choice-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
    .color-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:78px;padding:7px 6px!important;background:linear-gradient(#3d2715,#211308)!important;border:1px solid #6e4a23!important;border-radius:4px!important;color:#d9bd82!important}
    .color-choice span{width:32px;height:32px;border-radius:50%;border:2px solid #b9904a;box-shadow:0 2px 6px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.2)}
    .color-choice small{font-size:10px;line-height:11px;text-align:center}
    .color-choice.selected{border-color:#f0c66c!important;box-shadow:0 0 0 1px rgba(240,198,108,.35),inset 0 0 12px rgba(240,198,108,.12)!important;transform:translateY(-1px)}
    .save-load-card{grid-column:auto}
    .save-load-actions{display:flex;gap:9px;flex-wrap:wrap}
    .save-load-actions button{min-width:160px}
    @media(max-width:850px){.brand-meta{gap:6px}.brand-meta span{font-size:11px}.save-load-card{grid-column:auto}.color-choice{min-width:70px}}

/* ---- v104-home-overview ---- */
.top-next-day{height:100%;min-width:128px;padding:0 14px;border-left:1px solid #6b461e!important;border-right:1px solid #6b461e!important;background:linear-gradient(180deg,#8b3224,#551b14)!important;color:#ffe6ae!important;font-family:Georgia,serif;font-weight:900;font-size:14px;letter-spacing:.3px;cursor:pointer;box-shadow:inset 0 1px rgba(255,220,150,.14),0 0 8px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;gap:7px}.top-next-day:hover{filter:brightness(1.12);transform:translateY(-1px)}.top-next-day:active{transform:translateY(0)}
    .home-overview-head{margin-bottom:10px}.home-overview-head h1{font-size:25px;letter-spacing:.4px;margin-bottom:4px}.home-ludus-subtitle{font-size:13px}.home-kpi-grid{grid-template-columns:1.05fr 1.45fr .9fr .9fr;align-items:stretch}.home-kpi{min-height:158px;position:relative;overflow:hidden}.home-kpi .kpi{font-size:27px;margin:6px 0}.daily-delta{display:block;font-size:13px;font-weight:800;margin:2px 0 7px}.daily-delta.positive{color:#73d98b}.daily-delta.negative{color:#e17b70}.daily-delta.neutral{color:#b8a47e}.gladiator-events{display:flex;flex-direction:column;gap:6px}.event-block{padding:7px 9px;border-top:1px solid rgba(150,102,45,.45);background:rgba(0,0,0,.12)}.event-block>b{display:block;color:#e8ca8d;font-size:12px;margin-bottom:4px}.event-item{display:block;font-size:12px;line-height:1.5}.event-item.bought{color:#8fe0a1}.event-item.dead{color:#df8c82}.home-secondary-grid{margin-top:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.home-wide-card{min-height:150px}.home-wide-card h2{margin-bottom:8px}.clickable-home-card{cursor:pointer;transition:transform .15s,box-shadow .15s}.clickable-home-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.32),inset 0 0 16px rgba(214,161,72,.06)}.clickable-home-card button{margin-top:10px}.colosseum-open,.colosseum-closed{display:flex;flex-direction:column;gap:7px}.colosseum-open b{color:#8fe0a1;font-size:15px}.colosseum-closed b{color:#d7c29a;font-size:14px}.colosseum-open small,.colosseum-closed small{color:#bfae8e}.colosseum-open button,.colosseum-closed button{align-self:flex-start;margin-top:4px}.rivalry-card{border-color:#80602d!important;background:linear-gradient(180deg,#3b2817,#211308)!important}.future-badge{display:inline-block;margin-top:9px;padding:4px 8px;border:1px solid #8c672d;border-radius:3px;color:#c8a867;font-size:10px;letter-spacing:1px;background:rgba(110,76,27,.18)}
    @media(max-width:1050px){.home-kpi-grid{grid-template-columns:1fr 1fr}.home-secondary-grid{grid-template-columns:1fr}.top-next-day{min-width:105px}.top-next-day span{display:none}}

/* ---- v110-new-world ---- */
body.theme-crimson{--theme-main:#64283a;--theme-accent:#a04a5d;--theme-highlight:#d8899c}
    .new-game-modal{max-width:980px!important;background:linear-gradient(180deg,#24170f,#120d09)!important;border:1px solid #8f632d!important;box-shadow:0 25px 80px rgba(0,0,0,.75),inset 0 0 40px rgba(177,125,55,.08)!important}.new-game-title{display:flex;gap:14px;align-items:center;border-bottom:1px solid #704a22;padding-bottom:14px}.new-game-title>span{font-size:42px}.new-game-title h2{font-size:28px;margin:0;color:#f0d49a}.new-game-title p{margin:5px 0 0;color:#bfa985}.new-game-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.new-game-grid label{display:flex;flex-direction:column;gap:7px;color:#e3c58b;font-weight:800}.new-game-grid input,.new-game-grid select{padding:12px 13px;background:#0e1116;color:#ead8b0;border:1px solid #745027;border-radius:5px;font-size:15px}.new-game-section{margin-top:20px}.new-game-section h3{color:#e3c58b;margin-bottom:10px}.difficulty-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.difficulty{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:14px;background:linear-gradient(180deg,#3b2817,#1d120b)!important;border:1px solid #67451f!important;color:#d9c08e!important}.difficulty b{font-size:17px}.difficulty span{font-size:21px;color:#efcf8b;margin-top:4px}.difficulty small{color:#a99878;margin-top:5px}.difficulty.selected{border-color:#e0ae52!important;box-shadow:0 0 0 1px rgba(224,174,82,.3),inset 0 0 18px rgba(224,174,82,.08)!important}.city-color-row{display:flex;gap:10px;flex-wrap:wrap}.city-color-chip{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #5e4528;background:#17110d;color:#cdb78d}.city-color-chip i{width:18px;height:18px;border-radius:50%;background:var(--cc);border:1px solid #d4ad69}.new-game-footer{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:14px;border-top:1px solid #5f421f}.new-game-footer button:disabled{opacity:.4;cursor:not-allowed}.prologue-modal{max-width:760px!important;text-align:center;background:radial-gradient(circle at 50% 0,#3a2817,#120d09 65%)!important}.prologue-seal{font-size:50px}.prologue-modal h2{font-size:31px;color:#efce91}.prologue-modal p{font-size:16px;line-height:1.7;color:#d6c39f}.prologue-quote{margin:20px 0;padding:14px;border-top:1px solid #78562a;border-bottom:1px solid #78562a;color:#efcf8e;font-family:Georgia,serif;font-size:18px;font-style:italic}.world-legend{display:flex;gap:10px;flex-wrap:wrap}.world-legend span{padding:7px 10px;border:1px solid #69491f;background:#1c120b;color:#ddc38d}.roman-map{position:relative;height:470px;margin:16px 0;border:1px solid #6f4a23;border-radius:8px;background:radial-gradient(ellipse at 50% 45%,#5a442a 0,#3a2d20 48%,#1b1713 100%);overflow:hidden;box-shadow:inset 0 0 100px rgba(0,0,0,.4)}.roman-map:before{content:'';position:absolute;inset:45px 100px;background:linear-gradient(125deg,transparent 0 20%,rgba(160,128,79,.15) 20% 21%,transparent 21% 42%,rgba(160,128,79,.12) 42% 43%,transparent 43% 68%,rgba(160,128,79,.12) 68% 69%,transparent 69%);transform:rotate(-7deg);border:1px solid rgba(197,163,101,.12);border-radius:45% 55% 48% 52%}.map-title{position:absolute;top:14px;left:20px;color:#d8bd83;font-family:Georgia,serif;letter-spacing:2px;font-weight:900}.map-city{position:absolute;min-width:150px;padding:10px 12px!important;background:rgba(21,15,10,.93)!important;border:1px solid var(--city-color)!important;color:#ecd29a!important;border-radius:5px!important;text-align:left;z-index:2;box-shadow:0 5px 14px rgba(0,0,0,.35)}.map-city .city-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--city-color);margin-right:6px;box-shadow:0 0 12px var(--city-color)}.map-city small{display:block;color:#a99a7c;margin-top:3px}.map-city.home{box-shadow:0 0 0 2px rgba(255,221,143,.35),0 8px 18px rgba(0,0,0,.4)}.map-city.rival{border-style:dashed!important}.map-city.selected{transform:translateY(-2px);filter:brightness(1.15)}.map-city:nth-of-type(2){left:52%;top:24%}.map-city:nth-of-type(3){left:25%;top:31%}.map-city:nth-of-type(4){left:63%;top:52%}.map-city:nth-of-type(5){left:18%;top:57%}.map-city:nth-of-type(6){left:45%;top:72%}.map-city:nth-of-type(7){left:72%;top:30%}.world-city-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #6e4a23;padding-bottom:8px}.world-city-head h2{margin:0;color:#e5c88e}.world-ludi-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}.world-ludus-card{position:relative;overflow:hidden}.world-ludus-color{height:4px;position:absolute;top:0;left:0;right:0}.world-ludus-card h3{margin-top:7px}.world-ludus-rep{font-size:12px;font-weight:700;color:#c9a55a;white-space:nowrap;margin-left:3px}.world-ludus-card button{margin-top:8px}.settings-grid{grid-template-columns:1fr 1fr}.settings-save{display:none}@media(max-width:850px){.new-game-grid,.difficulty-row,.world-ludi-grid,.settings-grid{grid-template-columns:1fr}.roman-map{height:620px}.map-city{position:relative!important;left:auto!important;top:auto!important;margin:50px 18px 0;display:block;width:calc(100% - 36px)}.map-city:first-of-type{margin-top:55px}}

/* ---- v111-fixes ---- */
.difficulty{position:relative;z-index:5;cursor:pointer!important;pointer-events:auto!important;user-select:none}
    .difficulty.ready,.difficulty.selected{transform:translateY(-1px)}
    #ngStart{position:relative;z-index:10;pointer-events:auto!important;cursor:pointer!important}
    #ngStart[aria-disabled="true"]{opacity:.45;filter:grayscale(.25)}
    .roman-map{background:
      radial-gradient(ellipse at 52% 48%,rgba(180,149,91,.18),transparent 34%),
      radial-gradient(ellipse at 48% 52%,#6a5130 0,#4a3927 43%,#211a14 82%,#17120e 100%)!important;
    }
    .roman-map:after{content:'';position:absolute;inset:35px 70px 30px 70px;border:2px solid rgba(208,175,111,.16);border-radius:48% 52% 46% 54%;transform:rotate(-5deg);pointer-events:none;box-shadow:0 0 0 12px rgba(92,67,38,.08),inset 0 0 45px rgba(0,0,0,.18)}
    .map-city{cursor:pointer!important;transition:transform .18s,filter .18s,box-shadow .18s!important}
    .map-city:hover{transform:translateY(-3px) scale(1.02)!important;filter:brightness(1.18)!important}
    .world-city-head span{color:#c9ae7c}
    .world-ludus-card{cursor:default}

/* ---- v111-city-system-style ---- */
.city-page{max-width:1450px;margin:0 auto}.city-page-head{margin-bottom:12px}.city-page-head h1{margin-bottom:4px}.city-market-clock{padding:9px 12px;border:1px solid #765025;background:linear-gradient(180deg,#3c2817,#211309);color:#dcbf82;border-radius:4px;font-size:12px;font-weight:800}
    .city-map{position:relative;height:520px;overflow:hidden;border:2px solid #725027;border-radius:8px;background:radial-gradient(circle at 50% 50%,#6c5130 0,#4d3926 42%,#2b2118 76%,#17120e 100%);box-shadow:inset 0 0 100px rgba(0,0,0,.42),0 8px 22px rgba(0,0,0,.35)}
    .city-map:before{content:'';position:absolute;inset:22px;border:1px solid rgba(220,180,104,.22);border-radius:50%;box-shadow:inset 0 0 50px rgba(0,0,0,.25)}
    .city-map-title{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:5;padding:7px 16px;border:1px solid #8a6331;background:rgba(26,17,10,.9);color:#e2c58b;font-family:Georgia,serif;font-weight:900;letter-spacing:1.5px}
    .city-road{position:absolute;background:rgba(223,193,137,.16);box-shadow:0 0 0 1px rgba(70,45,22,.35)}.road-a{width:78%;height:28px;left:11%;top:48%;transform:rotate(-12deg)}.road-b{width:30px;height:85%;left:49%;top:8%;transform:rotate(18deg)}
    .city-plaza{position:absolute;left:42%;top:37%;width:180px;height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #8a6331;background:radial-gradient(circle,#60451f,#382714);box-shadow:0 8px 18px rgba(0,0,0,.35);color:#e5c68c;text-align:center}.city-plaza span{font-size:32px}.city-plaza small{color:#b9a078}
    .city-building{position:absolute;width:190px;min-height:100px;padding:12px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(180deg,#3f2918,#211309)!important;border:1px solid #88602c!important;color:#e4c68c!important;border-radius:6px!important;box-shadow:0 8px 18px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.07);cursor:pointer}.city-building:hover{transform:translateY(-3px);filter:brightness(1.12);box-shadow:0 10px 24px rgba(0,0,0,.5),0 0 0 1px rgba(222,174,83,.2)}.city-building span{font-size:28px}.city-building b{font-size:15px}.city-building small{color:#b8a17b}.building-weapon{left:7%;top:16%}.building-armor{right:7%;top:16%}.building-stable{left:8%;bottom:13%}.building-medicus{right:8%;bottom:13%}.building-bazaar{left:calc(50% - 95px);bottom:8%}
    .city-summary-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin-top:14px}.city-summary-grid .card{min-height:145px}.city-summary-grid h2{margin-top:0}.city-shop-modal,.city-catalog-modal,.city-stable-modal{max-width:1180px!important;max-height:90vh;overflow:auto;background:linear-gradient(180deg,#3b2717,#1a1009)!important}.city-shop-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #725026;padding-bottom:12px;margin-bottom:14px}.city-shop-head h2{margin:0;color:#efd39a}.city-shop-head p{margin:4px 0 0;color:#c4aa7b}.merchant-cycle{padding:7px 10px;border:1px solid #765025;color:#dfbd78;background:#1b1109;border-radius:3px;font-weight:800;white-space:nowrap}.city-offer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.city-offer-card{display:flex;flex-direction:column}.city-offer-card .portrait,.city-offer-card svg{max-height:160px}.city-offer-card button{margin-top:auto}.catalog-card{opacity:.94}.city-shop-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #6f4b24;padding-top:12px;margin-top:14px}.travel-shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.travel-card{text-align:center;display:flex;flex-direction:column;gap:7px}.travel-card .travel-icon{font-size:44px}.travel-card b{font-size:19px;color:#efcb82}.travel-card button{margin-top:auto}.inventory-tabs{display:flex;gap:7px;margin:10px 0 15px;border-bottom:1px solid #6d481f;padding-bottom:7px}.inventory-tabs button{min-width:145px}.inventory-tabs button.active{border-color:#d2a24d;background:linear-gradient(#5a3517,#2a170b);color:#f0d39a}.travel-inventory{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}.travel-row{display:flex;justify-content:space-between;align-items:center;padding:11px 4px;border-bottom:1px solid rgba(130,89,36,.4);color:#e1c38b}.travel-row small{color:#a99370}.travel-horse-count{display:flex;align-items:center;gap:16px;font-size:18px;padding:15px}.travel-horse-count span{font-size:42px}.travel-horse-count b{font-size:34px;color:#e4bc6f}.travel-horse-count small{color:#bda77d}.city-map button:focus{outline:2px solid #e0b65f;outline-offset:2px} .catalog-main-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 14px;padding-bottom:11px;border-bottom:1px solid #6f4b24}.catalog-main-tabs button{min-width:150px;padding:10px 14px;font-size:15px;font-weight:900}.catalog-main-tabs button.active{border-color:#d2a24d;background:linear-gradient(#5a3517,#2a170b);color:#f0d39a;box-shadow:inset 0 0 12px rgba(214,161,72,.08)}.catalog-main-category{margin-top:18px;padding:12px 14px 16px;border:1px solid #765025;border-radius:6px;background:linear-gradient(180deg,rgba(73,47,24,.42),rgba(28,16,9,.32))}.catalog-main-category-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #8b602a;padding:2px 2px 10px;margin-bottom:6px}.catalog-main-category-head h2{margin:0;color:#efd39a;font-size:21px}.catalog-main-category-head span{font-size:12px;color:#bba47a}.catalog-category{margin-top:14px}.catalog-category-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #6f4b24;padding:8px 2px;margin-bottom:10px}.catalog-category-head h3{margin:0;color:#e7c98c}.catalog-category-head span{font-size:12px;color:#bba47a}.catalog-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 8px;padding-bottom:10px;border-bottom:1px solid #6f4b24}.catalog-category-tabs button{padding:8px 11px}.catalog-category-tabs button.active{border-color:#d2a24d;background:linear-gradient(#5a3517,#2a170b);color:#f0d39a}.world-ludus-open{position:relative;z-index:5;cursor:pointer!important;pointer-events:auto!important}.map-city{position:absolute!important;z-index:10!important;pointer-events:auto!important}.city-nav-visible{display:block!important}@media(max-width:1050px){.catalog-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-main-category-head{align-items:flex-start;flex-direction:column}}@media(max-width:700px){.catalog-category-grid{grid-template-columns:1fr}.catalog-main-tabs button{min-width:0;flex:1}}
    @media(max-width:1050px){.city-summary-grid,.travel-shop-grid{grid-template-columns:1fr 1fr}.city-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.city-building{width:165px}.building-weapon{left:3%}.building-armor{right:3%}.building-stable{left:4%}.building-medicus{right:4%}}
    @media(max-width:700px){.city-page-head,.city-shop-head{align-items:flex-start;flex-direction:column}.city-map{height:700px}.city-plaza{left:calc(50% - 90px);top:38%}.city-building{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:calc(100% - 60px);margin:18px 30px}.city-map{padding-top:60px;overflow:auto}.city-map-title{font-size:12px}.city-summary-grid,.travel-shop-grid,.city-offer-grid,.travel-inventory{grid-template-columns:1fr}}

/* ---- gm-v115-style ---- */
.bazaar-cycle{margin-left:auto}.city-bazaar-clock{display:inline-block;margin-top:5px;padding-top:5px;border-top:1px solid rgba(170,122,52,.35);color:#e0bf79}.bazaar-info{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.bazaar-info span{color:#b9a27a}.bazaar-portrait{height:190px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:5px}.bazaar-portrait img,.bazaar-portrait svg{max-height:180px;max-width:100%}
    .ludus-kpis{display:flex;gap:8px;flex-wrap:wrap}.ludus-kpis>div{min-width:120px;padding:8px 12px;border:1px solid #765025;border-radius:4px;background:linear-gradient(180deg,#3a2516,#211309);display:flex;flex-direction:column;gap:2px}.ludus-kpis span{font-size:11px;color:#bba17a}.ludus-kpis b{font-size:20px;color:#edcc8c}
    .ludus-map{position:relative;min-height:590px;overflow:hidden;border:2px solid #765025;border-radius:10px;background:radial-gradient(circle at 50% 48%,#6b4b2b 0,#4a3422 34%,#2a1d15 70%,#17110d 100%);box-shadow:inset 0 0 100px rgba(0,0,0,.5),0 10px 25px rgba(0,0,0,.35)}
    .ludus-map:before{content:'';position:absolute;inset:22px;border:1px solid rgba(229,194,128,.22);pointer-events:none}.ludus-map-title{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:4;padding:8px 18px;background:rgba(28,17,10,.92);border:1px solid #8b622e;color:#e4c58b;font-family:Georgia,serif;font-weight:900;letter-spacing:2px}.ludus-yard{position:absolute;left:24%;right:24%;top:21%;bottom:17%;border:3px solid rgba(182,134,67,.55);background:repeating-linear-gradient(0deg,rgba(216,177,106,.08) 0 3px,transparent 3px 18px);box-shadow:inset 0 0 35px rgba(0,0,0,.35)}
    .ludus-yard:after{content:'TRAININGSHOF';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:rgba(226,192,126,.28);font-family:Georgia,serif;font-weight:900;letter-spacing:3px;font-size:22px}.ludus-room{position:absolute;width:210px;min-height:115px;padding:12px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(180deg,#3f2918,#211309)!important;border:1px solid #8a6030!important;border-radius:7px!important;color:#e4c68d!important;cursor:pointer;box-shadow:0 9px 18px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06)}.ludus-room:hover{transform:translateY(-3px);filter:brightness(1.12);box-shadow:0 12px 25px rgba(0,0,0,.52),0 0 0 1px rgba(222,174,83,.2)}.ludus-room span{font-size:32px}.ludus-room b{font-size:16px}.ludus-room small{color:#bca47b}.room-cells{left:4%;top:20%}.room-training{right:4%;top:20%}.room-dining{left:4%;bottom:15%}.room-exercise{right:4%;bottom:15%}.ludus-forum{position:absolute;left:50%;bottom:5%;transform:translateX(-50%);min-width:230px;padding:12px 18px;text-align:center;border:2px solid #8b622f;background:radial-gradient(circle,#61451f,#352412);box-shadow:0 8px 18px rgba(0,0,0,.4);color:#e5c78c}.ludus-forum span{font-size:27px;display:block}.ludus-forum b{display:block}.ludus-forum small{color:#bba27b}.ludus-info-grid .card{min-height:150px}.facility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.facility-card{display:flex;flex-direction:column}.facility-card .facility-icon{font-size:38px}.facility-card h3{margin:5px 0}.facility-card .facility-effect{color:#e4c27f;font-weight:800}.facility-card button{margin-top:auto}.facility-bought{opacity:.72}.facility-bought button{cursor:default}.facility-footer{margin-top:15px;padding-top:12px;border-top:1px solid #765025;color:#c8ad7b}.facility-footer b{color:#edc982}.ludus-facility-modal{max-width:1100px!important;max-height:90vh;overflow:auto}
    @media(max-width:1050px){.ludus-room{width:175px}.ludus-yard{left:20%;right:20%}.facility-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ludus-kpis>div{min-width:100px}}
    @media(max-width:700px){.ludus-map{min-height:900px}.ludus-yard{display:none}.ludus-room{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:calc(100% - 60px);margin:20px 30px}.ludus-map{padding-top:65px}.ludus-forum{position:relative;left:auto;bottom:auto;transform:none;width:calc(100% - 60px);margin:25px 30px}.facility-grid{grid-template-columns:1fr}.bazaar-info{align-items:flex-start;flex-direction:column}}

/* ---- gm-v120-style ---- */
.rank-gold{border-color:#d9ae3e!important;box-shadow:0 0 0 2px rgba(229,184,67,.34),inset 0 0 22px rgba(224,175,54,.12)!important}
    .rank-silver{border-color:#bfc4cc!important;box-shadow:0 0 0 2px rgba(210,214,224,.24),inset 0 0 22px rgba(210,214,224,.08)!important}
    .mini-portrait.rank-gold,.mini-portrait.rank-silver{border:2px solid!important;border-radius:4px}
    .hero-portrait.rank-gold{border:2px solid #d9ae3e!important}.hero-portrait.rank-silver{border:2px solid #bfc4cc!important}
    .rank-text-gold{color:#f1c95f!important}.rank-text-silver{color:#d7dbe2!important}.selected-rank{font-size:11px;color:#bca16f;text-align:center;margin-top:2px}.selected-rank.rank-gold{color:#f0c45a}.selected-rank.rank-silver{color:#d5d9e0}
    .traits-head{align-items:flex-start}.traits-head-actions{display:flex;gap:8px;flex-wrap:wrap}.traits-progress{margin:12px 0;padding:12px;border:1px solid #765025;background:linear-gradient(#3a2412,#211208)}.traits-progress>div:first-child{display:flex;justify-content:space-between;color:#d8bb7c;font-size:13px}.trait-level-bar{height:10px;background:#17100a;border:1px solid #6e481f;margin-top:8px;overflow:hidden}.trait-level-bar i{display:block;height:100%;background:linear-gradient(90deg,#8b3020,#d7a84c);box-shadow:0 0 10px rgba(215,168,76,.25)}.preferred-style-card{border-color:#8d632d;background:linear-gradient(180deg,#3b2614,#211209);margin-bottom:12px}.preferred-style-card h2,.locked-style-card h2{margin-top:0;color:#efd29a}.trait-good{color:#8ed37b;font-weight:900}.locked-style-card{opacity:.8;margin-bottom:12px}.traits-section-title{margin-top:14px}.trait-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.trait-unlocked-card{position:relative;min-height:125px;border-color:#765025;background:linear-gradient(180deg,#3a2413,#201108)}.trait-unlocked-card h3{color:#efcc8a;margin:5px 0}.trait-unlocked-card p{color:#e0bb75;font-weight:800}.trait-unlocked-card small{color:#9f8865}.trait-level{position:absolute;top:8px;right:8px;color:#d8ad58;font-size:11px;border:1px solid #765025;padding:3px 6px;border-radius:3px}.traits-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #765025}.trait-catalog-modal{max-width:1050px!important;max-height:90vh;overflow:auto}.trait-catalog-section{margin-top:14px}.trait-catalog-section h3{color:#e8c98b;border-bottom:1px solid #765025;padding-bottom:7px}.trait-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.trait-catalog-card{min-height:65px;display:flex;flex-direction:column;gap:4px}.trait-catalog-card b{color:#efce91}.trait-catalog-card span{color:#bda375;font-size:12px}
    @media(max-width:950px){.trait-grid,.trait-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.trait-grid,.trait-catalog-grid{grid-template-columns:1fr}.traits-head{flex-direction:column}.traits-footer{justify-content:stretch}.traits-footer button{flex:1}}

/* ---- gm-v121-fixes-style ---- */
.top-home,.top-mail,.top-trade{display:none!important}

/* ---- gm-v122-style ---- */
.mini-portrait.rank-gold,
    .mini-portrait.rank-silver,
    .hero-portrait.rank-gold,
    .hero-portrait.rank-silver{
      position:relative!important;
      overflow:visible!important;
      border-radius:7px!important;
    }
    .mini-portrait.rank-gold,
    .hero-portrait.rank-gold{
      border:3px solid #d9a72f!important;
      box-shadow:
        0 0 0 2px #6e4612,
        0 0 0 5px rgba(219,169,47,.45),
        0 0 18px rgba(231,181,55,.55),
        inset 0 0 22px rgba(255,215,100,.16)!important;
    }
    .mini-portrait.rank-silver,
    .hero-portrait.rank-silver{
      border:3px solid #c9ced6!important;
      box-shadow:
        0 0 0 2px #565b63,
        0 0 0 5px rgba(205,211,222,.28),
        0 0 16px rgba(220,225,235,.38),
        inset 0 0 22px rgba(240,245,255,.10)!important;
    }
    .mini-portrait.rank-gold:before,
    .mini-portrait.rank-silver:before,
    .hero-portrait.rank-gold:before,
    .hero-portrait.rank-silver:before{
      content:'';
      position:absolute;
      inset:-7px;
      border-radius:10px;
      pointer-events:none;
      z-index:3;
    }
    .mini-portrait.rank-gold:before,
    .hero-portrait.rank-gold:before{
      border:1px solid rgba(255,215,90,.75);
      background:linear-gradient(135deg,rgba(255,220,110,.18),transparent 30%,transparent 70%,rgba(255,220,110,.12));
    }
    .mini-portrait.rank-silver:before,
    .hero-portrait.rank-silver:before{
      border:1px solid rgba(235,240,250,.65);
      background:linear-gradient(135deg,rgba(245,248,255,.12),transparent 30%,transparent 70%,rgba(245,248,255,.08));
    }
    .rank-text-gold{font-weight:900!important;text-shadow:0 0 7px rgba(230,180,50,.45)}
    .rank-text-silver{font-weight:900!important;text-shadow:0 0 7px rgba(220,225,235,.3)}

    /* Facility rooms are unmistakably clickable. */
    .ludus-room{cursor:pointer!important;pointer-events:auto!important;user-select:none;z-index:8!important}
    .ludus-room:active{transform:translateY(1px) scale(.99)!important}
    .ludus-room b,.ludus-room small,.ludus-room span{pointer-events:none}
    .ludus-facility-modal{z-index:50!important}

    /* Reliable countdown badge. */
    .city-market-clock{min-width:245px;text-align:center}
    .merchant-cycle,.bazaar-cycle{font-weight:900}

/* ---- gm-v125-expense-style ---- */
.top-stat small.daily-expense-negative{color:#e06f67!important;font-weight:900;text-shadow:0 0 7px rgba(190,55,45,.18)}
    .top-stat small.daily-expense-neutral{color:#b8a47e!important}

/* ---- gm-v126-roster-cleanup ---- */
.roman-dashboard + .bottom-actions{display:none!important}
    .gladiator-rank-frame{position:relative;border-radius:8px}
    .gladiator-rank-frame.rank-gold{border:3px solid #d9ae3e;box-shadow:0 0 0 2px #6d4a12,0 0 18px rgba(222,176,52,.28),inset 0 0 24px rgba(222,176,52,.10)}
    .gladiator-rank-frame.rank-silver{border:3px solid #c8cdd5;box-shadow:0 0 0 2px #565b63,0 0 18px rgba(210,214,224,.22),inset 0 0 24px rgba(210,214,224,.08)}
    .gm-auction-modal{max-width:720px!important;background:linear-gradient(180deg,#3d2511,#1b0f08)!important;border:2px solid #8d612c!important;box-shadow:0 18px 50px #000,0 0 28px rgba(194,139,55,.12)!important}
    .gm-auction-title{font-size:26px;color:#f0d29a;margin-bottom:6px}
    .gm-auction-quote{margin:16px 0;padding:14px 16px;border-left:3px solid #b77b38;background:rgba(0,0,0,.18);line-height:1.65;color:#dbc18f;font-style:italic}
    .gm-auction-bid{font-size:28px;color:#e4bc67;font-weight:900;text-align:center;margin:12px 0}
    .gm-auction-status{padding:10px 12px;border:1px solid #735027;background:rgba(0,0,0,.18);text-align:center}
    .gm-auction-actions{display:flex;gap:10px;justify-content:center;margin-top:16px;flex-wrap:wrap}
    .gm-auction-actions button:disabled{opacity:.38;cursor:not-allowed;filter:grayscale(.35)}
    .bazaar-card-no-style{color:#bfa97d}

/* ---- gm-v1511-empty-style-placeholder-css ---- */
.roster-col .gm-empty-style-message{
      min-height:500px!important;
      height:500px!important;
      box-sizing:border-box!important;
      display:flex!important;
      align-items:center!important;
      justify-content:center!important;
      text-align:center!important;
      padding:30px!important;
      color:#d9bb7c!important;
      font-size:18px!important;
      font-weight:700!important;
      background:linear-gradient(180deg,#2b190d,#211208)!important;
      border-top:1px solid #70491f!important;
    }

/* ---- gm-v1516-final-style ---- */
.stat-grid .gm-satisfaction-value-row{grid-column:1/-1!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:18px!important;white-space:nowrap!important;border-top:1px solid #8a5b25!important;background:linear-gradient(#3b2410,#29170b)!important}
    .stat-grid .gm-satisfaction-value-row>span{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:24px!important;flex:1 1 50%!important}
    .stat-grid .gm-satisfaction-value-row>span+span{border-left:1px solid #5d3d1c!important;padding-left:18px!important}
    .stat-grid .gm-satisfaction-value-row b{float:none!important;color:#f1d49a!important}

/* ---- gm-v1517-armory-stable-style ---- */
.gm-v17-storage-modal{
      width:min(1100px,96vw)!important;
      max-width:1100px!important;
      max-height:88vh!important;
      overflow:auto!important;
    }
    .gm-v17-category-tabs{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin:18px 0;
      padding:12px 0;
      border-top:1px solid #6f4b24;
      border-bottom:1px solid #6f4b24;
    }
    .gm-v17-category-tabs button{
      min-width:125px;
      padding:10px 14px;
      font-weight:900;
    }
    .gm-v17-category-tabs button.active{
      border-color:#d2a24d;
      background:linear-gradient(#5a3517,#2a170b);
      color:#f0d39a;
    }
    .gm-v17-section-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      border-bottom:1px solid #765025;
      padding-bottom:8px;
      margin-bottom:12px;
    }
    .gm-v17-section-head h2{margin:0;color:#efd39a}
    .gm-v17-section-head span{color:#bba47a;font-size:13px}
    .gm-v17-item-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:12px;
    }
    .gm-v17-item{
      display:grid;
      grid-template-columns:82px 1fr;
      gap:12px;
      align-items:center;
      min-height:105px;
    }
    .gm-v17-item-image{
      width:78px;height:72px;
      display:flex;align-items:center;justify-content:center;
      background:#120d09;border:1px solid #765025;border-radius:6px;
      overflow:hidden;
    }
    .gm-v17-item-image svg{width:76px;height:68px}
    .gm-v17-item-image span{font-size:38px}
    .gm-v17-item h3,.gm-v17-carriage h3{margin:0 0 4px;color:#f0d29a}
    .gm-v17-item p,.gm-v17-carriage p{margin:3px 0;color:#c5aa78;font-size:12px}
    .gm-v17-empty{
      text-align:center;
      padding:55px 20px;
      color:#d9bb7c;
      font-family:Georgia,serif;
      font-size:18px;
      font-weight:800;
      border:1px dashed #765025;
      background:rgba(38,23,12,.45);
    }
    .gm-v17-horse-card{
      display:flex;
      align-items:center;
      gap:22px;
      padding:28px;
      border:1px solid #765025;
      background:linear-gradient(180deg,rgba(73,47,24,.42),rgba(28,16,9,.32));
      border-radius:8px;
    }
    .gm-v17-horse-card h2{margin:0 0 5px;color:#efd39a}
    .gm-v17-big-icon{font-size:58px;line-height:1}
    .gm-v17-carriage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .gm-v17-carriage{display:flex;align-items:center;gap:18px}
    .gm-v17-footer{
      display:flex;justify-content:flex-end;
      margin-top:18px;padding-top:12px;
      border-top:1px solid #6f4b24;
    }
    @media(max-width:850px){
      .gm-v17-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media(max-width:600px){
      .gm-v17-item-grid,.gm-v17-carriage-list{grid-template-columns:1fr}
      .gm-v17-category-tabs button{min-width:0;flex:1 1 45%}
    }

/* ---- gm-v1518-money-ui-style ---- */
/* Sidebar: remove only the dedicated inventory/equipment navigation entry. */
    #nav button[onclick*="go('inventory')"],
    #nav button[onclick*="go(\'inventory\')"]{
      display:none!important;
    }

    /* Exact two-column alignment: satisfaction left, value directly under
       Krit. Treffer in the right column. */
    .stat-grid .gm-satisfaction-value-row{
      grid-column:1/-1!important;
      display:grid!important;
      grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
      align-items:center!important;
      width:100%!important;
      box-sizing:border-box!important;
      white-space:nowrap!important;
    }
    .stat-grid .gm-satisfaction-value-row>span{
      min-width:0;
      display:flex!important;
      align-items:center!important;
      justify-content:flex-start!important;
    }
    .stat-grid .gm-satisfaction-value-row>span:last-child{
      justify-content:flex-end!important;
      text-align:right!important;
      padding-left:12px;
    }
    .stat-grid .gm-satisfaction-value-row>span:last-child b{
      margin-left:auto;
    }

    /* Epic gold shortage dialog */
    .gm-v18-gold-modal{
      max-width:650px!important;
      text-align:center!important;
      border:2px solid #8d642b!important;
      box-shadow:0 0 0 1px rgba(214,170,83,.18),0 18px 60px rgba(0,0,0,.7)!important;
      background:
        radial-gradient(circle at 50% 0%,rgba(122,76,27,.28),transparent 48%),
        linear-gradient(180deg,#2a1a10 0%,#17100b 100%)!important;
      padding:34px 38px!important;
    }
    .gm-v18-gold-icon{
      font-size:52px;
      line-height:1;
      margin-bottom:8px;
      filter:drop-shadow(0 3px 3px #000);
    }
    .gm-v18-epic-line{
      color:#b9914b;
      font-family:Georgia,serif;
      font-weight:900;
      letter-spacing:2px;
      font-size:13px;
      margin-bottom:8px;
    }
    .gm-v18-gold-modal h1{
      color:#f0d29a!important;
      font-family:Georgia,serif;
      font-size:29px;
      margin:6px 0 12px;
    }
    .gm-v18-gold-text{
      color:#d2b98b;
      line-height:1.6;
      margin:0 auto 16px;
      max-width:550px;
    }
    .gm-v18-context{
      color:#f0d29a;
      font-weight:800;
      margin:12px 0;
    }
    .gm-v18-gold-numbers{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:9px;
      margin:20px 0;
    }
    .gm-v18-gold-numbers>div{
      border:1px solid #694820;
      background:rgba(12,8,5,.48);
      padding:12px 8px;
      border-radius:6px;
    }
    .gm-v18-gold-numbers span{
      display:block;
      color:#a98a5b;
      font-size:11px;
      margin-bottom:4px;
    }
    .gm-v18-gold-numbers b{
      color:#efd09a;
      font-size:17px;
    }
    .gm-v18-gold-numbers .missing{
      border-color:#9b5a37;
      background:rgba(92,39,25,.22);
    }
    .gm-v18-gold-numbers .missing b{
      color:#e6a06c;
    }
    .gm-v18-missing{
      color:#e5b07c;
      font-weight:800;
      margin:20px 0;
    }
    .gm-v18-epic-bottom{
      color:#947b55;
      font-style:italic;
      font-size:12px;
      margin:18px 0 0;
    }
    .gm-v18-gold-footer{
      display:flex;
      justify-content:center;
      margin-top:22px;
    }
    @media(max-width:600px){
      .gm-v18-gold-modal{padding:25px 18px!important}
      .gm-v18-gold-numbers{grid-template-columns:1fr}
    }

/* ---- gm-v1519-final-style ---- */
.stat-grid .gm-satisfaction-value-row{
      grid-column:1 / -1!important;
      display:grid!important;
      grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
      width:100%!important;
      box-sizing:border-box!important;
      padding:0!important;
      min-height:31px!important;
      white-space:nowrap!important;
      border-top:1px solid #8a5b25!important;
      background:linear-gradient(#3b2410,#29170b)!important;
    }
    .stat-grid .gm-satisfaction-value-row>span{
      min-width:0!important;
      box-sizing:border-box!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:8px!important;
      padding:6px 10px!important;
      color:#e6cc98!important;
      border-right:0!important;
    }
    .stat-grid .gm-satisfaction-value-row>span+span{
      border-left:1px solid #5d3d1c!important;
      padding-left:10px!important;
    }
    .stat-grid .gm-satisfaction-value-row b{
      float:none!important;
      margin-left:0!important;
      color:#f1d49a!important;
      flex:0 0 auto!important;
    }

/* ---- gm-v1513-ludus-expansion-style ---- */
/* The requested 1.5 cm visual lift is approximately 57px at 96dpi. */
    .gm-hero-name{
      top:-27px!important;
    }
    .detail-stage .hero-portrait{
      overflow:visible!important;
    }

    /* New fixed-size Ludus buildings beside the central Hof. */
    .ludus-room.room-armory,
    .ludus-room.room-stable-owned{
      width:210px!important;
      min-height:115px!important;
      z-index:9!important;
    }
    .room-armory{
      left:calc(50% - 340px)!important;
      bottom:5%!important;
    }
    .room-stable-owned{
      left:calc(50% + 130px)!important;
      right:auto!important;
      bottom:5%!important;
    }

    .gm-storage-modal{
      max-width:1120px!important;
      max-height:90vh!important;
      overflow:auto!important;
    }
    .gm-storage-tabs{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin:12px 0 16px;
      padding-bottom:10px;
      border-bottom:1px solid #765025;
    }
    .gm-storage-tabs button{
      min-width:150px;
      font-weight:900;
    }
    .gm-storage-tabs button.active{
      border-color:#d2a24d;
      background:linear-gradient(#5a3517,#2a170b);
      color:#f0d39a;
    }
    .gm-storage-section{
      border:1px solid #765025;
      border-radius:6px;
      padding:12px;
      margin-bottom:14px;
      background:linear-gradient(180deg,rgba(73,47,24,.42),rgba(28,16,9,.32));
    }
    .gm-storage-section h3{
      margin:0 0 10px;
      color:#efd39a;
      border-bottom:1px solid #6f4b24;
      padding-bottom:8px;
    }
    .gm-storage-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:12px;
    }
    .gm-storage-item{
      display:grid;
      grid-template-columns:82px 1fr;
      align-items:center;
      gap:10px;
      min-height:105px;
    }
    .gm-storage-item .gm-storage-image{
      width:78px;
      height:68px;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .gm-storage-item .gm-storage-image svg{
      width:78px;
      height:68px;
    }
    .gm-storage-item h4{margin:0 0 4px;color:#f0d29a;font-size:15px}
    .gm-storage-item p{margin:2px 0;color:#c5aa78;font-size:12px}
    .gm-storage-empty{
      text-align:center;
      padding:24px 12px;
      color:#d9bb7c;
      font-family:Georgia,serif;
      font-weight:800;
    }
    .gm-stable-overview{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:14px;
      margin-bottom:14px;
    }
    .gm-stable-card{text-align:center}
    .gm-stable-card .gm-big-icon{font-size:52px;display:block;margin-bottom:6px}
    .gm-stable-card h3{margin:4px 0;color:#efd39a}
    .gm-stable-card strong{font-size:28px;color:#e4bc6f}
    .gm-travel-list{margin-top:10px}
    .gm-travel-row{
      display:flex;
      justify-content:space-between;
      align-items:center;
      padding:10px 4px;
      border-bottom:1px solid rgba(130,89,36,.4);
      color:#e1c38b;
    }
    .gm-travel-row small{color:#a99370}
    .gm-storage-footer{
      display:flex;
      justify-content:flex-end;
      gap:8px;
      border-top:1px solid #6f4b24;
      padding-top:12px;
      margin-top:14px;
    }
    @media(max-width:1050px){
      .ludus-room.room-armory,.ludus-room.room-stable-owned{width:175px!important}
      .room-armory{left:calc(50% - 285px)!important}
      .room-stable-owned{left:calc(50% + 110px)!important}
      .gm-storage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media(max-width:700px){
      .detail-stage .hero-portrait{overflow:visible!important}
      .ludus-room.room-armory,.ludus-room.room-stable-owned{
        position:relative!important;
        left:auto!important;
        right:auto!important;
        bottom:auto!important;
        width:calc(100% - 60px)!important;
        margin:20px 30px;
      }
      .gm-storage-grid,.gm-stable-overview{grid-template-columns:1fr}
    }

/* ---- gm-v1515-final-fix-style ---- */
.detail-stage .hero-portrait{overflow:visible!important;position:relative!important}
    .detail-stage .gm-hero-name{top:-27px!important;z-index:100!important}

/* ---- gm-v1520-stat-table-style ---- */
.stat-grid .gm-satisfaction-value-row{
      grid-column:1 / -1!important;
      display:grid!important;
      grid-template-columns:50% 50%!important;
      width:100%!important;
      min-width:0!important;
      box-sizing:border-box!important;
      margin:0!important;
      padding:0!important;
      min-height:31px!important;
      border-top:1px solid #5d3d1c!important;
      border-right:0!important;
      background:linear-gradient(#3b2410,#29170b)!important;
      overflow:hidden!important;
    }

    .stat-grid .gm-satisfaction-value-row .gm-v20-stat-cell{
      min-width:0!important;
      width:100%!important;
      box-sizing:border-box!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:8px!important;
      padding:7px 10px!important;
      margin:0!important;
      border:0!important;
      color:#e6cc98!important;
      font-size:14px!important;
      white-space:nowrap!important;
    }

    .stat-grid .gm-satisfaction-value-row .gm-v20-stat-left{
      border-right:1px solid #5d3d1c!important;
    }

    .stat-grid .gm-satisfaction-value-row .gm-v20-stat-right{
      border-left:0!important;
    }

    .stat-grid .gm-satisfaction-value-row .gm-v20-stat-cell span{
      display:block!important;
      min-width:0!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
    }

    .stat-grid .gm-satisfaction-value-row .gm-v20-stat-cell b{
      float:none!important;
      flex:0 0 auto!important;
      margin:0!important;
      color:#f1d49a!important;
    }

/* ---- gm-v1521-authoritative-style ---- */
/* The wrapper itself is NOT a table row anymore. Its two children are. */
    .stat-grid .gm-v1521-split-row{
      display:contents!important;
    }
    .stat-grid .gm-v1521-split-row .gm-v1521-cell{
      min-width:0!important;
      min-height:31px!important;
      height:31px!important;
      box-sizing:border-box!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:8px!important;
      padding:6px 10px!important;
      margin:0!important;
      border-bottom:1px solid #5d3d1c!important;
      background:transparent!important;
      color:#e6cc98!important;
      font-size:13px!important;
      white-space:nowrap!important;
      overflow:hidden!important;
    }
    .stat-grid .gm-v1521-split-row .gm-v1521-left{
      border-right:1px solid #5d3d1c!important;
    }
    .stat-grid .gm-v1521-split-row .gm-v1521-right{
      border-right:0!important;
    }
    .stat-grid .gm-v1521-split-row .gm-v1521-cell span{
      display:block!important;
      flex:1 1 auto!important;
      min-width:0!important;
      text-align:left!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
    }
    .stat-grid .gm-v1521-split-row .gm-v1521-cell b{
      display:block!important;
      float:none!important;
      flex:0 0 auto!important;
      margin:0!important;
      margin-left:auto!important;
      text-align:right!important;
      color:#f1d49a!important;
      font-weight:bold!important;
    }

/* ---- gm-v1523-stat-row-style ---- */
.detail-col .stat-grid{
      grid-template-columns:1fr 1fr!important;
    }
    .detail-col .stat-grid .gm-v1523-stat-cell{
      min-width:0!important;
      width:auto!important;
      box-sizing:border-box!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:8px!important;
      padding:7px 10px!important;
      margin:0!important;
      border-bottom:1px solid #5d3d1c!important;
      color:#e6cc98!important;
      font-size:14px!important;
      white-space:nowrap!important;
      overflow:hidden!important;
    }
    .detail-col .stat-grid .gm-v1523-stat-cell:first-of-type{
      border-right:1px solid #5d3d1c!important;
    }
    .detail-col .stat-grid .gm-v1523-stat-cell span{
      min-width:0!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
    }
    .detail-col .stat-grid .gm-v1523-stat-cell b{
      float:none!important;
      flex:0 0 auto!important;
      margin:0!important;
      color:#f1d49a!important;
    }

/* ---- v90-art-style ---- */
:root{--stone:#171a1f;--stone2:#20242b;--bronze:#b88b48;--gold:#e1bb69;--parchment:#e8ddc8;--blood:#7d3030;--green:#4d9b62}
body{background:radial-gradient(circle at 50% -10%,#34302a 0,#15171b 38%,#0c0e12 100%);color:#eee}
.top{background:linear-gradient(180deg,#27221d,#171a20);border-bottom:2px solid #8b6838;box-shadow:0 4px 22px #0008}
.brand{letter-spacing:.6px;color:#e5d4b3}
nav{background:linear-gradient(180deg,#15171b,#0e1014);border-right:1px solid #5a4630}
nav button{background:linear-gradient(180deg,#242830,#171a20);border-color:#4b4032;box-shadow:inset 0 1px #ffffff08}
nav button.active{background:linear-gradient(180deg,#854333,#57251f);border-color:#b77b47}
.card{background:linear-gradient(145deg,rgba(37,40,44,.98),rgba(21,24,29,.98));border-color:#514838;box-shadow:0 8px 24px #0005,inset 0 1px #fff08;border-radius:14px}
.card h2,.card h3{color:#ead8b7}.kpi.gold,.gold{color:var(--gold)}
.portrait{height:235px;background:linear-gradient(180deg,#151b22,#3b2b20);border:2px solid #756044;box-shadow:0 8px 18px #0007}
.weapon{background:linear-gradient(180deg,#151b22,#2c2119);border-color:#756044;box-shadow:0 7px 16px #0005}
.fighter-panel{background:linear-gradient(145deg,#24272b,#15171a);border-color:#67553d;box-shadow:0 12px 30px #0007}
.fighter-stage{padding:10px;border-radius:16px;background:linear-gradient(180deg,#1a1d21,#100f0d);border:1px solid #5b4932}
.fightcanvas{background:#17120f;border-color:#6a5235;box-shadow:0 10px 30px #0008}
.market-card,.fight-result-fighter{overflow:hidden}
.bazaar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.bazaar-grid .market-card{min-width:0}
@media(max-width:1250px){.bazaar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.bazaar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.bazaar-grid{grid-template-columns:1fr}}
.ludi-rank{color:#dfbd78}
.offer-price{color:#e6c16f}
.section-banner{padding:14px 18px;border-radius:12px;margin:12px 0 18px;background:linear-gradient(90deg,#4a3522,#211c18 55%,#4a3522);border:1px solid #765a35;text-align:center;color:#ead8b7;box-shadow:0 8px 20px #0005}
.equip-lines .tag{background:#211d18;border-color:#6c5436;color:#e2d3b9}
.visual-equipment{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
@media(max-width:700px){.portrait{height:200px}.visual-equipment{grid-template-columns:1fr}}

/* ---- v113-newgame-rebuild ---- */
.new-game-modal{max-width:1120px!important;background:linear-gradient(180deg,#21150d,#120d09)!important;border:1px solid #7c5a2c!important;box-shadow:0 18px 70px rgba(0,0,0,.7),inset 0 1px rgba(255,220,160,.08)}
.new-game-title{display:flex;align-items:center;gap:16px;border-bottom:1px solid #6b4a27;padding-bottom:14px;margin-bottom:16px}.new-game-title>span{font-size:42px}.new-game-title h2{margin:0;color:#ead7ae;font-size:29px}.new-game-title p{margin:3px 0 0;color:#aa9677}
.new-game-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.new-game-grid label,.new-game-section{display:block}.new-game-grid label>span,.new-game-label{display:block;color:#dfc99d;font-weight:800;margin-bottom:7px}.new-game-grid input{width:100%;padding:11px 13px;background:#1b120c;border:1px solid #765225;color:#f1dfb8;border-radius:7px}.new-game-grid input:focus{outline:none;border-color:#d0a252;box-shadow:0 0 0 2px rgba(208,162,82,.12)}
.new-game-section{margin-top:17px;padding-top:14px;border-top:1px solid rgba(125,91,42,.55)}.new-game-label{display:flex;justify-content:space-between;gap:12px;align-items:center}.new-game-note{font-size:12px;color:#a99473;margin-top:6px}
.new-game-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.new-game-choice{position:relative;display:flex;align-items:center;gap:10px;padding:11px 12px!important;min-height:58px;border:1px solid #634722!important;background:linear-gradient(180deg,#2a1b11,#17100b)!important;color:#e8d4ab!important;border-radius:8px!important;text-align:left!important;transition:transform .12s,border-color .12s,box-shadow .12s}.new-game-choice:hover{transform:translateY(-1px);border-color:#c99b52!important}.new-game-choice.selected{border-color:#e6b85e!important;box-shadow:0 0 0 2px rgba(230,184,94,.16),inset 0 0 20px rgba(230,184,94,.08)!important}.new-game-choice.disabled{opacity:.28;cursor:not-allowed;filter:grayscale(.8)}.city-swatch{width:18px;height:18px;border-radius:50%;border:1px solid #ecd19a;flex:none;box-shadow:0 0 8px rgba(255,210,120,.15)}.new-game-choice small{display:inline-block;margin-left:10px;color:#cdb486;font-size:13px}
.new-game-color-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.new-game-color{border:1px solid #654923!important;background:#1a110b!important;border-radius:8px!important;padding:10px 7px!important;color:#ddc79b!important;text-align:center!important}.new-game-color .swatch{display:block;width:34px;height:34px;border-radius:50%;margin:0 auto 6px;border:2px solid #d8bb7b;box-shadow:0 3px 10px rgba(0,0,0,.35)}.new-game-color.selected{border-color:#edc16b!important;box-shadow:0 0 0 2px rgba(237,193,107,.16),inset 0 0 18px rgba(237,193,107,.08)!important}.new-game-color small{display:block;color:#9e8a6b}.new-game-color b{font-size:13px}
.difficulty-row{display:grid!important;grid-template-columns:repeat(3,1fr);gap:9px}.difficulty-row .difficulty{min-height:96px!important;text-align:left!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;cursor:pointer!important;pointer-events:auto!important;user-select:none!important;border:1px solid #654923!important;background:linear-gradient(180deg,#2a1b11,#17100b)!important;color:#e8d4ab!important}.difficulty-row .difficulty:hover{border-color:#c99b52!important}.difficulty-row .difficulty.selected{border-color:#e6b85e!important;box-shadow:0 0 0 2px rgba(230,184,94,.16),inset 0 0 20px rgba(230,184,94,.08)!important}.difficulty-row .difficulty b{font-size:18px}.difficulty-row .difficulty span{font-size:21px;font-weight:900;color:#e7bd62}.difficulty-row .difficulty small{color:#a99473;margin-top:3px}
.new-game-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px;padding-top:14px;border-top:1px solid #6b4a27}.new-game-footer .primary{opacity:.45;cursor:not-allowed}.new-game-footer .primary.ready{opacity:1;cursor:pointer;box-shadow:0 0 14px rgba(170,82,35,.2)}
@media(max-width:850px){.new-game-choice-grid{grid-template-columns:repeat(2,1fr)}.new-game-color-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.new-game-grid,.new-game-choice-grid,.difficulty-row{grid-template-columns:1fr!important}.new-game-color-grid{grid-template-columns:repeat(2,1fr)}.new-game-footer{flex-direction:column;align-items:stretch}}

/* ---- v116-world-upgrade ---- */
/* Weltkarte: kompaktere, besser lesbare Anordnung */
.world-intro{margin-bottom:8px}.world-intro h1{margin-bottom:4px}.world-intro .muted{max-width:900px;font-size:16px;line-height:1.5}
.roman-map{height:500px!important;margin-top:10px!important;background:
 radial-gradient(ellipse at 50% 52%,rgba(190,155,92,.16),transparent 35%),
 radial-gradient(ellipse at 50% 55%,#6b5130 0,#4a3927 48%,#211a14 86%,#17120e 100%)!important}
.map-title{top:13px!important;left:50%!important;transform:translateX(-50%);white-space:nowrap;font-size:15px;z-index:3;background:rgba(22,15,10,.72);padding:4px 12px;border:1px solid rgba(183,145,82,.25);border-radius:3px}
.map-city{min-width:148px!important;padding:9px 11px!important}
.map-city small{white-space:nowrap}
.map-city.city-roma{left:39%!important;top:18%!important}
.map-city.city-capua{left:20%!important;top:34%!important}
.map-city.city-verona{left:58%!important;top:30%!important}
.map-city.city-pompeji{left:34%!important;top:50%!important}
.map-city.city-pozzuoli{left:61%!important;top:57%!important}
.map-city.city-ravenna{left:17%!important;top:68%!important}
.world-ludus-card{cursor:pointer!important;transition:transform .16s,border-color .16s,box-shadow .16s!important}
.world-ludus-card:hover{transform:translateY(-3px);border-color:#c08a3e;box-shadow:0 8px 20px rgba(0,0,0,.45),inset 0 0 18px rgba(209,157,71,.08)}
.world-ludus-card:focus{outline:2px solid #d0a052;outline-offset:2px}
.world-ludus-open{margin-top:7px!important;width:100%}
.world-ludus-modal{max-width:1000px!important;max-height:88vh;overflow:auto;background:linear-gradient(180deg,#38230f,#1b1009)!important}
.world-ludus-modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #765025;padding:0 0 12px;margin-bottom:14px}.world-ludus-modal-head h2{margin:0;color:#efd39a;font-size:27px}.world-ludus-modal-head p{margin:5px 0 0;color:#c2a774}.world-ludus-seal{font-size:13px;letter-spacing:2px;color:#b88a43;border:1px solid #765025;padding:8px 11px;border-radius:3px}
.world-ludus-fighters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.world-fighter-card{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center;background:linear-gradient(180deg,#4a2f16,#2b1a0d);border:1px solid #704a22;border-radius:5px;padding:10px}.world-fighter-portrait{height:170px;overflow:hidden;border:1px solid #7d5628;border-radius:4px;background:#1b1009}.world-fighter-portrait .portrait{height:100%!important;width:100%!important}.world-fighter-info h3{margin:0 0 2px;color:#efd39a}.world-fighter-info p{margin:4px 0;color:#d0b47b;font-size:13px}.world-fighter-value{font-weight:900;color:#e9bd62!important}.world-fighter-actions{margin-top:8px;display:flex;gap:7px;flex-wrap:wrap}.world-fighter-actions button{font-size:12px;padding:7px 9px}.world-fighter-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.map-title{font-size:12px}.map-city.city-roma{left:32%!important}.map-city.city-capua{left:8%!important}.map-city.city-verona{left:52%!important}.map-city.city-pompeji{left:28%!important}.map-city.city-pozzuoli{left:53%!important}.map-city.city-ravenna{left:8%!important}.world-ludi-grid,.world-ludus-fighters{grid-template-columns:1fr}.world-fighter-card{grid-template-columns:120px 1fr}}

/* ---- gm-v1512-final-roster-fix ---- */
/* Empty Kampfstil filters keep exactly the same geometry as the normal roster. */
  .gm-v1512-empty-host{
    flex:0 0 540px!important;
    height:540px!important;
    min-height:540px!important;
    max-height:540px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .gm-v1512-empty-row{
    width:100%!important;
    height:90px!important;
    min-height:90px!important;
    max-height:90px!important;
    box-sizing:border-box!important;
    border-bottom:1px solid #6d471f!important;
    background:linear-gradient(90deg,#2a1a0d,#211409)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    padding:0 18px!important;
  }
  .gm-v1512-empty-row.message{
    color:#d9bb7c!important;
    font-family:Georgia,serif!important;
    font-size:15px!important;
    font-weight:800!important;
  }

  /* Name directly above the central gladiator portrait. */
  .gm-hero-name{
    position:absolute!important;
    left:50%!important;
    top:8px!important;
    transform:translateX(-50%)!important;
    z-index:15!important;
    min-width:220px!important;
    max-width:70%!important;
    padding:6px 16px!important;
    text-align:center!important;
    color:#f0d49a!important;
    font-family:Georgia,serif!important;
    font-size:20px!important;
    font-weight:900!important;
    letter-spacing:.2px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    background:linear-gradient(180deg,rgba(52,31,15,.94),rgba(29,17,9,.88))!important;
    border:1px solid #8f642d!important;
    border-radius:5px!important;
    box-shadow:0 2px 8px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.06)!important;
    pointer-events:none!important;
  }
  .hero-portrait-editable{position:relative!important;}

/* ---- v143-bazaar-polish ---- */
.gm143-bazaar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin-top:20px}
.gm143-card{display:flex;flex-direction:column;min-height:470px;padding:18px;border-radius:16px;border:1px solid rgba(180,140,70,.35);background:linear-gradient(145deg,rgba(35,27,20,.98),rgba(18,16,14,.98));box-shadow:0 10px 28px rgba(0,0,0,.25)}
.gm143-card h3{margin:10px 0 7px;font-size:1.15rem;line-height:1.25}
.gm143-level{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:5px 10px;border-radius:999px;background:rgba(177,139,67,.14);border:1px solid rgba(210,170,90,.35);font-weight:700;font-size:.82rem}
.gm143-statline{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin:10px 0;padding:10px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.gm143-statline span{white-space:nowrap}
.gm143-pricebox{margin-top:auto;padding:12px 13px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);line-height:1.65}
.gm143-price-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
.gm143-price-row strong{white-space:nowrap}
.gm143-leader{font-weight:700}
.gm143-card .primary{margin-top:12px;width:100%}
.gm143-portrait{min-height:155px;display:flex;justify-content:center;align-items:center}
@media(max-width:700px){.gm143-statline{grid-template-columns:1fr}.gm143-price-row{align-items:flex-start;flex-direction:column}}

/* ---- gm-v147-bazaar-fix ---- */
.gm147-bazaar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin-top:20px;align-items:stretch}
.gm147-card{display:flex;flex-direction:column;min-width:0;min-height:520px;padding:16px;border-radius:16px;border:1px solid rgba(180,140,70,.35);background:linear-gradient(145deg,rgba(35,27,20,.98),rgba(18,16,14,.98));box-shadow:0 10px 28px rgba(0,0,0,.25)}
.gm147-card h3{margin:10px 0 7px;font-size:1.12rem;line-height:1.25}
.gm147-level{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:5px 10px;border-radius:999px;background:rgba(177,139,67,.14);border:1px solid rgba(210,170,90,.35);font-weight:700;font-size:.82rem}
.gm147-portrait{height:220px;display:flex;justify-content:center;align-items:center;margin:-2px -2px 8px;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 50% 35%,#5b3a1b,#2b190b 62%,#17100a);border:1px solid rgba(180,140,70,.35)}
.gm147-portrait svg{width:100%;height:100%;max-width:300px;object-fit:contain}
.gm147-statline{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin:10px 0;padding:10px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.gm147-statline span{white-space:nowrap;font-size:.9rem}
.gm147-pricebox{margin-top:auto;padding:12px 13px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);line-height:1.65}
.gm147-price-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
.gm147-price-row strong{white-space:nowrap}
.gm147-leader{font-weight:700}
.gm147-card .primary{margin-top:12px;width:100%}
@media(max-width:700px){.gm147-statline{grid-template-columns:1fr}.gm147-price-row{align-items:flex-start;flex-direction:column}}

/* ---- gm-v149-bazaar-stability ---- */
.gm149-bazaar-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
    align-items:stretch;
    width:100%;
    overflow-x:auto;
    padding-bottom:4px;
  }
  .gm149-card{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    min-height:520px;
    padding:12px;
    border-radius:14px;
    border:1px solid rgba(180,140,70,.38);
    background:linear-gradient(145deg,rgba(35,27,20,.98),rgba(18,16,14,.98));
    box-shadow:0 8px 22px rgba(0,0,0,.22);
  }
  .gm149-portrait{
    width:100%;
    height:180px;
    flex:0 0 180px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:10px;
    background:radial-gradient(circle at 50% 35%,#5b3a1b,#2b190b 62%,#17100a);
    border:1px solid rgba(180,140,70,.35);
  }
  .gm149-portrait svg{width:100%;height:100%;max-width:220px;object-fit:contain}
  .gm149-card h3{margin:9px 0 6px;font-size:1rem;line-height:1.22;min-height:2.45em}
  .gm149-level{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:4px 8px;border-radius:999px;background:rgba(177,139,67,.14);border:1px solid rgba(210,170,90,.35);font-weight:700;font-size:.76rem;white-space:nowrap}
  .gm149-statline{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;margin:9px 0;padding:8px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
  .gm149-statline span{white-space:nowrap;font-size:.76rem;overflow:hidden;text-overflow:ellipsis}
  .gm149-pricebox{margin-top:auto;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);line-height:1.55}
  .gm149-price-row{display:flex;justify-content:space-between;align-items:center;gap:7px}
  .gm149-price-row span{white-space:nowrap}
  .gm149-price-row strong{white-space:nowrap;text-align:right}
  .gm149-leader{font-weight:700;overflow:hidden;text-overflow:ellipsis;max-width:58%;display:inline-block}
  .gm149-card .primary{margin-top:9px;width:100%;font-size:.82rem}
  @media(max-width:1250px){
    .gm149-bazaar-grid{grid-template-columns:repeat(7,minmax(185px,1fr));overflow-x:auto}
  }

/* ---- gm-v156-roster-style ---- */
/*
     v15.6: Pagination is rebuilt from scratch.
     The old v15.4/v15.5 pagination code is intentionally removed so there
     can only ever be ONE pager and ONE roster list.
  */
  .roster-col{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:0!important;
  }

  .roster-col > .section-banner{
    flex:0 0 42px!important;
    height:42px!important;
    box-sizing:border-box!important;
  }

  .roster-col > .style-filter-bar{
    flex:0 0 auto!important;
    box-sizing:border-box!important;
  }

  /* Exactly one pagination bar. */
  .gm-v156-pager{
    flex:0 0 30px!important;
    height:30px!important;
    min-height:30px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    padding:2px 7px!important;
    margin:0!important;
    border-top:1px solid #704a21!important;
    border-bottom:1px solid #704a21!important;
    background:linear-gradient(180deg,#35200f,#241408)!important;
  }

  .gm-v156-pager button{
    width:29px!important;
    min-width:29px!important;
    height:24px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #93622b!important;
    border-radius:4px!important;
    background:linear-gradient(180deg,#5a391c,#2b170b)!important;
    color:#efd19a!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
  }

  .gm-v156-pager button:hover:not(:disabled){
    background:linear-gradient(180deg,#765026,#40230f)!important;
  }

  .gm-v156-pager button:disabled{
    opacity:.28!important;
    cursor:default!important;
  }

  .gm-v156-page-label{
    min-width:72px!important;
    text-align:center!important;
    color:#dfbb72!important;
    font-size:12px!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  /*
     The list gets its own flex area. Five rows therefore always occupy the
     complete available height – no sixth row can peek into the bottom.
  */
  .gm-v156-rows{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
  }

  .gm-v156-rows > .glad-row{
    flex:1 1 0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    padding:4px!important;
    overflow:hidden!important;
    cursor:pointer!important;
  }

  .gm-v156-rows > .glad-row .mini-portrait{
    width:76px!important;
    height:76px!important;
    flex:0 0 76px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  /* Keep the original portrait drawing proportions; only scale it down evenly. */
  .gm-v156-rows > .glad-row .mini-portrait svg{
    width:101px!important;
    height:84px!important;
    max-width:none!important;
    max-height:none!important;
    transform:translate(-13px,-3px)!important;
    display:block!important;
  }

  .gm-v156-rows > .glad-row .glad-info{
    min-width:0!important;
    padding:4px 6px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .gm-v156-rows > .glad-row .glad-info b{
    display:block!important;
    font-size:15px!important;
    line-height:17px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .gm-v156-rows > .glad-row .glad-info span{
    display:block!important;
    font-size:11px!important;
    line-height:13px!important;
    margin:1px 0 2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .gm-v156-rows > .glad-row .glad-info div{
    font-size:11px!important;
    line-height:14px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  /* Inline display is used by the JS so no older .glad-row display rule can
     accidentally override pagination. */

/* ---- gm-v157-fixed-roster-style ---- */
/*
  v15.7: final clean layout for the roster.
  Rows have a fixed height and are never stretched to fill the panel.
  The portrait uses the SVG's native 300:250 ratio and is centered with
  preserveAspectRatio, eliminating the previous horizontal/vertical offset.
*/
.roster-col{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
}
.roster-col > .section-banner{
  flex:0 0 42px!important;
  height:42px!important;
  box-sizing:border-box!important;
}
.roster-col > .style-filter-bar{
  flex:0 0 40px!important;
  height:40px!important;
  min-height:40px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.gm-v156-pager,
.gm-v157-pager{
  flex:0 0 30px!important;
  height:30px!important;
  min-height:30px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  padding:2px 7px!important;
  margin:0!important;
  border-top:1px solid #704a21!important;
  border-bottom:1px solid #704a21!important;
  background:linear-gradient(180deg,#35200f,#241408)!important;
}
.gm-v156-pager button,
.gm-v157-pager button{
  width:29px!important;
  min-width:29px!important;
  height:24px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #93622b!important;
  border-radius:4px!important;
  background:linear-gradient(180deg,#5a391c,#2b170b)!important;
  color:#efd19a!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
.gm-v156-pager button:disabled,
.gm-v157-pager button:disabled{opacity:.28!important;cursor:default!important}
.gm-v156-page-label,
.gm-v157-page-label{
  min-width:72px!important;
  text-align:center!important;
  color:#dfbb72!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

/* Fixed 6 x 90px slots. No flex stretching. */
.gm-v157-rows{
  flex:0 0 540px!important;
  height:540px!important;
  min-height:540px!important;
  max-height:540px!important;
  overflow:hidden!important;
  display:block!important;
  box-sizing:border-box!important;
}
.gm-v157-rows > .glad-row,
.gm-v157-rows > .gm-v157-empty-row{
  flex:none!important;
  width:100%!important;
  height:90px!important;
  min-height:90px!important;
  max-height:90px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.gm-v157-rows > .glad-row{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  padding:5px!important;
  border-bottom:1px solid #6d471f!important;
  cursor:pointer!important;
}
.gm-v157-rows > .gm-v157-empty-row{
  display:block!important;
  background:linear-gradient(90deg,#2a1a0d,#211409)!important;
  border-bottom:1px solid #5a3b1d!important;
}

/* Portrait frame and SVG: exact centering, no translate hacks. */
.gm-v157-rows > .glad-row .mini-portrait{
  width:76px!important;
  height:78px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  background:linear-gradient(180deg,#392513,#24150a)!important;
  border-right:1px solid #5f3d1b!important;
}
.gm-v157-rows > .glad-row .mini-portrait svg{
  width:76px!important;
  height:64px!important;
  max-width:76px!important;
  max-height:64px!important;
  display:block!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto!important;
  preserveAspectRatio:xMidYMid meet;
}
.gm-v157-rows > .glad-row .glad-info{
  min-width:0!important;
  height:80px!important;
  padding:5px 7px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.gm-v157-rows > .glad-row .glad-info b{
  display:block!important;
  font-size:15px!important;
  line-height:17px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.gm-v157-rows > .glad-row .glad-info span{
  display:block!important;
  font-size:11px!important;
  line-height:13px!important;
  margin:1px 0 2px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.gm-v157-rows > .glad-row .glad-info div{
  font-size:11px!important;
  line-height:14px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
