:root { --bg: #f1ece4; --ink: #2b2622; --panel: rgba(250, 247, 242, 0.96); --line: rgba(43, 38, 34, 0.12); --accent: #c46a3d; }
@media (prefers-color-scheme: dark) { :root { --bg: #17181c; --ink: #ece7df; --panel: rgba(30, 31, 36, 0.96); --line: rgba(236, 231, 223, 0.14); } }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font: 16px/1.35 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
#app, .stage { position: fixed; inset: 0; }
.stage canvas { display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.fatal { position: fixed; inset: auto 16px 16px 16px; color: #fff; background: #a33; padding: 12px; border-radius: 8px; white-space: pre-wrap; }
button { font: inherit; color: inherit; cursor: pointer; }
.corners { position: fixed; inset: 0; pointer-events: none; transition: opacity .15s; }
.corners.faded { opacity: 0; transition: opacity .15s; } .corners.hidden { display: none; }
.corners > * { pointer-events: auto; position: absolute; border: 0; background: var(--panel); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.pill { top: max(12px, env(safe-area-inset-top)); left: 12px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; font-weight: 600; }
.pill .swatch { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; } .pill .gear { opacity: .6; }
.round { bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; max-width: 520px; margin: 0 auto; max-height: 78vh; overflow: auto; background: var(--panel);
  border-radius: 28px; box-shadow: 0 8px 40px rgba(0,0,0,.3); backdrop-filter: blur(20px); }
.panel { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.head { display: flex; justify-content: space-between; align-items: center; }
.title { font-weight: 700; font-size: 18px; } .title.big { font-size: 26px; text-align: center; } .sub { text-align: center; font-weight: 600; }
.text { background: none; border: 0; color: var(--accent); font-weight: 600; }
.segmented { display: flex; background: var(--line); border-radius: 10px; padding: 2px; }
.segmented button { flex: 1; border: 0; background: none; padding: 6px 10px; border-radius: 8px; }
.segmented button.on { background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
.segmented.small button { padding: 4px 8px; font-size: 14px; }
.coats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.coat { flex: 0 0 auto; position: relative; width: 58px; height: 58px; border-radius: 50%; padding: 0; border: 3px solid transparent; background: none; }
.coat img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.coat.selected { border-color: var(--accent); } .coat.locked img { filter: saturate(.85); }
.lock { position: absolute; right: -2px; top: -2px; font-size: 13px; background: var(--panel); border-radius: 50%; padding: 1px 3px; }
.coat-name { text-align: center; font-weight: 600; opacity: .8; }
.stepper { display: grid; grid-template-columns: 52px 1fr 48px; align-items: center; gap: 10px; } .stepper input { width: 100%; accent-color: var(--accent); }
.value { text-align: right; font-variant-numeric: tabular-nums; opacity: .7; }
.row-title { font-weight: 600; } .dots { display: flex; gap: 10px; flex-wrap: wrap; }
.dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.dot.selected { border-color: var(--accent); } .dot.locked::after { content: '🔒'; position: absolute; right: -8px; top: -8px; font-size: 11px; }
.primary { border: 0; border-radius: 16px; padding: 14px; background: var(--accent); color: #fff; font-weight: 700; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.3); }
.group .badge { background: var(--accent); color: #fff; }
.group { background: var(--bg); border-radius: 14px; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 0; background: none; width: 100%; text-align: left; gap: 12px; }
.row + .row { border-top: 1px solid var(--line); } .row.link { color: var(--accent); }
.toggle { display: flex; justify-content: space-between; padding: 11px 14px; } .toggle + .toggle { border-top: 1px solid var(--line); }
.toggle input { accent-color: var(--accent); width: 20px; height: 20px; }
.muted { opacity: .6; } .small { font-size: 13px; } .center { text-align: center; }
.links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; } .links a, .checkout a { color: var(--accent); }
.group.links { padding: 11px 14px; gap: 18px; background: none; }
.close { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--line); }
.mini-coats { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; } .mini-coats img { width: 24px; height: 24px; border-radius: 50%; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 16px; padding: 14px 16px; background: var(--bg); font-weight: 600; }
.plan.primary { background: var(--accent); color: #fff; } .price { text-align: right; } .price small { display: block; font-weight: 400; opacity: .85; }
.checkout { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.checkout input[type=email], .checkout input[type=text] { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.notice { font-size: 14px; color: var(--accent); min-height: 1em; }
.version { text-align: center; }
