:root { --bg:#eef1f6; --card:#fff; --line:#d9dee8; --text:#1f2937; --muted:#6b7280; --blue:#3b82f6; --red:#dc2626; --brand:#2563eb; --brand-d:#1d4ed8; }
* { box-sizing: border-box; }
body { margin:0; padding:20px 16px 40px; background:var(--bg); color:var(--text); font:14px/1.45 system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
.wrap { max-width:620px; margin:0 auto; display:grid; gap:12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; }

/* top bar */
.topbar { display:flex; align-items:center; gap:10px; }
.back { font-weight:600; color:var(--brand); padding:6px 10px; border-radius:8px; background:#fff; border:1px solid var(--line); }
.back:hover { background:#f3f6fb; }
.topbar h2 { margin:0; font-size:17px; }

/* home */
.hero { text-align:center; padding:34px 16px 18px; }
.hero h1 { margin:0; font-size:30px; letter-spacing:-.5px; }
.hero p { margin:6px 0 0; color:var(--muted); }
.menu { display:grid; gap:12px; }
.btn { display:flex; align-items:center; gap:14px; padding:16px 18px; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:0 1px 2px rgba(0,0,0,.04); transition:transform .12s, box-shadow .12s, border-color .12s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(37,99,235,.12); border-color:var(--brand); }
.btn .ico { font-size:26px; width:44px; height:44px; display:grid; place-items:center; border-radius:12px; background:#eaf1ff; }
.btn b { display:block; font-size:16px; }
.btn small { color:var(--muted); }
.btn .go { margin-left:auto; color:var(--muted); font-size:18px; }
.btn.soon { opacity:.55; pointer-events:none; }
.tag { font-size:11px; font-weight:700; background:#e5e7eb; color:var(--muted); border-radius:999px; padding:1px 8px; margin-left:6px; }
.foot { text-align:center; color:var(--muted); font-size:12px; margin-top:8px; }

/* picker */
.picker { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px,1fr)); gap:10px; }
.pick { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 6px; background:var(--card); border:1px solid var(--line); border-radius:12px; font:inherit; cursor:pointer; transition:transform .12s, border-color .12s; }
.pick:hover { transform:translateY(-2px); border-color:var(--brand); }
.pick img { width:56px; height:56px; object-fit:contain; }
.pick span { font-weight:600; font-size:13px; }

/* doodle page */
.head { display:flex; align-items:center; gap:12px; }
.sprite { width:56px; height:56px; object-fit:contain; }
h1.name { font-size:18px; margin:0 0 4px; }
.badge { display:inline-flex; align-items:center; gap:3px; color:#fff; font-size:11px; font-weight:600; padding:1px 7px; border-radius:4px; margin-right:4px; }
.badge img { width:14px; height:14px; object-fit:contain; }
.stats-title, .section { font-weight:700; color:var(--muted); margin:0 0 6px; }
.section { border-bottom:1px solid var(--line); padding-bottom:2px; margin-top:12px; }
.stats { display:grid; grid-template-columns:1fr 1fr; gap:4px 28px; }
.stat { display:grid; grid-template-columns:62px 28px 1fr; align-items:center; gap:6px; }
.bar { height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; }
.bar i { display:block; height:100%; background:var(--blue); }
.tabs { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; }
.tab { font:inherit; font-weight:700; padding:9px; border:1px solid var(--line); border-bottom-width:2px; border-radius:8px 8px 0 0; background:#e2e8f0; color:var(--muted); cursor:pointer; }
.tab.active { background:#fff; color:var(--text); border-bottom-color:var(--accent); }
.info { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.moves { display:grid; grid-template-columns:1fr 1fr; gap:6px 10px; align-items:start; }
.slot { display:flex; flex-wrap:wrap; gap:4px; padding:6px; background:#f3f5f9; border-radius:6px; }
.move { display:inline-flex; align-items:center; gap:6px; font-weight:600; padding:3px 9px 3px 4px; border-radius:10px; background:#fff; border:1px solid var(--tc); }
.move .mname { display:block; }
.move .meta { display:block; font-size:11px; font-weight:400; color:var(--muted); }
.move img { width:22px; height:22px; object-fit:contain; }
.counter { color:var(--red); margin-top:8px; }
@media (max-width:480px){ .stats,.moves{grid-template-columns:1fr;} }
#app { display:grid; gap:12px; }

.forms .tab { border-radius:8px; border-bottom-width:1px; }
.forms .tab.active { border-color:var(--brand); }
.items { display:grid; gap:6px; margin-top:8px; }
.items .lbl { display:inline-block; min-width:44px; color:var(--muted); font-weight:600; }
.item { display:inline-flex; align-items:center; gap:4px; font-weight:600; background:#f3f5f9; border:1px solid var(--line); border-radius:999px; padding:2px 9px 2px 4px; margin:2px 4px 2px 0; }
.item img { width:20px; height:20px; object-fit:contain; }

.unv { color:#b45309; font-style:normal; font-weight:600; }

.or { color:var(--muted); font-size:12px; margin:0 2px; }
.src { margin-top:8px; font-size:12px; color:var(--muted); border-left:3px solid var(--brand); padding-left:8px; }
