*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 42% 30%,#284038,#101d20 68%);color:#fff6dc;font:16px system-ui,sans-serif}main{max-width:1360px;margin:auto;padding:0 12px 7px}header,footer{display:flex;align-items:center;justify-content:space-between;gap:12px}header{height:50px}.brand{font:700 21px serif;letter-spacing:.16em}.brand span,#location b,#objective,#hit b{color:#ffdc84}button{background:#223334;color:#fff4d6;border:1px solid #9f946a;border-radius:7px;padding:8px 14px;font:inherit;touch-action:manipulation;cursor:pointer}button:active{background:#5a6250}#field{position:relative;border:2px solid #a59568;outline:1px solid #423d30;overflow:hidden;border-radius:12px;background:#24413a;height:clamp(290px,calc(100dvh - 161px),780px);box-shadow:0 8px 40px #0005}#scene{display:block;width:100%;height:100%;touch-action:manipulation}#hud,#location,#mapbox,#report,#objective{position:absolute;pointer-events:none}#hud{top:14px;left:14px;display:flex;align-items:center;filter:drop-shadow(0 2px 3px #0009)}#hud img{width:68px;height:68px;background:radial-gradient(#ddd2b2,#687773);border-radius:50%;border:3px double #e9cd81;z-index:2}#hud>div{background:linear-gradient(100deg,#16262bea,#1e3232ca);margin-left:-12px;padding:4px 12px 7px 18px;border:1px solid #d2b677;border-radius:0 12px 10px 0}#hud b{font: bold 15px serif;letter-spacing:.12em}.health{position:relative;overflow:hidden;margin-top:4px;width:clamp(100px,15vw,195px);height:17px;line-height:15px;border:1px solid #b3a877;background:#482d37;border-radius:3px}.health i{display:block;background:linear-gradient(#9fe795,#43956b);height:100%;transition:width .2s}.health strong{position:absolute;inset:0;text-align:center;font:bold 12px system-ui;color:white;text-shadow:1px 1px 2px black}#location{right:14px;top:12px;padding:5px 12px;background:#182c29de;border:1px solid #cfb87d;border-radius:20px;font:bold 15px serif}#location b{margin-right:8px}#mapbox{right:14px;top:52px;background:#152525ae;border:1px solid #d9cba270;border-radius:8px;padding:5px}#mini{width:104px;display:block}#objective{left:14px;bottom:60px;font-weight:bold;text-shadow:0 2px 3px #121f19;background:#182923c9;border-radius:14px;padding:4px 12px;font-size:14px}#report{left:14px;bottom:12px;max-width:calc(100% - 28px);background:linear-gradient(90deg,#152226f2,#182e29da);border:1px solid #ae9b71;border-left:4px solid #e5bd6c;padding:8px 14px;border-radius:5px}footer{height:96px;justify-content:center}#pad{display:grid;grid-template-columns:repeat(3,45px);gap:2px}#pad button{height:28px;padding:0;font-size:18px}#actions{display:flex;gap:7px}#hit{background:#7c542e;border-color:#e8bf71}#turnbox{text-align:center;min-width:70px}#turnbox b{display:block;font:700 24px Georgia}small{font-size:12px;color:#d0d6c2}dialog{padding:24px;border:1px solid #d0b77d;background:#223836;color:#fff5d9;border-radius:12px;max-width:min(440px,90vw);line-height:1.75}dialog::backdrop{background:#0a151bd6}dialog h2{font-family:serif;color:#ffe099}@media(max-width:650px){main{padding:0 4px 5px}header{height:42px}.brand{font-size:17px}header button{padding:4px 8px;font-size:14px}#field{height:calc(100dvh - 178px);min-height:300px}#hud{left:7px;top:8px}#hud img{width:49px;height:49px}#hud b{font-size:13px}#hud>div{padding-right:5px}.health{width:88px}#location{right:6px;top:8px;font-size:13px}#mapbox{right:6px;top:40px}#mini{width:76px}#report{font-size:14px;bottom:8px;left:7px}#objective{bottom:64px;left:7px}footer{height:124px;gap:10px}#pad{grid-template-columns:repeat(3,42px)}#pad button{height:37px}#actions{flex-direction:column}#actions button{font-size:14px}#turnbox{min-width:50px}}@media(max-height:520px) and (orientation:landscape){main{padding:0}header{height:28px}.brand{font-size:16px}header button{font-size:12px;padding:2px 8px}#field{height:calc(100dvh - 30px);min-height:220px}footer{position:absolute;right:6px;bottom:5px;height:auto;gap:6px}#turnbox{display:none}#pad{grid-template-columns:repeat(3,32px)}#pad button{height:26px}#actions{display:grid}#actions button{padding:4px}#report{max-width:55%}#mini{width:66px}}
#download{color:#ffdfa6;text-decoration:none;border:1px solid #948a65;border-radius:7px;padding:6px 10px;font-size:14px}#stats{display:block;font-size:11px;color:#efddac}#contents{display:grid;gap:6px;margin-bottom:12px}#contents button{text-align:left;font-size:14px}button:disabled{opacity:.42}nav{display:flex;align-items:center;gap:6px}#report{max-height:3.6em;overflow:auto;font-size:14px}@media(max-width:650px){#actions{display:grid;grid-template-columns:auto auto;gap:4px}#hit{grid-column:span 2}#actions button{padding:7px}#turnbox{min-width:28px}.brand{letter-spacing:.04em}#download{padding:4px 7px}}
