:root { --bg:#0b0f14; --card:#121923; --text:#e8eef7; --muted:#9fb0c7; --line:#243041; --btn:#2d6cdf; }
* { box-sizing: border-box; }
body { margin:0; font-family:system-ui,Segoe UI,Arial; background:var(--bg); color:var(--text); }
.wrap { max-width:1100px; margin:0 auto; padding:20px; }

.top h1 { margin:0 0 6px 0; font-size:20px; }
.sub { color:var(--muted); font-size:13px; }

.grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:16px; }
@media (max-width: 980px) { .grid { grid-template-columns:1fr; } }

.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; }
.card-h { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.card-t { font-weight:650; font-size:14px; }

.tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tool { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; }
.tool input { width:130px; }

.btn { background:var(--btn); border:none; color:white; padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:600; }
.btn.secondary { background:#233044; color:var(--text); border:1px solid var(--line); }
.btn:active { transform: translateY(1px); }

.status { font-size:12px; color:var(--muted); }

#pad { width:100%; max-width:560px; background:white; border-radius:12px; border:1px solid var(--line); touch-action:none; }

.hint { margin-top:10px; color:var(--muted); font-size:12px; line-height:1.35; }
.hint code { color:#c7d7ff; }

.json { background:#0a0e14; border:1px solid var(--line); border-radius:12px; padding:12px; min-height:160px; overflow:auto; color:#b7ffb7; }

.panel { width:360px; max-width:100%; height:640px; border-radius:14px; border:1px solid var(--line); position:relative; overflow:hidden;
         background: #1a2333; background-size:cover; background-position:center; }
.badge { position:absolute; left:10px; top:10px; z-index:5; background:rgba(0,0,0,.55); color:white; padding:6px 10px; border-radius:10px; font-size:12px; }
.char { position:absolute; left:0; bottom:-8px; width:100%; height:auto; z-index:2; }
.prop { position:absolute; right:12px; bottom:150px; width:140px; height:auto; z-index:3; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); }
