:root { --accent: #6d28d9; --bg: #0b0b0f; --card: #17171f; --text: #f5f5f7; --muted: #a1a1aa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Hiragino Sans", "Noto Sans JP", sans-serif; min-height: 100dvh; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #26262e; }
.logo { font-weight: 700; }
.stat { color: var(--muted); font-variant-numeric: tabular-nums; }
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.screen { text-align: center; padding: 24px 0; }
.big { font-size: 64px; }
h1 { font-size: 40px; margin: 8px 0; } h2 { font-size: 26px; } h3 { font-size: 18px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 600; cursor: pointer; margin: 8px; }
.btn.ghost { background: transparent; border: 1px solid #3f3f46; }
.answers { display: grid; gap: 10px; margin-top: 18px; }
.answers button { background: var(--card); color: var(--text); border: 1px solid #2a2a33; border-radius: 14px; padding: 16px; font: inherit; text-align: start; cursor: pointer; }
.answers button.ok { background: #166534; border-color: #22c55e; } .answers button.no { background: #7f1d1d; border-color: #ef4444; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cards button { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--accent); font-size: clamp(28px, 9vw, 44px); cursor: pointer; transition: transform .2s; }
.cards button.open, .cards button.done { background: var(--card); transform: rotateY(180deg); }
.cards button.done { opacity: .55; }
.cards button span { display: inline-block; transform: rotateY(180deg); }
.pad { width: 100%; min-height: 52vh; border: 0; border-radius: 20px; font: inherit; font-size: 26px; font-weight: 700; color: #fff; cursor: pointer; background: #7f1d1d; }
.pad.go { background: #15803d; }
canvas { width: 100%; max-width: 480px; aspect-ratio: 1; background: var(--card); border-radius: 14px; touch-action: none; display: block; margin: 0 auto; }
.arrows { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; justify-content: center; margin-top: 14px; }
.arrows button { height: 56px; border: 0; border-radius: 12px; background: var(--card); color: var(--text); font-size: 22px; }
.save { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.save input { padding: 12px 16px; border-radius: 999px; border: 1px solid #3f3f46; background: var(--card); color: var(--text); font: inherit; }
.board { margin-top: 24px; background: var(--card); border-radius: 18px; padding: 18px 22px; }
.board ol { margin: 0; padding-inline-start: 22px; } .board li { padding: 4px 0; display: list-item; }
.board li b { float: inline-end; font-variant-numeric: tabular-nums; }
