/* Heavy Iron visual layer. Game rules and interaction live in engine.js/client.js. */
:root{
  --bg:#101512;--panel:#1a211d;--panel2:#26302a;--line:#39433b;
  --text:#f3f0e8;--muted:#b2b9aa;--yellow:#e9ad45;--green:#84c693;
  --red:#ec8174;--sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace
}
html{background:#101512}
body{
  background:
    radial-gradient(ellipse 100% 42% at 50% -12%,rgba(169,123,54,.19),transparent 75%),
    repeating-linear-gradient(110deg,rgba(244,229,194,.018) 0 1px,transparent 1px 7px),
    #101512;
  min-height:100vh
}
#hdr{
  background:linear-gradient(180deg,rgba(39,48,42,.98),rgba(20,26,22,.98));
  border-bottom:1px solid #866634;
  box-shadow:0 10px 30px #05080570,0 1px #e2b26855 inset;
  padding:10px 14px;min-height:62px;gap:12px;
  backdrop-filter:blur(18px)
}
.stripe{
  width:34px;height:34px;border-radius:7px;
  border:0;
  box-shadow:0 3px 12px #0008;
  background:url('icon.svg?v=2') center/contain no-repeat
}
#hdr h1{display:flex;gap:.34em;font-size:16px;letter-spacing:.075em;text-transform:uppercase;color:#f6e8ca}
#hdr h1 strong{color:#e9ad45;font-weight:900}
.pn{font-size:15px;letter-spacing:.015em}
.hr{gap:7px}
.hr .money{font-size:14px;color:#f5d18c}
main{max-width:700px;padding:16px 14px 22px}
nav#nav{
  background:linear-gradient(180deg,#202a22,#141b17);
  border-top:1px solid #7c633c;
  box-shadow:0 -10px 30px #0508058a,0 1px #ffffff12 inset;
  padding-top:4px
}
nav button{transition:color .2s,background .2s;min-height:54px}
nav button .i{font-size:19px;filter:grayscale(.22)}
nav button.on{color:#f4bf69;background:linear-gradient(180deg,#c8882e30,transparent 62%);box-shadow:0 2px #e1a342 inset}
.card{
  position:relative;
  background:linear-gradient(145deg,#222d25,#1a221d 56%,#171e1a);
  border:1px solid #445046;
  border-radius:13px;
  box-shadow:0 9px 25px #03070347,0 1px #ffffff10 inset;
  padding:16px;margin-bottom:14px
}
.card h2{color:#e5bb75;letter-spacing:.13em;font-size:11.5px;margin-bottom:12px}
h3{color:#d5d3c5}
.muted,.l,.stat .l,th,label.f{color:var(--muted)}
.small{line-height:1.5}
.money{letter-spacing:-.045em}
.card .money{font-variant-numeric:tabular-nums}
button{
  background:linear-gradient(180deg,#354038,#26312a);
  border-color:#59685b;
  box-shadow:0 2px 0 #0d130f,0 1px #ffffff19 inset;
  color:#f0eee5;
  transition:filter .16s,transform .16s,border-color .16s
}
button:hover{filter:brightness(1.13);border-color:#9aab92}
button:focus-visible,input:focus-visible,.mk:focus-visible{outline:2px solid #f7c472;outline-offset:2px}
button:active{transform:translateY(2px);box-shadow:0 0 0 #0d130f}
.btn-y{
  color:#231b0d;
  background:linear-gradient(180deg,#f7c66e,#dc972e);
  border-color:#f4bf65;
  box-shadow:0 3px 0 #855417,0 1px #fff8d890 inset;
  text-shadow:0 1px #ffe0a866
}
.btn-g{background:linear-gradient(180deg,#2e5940,#244631);border-color:#508766;color:#c9f1d0}
.btn-r{background:linear-gradient(180deg,#5a3430,#422522);border-color:#91554e;color:#ffc0b9}
.bookbtn{background:#263029;border-color:#657161;box-shadow:none}
input{background:#111713;border-color:#536052;box-shadow:0 2px 8px #0004 inset}
input::placeholder{color:#7f897e}
.seg{background:#101713;border-color:#506052}
.seg button{box-shadow:none}
.seg button.on{background:#465542;color:#f8e7c6;box-shadow:0 1px 4px #0006 inset}
.stat{background:linear-gradient(160deg,#121a15,#1d2820);border:1px solid #354038;border-radius:8px;padding:10px}
.stat .v{font-size:13px;color:#e9e7db}
.bar{height:9px;background:#0c120e;border:1px solid #3d4a3b;box-shadow:0 1px 3px #0008 inset}
.bar>i{background:linear-gradient(180deg,#f6c56e,#cb8330)}
.job{border-bottom-color:#475348}
.tchip{background:#101713;border:1px solid #3b463b;border-left:4px solid var(--c);color:#e7e5da}
.est{background:#111914;border-color:#64715e}
.unit{border-bottom-color:#4c574b}
td,th{border-bottom-color:#3b473e}
.banner{background:#4a2924;border-color:#8e5649}
.note{background:#121a15;border-color:#adb3a7}
.note.good{border-color:var(--green)}
.waitbar{background:#244331;border-color:#52876a;color:#dcf5e1}
.sheet-bg{background:rgba(4,9,6,.78);backdrop-filter:blur(6px)}
.sheet{background:linear-gradient(180deg,#26322a,#18211b);border-top:3px solid #e6a748;box-shadow:0 -18px 50px #030703aa}
.toast{background:#eab35c;box-shadow:0 8px 24px #0009}
.net{box-shadow:0 0 0 3px #0e170e,0 0 10px currentColor}
.net.on{color:var(--green)}.net.connecting{color:var(--yellow)}
.hero{
  min-height:310px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;
  text-align:left;padding:26px 22px;margin:-16px -14px 18px;
  background:linear-gradient(0deg,#101512 0%,#101512a8 28%,#10151217 68%),linear-gradient(90deg,#1015129c,transparent 75%),url('assets/heavy-iron-hero.jpg') center center/cover;
  box-shadow:inset 0 -1px #a9824a45
}
.hero .eyebrow{font:700 10px var(--mono);letter-spacing:.22em;color:#ffd48e;text-transform:uppercase;margin-bottom:7px}
.hero .big{font-size:clamp(42px,10vw,66px);line-height:.92;letter-spacing:.025em;color:#f7f1e3;text-shadow:0 3px 2px #000,0 7px 20px #000b}
.hero .big em{color:#e9ae4c;font-style:normal}
.hero .muted{max-width:390px;margin-top:12px;color:#f0e9da;font-size:13.5px;text-shadow:0 1px 8px #000}
.hero button{margin-top:14px;background:#152019bd;border-color:#c79959;color:#f5dfbb;backdrop-filter:blur(8px)}
.board{
  padding:6px;gap:4px;
  border:1px solid #66543b;border-radius:16px;
  background:radial-gradient(circle at 50% 45%,#364a38,#1a271d 66%,#121c16);
  box-shadow:0 12px 34px #0007,inset 0 0 0 4px #111914
}
.sq{
  background:linear-gradient(150deg,#313c32,#1c281f);border:1px solid #566354;
  border-radius:5px;box-shadow:0 2px 3px #0009,0 1px #ffffff17 inset;
  padding-top:4px
}
.sq.good{background:linear-gradient(150deg,#355039,#203328)}
.sq.bad{background:linear-gradient(150deg,#503930,#30231e)}
.sq.home{background:linear-gradient(150deg,#795625,#493315);border-color:#e2ae59}
.sq.neutral{background:linear-gradient(150deg,#42463c,#292e27)}
.sq.mine{box-shadow:0 0 0 2px #f6c270 inset,0 0 11px #e5a64185}
.sn{color:#f4f0e7;text-shadow:0 1px 3px #000;letter-spacing:-.02em}
.si{filter:drop-shadow(0 2px 2px #0008)}
.sq.occupied .si{font-size:clamp(11px,3.6vw,17px)}
.sq.occupied .sn{font-size:clamp(5px,1.5vw,8px)}
.board .toks{bottom:1px;left:1px;right:1px;gap:1px;align-items:center;pointer-events:none}
.board .tok,.race-pawn .tok,.race-name .tok{
  box-sizing:border-box;width:18px;height:14px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--pawn-color);border-radius:3px;
  background:#101914;color:var(--pawn-color);
  box-shadow:0 1px 3px #000c,0 0 5px color-mix(in srgb,var(--pawn-color) 32%,transparent)
}
.board .tok.me{width:20px;height:16px;border:1.5px solid #fff4dc;animation:none;box-shadow:0 1px 4px #000,0 0 0 1px var(--pawn-color)}
.board .toks.many .tok,.board .toks.many .tok.me{width:12px;height:10px;border-width:1px}
.tok svg{width:100%;height:100%;display:block}
.race-pawn{position:absolute;top:-10px;transform:translateX(-50%);line-height:0}
.race-name{display:inline-flex;align-items:center;gap:4px;min-width:0}
.race-name .tok{width:22px;height:17px}
@media (min-width:600px){.board .toks.many .tok,.board .toks.many .tok.me{width:17px;height:14px}}
.center{border-radius:9px;background:radial-gradient(circle at 50% 30%,#344a38bb,#18241b77 73%);margin:2px}
.landed{background:#121a15e8;border-color:#54624f;color:#e2e5d9;box-shadow:0 2px 9px #0005}
.landed.good{border-color:#739a69}
.rollbtn{box-shadow:0 3px 0 #855417,0 0 18px #db9d4455}
.race .track{background:#101713;border:1px solid #3d4c3d}
.mapwrap{
  position:relative;border-radius:13px;border:1px solid #b58c57;
  background:#293b2c url('assets/valley-terrain.jpg') center/cover no-repeat;box-shadow:0 14px 32px #0009,0 0 0 4px #101713;
  overflow:hidden
}
.mapwrap:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 38px #09110d9c,inset 0 0 0 1px #fff3}
.map{width:100%;display:block}
.map-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 12px}
.map-kicker{font:700 10px var(--mono);letter-spacing:.16em;color:#e1ae65;text-transform:uppercase}
.map-title{font-size:24px;line-height:1.05;font-weight:900;letter-spacing:-.035em;margin:3px 0 0}
.map-subtitle{font-size:11px;color:#c1c9b9;margin:5px 0 0}
.map-tabs{margin-bottom:12px}
.map-tabs button{font-size:12px}
.map .road-shadow{fill:none;stroke:#0b1311;stroke-linecap:round;stroke-linejoin:round;opacity:.54}
.map .road{fill:none;stroke:#8e8270;stroke-linecap:round;stroke-linejoin:round}
.map .road-core{fill:none;stroke:#d4c0a0;stroke-linecap:round;stroke-linejoin:round}
.map .river-bank{fill:none;stroke:#183f42;stroke-linecap:round;stroke-linejoin:round}
.map .river{fill:none;stroke:#559bb1;stroke-linecap:round;stroke-linejoin:round}
.map .map-label{font:700 7px var(--sans);letter-spacing:.01em;paint-order:stroke;stroke:#101d18;stroke-width:3.5px;stroke-linejoin:round;fill:#fff6de;pointer-events:none}
.map .terrain-label{font:700 7px var(--mono);letter-spacing:.12em;paint-order:stroke;stroke:#17231b;stroke-width:2px;fill:#f0e8d1;opacity:.75}
.map .road-label{font:700 6.5px var(--mono);letter-spacing:.08em;paint-order:stroke;stroke:#16211a;stroke-width:2px;fill:#efc68a}
.map .water-label{font:italic 8px Georgia,serif;paint-order:stroke;stroke:#173a3b;stroke-width:2.3px;fill:#e4f5ee}
.map .mk{cursor:pointer;filter:drop-shadow(0 2px 3px #000b)}
.map .mk:hover{filter:drop-shadow(0 0 6px #f2c878)}
.map .map-marker-icon{font-size:11px}
.map-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;color:#aeb9a6;font-size:11px}
.map-foot .scale{font:700 9px var(--mono);letter-spacing:.08em;color:#dab275}
.legend{margin-top:12px;gap:8px 12px}
.legend span{font-size:11px;color:#d7ded0}
.lg{border-color:#f0bd69;background:#152219}.lg.bid{background:#edb759}.lg.offer{border-color:#92d4a6}
.rb{background:#111914}.rb-top{background:#202b22;border-bottom-color:#c18b43}.rb-body{line-height:1.55}
.rb-hero .big,.rb-chap h2,.rb-chap h4{color:#eeb761}
.rb-chap p,.rb-chap li{color:#e2e3d8}
.tip{background:#3b321b;border-color:#9f7837}
.ui-icon{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.17em;flex:none;overflow:visible}
nav#nav button .i{display:flex;align-items:center;justify-content:center;min-height:22px}
nav#nav button .ui-icon{width:21px;height:21px}
.si .ui-icon{width:clamp(16px,4.5vw,22px);height:clamp(16px,4.5vw,22px);color:#f1c783}
.bookbtn .ui-icon{width:18px;height:18px}
.rb-toc .ui-icon{width:19px;height:19px}
.rb-hero .ui-icon{width:28px;height:28px}
.truck .ui-icon{width:17px;height:17px;color:#f1c783;filter:drop-shadow(0 1px 3px #000)}
.die-face{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#f5cc7b,#bd833a);border:2px solid #fee2a1;box-shadow:0 3px 0 #634019,0 5px 12px #0009;color:#271b0c;font:900 24px var(--mono)}
.map .map-marker-use{filter:drop-shadow(0 1px 1px #0009)}
@media (min-width:700px){
  .hero{margin:-16px -14px 22px;min-height:370px;border-radius:0 0 16px 16px}
  .map-head{margin-top:7px}
  .mapwrap{max-width:620px;margin:0 auto}
}
@media (max-width:390px){
  #hdr{gap:7px;padding:8px 9px}.stripe{width:27px;height:27px}.hr{gap:4px}.hr .money{font-size:12px}.bookbtn{padding:3px 5px}
  main{padding:13px 10px}.hero{margin:-13px -10px 15px}.card{padding:13px}
  .stat{padding:7px 5px}.stat .v{font-size:11px}
  .board{gap:2px;padding:4px}.sn{font-size:clamp(6px,1.8vw,8px)}
}
@media (prefers-reduced-motion:reduce){.tok.me,.rollbtn{animation:none}*{scroll-behavior:auto!important}}
