.find-pairs{color:#304951;background:0 0}.find-pairs button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}.find-pairs button:disabled{cursor:default;opacity:.6}.find-pairs :focus-visible{outline-offset:3px;outline:3px solid #b16b29}.find-pairs .math-toolbar>div{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.find-pairs .math-choices.fp-three{grid-template-columns:repeat(3,minmax(0,1fr))}.fp-preview{min-width:0}.fp-preview h2{font:700 42px var(--font-caveat),cursive;margin:24px 0 12px}.fp-preview>p{margin:15px 0;font-size:20px;line-height:1.5}.fp-start-note{text-align:center;color:#637267;margin:0;font-size:15px;line-height:1.4}.fp-match-head{justify-content:space-between;align-items:center;gap:15px;margin:12px 0;display:flex}.fp-match-head h1{font:700 48px/1 var(--font-caveat),cursive;margin:6px 0}.fp-clock{white-space:nowrap;background:#fffaf0;border:2px solid #acb99c;border-radius:14px;padding:8px 16px;font-size:25px}.fp-clock.urgent{color:#98452e;border-color:#b2684c}.fp-axi{background:#edf0e2;border:1px dashed #9fb193;border-radius:15px;align-items:center;gap:12px;margin:12px 0;padding:8px 14px;font-size:17px;line-height:1.4;display:flex}.fp-axi img{object-fit:contain;flex:none;width:48px;height:48px}.fp-axi p{margin:0}.fp-axi b{color:#315d80;display:block}.fp-boards{align-items:start;gap:20px;display:grid}.fp-boards.duel{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-boards.solo{max-width:790px;margin:auto}.fp-board{scrollbar-gutter:stable;background:#fffcf4;border:2px solid #7394a6;border-radius:18px 12px 21px 14px;min-width:0;padding:16px;box-shadow:4px 5px #315d8010}.fp-board>header{border-bottom:1px dashed #afbaab;justify-content:space-between;align-items:center;gap:8px;padding-bottom:10px;display:flex}.fp-board h2{font:700 31px/1.1 var(--font-caveat),cursive;color:#315d80;margin:0}.fp-board header strong{white-space:nowrap;font-size:27px}.fp-board header small{font-size:16px;font-weight:400}.fp-team-1{border-color:#b28a66}.fp-team-1 h2{color:#995d32}.fp-progress{justify-content:space-between;align-items:center;gap:10px;margin:10px 0;font-size:15px;display:flex}.fp-progress progress{accent-color:#68815b;width:30%;height:9px}.fp-instruction{min-height:24px;margin:10px 0;font-size:17px}.fp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:4px;display:grid}.find-pairs .fp-card{aspect-ratio:1/1.08;perspective:1000px;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:10px 15px 12px 10px;width:100%;min-width:0;padding:0;display:block;position:relative;overflow:visible}.fp-card-turn{transform-style:preserve-3d;transition:transform .45s cubic-bezier(.2,.7,.25,1);display:block;position:absolute;inset:0;transform:rotateY(0)}.fp-card.face .fp-card-turn{transform:rotateY(180deg)}.fp-card-side{box-sizing:border-box;backface-visibility:hidden;border:2px solid #94a995;border-radius:10px 15px 12px 10px;flex-direction:column;justify-content:center;align-items:center;padding:18px 6px 6px;display:flex;position:absolute;inset:0;overflow:hidden;box-shadow:2px 3px #536b6212}.fp-card-front{background:#fff;transform:rotateY(180deg)}.fp-card-front>svg{flex:1;width:100%;height:auto;min-height:0}.fp-position{color:#66796d;font-size:13px;position:absolute;top:3px;left:7px}.fp-card-back{background:repeating-linear-gradient(-45deg,#e1e9db,#e1e9db 9px,#e9eee3 9px 10px);border-color:#8a9f90;transform:rotateY(0)}.fp-team-1 .fp-card-back{background:repeating-linear-gradient(-45deg,#f1e3d0,#f1e3d0 9px,#f6ecdc 9px 10px);border-color:#bba284}.fp-question{font:700 clamp(35px,5vw,66px)/1 var(--font-caveat),cursive;color:#57766f}.fp-team-1 .fp-question{color:#a37952}.fp-card.selected .fp-card-front{border-color:#ad742c;box-shadow:0 0 0 2px #e0b65e}.fp-card.mismatch .fp-card-front{box-shadow:none;border-style:dashed;border-color:#ae755d}.fp-card.found .fp-card-front{border-color:#557d51;box-shadow:inset 0 -5px #c6ddbd}.fp-check{color:#466e42;background:#e1edda;border-radius:50%;place-items:center;width:24px;height:24px;line-height:1;display:grid;position:absolute;top:3px;right:4px}.fp-check>svg{clip-path:none;flex:none;width:18px;height:18px;display:block}.fp-name{text-align:center;overflow-wrap:anywhere;max-width:100%;margin:3px 0 2px;font-size:clamp(12px,1.05vw,16px);line-height:1.1}.fp-feedback{background:#edf0e5;border-radius:10px;min-height:62px;margin:12px 0 0;padding:10px 12px;font-size:16px;line-height:1.4}.fp-feedback.success{color:#365b3b;background:#e0ecd8}.fp-feedback.error{color:#8b4c33;background:#f8e5d7}.fp-keyboard{text-align:center;color:#667566;margin:20px 0 0;font-size:15px;line-height:1.4}.find-pairs .fp-primary{color:#fffdf4;background:#315d80;border:2px solid #274c67;border-radius:11px 9px 13px 10px;min-height:46px;padding:10px 17px;font-size:20px}.fp-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.fp-actions>button{background:#fffaf0;border:1px solid #99ac91;border-radius:10px;min-height:46px;padding:10px 16px}.fp-result{text-align:center;background:#fffcf4;border:2px solid #91a78a;border-radius:20px;max-width:880px;margin:30px auto;padding:30px}.fp-result h1{font:700 50px/1.1 var(--font-caveat),cursive;margin:15px 0 25px}.fp-results{flex-wrap:wrap;justify-content:center;gap:20px;display:flex}.fp-results>div{background:#e9eddf;border-radius:14px;flex:1;min-width:190px;padding:20px}.fp-results h2{font-size:26px}.fp-results strong{color:#315d80;font-size:32px}.fp-results p{margin:10px 0 0}.fp-result details{text-align:left;margin-top:24px}.fp-result summary{cursor:pointer;min-height:44px;font-size:20px}.fp-review{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.fp-review figure{text-align:center;background:#fff;border:1px solid #bdcbb5;border-radius:12px;min-width:0;margin:0;padding:8px}.fp-review svg{width:100%;height:auto}.fp-review figcaption{overflow-wrap:anywhere;font-size:16px}.fp-dialog{color:#304951;background:#fffaf0;border:2px solid #899f8a;border-radius:18px;max-width:min(520px,100% - 32px);margin:auto;padding:26px}.fp-dialog::backdrop{background:#263d43aa}.fp-dialog h2{font:700 34px var(--font-caveat),cursive;margin:0 0 16px}.fp-dialog p{margin-bottom:20px;font-size:19px;line-height:1.5}@media (min-width:761px){.fp-boards.duel .fp-board{overscroll-behavior-y:contain;max-height:76vh;overflow-y:auto}.find-pairs:fullscreen .fp-boards.duel .fp-board{min-height:270px;max-height:calc(100dvh - 250px)}.fp-boards.duel .fp-board>header{z-index:2;background:#fffcf4;padding-top:10px;position:sticky;top:-16px}}@media (max-width:1100px){.find-pairs .math-toolbar>span{display:none}.fp-board{padding:12px}.fp-grid{gap:8px}.fp-name{font-size:13px}.fp-board h2{font-size:28px}}@media (max-width:760px){.find-pairs{padding:20px 12px}.fp-boards.duel{grid-template-columns:minmax(0,1fr)}.fp-boards.duel .fp-board{overscroll-behavior-y:auto;max-height:85dvh;overflow-y:auto}.fp-boards.duel .fp-board>header{z-index:2;background:#fffcf4;padding-top:10px;position:sticky;top:-12px}.find-pairs .math-toolbar{flex-wrap:wrap;gap:10px}.find-pairs .math-toolbar button{padding:8px;font-size:14px}.find-pairs .math-heading h1{font-size:52px}.find-pairs .math-options{padding:20px 10px}.find-pairs .math-grades{grid-template-columns:repeat(2,minmax(0,1fr))}.find-pairs .math-options fieldset:first-child .math-grades{grid-template-columns:repeat(4,minmax(0,1fr))}.find-pairs .math-options fieldset:first-child button{padding:10px 2px;font-size:15px}.find-pairs .math-choices.fp-three button{padding:10px 4px;font-size:16px}.find-pairs .math-choices small{font-size:12px}.fp-match-head h1{font-size:36px}.fp-match-head{flex-wrap:wrap}.fp-clock{padding:8px 10px;font-size:19px}.fp-match-head .eyebrow{font-size:12px}.fp-axi{gap:9px;padding:9px;font-size:15px}.fp-axi img{width:42px;height:42px}.fp-preview>p{font-size:18px}.fp-preview h2{font-size:34px}.fp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.find-pairs .fp-card{aspect-ratio:1/1.3}.fp-card-side{padding:16px 3px 5px}.fp-name{font-size:12px}.fp-result{padding:20px 12px}.fp-result h1{font-size:38px}.fp-review{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-keyboard{font-size:14px}}@media (max-width:380px){.fp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.find-pairs .fp-card{aspect-ratio:1/1.25}}@media (prefers-reduced-motion:reduce){.find-pairs *{scroll-behavior:auto!important;transition:none!important}}.fp-card-front>svg,.fp-review svg{clip-path:inset(2% 4%)}
