:root{color-scheme:light;font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:white}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button{font:inherit;min-height:44px;border:1px solid #e0dce0;border-radius:8px;color:inherit;background:#f3f4f6;padding:8px;touch-action:manipulation}button:disabled{opacity:.4}[hidden]{display:none!important}.shell{max-width:450px;margin:auto;padding:8px 16px max(12px,env(safe-area-inset-bottom));font-size:14px;display:flex;flex-direction:column;gap:10px}.toolbar{display:flex;align-items:center;gap:12px;font-size:13px}.toolbar button{margin-left:auto}.instruction{font-size:12px;line-height:1.6;margin:0 0 8px}.sum-label{font-size:11px;color:#6e626a;text-align:center;margin-bottom:4px}.flower{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 48px;gap:6px}.cell{height:66px;border-radius:24px 24px 18px 24px;background:#fff4f7;font-size:25px;font-weight:700}.cell[aria-pressed=true]{outline:2px solid #a94b70;outline-offset:0;background:#f9e0ea}.sum{display:flex;align-items:center;justify-content:center;min-height:44px;font-weight:700;font-size:16px;background:#f3f4f6;border-radius:8px}.sum.matched{color:#326348;background:#eef5ef}.sum small{font-size:10px;margin-left:3px}.numbers{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:12px}.numbers button{font-size:20px;min-height:46px}.editing{display:flex;gap:6px;margin-top:8px}.editing button{flex:1;font-size:12px}.primary{width:100%;font-weight:700;background:#eef0f3}#giveup{width:100%;margin-top:6px}#feedback{min-height:40px;margin:8px 0;font-size:13px;line-height:1.5}.panel{padding:16px 0;text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px}.panel h2{font-size:19px;margin:0}.panel p{margin:0;line-height:1.6}.companion{display:flex;align-items:center;gap:8px}.companion img{object-fit:contain}.companion b{font-size:12px}.companion p{margin:4px 0;font-size:13px;line-height:1.5}#save-note,#record{font-size:11px;color:#6e626a;margin:0;line-height:1.5}@media(max-height:740px){.cell{height:55px}.shell{gap:6px}.numbers{margin-top:8px}.companion img{width:48px;height:48px}#feedback{min-height:22px;margin:6px 0}}

/* Design 1: separate goals from editable petals without shrinking tap areas. */
.sum{border:1px solid #e0dce0;font-variant-numeric:tabular-nums}.flower>.sum:nth-child(-n+3){min-height:36px}.cell{font-variant-numeric:tabular-nums}

/* Design 2: selected petal remains recognizable without color. */
.cell[aria-pressed=true]{border:2px solid #a94b70;text-decoration:underline;text-underline-offset:5px}.cell:disabled{opacity:1}.numbers button:disabled{opacity:.35}

/* Design 3: keep narrow phones readable and retain touch targets. */
#board{min-width:0}.flower{grid-template-columns:repeat(3,minmax(0,1fr)) 48px}.cell{min-width:0}.numbers button{min-width:0}.companion div{min-width:0}.panel img{object-fit:contain}
