/* Six multiplayer tables share the existing room controls, timer and result overlay. */
.party-wrap{width:min(100%,720px);margin-inline:auto}.party-wrap .board-stage{position:relative}.party-surface{position:relative;aspect-ratio:1;width:100%;border:10px solid #c2b38c;border-radius:16px;background:#f0e5c6;box-shadow:0 7px 0 #a4936d,0 20px 45px #29483515}.party-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.party-node{position:absolute;transform:translate(-50%,-50%);padding:0;border:0;display:grid;place-items:center}.party-node:disabled{opacity:1;cursor:default}.party-node:focus-visible,.tile-cell:focus-visible{outline:3px solid #275d50;outline-offset:3px;z-index:5}.party-target{outline:2px solid #81a55e;outline-offset:2px;cursor:pointer!important}.party-selected{outline:3px solid #dfb246!important;outline-offset:2px;z-index:4}.party-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}.party-note{font-size:12px;color:#78846e;text-align:center}.army-status{font-size:13px;color:#42654c;margin-bottom:12px}.army-status>span{display:block;font-size:12px;margin-top:5px}.army-surface{background:radial-gradient(ellipse at center,#e8eddb,#ece1c3 75%)}.army-road{stroke:#b3a47a;stroke-width:.18}.army-rail{stroke:#70846c;stroke-width:.65;stroke-dasharray:1 .24}.army-node{width:4.8%;height:3.6%;background:#f7f1dc;border:1px solid #9c9774;border-radius:3px}.army-camp{border-radius:50%;width:4%;height:4%;border-color:#8e9c6d;background:#e4ebd1}.army-hq{border:2px double #a98e58;background:#e7d8a9}.army-piece{position:absolute;inset:-1px;display:grid;place-items:center;border-radius:3px;border:1px solid currentColor;font-size:clamp(9px,1.05vw,14px);font-weight:700;letter-spacing:-.5px;background:linear-gradient(140deg,#fff9e8,#dfd0a7);box-shadow:0 2px 0 #8a7957,0 2px 4px #29483535}.army-side-1{color:#286550}.army-side-2{color:#a56825}.army-side-3{color:#376a9c}.army-side-4{color:#a43e4c}.army-piece.concealed{background:linear-gradient(130deg,currentColor,#415c4c)}.army-piece svg{width:66%;height:80%;fill:none;stroke:#fff8de;stroke-width:1.2}.camp-mark{width:60%;height:60%;border:1px dashed #9ba883;border-radius:50%}.hq-mark{width:50%;height:50%;border:1px solid #b89e65;transform:rotate(45deg)}.star-surface{background:#f1ebd9}.star-hole{width:4.5%;height:4.5%;background:#c4b589;border:1px solid #b4a06e;box-shadow:inset 1px 2px 3px #75684444;border-radius:50%}.star-hole.marble{border:1px solid #2c5f4b;box-shadow:inset -3px -3px 5px #173c3744,0 3px 2px #3c4b3438}.marble-1{background:radial-gradient(circle at 30% 24%,#a5d6ad,#43866d 60%,#224e3c)}.marble-2{background:radial-gradient(circle at 30% 24%,#ffe4a7,#d69a50 60%,#9b602d)}.star-hole.party-target>i{width:35%;height:35%;border-radius:50%;background:#5b874c}.flight-surface{background:#f7f8eb;border-color:#d4dbb9}.plane-piece{width:6.2%;height:6.2%;background:transparent;filter:drop-shadow(0 2px 1px #233d3455)}.plane-piece svg{width:100%;height:100%;stroke:#fff8e8;stroke-width:1.4;fill:currentColor}.plane-side-1{color:#267360}.plane-side-2{color:#c58935}.plane-side-3{color:#467eb7}.plane-side-4{color:#b95564}.plane-piece:not(:disabled){filter:drop-shadow(0 0 3px #73ad45);cursor:pointer;animation:plane-ready 1.5s ease-in-out infinite}.flight-controls{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:24px}.flight-controls>span{width:100%;text-align:center;font-size:12px;color:#73836b}.die-face{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#fffdf3,#eadfc3);border:1px solid #d5c8a4;box-shadow:0 3px 0 #c6b78e;display:grid;place-items:center;font-size:26px;font-weight:700;color:#315b47}.party-score{display:flex;justify-content:center;gap:12px;margin-bottom:18px}.party-score>span{display:flex;align-items:center;gap:14px;padding:10px 20px;border-radius:12px;background:#f2f5e9;min-width:0}.party-score>span.mine{background:#e6efdb}.party-score small{max-width:140px;overflow:hidden;text-overflow:ellipsis;font-size:12px}.party-score b{font-size:23px;color:#305c48}.arcade-progress{display:flex;gap:12px;align-items:center;justify-content:center;font-size:13px;color:#6a7f67;margin-bottom:14px}.arcade-progress span{font-size:12px;margin-inline-start:15px}.arcade-progress strong{font-size:16px;color:#315f4a}.tile-surface{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:18px;background:linear-gradient(135deg,#d8e2ca,#c2d3b6);border:8px solid #6c8a6b;border-radius:18px;box-shadow:0 6px 0 #4b6a51,0 20px 45px #29483515;position:relative}.tile-cell{aspect-ratio:1;min-width:0;padding:3px;border:1px solid #e3dfc7;border-radius:10px;background:linear-gradient(140deg,#fffdf2,#e7e5cf);box-shadow:0 3px 0 #afb693;cursor:pointer;transition:transform .15s,box-shadow .15s}.tile-cell:disabled{opacity:1;cursor:default}.tile-cell:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 0 #94a77f}.tile-cell.tile-empty{background:none;box-shadow:none;border-color:transparent;visibility:hidden}.gem-svg{display:block;width:100%;height:100%;overflow:visible}.gem-shadow{fill:#29473f;opacity:.26}.gem-body{fill:var(--gem);stroke:var(--rim);stroke-width:2}.gem-1{--gem:#4d9d83;--rim:#36735e}.gem-2{--gem:#d99149;--rim:#b87935}.gem-3{--gem:#6c9ec4;--rim:#4b7da7}.gem-4{--gem:#bc7187;--rim:#a3506c}.gem-5{--gem:#a495c5;--rim:#8577aa}.gem-6{--gem:#c5ac4b;--rim:#a89032}.gem-7{--gem:#8ba65a;--rim:#6c843e}.gem-8{--gem:#66aaad;--rim:#438a8d}.link-trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.link-trail polyline{fill:none;stroke:#faf5a6;stroke-width:.07;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px #6a914f)}.bubble-surface{aspect-ratio:190/235;background:radial-gradient(ellipse at 50% 70%,#e6eee7,#dae7e1);border-color:#74988c;overflow:hidden}.bubble-ball{width:10.526%;height:8.51%;border-radius:50%;font-size:13px;font-weight:700;color:#fff;border:1px solid #ffffff99;box-shadow:inset -3px -4px 6px #20463a33,0 2px 2px #2c5c4433}.bubble-color-1{background:radial-gradient(circle at 30% 25%,#a8dbba,#478e6d 65%);fill:#478e6d}.bubble-color-2{background:radial-gradient(circle at 30% 25%,#ffe1a0,#d3a045 65%);fill:#d3a045}.bubble-color-3{background:radial-gradient(circle at 30% 25%,#b6dbea,#6b9bbf 65%);fill:#6b9bbf}.bubble-color-4{background:radial-gradient(circle at 30% 25%,#f3b8c8,#c5768a 65%);fill:#c5768a}.bubble-color-5{background:radial-gradient(circle at 30% 25%,#d4c1ed,#9e85bf 65%);fill:#9e85bf}.bubble-danger{stroke:#b17767;stroke-width:.8;stroke-dasharray:3 3;opacity:.55}.bubble-aim{stroke:#467969;stroke-width:1.1;stroke-dasharray:2 2}.bubble-controls{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px}.bubble-controls label{font-size:12px;color:#75846b}.bubble-controls input{width:clamp(100px,20vw,230px);accent-color:#568268}.bubble-controls .icon-button{font-size:24px}.next-bubble{display:flex;gap:8px;align-items:center;font-size:12px;color:#75846b}.next-bubble i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-style:normal;color:#fff}.arcade-score-burst{position:absolute;left:50%;top:35%;transform:translateX(-50%);font-size:32px;color:#fff8d4;font-weight:800;text-shadow:0 2px 5px #37573d;pointer-events:none;animation:arcade-score .95s ease-out forwards;z-index:6}
@keyframes arcade-score{from{opacity:1;translate:0 0}to{opacity:0;translate:0 -60px}}@keyframes plane-ready{50%{filter:drop-shadow(0 0 5px #b6cb69)}}
#game-table.is-expanded .party-wrap{width:min(calc(100vw - 76px),calc(100dvh - 240px),1100px);max-width:none}#game-table.is-expanded .arcade-wrap{width:min(calc(100vw - 76px),calc(100dvh - 280px),1050px)}#game-table.is-expanded:has(.bubble-surface) .party-wrap{width:min(calc(100vw - 76px),calc((100dvh - 330px)*.81),900px)}
@media(max-width:720px){.party-surface{border-width:6px;border-radius:12px}.tile-surface{padding:10px;gap:3px;border-width:5px;border-radius:12px}.tile-cell{padding:1px;border-radius:6px}.army-piece{font-size:8px;letter-spacing:-1px}.army-node{border-width:.5px}.army-status{font-size:12px}.army-status>span{font-size:12px}.party-score>span{padding:8px 12px;gap:9px}.party-score b{font-size:20px}.party-score small{max-width:100px}.bubble-ball{font-size:10px}.arcade-progress{gap:8px}.arcade-progress span{margin-inline-start:0}.flight-controls{gap:8px}.die-face{width:40px;height:40px;font-size:22px}.bubble-controls{gap:4px}.bubble-controls .btn{padding:10px 16px}.bubble-controls input{width:120px}}
@media(prefers-reduced-motion:reduce){.plane-piece:not(:disabled),.arcade-score-burst{animation:none}}
.board-wrap.party-wrap{max-width:720px;width:100%}.party-room .room-side>.panel{margin:0}.army-piece{white-space:nowrap;line-height:1;font-size:12px;letter-spacing:-.7px}.army-scroll{max-width:100%;overflow:auto;padding-bottom:9px}.army-scroll .army-surface{min-width:600px}.filter-tabs{flex-wrap:wrap}.party-room .seat-roster.four-seats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:720px){.party-room .room-side{grid-template-columns:1fr}.party-room .seat-roster.four-seats{grid-template-columns:repeat(2,minmax(0,1fr))}.army-piece{font-size:12px}.army-scroll{overscroll-behavior-x:contain}.army-status>span{line-height:1.8}}
/* Focus mode grows the table; long games retain normal vertical scrolling. */
#game-table.is-expanded .party-wrap{width:min(calc(100vw - 40px),max(820px,calc(100dvh - 260px)),1100px);max-width:none}#game-table.is-expanded .arcade-wrap{width:min(calc(100vw - 40px),max(760px,calc(100dvh - 280px)),1050px)}#game-table.is-expanded:has(.bubble-surface) .party-wrap{width:min(calc(100vw - 40px),max(680px,calc((100dvh - 330px)*.81)),900px)}
/* Warm timber frame and enamel army tiles, matching the tabletop palette. */
.army-surface{border-color:#96764e;background:radial-gradient(ellipse at 45% 40%,#f5edd5aa,transparent 72%),repeating-linear-gradient(92deg,#b59b6810 0 1px,transparent 1px 7px),linear-gradient(135deg,#e7ddba,#d6cfaa);box-shadow:inset 0 2px 8px #57462b40,0 3px 0 #705333,0 8px 0 #85643e,0 18px 32px #29483526;outline:1px solid #cbb184;outline-offset:-4px}.army-road{stroke:#a28e67}.army-rail{stroke:#63745a}.army-node{box-shadow:inset 0 1px 2px #65533326}.army-piece{border-radius:4px;border:1px solid #9a865c;background:linear-gradient(145deg,#fffbed 0%,#f0e5c9 48%,#d6c397 100%);text-shadow:0 1px 0 #fff9e4;box-shadow:inset 0 1px 1px #fffef3,inset 0 -2px 2px #a18c5755,0 3px 0 #8b7650,0 4px 5px #2a392b55}.army-piece:after{content:'';position:absolute;inset:2px;border:1px solid currentColor;border-radius:2px;opacity:.22;pointer-events:none}.army-piece.concealed{background:linear-gradient(145deg,#ffffff30,transparent 45%,#142f3540),currentColor;border-color:#fff6d666;text-shadow:none;box-shadow:inset 0 1px 1px #fff8, inset 0 -2px 3px #102d354d,0 3px 0 #455343,0 4px 5px #243b3455}.army-camp{background:radial-gradient(circle,#f3f0d9,#cbd5ab);box-shadow:inset 0 1px 3px #52633d44}.army-hq{background:linear-gradient(145deg,#f3e5bc,#cbb77e)}.army-node.party-target{outline-color:#669052;box-shadow:0 0 0 4px #85a55c25}.army-node.party-selected .army-piece{filter:brightness(1.1);box-shadow:inset 0 1px 2px #fff,0 3px 0 #907847,0 0 9px #e4ba57}
.flight-surface{background:radial-gradient(circle at center,#fff9e7,#e8eedf);border-color:#496e60;box-shadow:0 5px 0 #2e4f44,inset 0 0 18px #496e6022,0 15px 30px #29483522;isolation:isolate}.flight-surface .plane-piece{width:5.6%;height:5.6%;border-radius:50%;border:1px solid #fff8dc;background:radial-gradient(circle at 32% 24%,#fffef9,#eee5cb 65%,#c8b98f);box-shadow:inset 0 1px 2px #fff, inset 0 -2px 3px #87764b55,0 3px 0 #81785c,0 5px 5px #233d3455;filter:none;z-index:2}.plane-piece svg{width:75%;height:75%;stroke:currentColor;stroke-width:.5;transition:rotate .12s ease}.plane-piece small{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;font-size:9px;background:currentColor;border:1px solid #fff8e5}.plane-piece small:after{content:''}.plane-piece small{color:#294c40;background:#fff8e5}.flight-surface .plane-piece:not(:disabled){outline:2px solid currentColor;outline-offset:3px;animation:flight-ready 1.5s ease-in-out infinite;cursor:pointer}.flight-controls{padding:18px;border:1px solid #d1dcc5;border-radius:16px;background:linear-gradient(#f8faef,#e9efdc);box-shadow:0 3px 0 #d0d9bd}.flight-controls [data-move="100"]{min-width:180px;min-height:54px;font-size:18px;font-weight:750;background:linear-gradient(#487f63,#285940);color:#fff9e9;box-shadow:0 4px 0 #193f2c,0 7px 12px #29483526;border:1px solid #1f5138}.flight-controls [data-move="100"]:disabled{opacity:.45}.flight-dice-stage{position:absolute;left:50%;top:50%;width:38px;height:38px;transform:translate(-50%,-50%);perspective:500px;z-index:5;pointer-events:none}.flight-cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(18deg);--half:19px}.flight-cube-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:6px;border:1px solid #b9ab87;border-radius:7px;background:linear-gradient(135deg,#fffef4,#e5d8b7);backface-visibility:hidden;box-shadow:inset 0 1px 3px #fff}.flight-cube-face i{border-radius:50%}.flight-cube-face .pip{background:#294f40;box-shadow:inset 0 1px 2px #102d27}.face-1{transform:translateZ(var(--half))}.face-2{transform:rotateY(90deg) translateZ(var(--half))}.face-3{transform:rotateX(90deg) translateZ(var(--half))}.face-4{transform:rotateX(-90deg) translateZ(var(--half))}.face-5{transform:rotateY(-90deg) translateZ(var(--half))}.face-6{transform:rotateY(180deg) translateZ(var(--half))}.flight-cube[data-value="2"]{transform:rotateX(-18deg) rotateY(-72deg)}.flight-cube[data-value="3"]{transform:rotateX(-108deg) rotateY(0deg)}.flight-cube[data-value="4"]{transform:rotateX(72deg) rotateY(0deg)}.flight-cube[data-value="5"]{transform:rotateX(-18deg) rotateY(108deg)}.flight-cube[data-value="6"]{transform:rotateX(-18deg) rotateY(198deg)}
@keyframes flight-ready{50%{box-shadow:inset 0 1px 2px #fff,0 3px 0 #81785c,0 0 12px currentColor}}@media(prefers-reduced-motion:reduce){.flight-surface .plane-piece:not(:disabled){animation:none}.plane-piece svg{transition:none}}@media(max-width:480px){.flight-dice-stage{width:28px;height:28px}.flight-cube{--half:14px}.flight-cube-face{padding:4px;gap:2px;border-radius:5px}.plane-piece small{width:10px;height:10px;font-size:7px}}
/* Airports meet the four edges; flight channels remain visually separate. */
.flight-surface .plane-side-1{color:#299368}.flight-surface .plane-side-2{color:#c6a020}.flight-surface .plane-side-3{color:#349bc8}.flight-surface .plane-side-4{color:#d85050}.flight-surface .plane-piece svg{transition:none;transform-origin:50% 50%;transform-box:view-box}.flight-cube{transform:rotateX(0deg) rotateY(0deg)}.flight-cube[data-value="2"]{transform:rotateY(-90deg)}.flight-cube[data-value="3"]{transform:rotateX(-90deg)}.flight-cube[data-value="4"]{transform:rotateX(90deg)}.flight-cube[data-value="5"]{transform:rotateY(90deg)}.flight-cube[data-value="6"]{transform:rotateY(180deg)}
.flight-surface .plane-piece.plane-moving{z-index:8;animation:none}.flight-surface .plane-piece svg{transform-origin:center;transform-box:view-box}
.army-deployment{display:flex;align-items:center;gap:18px;padding:18px;margin-bottom:18px;border:1px solid #bdd19e;border-radius:14px;background:linear-gradient(135deg,#f4f8e9,#e3edce);box-shadow:0 3px 0 #cfddbb}.army-deployment>div{flex:1}.army-deployment strong{font-size:17px;color:#284f39}.army-deployment p{margin:6px 0 0;line-height:1.65;color:#5c7055;font-size:13px}.army-deployment small{color:#7b845e}.army-deployment .btn{min-height:52px;min-width:145px;font-size:17px;font-weight:750;background:linear-gradient(#477d5b,#285236);border-color:#254b33;color:#fffbea;box-shadow:0 4px 0 #1c3e28}.army-deployment .btn:disabled{opacity:.45}.army-deploying .army-node:not(:disabled){touch-action:none;cursor:grab}.army-drag-source{opacity:.55!important}.army-node.army-drop-target{outline:3px solid #7aa04b;outline-offset:2px}.army-deploying .army-piece{user-select:none;-webkit-user-select:none}@media(max-width:600px){.army-deployment{flex-direction:column;align-items:stretch;padding:14px;gap:12px}.army-deployment .btn{width:100%}}
.star-surface{background:radial-gradient(circle at 40% 35%,#f8edd2,#d4ba87);border-color:#9c7b4e;box-shadow:inset 0 1px 8px #795a3533,0 6px 0 #765936,0 16px 30px #29483522}.star-region{stroke-width:4;stroke-linejoin:round;opacity:.55}.star-region-0{fill:#83bfa3;stroke:#83bfa3}.star-region-1{fill:#9acfd0;stroke:#9acfd0}.star-region-2{fill:#ceb0df;stroke:#ceb0df}.star-region-3{fill:#efcd79;stroke:#efcd79}.star-region-4{fill:#8dbada;stroke:#8dbada}.star-region-5{fill:#e5a3ac;stroke:#e5a3ac}.star-hole.marble{background:radial-gradient(circle at 28% 22%,#ffffffed 0 7%,#ffffff55 11%,transparent 27%),radial-gradient(circle at 65% 72%,var(--glass-light),var(--glass) 55%,var(--glass-dark));border:1px solid #ffffffa8;box-shadow:inset 2px 2px 3px #fff8,inset -2px -3px 4px #10373e88,0 3px 3px #3a402a66,0 0 0 1px #284f3a33}.marble-1{--glass:#26845e;--glass-light:#b5f7c7;--glass-dark:#164937}.marble-2{--glass:#4095a1;--glass-light:#c3faff;--glass-dark:#1c5061}.marble-3{--glass:#9365b9;--glass-light:#f0d6ff;--glass-dark:#50346e}.marble-4{--glass:#cc9a28;--glass-light:#fff3ab;--glass-dark:#89601a}.marble-5{--glass:#397db5;--glass-light:#c1e8ff;--glass-dark:#234368}.marble-6{--glass:#bf5265;--glass-light:#ffd9df;--glass-dark:#733044}
.board-wrap.link-duel-wrap{max-width:1060px}.link-duel{display:grid;grid-template-columns:1fr 1fr;gap:24px}.link-duel-pane{min-width:0;background:#f2f6e9;border:1px solid #dce5ce;border-radius:18px;padding:14px}.link-opponent{background:#f0f3f4;border-color:#dbe3e5}.link-duel-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 2px 14px;color:#315845}.link-duel-heading span{font-size:12px;color:#74856d}.link-duel .tile-surface{padding:10px;gap:4px;border-width:5px;overflow:visible}.link-duel .tile-cell{border-radius:8px;padding:2px;background:linear-gradient(145deg,#fffef6,#efe9d4)}.link-fruit{display:grid;place-items:center;width:100%;height:100%;font-size:clamp(17px,2.7vw,39px);line-height:1.1;filter:drop-shadow(0 2px 1px #654d2422);user-select:none}.link-opponent .tile-cell{cursor:default}.link-trail{z-index:4}.link-duel .party-selected{outline-color:#d5a343}@media(max-width:680px){.link-duel{gap:8px}.link-duel-pane{padding:6px;border-radius:10px}.link-duel-heading{flex-direction:column;align-items:flex-start;gap:3px;margin-bottom:9px;font-size:12px}.link-duel-heading span{font-size:10px}.link-duel .tile-surface{padding:5px;gap:2px;border-width:3px}.link-duel .tile-cell{border-radius:4px}.link-fruit{font-size:clamp(12px,3vw,20px)}}
.link-duel-pane{position:relative}.link-duel .link-surface{container-type:inline-size}.link-duel .link-fruit{font-size:7.4cqw}.link-duel .tile-cell.tile-empty{background:transparent;box-shadow:none;border-color:transparent}
/* A pair of square boards scales as one unit in every fullscreen mode. */
#game-table.is-expanded:has(.link-duel-wrap){padding:16px max(16px,calc((100vw - 1800px)/2))}
#game-table.is-expanded .board-wrap.link-duel-wrap{width:min(100%,calc((100dvh - 240px)*2 + 60px))!important;max-width:1800px!important;margin-inline:auto}
#game-table.is-expanded .link-duel{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,2vw,28px)}
#game-table.is-expanded .link-duel .tile-surface{aspect-ratio:1;grid-template-rows:repeat(8,minmax(0,1fr))}
.outcome-stats.link-outcome-stats{grid-template-columns:repeat(2,minmax(0,1fr));text-align:center;gap:0}
.link-outcome-stats>div{min-width:0;padding-inline:10px}.link-outcome-stats span{overflow-wrap:anywhere}.link-outcome-stats small{display:block;color:#7c8a6e;font-size:11px;margin-top:3px}
.outcome-stats:has(>div:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));text-align:center;gap:0}.outcome-stats:has(>div:nth-child(2):last-child)>div{min-width:0;text-align:center}
.animal-duel .link-mine .tile-cell{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}.animal-duel .link-mine .animal-dragging{outline:2px solid #d4aa4d;outline-offset:1px;cursor:grabbing;filter:brightness(1.08)}
.animal-duel .tile-surface{aspect-ratio:1;grid-template-rows:repeat(8,minmax(0,1fr));overflow-anchor:none}.animal-duel .tile-cell{min-height:0;overflow:hidden}.match-goal{text-align:center;padding:12px 16px;margin-bottom:16px;border:1px solid #dce5ce;border-radius:12px;background:#f3f6e9;color:#345942}.match-goal strong{display:block;font-size:15px}.match-goal span{display:block;font-size:12px;color:#7b896f;line-height:1.6;margin-top:5px}#game-table .toast.toast-game-top{position:absolute;inset:auto;left:50%;top:12px;transform:translateX(-50%);translate:none;width:max-content;max-width:90%;text-align:center;pointer-events:none;z-index:30;animation:none}.board-stage:has(>.toast-game-top){position:relative}
.animal-duel .link-duel-heading{align-items:center;flex-direction:row;min-height:85px}.match-score{text-align:right;min-width:115px}.match-score-label{font-size:12px;color:#819079}.match-score-value{display:flex;align-items:baseline;justify-content:flex-end;gap:7px;margin:2px 0 6px}.match-score-value b{font-size:32px;font-weight:750;line-height:1.2;color:#456654;font-variant-numeric:tabular-nums}.match-score-value span{font-size:14px;color:#889580}.link-mine .match-score-value b{font-size:38px;color:#1d5c40}.match-score progress{display:block;width:130px;max-width:100%;height:6px;accent-color:#67985a;border:0;border-radius:10px;overflow:hidden}.match-score progress::-webkit-progress-bar{background:#dfe7d5;border-radius:10px}.match-score progress::-webkit-progress-value{background:#67985a;border-radius:10px}.match-score progress::-moz-progress-bar{background:#67985a}.table-hint:has(.table-instruction:empty){display:none}@media(max-width:680px){.animal-duel .link-duel-heading{flex-direction:column;align-items:stretch;gap:7px;min-height:110px}.match-score{min-width:0;text-align:left}.match-score-value{justify-content:flex-start}.match-score-value b,.link-mine .match-score-value b{font-size:28px}.match-score-value span{font-size:12px}.match-score progress{width:100%}}

/* Link effects live above the board so incoming state updates cannot cut them off. */
.link-effects-layer{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}
.link-effect-path{position:absolute;inset:0;overflow:visible}
.link-effect-path polyline{fill:none;stroke:#fff5a1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;filter:drop-shadow(0 0 4px #74b94c)}
.link-clear-ghost{position:absolute;display:grid;place-items:center;border:1px solid #e3dfc7;border-radius:8px;background:linear-gradient(145deg,#fffef6,#efe9d4);box-shadow:0 3px 0 #afb693}
.link-clear-spark{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff5a1;box-shadow:0 0 6px #c8ed78}
.link-effect-path polyline{stroke:#f5e7b0;stroke-width:2.5;filter:drop-shadow(0 0 2px #b0ca85)}
.link-clear-spark{width:4px;height:4px;box-shadow:0 0 3px #fff4ce80}
.link-combo-score{position:fixed;z-index:81;pointer-events:none;display:flex;flex-direction:column;align-items:center;color:#426d43;text-shadow:0 1px 2px #fff,0 0 6px #fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.link-combo-score b{font-size:25px;line-height:1.1}.link-combo-score small{font-size:12px;font-weight:800;letter-spacing:.05em}.link-combo-score.is-combo{color:#bd791e}.link-combo-score.is-combo b{font-size:29px}
.animal-duel .animal-dragging{position:relative;z-index:3;transition:none;will-change:transform;pointer-events:none}
.animal-duel .animal-dragging{pointer-events:auto;filter:none;box-shadow:0 3px 0 #afb693;transition:none}
.animal-duel .tile-cell{ -webkit-user-drag:none }
