* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; background:#14170f; overflow:hidden; font-family:'Segoe UI',system-ui,-apple-system,sans-serif; color:#e8e4d0; }
#cv { position:fixed; inset:0; width:100%; height:100%; display:block; cursor:crosshair; }
.overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse at center, rgba(20,26,14,.75), rgba(8,10,5,.92)); z-index:10; backdrop-filter:blur(4px); }
.card { background:linear-gradient(165deg, rgba(44,54,34,.94), rgba(24,30,18,.94)); border:1px solid rgba(212,175,55,.4); padding:26px 28px; border-radius:18px; width:min(92vw,430px); color:#e8e4d0; box-shadow:0 18px 60px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); }
.card.wide { width:min(94vw,760px); max-height:90vh; overflow:auto; }
.card.small { width:min(92vw,360px); text-align:center; }
h1 { font-size:27px; letter-spacing:3px; margin-bottom:4px; color:#f4d03f; text-align:center; text-shadow:0 0 18px rgba(244,208,63,.45); }
h2 { font-size:18px; margin-bottom:10px; color:#f4d03f; }
.sub { color:#a8b490; font-size:13px; margin-bottom:16px; text-align:center; }
.err { background:#5a2620; color:#ffb0a0; padding:8px 10px; border-radius:8px; font-size:13px; margin-bottom:10px; }
.row { margin-bottom:11px; }
.row label { display:block; font-size:11px; color:#a8b490; margin-bottom:4px; letter-spacing:1.5px; text-transform:uppercase; }
.row input, .row select { width:100%; padding:10px 12px; background:rgba(10,13,7,.8); color:#e8e4d0; border:1px solid rgba(212,175,55,.3); border-radius:9px; font-family:inherit; font-size:15px; outline:none; transition:border .15s; }
.row input:focus, .row select:focus { border-color:#d4af37; }
.btns { display:flex; gap:9px; margin-top:13px; }
.btns button { flex:1; padding:12px; background:linear-gradient(180deg,#e8c34a,#c8a02a); color:#1a1a10; font-weight:700; border:none; border-radius:9px; font-family:inherit; font-size:15px; cursor:pointer; letter-spacing:1px; box-shadow:0 3px 10px rgba(0,0,0,.4); transition:transform .1s, box-shadow .1s; }
.btns button:hover { transform:translateY(-1px); box-shadow:0 5px 14px rgba(0,0,0,.5); }
.btns .secondary { background:linear-gradient(180deg,#4a5c38,#3a4a2c); color:#e4e0cc; }
.btns .secondary:hover { background:#4a5c38; }
.btns .ghost { background:transparent; color:#b4c09c; border:1px solid rgba(212,175,55,.35); box-shadow:none; }
.btns .ghost:hover { background:rgba(212,175,55,.1); }
.hint { color:#8a9a76; font-size:12px; margin-top:15px; line-height:1.65; }
.hint a { color:#f4d03f; }
#stats table { width:100%; border-collapse:collapse; font-size:13px; margin-top:10px; }
#stats th { color:#a8b490; text-align:left; padding:6px; border-bottom:1px solid rgba(212,175,55,.3); }
#stats td { padding:6px; border-bottom:1px solid rgba(255,255,255,.06); }
#hud { position:fixed; inset:0; pointer-events:none; z-index:5; }
#hudTop { display:flex; justify-content:space-between; padding:12px 14px; }
#feed { max-width:46vw; font-size:13px; color:#e8e4d0; text-shadow:0 1px 3px #000; line-height:1.7; }
#board { background:rgba(8,11,6,.6); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:9px 12px; font-size:12px; color:#e4e0cc; min-width:195px; box-shadow:0 6px 18px rgba(0,0,0,.35); }
#board div { display:flex; justify-content:space-between; gap:10px; line-height:1.75; }
#hudBottom { position:absolute; bottom:12px; left:14px; right:14px; display:flex; align-items:flex-end; gap:14px; }
#minimapWrap { background:rgba(8,11,6,.6); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:6px; box-shadow:0 6px 18px rgba(0,0,0,.35); }
#status { flex:1; max-width:430px; background:rgba(8,11,6,.6); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:11px 15px; color:#e4e0cc; font-size:14px; box-shadow:0 6px 18px rgba(0,0,0,.35); }
#rankLine { margin-bottom:6px; letter-spacing:1px; }
#wepLine { margin-top:6px; font-size:13px; min-height:17px; }
#wepLine .dim { color:#7a876a; font-size:12px; }
.trow { display:flex; justify-content:space-between; gap:8px; border-bottom:1px solid rgba(255,255,255,.12); padding-bottom:4px; margin-bottom:5px; font-weight:700; }
#fuelBar { height:14px; background:rgba(10,13,7,.9); border:1px solid rgba(212,175,55,.3); border-radius:7px; overflow:hidden; }
#fuelFill { height:100%; width:100%; background:linear-gradient(90deg,#c8a02a,#8fd45f); box-shadow:0 0 10px rgba(143,212,95,.5); transition:width .2s; }
#ptsLine { margin-top:6px; font-size:12px; color:#a8b490; }
#chatWrap { position:absolute; bottom:112px; left:50%; transform:translateX(-50%); width:min(90vw,480px); pointer-events:auto; }
#chatIn { width:100%; padding:10px 13px; background:rgba(8,11,6,.85); color:#e8e4d0; border:1px solid rgba(212,175,55,.3); border-radius:9px; font-family:inherit; font-size:14px; outline:none; }
#bigcv { background:#0e100a; border:1px solid rgba(212,175,55,.35); border-radius:10px; width:min(92vw,560px); height:min(92vw,560px); cursor:crosshair; display:block; margin:8px auto; }

#touchBtns { position: fixed; right: 18px; bottom: 108px; z-index: 30; display: none; flex-direction: column; gap: 12px; }
#touchBtns button { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; background: rgba(20,26,14,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); color: #fff; }
#touchBtns button:active { background: rgba(255,255,255,.25); }
body.touch { touch-action: none; overscroll-behavior: none; }
