:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #312b35; background: #f7f2f4; }
* { box-sizing: border-box; } body { margin: 0; padding: 24px 14px 48px; } .shell { width: min(980px, 100%); margin: auto; } header { padding: 20px 4px 16px; }
.eyebrow { margin: 0 0 8px; color: #aa607a; font-size: 12px; letter-spacing: .14em; font-weight: 700; } h1 { margin: 0; font-size: clamp(34px, 8vw, 64px); line-height: 1; } .subtitle { margin: 14px 0 0; color: #756b77; }
.card { margin-top: 16px; padding: 18px; background: #fff; border: 1px solid #eadfe4; border-radius: 22px; box-shadow: 0 10px 30px #4f36400d; } .mode-tabs { display: flex; gap: 8px; overflow-x: auto; }
button, input { font: inherit; } button { border: 0; border-radius: 12px; padding: 11px 15px; cursor: pointer; font-weight: 700; } .tab { background: #f3edf0; color: #7d707a; white-space: nowrap; } .tab.active, .primary { background: #4f454b; color: white; } .secondary { background: #f4edf0; color: #4f454b; } .text-button { background: transparent; color: #aa607a; padding: 4px; }
.mode-panel { display: none; padding-top: 16px; gap: 12px; align-items: end; } .mode-panel.active { display: flex; } label { display: grid; gap: 7px; flex: 1; font-size: 13px; color: #756b77; } input { width: 100%; border: 1px solid #dfd1d8; border-radius: 11px; padding: 12px 13px; outline: none; background: #fff; } input:focus { border-color: #aa607a; box-shadow: 0 0 0 3px #aa607a1c; } .hint { margin: 0; color: #756b77; font-size: 14px; flex: 1; } code { color: #aa607a; }
.canvas-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; } .canvas-head span { color: #9c8f98; font-size: 13px; } canvas { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; border: 1px solid #eadfe4; border-radius: 15px; background: #fffafc; touch-action: none; } .canvas-actions, .guess-row { display: flex; gap: 9px; margin-top: 12px; } .guess-row input { flex: 1; }
.svg-preview { min-height: 220px; display: grid; place-items: center; overflow: hidden; border-radius: 15px; background: #fffafc; border: 1px solid #eadfe4; color: #a5959f; } .svg-preview svg { display: block; width: 100%; height: auto; } details { margin-top: 14px; color: #756b77; font-size: 13px; } pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #faf7f8; padding: 12px; border-radius: 10px; max-height: 300px; overflow: auto; }
.guess-summary { margin-top: 14px; color: #756b77; font-size: 14px; font-weight: 700; } .guess-summary.solved { color: #23835b; } .guess-summary.retry { color: #b45d62; } .guess-records { display: grid; gap: 8px; margin-top: 10px; } .guess-record { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid; font-size: 14px; } .guess-record.wrong { color: #9e4f55; background: #fff5f3; border-color: #f0d2d0; } .guess-record.correct { color: #207450; background: #effaf4; border-color: #ccebd8; } .guess-attempt { font-weight: 800; } .guess-content { overflow-wrap: anywhere; } .guess-result { white-space: nowrap; font-weight: 700; } button:disabled, input:disabled { cursor: not-allowed; opacity: .58; }
@media (max-width: 600px) { body { padding: 10px 10px 30px; } .card { padding: 14px; border-radius: 17px; } .mode-panel.active { display: grid; align-items: stretch; } button { padding: 12px 13px; } .canvas-actions button { flex: 1; } }
