:root { --bg: #0f2a3d; --card: #173f5c; --card2: #1f5072; --cream: #fbf3e0; --gold: #e7b13d; --red: #d8453a; --green: #2e9e4f; --ink: #10233f; --muted: #a9b9c9; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { min-height: 100vh; background: var(--bg); color: var(--cream); font-family: system-ui, 'Segoe UI', Roboto, sans-serif, 'Noto Color Emoji'; font-size: 16px; padding: 12px 16px 90px; max-width: 560px; margin: 0 auto; }
h1 { font-size: 34px; font-weight: 900; letter-spacing: 2px; text-align: center; margin-top: 10px; }
h1 + .sub { text-align: center; color: var(--gold); font-weight: 700; font-style: italic; margin-bottom: 18px; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 18px 0 8px; }
.box { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 6px; }
input[type=text], input[type=number], select { width: 100%; font-size: 20px; padding: 12px; border-radius: 12px; border: 2px solid #2b6087; background: #0c2233; color: var(--cream); }
input.code { text-transform: uppercase; letter-spacing: 8px; text-align: center; font-weight: 800; font-size: 28px; }
button { font: inherit; border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 750; font-size: 18px; cursor: pointer; background: var(--card2); color: var(--cream); width: 100%; }
button.pri { background: var(--gold); color: var(--ink); }
button.ok { background: var(--green); }
button.bad { background: var(--red); }
button.big { font-size: 24px; padding: 20px; }
button:disabled { opacity: .4; }
button.sm { width: auto; padding: 8px 12px; font-size: 15px; border-radius: 10px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.tokens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tokens button { font-size: 30px; padding: 10px 0; border: 3px solid transparent; }
.tokens button.sel { border-color: var(--gold); background: #2a6690; }
.tokens button:disabled { opacity: .25; }
.err { color: #ff9a8f; min-height: 1.2em; margin: 8px 0; font-weight: 600; text-align: center; }
.me { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 14px; border-left: 8px solid var(--c); position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.me .tk { font-size: 40px; } .me .nm { font-weight: 800; font-size: 20px; } .me .st { font-size: 13px; color: var(--muted); }
.me .cash { margin-left: auto; font-size: 28px; font-weight: 900; color: var(--gold); }
.status { text-align: center; font-size: 18px; font-weight: 650; margin: 14px 0; line-height: 1.35; }
.status small { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #0a1e2c; border-top: 1px solid #23506f; z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.tabs button { background: none; border-radius: 0; font-size: 13px; padding: 10px 4px 12px; color: var(--muted); }
.tabs button b { display: block; font-size: 22px; }
.tabs button.on { color: var(--gold); }
.badge { background: var(--red); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 12px; margin-left: 2px; }
.prop { background: var(--card); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.prop .hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-left: 10px solid var(--c, #555); }
.prop .hd .n { font-weight: 750; flex: 1; } .prop .hd .h { font-size: 14px; }
.prop .bd { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); align-items: center; }
.prop.mort .hd .n { text-decoration: line-through; opacity: .6; }
.deed { background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; }
.deed .hd { padding: 12px; font-weight: 850; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.deed table { width: 100%; border-collapse: collapse; font-size: 15px; } .deed td { padding: 4px 14px; } .deed td + td { text-align: right; font-weight: 700; }
.trade { background: var(--card2); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.trade ul { margin: 6px 0 10px 18px; font-size: 15px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #23506f; font-size: 15px; }
.pick input { width: 22px; height: 22px; }
.chip { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
.plist div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #23506f; align-items: center; gap: 8px; }
.log { font-size: 14px; color: var(--muted); line-height: 1.4; } .log div { padding: 3px 0; }
.bidval { font-size: 40px; font-weight: 900; text-align: center; color: var(--gold); }
.hidden { display: none !important; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 80px; background: var(--red); color: #fff; padding: 12px 14px; border-radius: 12px; font-weight: 650; z-index: 30; text-align: center; }
.opt { display: flex; gap: 6px; flex-wrap: wrap; } .opt button { width: auto; flex: 1; padding: 10px 6px; font-size: 15px; }
.opt button.sel { background: var(--gold); color: var(--ink); }
.hint { font-size: 14px; color: var(--muted); text-align: center; margin-top: 4px; }
