:root{--bg: #17120e;--surface: #201914;--surface-hover: #2a2119;--text: #f4e9d8;--text-muted: #b3a48f;--accent: #f05a2e;--accent-pressed: #d1491f;--danger: #e0553e;--border: #352a1f;--gold: #e3b04b;--font-display: "Songti SC", "STSong", "SimSun", serif;--font-body: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--font-body);line-height:1.6;-webkit-font-smoothing:antialiased}#root{min-height:100vh}.app{max-width:480px;margin:0 auto;padding:28px 20px 48px}.app-header{margin-bottom:28px}.app-header h1{margin:0;font-family:var(--font-display);font-size:2.4rem;font-weight:700;letter-spacing:.08em;line-height:1.15}.app-header .subtitle{margin:6px 0 0;color:var(--text-muted);font-size:.95rem}.add-form{margin-bottom:24px}.add-row{display:flex;gap:8px}.add-row input{flex:1;min-width:0;height:48px;padding:0 14px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;font-size:1rem;font-family:inherit}.add-row input::placeholder{color:var(--text-muted)}.add-row input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}.add-row button{height:48px;padding:0 20px;background:var(--accent);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap}.add-row button:active{background:var(--accent-pressed)}.form-error{margin:8px 0 0;color:var(--danger);font-size:.9rem}.empty-state{color:var(--text-muted);text-align:center;padding:48px 16px;border:1px dashed var(--border);border-radius:16px}.ranking-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.shop-item{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;min-height:60px}.shop-item.dragging{opacity:.6;box-shadow:0 8px 24px #0006}.rank{flex:0 0 auto;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:1rem;font-weight:700;color:var(--text-muted);background:var(--surface-hover)}.shop-item:first-child .rank{color:#1a1209;background:var(--gold)}.shop-name{flex:1;min-width:0;font-size:1.05rem;overflow-wrap:anywhere}.item-actions{display:flex;gap:6px}.icon-button{height:36px;padding:0 12px;background:transparent;color:var(--text-muted);border:1px solid var(--border);border-radius:10px;font-size:.9rem;font-family:inherit;cursor:pointer}.icon-button:active{background:var(--surface-hover);color:var(--text)}.drag-handle{flex:0 0 auto;width:40px;height:40px;display:grid;place-items:center;background:transparent;color:var(--text-muted);border:none;border-radius:10px;font-size:1.3rem;cursor:grab;touch-action:none}.drag-handle:active{cursor:grabbing;color:var(--text)}.edit-form{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.edit-form input{width:100%;height:44px;padding:0 12px;background:var(--bg);color:var(--text);border:1px solid var(--accent);border-radius:10px;font-size:1rem;font-family:inherit}.edit-actions{display:flex;gap:8px}.edit-actions button{height:36px;padding:0 16px;border-radius:10px;font-size:.9rem;font-family:inherit;cursor:pointer}.edit-actions button[type=submit]{background:var(--accent);color:#fff;border:none;font-weight:600}.edit-actions button[type=button]{background:transparent;color:var(--text-muted);border:1px solid var(--border)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (max-width: 360px){.app{padding:20px 14px 40px}.app-header h1{font-size:2rem}.icon-button{padding:0 10px}}
