*{box-sizing:border-box}body{margin:0;background:#fff;color:#2a2328;font:14px -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif}main{max-width:500px;margin:auto;padding:6px 12px 16px}button{font:inherit;color:inherit;border:0;border-radius:8px;background:#f3f4f6;min-height:44px;padding:9px 12px;touch-action:manipulation}button:active{transform:scale(.98)}[hidden]{display:none!important}.companion{display:flex;align-items:center;gap:10px;margin-bottom:6px}.companion img{width:72px;height:72px;object-fit:contain;flex-shrink:0}.companion strong{font-size:12px}.companion p{margin:5px 0;line-height:1.5}.panel{border:1px solid #e4e4e6;border-radius:12px;padding:12px}h2{font-size:18px;margin:0 0 10px}p{line-height:1.6}.note{font-size:11px;color:#6e626a;margin:8px 0}.status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.status button{font-size:12px}.rule{padding:10px 12px;background:#eef0f3;border-radius:8px;margin-bottom:12px}.rule small{font-size:12px;color:#6e626a}.rule h2{display:inline;margin:0 0 0 8px;font-size:24px}.rule p{margin:4px 0 0;font-size:12px}#cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{height:100px;border:2px solid #e4e4e6;background:white;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:15px}.symbol{width:28px;height:28px;display:inline-block;background:#80586e}.circle{border-radius:50%}.triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}.square{border-radius:3px}.card[data-tone="1"] .symbol{background:#5f737c}.card[data-tone="2"] .symbol{background:#796c50}#feedback{min-height:26px;margin:10px 0;font-weight:600}#start,#retry,#resume,#next{width:100%;font-weight:600}.card.correct{border:3px solid #49623b}.card.wrong{border:3px dashed #a94446}.mark{position:absolute;top:2px;right:6px;font-size:15px;color:#2a2328}.card:disabled{opacity:1;color:inherit}@media(prefers-reduced-motion:reduce){button:active{transform:none}}

.card-number{position:absolute;top:5px;left:8px;font-size:11px;color:#6e626a;font-weight:400}

.card{height:clamp(72px,12dvh,100px);padding:18px 10px 10px;gap:6px}.symbol{width:26px;height:26px;flex-shrink:0}
