/* Scoped fruit matching game. */
.fruit-match{background:#fffaf0;border:1px solid #e6dfca;border-radius:26px;padding:28px;color:#243b35}
.fruit-match .fm-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.fruit-match .fm-topline .eyebrow{margin:0}.fruit-match .fm-quiet{font-size:.8rem;color:#687257}
.fruit-match h1{font-size:clamp(1.8rem,5vw,2.6rem);margin-bottom:12px}.fruit-match .fm-intro{max-width:650px}
.fruit-match .fm-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:22px 0 18px}
.fruit-match .fm-level{display:flex;flex-direction:column;font-weight:700;font-size:.85rem;gap:4px;margin-right:auto}
.fruit-match select{font:inherit;color:#243b35;background:#fff;border:1px solid #bdcbb7;border-radius:10px;min-height:46px;padding:8px 34px 8px 12px;max-width:100%}
.fruit-match select:focus-visible{outline:3px solid #df8b2c;outline-offset:4px}.fruit-match .fm-controls .button{min-height:46px;padding:10px 16px}
.fruit-match .fm-progress{display:flex;align-items:center;gap:16px;font-weight:700;font-size:.9rem}.fruit-match .fm-progress progress{width:100%;min-width:0;height:12px;accent-color:#176c50}.fruit-match .fm-count{white-space:nowrap}
.fruit-match .fm-message{min-height:3.2em;padding:12px 0 8px;font-size:.95rem;font-weight:700;color:#176c50}.fruit-match .fm-message.is-retry{color:#875018}
.fruit-match .fm-board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(44px,.65fr) minmax(0,1fr);padding:18px;border:1px solid #e5e7da;border-radius:20px;background:#fff;isolation:isolate}
.fruit-match .fm-column{display:grid;gap:12px;z-index:2;min-width:0}.fruit-match .fm-column[data-side=left]{grid-column:1}.fruit-match .fm-column[data-side=right]{grid-column:3}
.fruit-match .fm-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}.fruit-match .fm-lines path{fill:none;stroke-width:4;stroke-linecap:round;opacity:.8;vector-effect:non-scaling-stroke}.fruit-match .fm-lines .fm-pencil{stroke:#176c50;stroke-dasharray:6 7;opacity:.6}
.fruit-match .fm-fruit{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:78px;width:100%;min-width:0;padding:8px 17px;border:2px solid #e5e9dd;border-radius:16px;background:#fbfcf7;color:#243b35;transition:border-color .15s,background .15s;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.fruit-match .fm-fruit>*{pointer-events:none}.fruit-match .fm-fruit img{width:54px;height:54px;flex-shrink:0;-webkit-user-drag:none}.fruit-match .fm-name{font-size:.9rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.fruit-match .fm-dot{position:absolute;width:14px;height:14px;border:3px solid #abb8a4;background:#fff;border-radius:50%;top:calc(50% - 7px)}.fruit-match [data-side=left] .fm-dot{right:-8px}.fruit-match [data-side=right] .fm-dot{left:-8px}
.fruit-match .fm-fruit:hover:not(:disabled){border-color:#93b38a;background:#f0f7eb}.fruit-match .fm-fruit.is-selected{border-color:#176c50;background:#edf7e8;box-shadow:0 0 0 3px #176c501c}.fruit-match .fm-fruit.is-selected .fm-dot{border-color:#176c50;background:#176c50}
.fruit-match .fm-fruit.is-matched{border-color:#a9caa2;background:#f0f8eb;opacity:1;color:#243b35}.fruit-match .fm-fruit.is-matched .fm-dot{border-color:#458044;background:#458044}.fruit-match .fm-mark{display:none;position:absolute;top:2px;right:6px;font-size:.85rem;color:#2e6830;font-weight:800}.fruit-match .is-matched .fm-mark{display:block}
.fruit-match .fm-fruit.is-wrong{border-color:#ce8a46;background:#fff1df}.fruit-match .fm-fruit.is-hint{border-color:#a5740b;background:#fff4bf;box-shadow:0 0 0 3px #edc64d55}.fruit-match .fm-tip{font-size:.85rem;text-align:center;margin-top:15px}
.fruit-match .fm-success{padding:18px;margin:0 0 18px;background:#eaf6e4;border:1px solid #bbd7ac;border-radius:16px;text-align:center}.fruit-match .fm-success[hidden]{display:none}.fruit-match .fm-success h2{font-size:1.5rem;margin-bottom:8px}.fruit-match .fm-success .button{margin-top:12px}
@media(max-width:600px){.fruit-match{padding:18px 12px;border-radius:20px}.fruit-match .fm-topline{align-items:start;flex-direction:column;gap:4px}.fruit-match .fm-board{padding:12px 9px;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)}.fruit-match .fm-column{gap:10px}.fruit-match .fm-fruit{min-height:78px;padding:6px 8px;flex-direction:column;gap:0;border-radius:12px}.fruit-match .fm-fruit img{width:44px;height:44px}.fruit-match .fm-name{font-size:.76rem}.fruit-match .fm-controls{gap:9px}.fruit-match .fm-level{flex-basis:100%}.fruit-match .fm-controls .button{flex:1;font-size:.85rem;padding:9px}.fruit-match .fm-message{min-height:4.5em;font-size:.88rem}.fruit-match .fm-progress{gap:10px}.fruit-match h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){.fruit-match .fm-fruit{transition:none}}
