:root{color-scheme:light;color:#2a2328;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif}*{box-sizing:border-box}body{margin:0;background:#fff}main{max-width:450px;margin:auto;padding:6px 16px calc(16px + env(safe-area-inset-bottom))}[hidden]{display:none!important}button{font:inherit;font-size:14px;color:inherit;border:0;border-radius:8px;background:#f3f4f6;min-height:44px;padding:10px 14px;touch-action:manipulation}button:focus-visible{outline:2px solid #bd416e;outline-offset:2px}.partner{display:flex;gap:8px;align-items:center}.partner img{object-fit:contain;border-radius:12px}.partner strong{font-size:12px}.partner p{font-size:13px;margin:4px 0;line-height:1.5}.hud{display:flex;justify-content:space-between;font-size:12px;color:#6e626a;margin:8px 0}h2{font-size:20px}p{font-size:14px;line-height:1.6}.small{font-size:12px;color:#6e626a}.instruction{margin:8px 0}.steps{display:flex;gap:8px;align-items:start}.step{flex:1;min-width:0;margin:0}.step figcaption{font-size:11px;min-height:32px;line-height:1.4}.paper{display:grid;grid-template-columns:repeat(4,1fr);aspect-ratio:1;width:100%;border:1px solid #b5a9b0;background:#f3f4f6}.cell{display:grid;place-items:center;border-right:1px solid #d4cbd0;border-bottom:1px solid #d4cbd0;aspect-ratio:1;font-size:17px;line-height:1;background:#fff;color:#a63762}.cell.empty{background:repeating-linear-gradient(135deg,#eef0f3 0 4px,#e1e3e7 4px 5px);color:transparent}.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.option{padding:8px;display:flex;gap:8px;align-items:center;border:2px solid transparent}.option .paper{max-width:112px}.option b{font-size:14px}.option:disabled{color:inherit;opacity:1}.option.correct{border-color:#317252;background:#eff6f2}.option.wrong{border-color:#aa4652;background:#fff0f2}#feedback{min-height:24px;margin:8px 0;font-size:13px}#next{width:100%;background:#eef0f3;font-weight:700}#pause{display:block;margin:8px auto 0;font-size:12px}#intro,#result{padding:18px 0;text-align:center}#intro button,#result button{margin:4px;min-width:140px}

.paper{position:relative}.paper:before{content:"";position:absolute;left:-1px;top:-1px;width:6px;height:6px;border-left:2px solid #6e626a;border-top:2px solid #6e626a;pointer-events:none}
/* Shared sound state, rendered without an external icon font. */
.game-sound-toggle{width:44px;height:44px;min-width:44px;margin-left:auto}.game-sound-toggle .material-icons{font-size:0}.game-sound-toggle:after{content:'音♪';font-size:12px}.game-sound-toggle[aria-pressed="false"]:after{content:'音×'}
