.match-shell{--match-ink:#684654;--match-line:#d9bac6;--match-width:440px;display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,30%);overflow:hidden;border:1px solid var(--match-line);border-radius:18px;color:var(--match-ink);background:#fff9f5}.match-main{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;padding:22px;border-right:1px solid var(--match-line);background:#f7e7eb}.match-main>*{width:min(100%,440px)}.match-scoreboard{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:12px}.match-scoreboard>div{min-width:0}.match-scoreboard>div:nth-child(2){text-align:center}.match-scoreboard>div:last-child{text-align:right}.match-scoreboard span{display:flex;align-items:center;gap:4px;color:#916575;font-size:12px;font-weight:850}.match-scoreboard>div:nth-child(2) span{justify-content:center}.match-scoreboard>div:last-child span{justify-content:end}.match-scoreboard strong{display:block;font-family:Fredoka Variable,sans-serif;font-size:31px;font-weight:550;line-height:1.15}.match-scoreboard .match-chain{display:block;margin-top:2px;font-size:10px;font-weight:800}.match-scoreboard small{font-family:Nunito Variable,sans-serif;font-size:12px;color:#947180}.match-board{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));width:min(100%,var(--match-width));aspect-ratio:1;gap:5px;padding:9px;border:2px solid #b992a2;border-radius:14px;background:#e3c9d2;box-shadow:0 4px #b992a240,inset 0 1px #fff1ef}.match-tile{position:relative;min-width:0;min-height:0;padding:3px;border:1px solid #a6b48c;border-radius:9px;background:#d3e3ba;box-shadow:inset 0 2px #f0f7df,0 2px #8b9b7152;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.match-tile[data-kind="2"]{border-color:#c0926a;background:#f2d39e;box-shadow:inset 0 2px #fff1d4,0 2px #bb936652}.match-tile[data-kind="3"]{border-color:#a98aba;background:#d7c4e9;box-shadow:inset 0 2px #f3e9fc,0 2px #9c7db152}.match-tile[data-kind="4"]{border-color:#bd8b75;background:#efbfa8;box-shadow:inset 0 2px #ffe7d9,0 2px #b7806952}.match-tile[data-kind="5"]{border-color:#bd889d;background:#efbed0;box-shadow:inset 0 2px #ffe8ef,0 2px #b7809952}.match-tile[data-kind="6"]{border-color:#7e9fb5;background:#bfdce9;box-shadow:inset 0 2px #e8f7ff,0 2px #7598ae52}.match-tile:focus-visible{z-index:1;outline:3px solid #765165;outline-offset:1px}.match-tile[aria-pressed=true]{z-index:1;outline:3px solid #fffdf2;outline-offset:-4px;box-shadow:0 0 0 2px #8d5c73}.match-tile.is-hint:after{content:"";position:absolute;inset:2px;border:2px dashed #79526a;border-radius:5px;pointer-events:none}.match-friend{position:relative;pointer-events:none}.match-friend,.match-friend>svg{display:block;width:100%;height:100%}.match-friend b{position:absolute;right:-1px;bottom:-1px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #aa8c7a;border-radius:50%;color:#624435;background:#fff9e8;font-size:11px;line-height:1;font-weight:950}.match-tile.is-matching .match-friend{animation:match-clear .22s ease-in forwards}.match-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px}.match-hint,.match-new.button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:7px 12px;gap:7px;border:1px solid #bf97a7;border-radius:9px;color:#82566c;background:#fff9f4;font-size:14px;font-weight:900;touch-action:manipulation}.match-new.button{color:#fff8f1;border-color:#875a70;background:#a06c86;box-shadow:0 2px #79485f}.match-new.button:hover{background:#8c5b75}.match-tools button:disabled{opacity:.5}.match-status{display:flex;align-items:center;justify-content:center;min-height:42px;color:#8d6577;font-size:14px;font-weight:800;line-height:1.4;text-align:center}.match-side{display:flex;flex-direction:column;gap:24px;min-width:0;padding:28px 23px}.match-little-trio{display:flex;align-items:center;justify-content:center;gap:6px;margin-block:0 20px}.match-trio-friend{display:grid;place-items:center;width:57px;height:57px;padding:4px;border:1px solid #c19879;border-radius:13px;background:#f2d39e;transform:rotate(-9deg)}.match-trio-friend:nth-child(2){margin-top:-14px;background:#efbed0;border-color:#bd889d;transform:rotate(7deg)}.match-trio-friend>svg{display:block;width:100%;height:auto}.match-eyebrow{color:#a27a8d;font-size:10px;font-weight:950;letter-spacing:1px}.match-note h2{margin-block:9px 13px;font-size:34px;line-height:1.07;letter-spacing:-.5px}.match-guide p,.match-note p{color:#926e80;font-size:14px;line-height:1.65}.match-guide{padding-block:18px;border-block:1px solid #e8d3db}.match-guide h3{font-size:19px;line-height:1.3}.match-guide p{margin-top:11px}.match-guide .match-shortcuts{font-size:12px;font-weight:850}.match-records>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.match-records dt{font-size:14px;font-weight:850}.match-records dd{font-family:Fredoka Variable,sans-serif;font-size:26px;line-height:1}.match-save{display:flex;align-items:start;gap:6px;margin-top:auto;color:#a0818e;font-size:12px;line-height:1.5}.match-save>svg{flex-shrink:0;margin-top:2px}.match-overlay{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;border-radius:12px;background:#f6e4ead6}.match-complete{width:100%;max-width:310px;max-height:100%;overflow:auto;padding:24px 18px;border:1px solid #d4adbd;border-radius:14px;background:#fffbf4f5;text-align:center}.match-kicker{color:#a67e90;font-size:10px;font-weight:950;letter-spacing:1px}.match-complete h2{margin-block:10px;font-size:32px;line-height:1.1}.match-complete p{color:#956d81;font-size:14px;line-height:1.5}.match-complete .button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:18px auto 0;padding:8px 15px;background:#a06c86;border-color:#875a70;font-size:14px}.match-dialog .button{min-height:44px}@keyframes match-clear{0%{transform:scale(1);opacity:1}40%{transform:scale(1.1);opacity:1}to{transform:scale(.45);opacity:.1}}@media (min-width:761px) and (min-height:541px){.game-frame-match.is-expanded .match-shell{--match-width:min(560px,calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));grid-template-columns:minmax(0,1fr) minmax(250px,31%);grid-template-rows:auto auto 1fr;gap:16px 28px;align-content:start;padding:18px}.game-frame-match.is-expanded .match-main{display:contents}.game-frame-match.is-expanded .match-board{grid-column:1;grid-row:1/4;justify-self:center;align-self:start}.game-frame-match.is-expanded .match-scoreboard{grid-column:2;grid-row:1}.game-frame-match.is-expanded .match-tools{grid-column:2;grid-row:2;align-self:start}.game-frame-match.is-expanded .match-status{grid-column:2;grid-row:3;align-self:start}.game-frame-match.is-expanded .match-side{display:none}}@media (max-width:760px){.match-shell{--match-width:min(440px,calc(100svh - 220px));grid-template-columns:minmax(0,1fr);border-radius:12px}.match-main{gap:8px;padding:10px 8px;border-right:0}.match-scoreboard span{font-size:11px}.match-scoreboard strong{font-size:26px}.match-scoreboard small{font-size:10px}.match-board{gap:3px;padding:6px;border-radius:10px}.match-tile{padding:2px;border-radius:6px}.match-friend b{width:16px;height:16px;font-size:11px}.match-tools{gap:8px}.match-tools button{min-height:44px}.match-status{min-height:40px;font-size:12px}.match-side{padding:11px 12px;border-top:1px solid var(--match-line)}.match-guide,.match-note,.match-records{display:none}.match-save{justify-content:center;font-size:11px}.match-complete{padding:17px 11px}.match-complete h2{font-size:26px}.match-complete p{font-size:12px}.match-kicker{font-size:8px}.match-complete .button{margin-top:12px}.game-frame-match.is-expanded .match-shell{--match-width:min(440px,calc(100dvh - 245px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}.game-frame-match.is-expanded .match-side{display:none}}@media (orientation:landscape) and (max-height:540px){.game-frame-match.is-expanded .match-shell,.match-shell{--match-width:min(400px,calc(100dvh - 94px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));grid-template-columns:minmax(0,1fr) minmax(225px,41%);grid-template-rows:auto auto 1fr;gap:12px 20px;padding:10px;align-content:start}.match-main{display:contents}.match-board{grid-column:1;grid-row:1/4;justify-self:center;align-self:start;gap:3px;padding:6px}.match-scoreboard{grid-column:2;grid-row:1}.match-tools{grid-row:2}.match-status,.match-tools{grid-column:2;align-self:start}.match-status{grid-row:3;font-size:13px}.match-side{display:none}.match-friend b{width:16px;height:16px;font-size:11px}.match-complete{padding:16px 10px}.match-complete h2{font-size:26px}.match-complete p{font-size:12px}}