.matching-board,.matching-card{isolation:isolate}.matching-card{transform:translateZ(0);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease,filter .16s ease,opacity .16s ease}.matching-card:before{inset:0;border-radius:inherit;background:linear-gradient(125deg,rgba(255,255,255,.32),transparent 24%,transparent 70%,rgba(255,255,255,.08)),radial-gradient(circle at 25% 18%,rgba(255,255,255,.2),transparent 32%);mix-blend-mode:screen;opacity:.72}.matching-card:after,.matching-card:before{content:"";position:absolute;pointer-events:none;z-index:1}.matching-card:after{inset:5%;border:1px solid rgba(184,147,73,.2);border-radius:.55rem}.matching-card:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.015);box-shadow:0 4px 0 rgba(37,58,46,.22),0 10px 20px rgba(3,23,18,.18)}.matching-card[aria-pressed=true]{z-index:8;box-shadow:0 4px 0 rgba(127,87,19,.2),0 0 0 3px rgba(255,202,74,.22),0 12px 22px rgba(19,47,40,.18)}.matching-word-card{background:radial-gradient(circle at 28% 18%,rgba(255,255,255,.98),rgba(255,250,235,.96) 45%,rgba(242,226,185,.95))}.matching-picture-card{background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.98),rgba(248,247,231,.96) 50%,rgba(229,231,204,.94))}.matching-card.is-recent-match{z-index:20;animation:matching-pair-fusion .72s cubic-bezier(.16,.88,.24,1) both}.matching-card.is-recent-match .matching-match-seal{animation:matching-seal-pop .58s cubic-bezier(.16,.9,.22,1) both}.matching-card.is-recent-match{box-shadow:0 4px 0 rgba(29,103,78,.24),0 0 28px rgba(255,221,83,.54),0 0 16px rgba(77,199,156,.44)!important}.matching-card.is-wrong-selection{z-index:15;animation:matching-wrong-recoil .3s ease-in-out 2;border-color:#d95f4c!important;box-shadow:0 3px 0 rgba(125,48,36,.2),0 0 0 3px rgba(231,91,70,.14),0 8px 18px rgba(68,29,23,.16)!important}.matching-card-sparkles i{position:absolute;color:#ffe274;font-style:normal;text-shadow:0 0 12px rgba(255,221,94,.9);opacity:0;animation:matching-sparkle .68s ease-out forwards}.matching-card-sparkles i:first-child{left:7%;top:10%;animation-delay:.04s}.matching-card-sparkles i:nth-child(2){right:8%;top:14%;animation-delay:.1s}.matching-card-sparkles i:nth-child(3){left:12%;bottom:10%;animation-delay:.16s}.matching-card-sparkles i:nth-child(4){right:10%;bottom:8%;animation-delay:.22s}.matching-connection-overlay{position:absolute;inset:0;z-index:12;width:100%;height:100%;pointer-events:none;overflow:visible}.matching-connection-overlay line{fill:none;stroke-width:5;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:7 8;animation:matching-line-flow .45s linear infinite}.matching-connection-overlay circle{vector-effect:non-scaling-stroke;stroke-width:2}.matching-connection-overlay.is-match line{stroke:#ffd763;filter:drop-shadow(0 0 5px rgba(255,216,90,.82))}.matching-connection-overlay.is-match circle{fill:#fff4b8;stroke:#d6a938;filter:drop-shadow(0 0 5px rgba(255,216,90,.72))}.matching-connection-overlay.is-wrong line{stroke:#de6a58;filter:drop-shadow(0 0 4px rgba(222,106,88,.48))}.matching-connection-overlay.is-wrong circle{fill:#ffe0d8;stroke:#c14e40}.matching-hud{transition:border-color .2s ease,box-shadow .2s ease}.matching-hud.is-streaking{border-color:#e7c36f!important;box-shadow:0 3px 12px rgba(94,67,19,.12),0 0 14px rgba(237,175,68,.12)}.matching-hud.is-hot-streak{border-color:#efb34f!important;box-shadow:0 3px 12px rgba(94,67,19,.12),0 0 22px rgba(239,151,48,.2)}.matching-hud.is-hot-streak .matching-streak-value{animation:matching-streak-pulse .65s ease-in-out infinite alternate}.matching-completion{position:relative;overflow-y:auto;overscroll-behavior:contain;border-color:#d7b45b!important;background:radial-gradient(circle at 50% -8%,rgba(255,253,226,.98),transparent 45%),linear-gradient(180deg,#fff5d6,#e9e7c6)!important;box-shadow:0 18px 55px rgba(8,35,31,.38),inset 0 0 0 3px rgba(255,255,255,.32)!important}.matching-completion>:not(.matching-victory-rays):not(.matching-victory-art){position:relative;z-index:2}.matching-victory-rays{position:absolute;inset:-42%;background:repeating-conic-gradient(from 0deg,rgba(255,213,87,.15) 0 6deg,transparent 6deg 18deg);opacity:.72;pointer-events:none;animation:matching-victory-rays 18s linear infinite}.matching-victory-badge{display:grid;place-items:center;width:4rem;height:4rem;margin:0 auto;border-radius:999px;border:2px solid rgba(177,129,38,.42);background:radial-gradient(circle at 35% 25%,#fffdf0,#f5dc91 70%,#d5a13c);box-shadow:0 5px 0 rgba(102,68,22,.15),0 0 28px rgba(255,205,64,.24);font-size:2rem}.matching-completion-kicker{margin-top:.5rem;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.17em;color:#85652c}.matching-completion-title{margin-top:.1rem;font-size:clamp(1.35rem,4vw,1.8rem);font-weight:950;letter-spacing:-.035em;color:#195e4d}.matching-result-score{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:.4rem;max-width:17rem;margin:.75rem auto 0;padding:.55rem .8rem;border:1px solid rgba(181,137,54,.28);border-radius:1rem;background:rgba(255,251,229,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.75);text-align:left}.matching-result-score span{font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:#80652e}.matching-result-score strong{font-size:1.75rem;line-height:1;color:#176552}.matching-result-score em{font-size:.68rem;font-style:normal;font-weight:800;color:#6c775e}.matching-result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin-top:.62rem}.matching-result-stats>span{display:flex;flex-direction:column;border:1px solid rgba(178,147,80,.24);border-radius:.8rem;padding:.4rem .25rem;background:rgba(255,251,235,.66);font-size:.56rem;font-weight:800;color:#77694c;text-transform:uppercase;letter-spacing:.05em}.matching-result-stats b{font-size:.7rem;color:#654d25;text-transform:none;letter-spacing:0}.matching-result-stats .is-perfect{border-color:rgba(219,166,58,.45);background:rgba(255,245,199,.82)}.matching-result-stats .is-streak{border-color:rgba(213,105,49,.3);background:rgba(255,235,217,.78)}.matching-round-reward{display:flex;align-items:center;justify-content:center;gap:.65rem;max-width:20rem;margin:.7rem auto 0;padding:.65rem .85rem;border:1px solid rgba(144,128,80,.25);border-radius:.95rem;background:rgba(241,248,229,.72);text-align:left}.matching-round-reward>span{font-size:1.65rem}.matching-round-reward div{display:flex;flex-direction:column}.matching-round-reward strong{font-size:.78rem;color:#41612e}.matching-round-reward small{margin-top:.08rem;font-size:.62rem;line-height:1.3;font-weight:650;color:#6d755f}.matching-round-reward.is-perfect{border-color:rgba(214,166,56,.42);background:radial-gradient(circle at 15% 50%,rgba(255,241,174,.9),rgba(255,249,220,.76));box-shadow:0 0 20px rgba(244,190,56,.16)}.matching-play-again{background:linear-gradient(180deg,#18856a,#116451);box-shadow:0 4px 0 #0c4d3e,0 10px 18px rgba(17,100,81,.18);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.matching-play-again:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 6px 0 #0c4d3e,0 14px 22px rgba(17,100,81,.2)}.matching-play-again:focus-visible{outline:3px solid #efc85e;outline-offset:3px}@keyframes matching-pair-fusion{0%{transform:scale(1)}42%{transform:translateY(-3px) scale(1.06)}to{transform:scale(1)}}@keyframes matching-seal-pop{0%{transform:scale(.25) rotate(-20deg);opacity:0}65%{transform:scale(1.2) rotate(4deg);opacity:1}to{transform:scale(1);opacity:1}}@keyframes matching-sparkle{0%{opacity:0;transform:scale(.35)}38%{opacity:1;transform:scale(1.3)}to{opacity:0;transform:translateY(-10px) scale(.9)}}@keyframes matching-wrong-recoil{0%,to{transform:translateX(0)}30%{transform:translateX(-3px) rotate(-.5deg)}70%{transform:translateX(3px) rotate(.5deg)}}@keyframes matching-line-flow{to{stroke-dashoffset:-15}}@keyframes matching-streak-pulse{0%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,160,49,0))}to{transform:scale(1.08);filter:drop-shadow(0 0 6px rgba(255,160,49,.52))}}@keyframes matching-victory-rays{to{transform:rotate(1turn)}}@media(max-width:640px){.matching-connection-overlay line{stroke-width:4}.matching-result-score{margin-top:.5rem;padding:.45rem .65rem}.matching-result-score strong{font-size:1.4rem}.matching-result-stats{gap:.25rem;margin-top:.45rem}.matching-result-stats>span{padding:.3rem .15rem;font-size:.49rem}.matching-result-stats b{font-size:.62rem}.matching-victory-badge{width:3.2rem;height:3.2rem;font-size:1.6rem}.matching-completion-title{font-size:1.2rem}.matching-round-reward{margin-top:.5rem;padding:.5rem .65rem}.matching-play-again{margin-top:.55rem!important}}@media(prefers-reduced-motion:reduce){.matching-card,.matching-card-sparkles i,.matching-card.is-recent-match,.matching-card.is-recent-match .matching-match-seal,.matching-card.is-wrong-selection,.matching-connection-overlay line,.matching-hud.is-hot-streak .matching-streak-value,.matching-victory-rays{animation:none!important;transition:none!important}}@media(forced-colors:active){.matching-card,.matching-completion,.matching-round-reward{background:Canvas!important;box-shadow:none!important}.matching-card.is-recent-match,.matching-card.is-wrong-selection{outline:2px solid Highlight}.matching-connection-overlay circle,.matching-connection-overlay line{stroke:Highlight!important}}.matching-shell{border-color:rgba(218,183,106,.9);box-shadow:0 12px 36px rgba(48,29,13,.26),inset 0 0 0 1px rgba(255,255,255,.45)}.matching-topbar{min-height:2.6rem}.matching-topbar a{display:inline-flex;align-items:center;min-height:2.6rem;padding:0 .35rem;border-radius:.6rem}.matching-topbar a:focus-visible{outline:3px solid #0c8278;outline-offset:2px}.matching-category-select,.matching-new-round{min-height:2.75rem;height:auto}.matching-category-select{border-color:#bda879;font-size:.86rem}.matching-new-round{border:2px solid #9f3e2b}.matching-new-round:focus-visible{outline:3px solid #ffcf68;outline-offset:2px}.matching-hud{border-color:#c5ad7c;box-shadow:0 3px 0 rgba(98,63,25,.1)}.matching-hud>div>div:first-child{font-size:.64rem;letter-spacing:.06em}.matching-hud>div>div:nth-child(2){font-size:.95rem;line-height:1.35}.matching-board{gap:.35rem;padding:.38rem}.matching-card{border-width:3px;border-color:rgba(165,136,83,.65)}.matching-card:focus-visible{outline:3px solid #ffde75;outline-offset:2px}.matching-card[aria-pressed=true]{border-color:#d79a25!important;box-shadow:0 4px 0 rgba(127,87,19,.2),0 0 0 3px rgba(255,202,74,.28),0 12px 22px rgba(19,47,40,.18)}.matching-card:disabled:not(.is-wrong-selection){opacity:.83}.matching-card.is-recent-match{border-color:#338f70!important}.matching-result-backdrop{z-index:80}.matching-completion{border-width:3px;border-color:#b99545!important;max-height:92%;box-shadow:0 18px 55px rgba(8,35,31,.4),inset 0 0 0 2px rgba(255,255,255,.32)!important}.matching-victory-badge{border-width:3px}.matching-result-score{border:2px solid rgba(181,137,54,.54)}.matching-result-stats>span{border:2px solid rgba(159,135,79,.43);font-size:.67rem;line-height:1.35}.matching-result-stats b{font-size:.87rem}.matching-result-stats .is-perfect{border-color:rgba(219,166,58,.72)}.matching-round-reward{border-width:2px}.matching-result-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:.55rem;margin-top:.85rem}.matching-play-again{display:flex;align-items:center;justify-content:center;min-height:3.1rem;border:2px solid #0c5848;font-size:.93rem;line-height:1.2}.matching-result-topic{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:.1rem;border:2px solid #9dbab1;border-radius:.75rem;background:rgba(255,255,255,.88);padding:.27rem .45rem;color:#245d52}.matching-result-topic>span{font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.matching-result-topic select{min-width:0;width:100%;min-height:1.45rem;font-size:.8rem;font-weight:800;cursor:pointer;background:transparent;outline:none}.matching-result-topic:focus-within{outline:3px solid #52a999;outline-offset:2px}.matching-result-details{margin-top:.7rem;border-top:2px solid rgba(160,143,99,.32);padding-top:.2rem;text-align:left}.matching-result-details>summary{display:flex;justify-content:center;align-items:center;min-height:2.75rem;padding:.5rem;border-radius:.75rem;font-size:.82rem;font-weight:900;text-align:center;color:#356866;list-style:none;cursor:pointer}.matching-result-details>summary::-webkit-details-marker{display:none}.matching-result-details>summary:after{content:"⌄";padding-left:.45rem;font-size:1.1rem}.matching-result-details[open]>summary:after{content:"⌃"}.matching-result-details>summary:focus-visible{outline:3px solid #147f73;outline-offset:2px}.matching-result-details-content{text-align:center;padding-bottom:.1rem}.matching-result-details-content>a{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;margin-top:.65rem}@media(max-width:640px){.matching-shell{padding:.38rem}.matching-topbar{gap:.25rem}.matching-topbar a{font-size:.75rem;min-height:2.5rem}.matching-category-select,.matching-new-round{min-height:2.75rem;font-size:.8rem}.matching-hud{padding:.3rem .15rem}.matching-hud>div{padding:0 .1rem}.matching-hud>div>div:first-child{font-size:.6rem}.matching-hud>div>div:nth-child(2){font-size:.85rem}.matching-board{gap:.25rem;padding:.25rem}.matching-card{border-width:2px}.matching-completion{padding:.85rem;max-height:92%;width:min(100%,28rem)}.matching-result-score strong{font-size:1.75rem}.matching-result-stats>span{padding:.4rem .25rem;font-size:.64rem}.matching-result-stats b{font-size:.8rem}.matching-result-actions{gap:.45rem}.matching-result-topic select{font-size:.75rem}}@media(max-width:360px){.matching-topbar h1,.matching-topbar h2{font-size:1rem}.matching-hud>div>div:first-child{font-size:.56rem}.matching-hud>div>div:nth-child(2){font-size:.78rem}.matching-result-actions{grid-template-columns:1fr}.matching-result-topic{min-height:3rem}}@media(prefers-reduced-motion:reduce){.matching-result-actions *,.matching-result-details *{animation:none!important;transition:none!important}}@media(forced-colors:active){.matching-card,.matching-completion,.matching-result-topic{border-color:CanvasText!important}}.matching-completion{overflow-x:hidden;overflow-y:hidden}.matching-victory-art{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none}.matching-completion:has(.matching-result-details[open]){overflow-y:auto}@media (max-height:480px){.matching-completion{overflow-y:auto}}