.party-shell{padding:clamp(16px,3vw,34px);color:var(--text);max-width:1120px;margin:auto}
.morris-phase{text-align:center;padding:2px 4px 10px}.morris-phase strong{color:#f4d4a0;font-size:clamp(15px,2.6vw,21px)}.morris-phase p{color:var(--text-soft);font-size:13px;line-height:1.55;margin:7px auto 0;max-width:56ch}.morris-reserves{display:flex;gap:12px;justify-content:space-between;margin:2px 0 15px}.morris-reserves>div{flex:1;min-width:0;border-left:3px solid var(--seat-color);padding:5px 8px;background:#0b171d44;border-radius:0 8px 8px 0}.morris-reserves b,.morris-reserves span{display:block}.morris-reserves b{color:var(--seat-color);font-size:12px;overflow-wrap:anywhere}.morris-reserves span{font-size:11px;color:var(--text-soft);margin-top:4px}.morris-reserve-stones{display:flex!important;gap:4px;flex-wrap:wrap;min-height:9px}.morris-reserve-stones i{width:8px;height:8px;border-radius:50%;background:var(--seat-color);box-shadow:inset 0 -2px #0005}.morris-board{position:relative;width:100%;max-width:550px;aspect-ratio:1;margin:auto;border:2px solid #b39466;border-radius:14px;background:repeating-linear-gradient(8deg,#e1ba7210 0 1px,transparent 1px 12px),radial-gradient(ellipse at 32% 18%,#d8b47b,#9f794a 74%);box-shadow:inset 0 0 0 5px #624929,inset 0 0 35px #39271355,0 6px 0 #513d29,0 9px 15px #0005}.morris-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.morris-lines line{stroke:#4a3927;stroke-width:1;stroke-linecap:round}.morris-lines .morris-mill{stroke:var(--seat-color);stroke-width:1.5;opacity:.9}.morris-emblem{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-family:Georgia,serif;color:#5e452a88;font-size:clamp(12px,3vw,23px);letter-spacing:.1em}.morris-board .party-button.morris-point{position:absolute;transform:translate(-50%,-50%);width:12.5%;height:12.5%;max-width:48px;max-height:48px;min-height:0;min-width:26px;padding:3px;display:grid;place-items:center;border-radius:50%;border:2px solid transparent;background:transparent;box-shadow:none;touch-action:manipulation;z-index:1}.morris-board .party-button.morris-point:disabled{opacity:1!important}.morris-board .party-button.morris-point:enabled:hover{background:#fcf2d45c;border-color:#fff7d9}.morris-point .party-stone{width:100%;height:100%;font-size:clamp(11px,2.8vw,19px);box-shadow:inset 0 3px 3px #ffffff7a,inset 0 -4px 4px #0004,0 3px 4px #24160777}.morris-socket{width:31%;height:31%;border-radius:50%;background:#5e452b;box-shadow:inset 0 2px 2px #0006,0 1px #eed8af66}.morris-point.is-legal:not(.is-occupied) .morris-socket{width:42%;height:42%;background:#e4f6cd;border:2px solid #324f37;box-shadow:0 0 0 3px #e4f6cd55}.morris-board .party-button.morris-point.is-selected{border-color:#fff9d5;box-shadow:0 0 0 2px #413222;background:#fcf5c555}.morris-board .party-button.morris-point.is-capture{border-color:#fff3b6;box-shadow:0 0 0 2px #7a312b}.morris-point.is-capture:after{content:'×';position:absolute;right:-2px;top:-5px;font-size:16px;font-weight:900;color:#fff9d8;background:#7b332d;width:17px;height:17px;border-radius:50%;line-height:16px}.morris-point:focus-visible{outline:3px solid #fff9de;outline-offset:1px;z-index:2}.morris-controls{font-size:11px;text-align:center;color:var(--text-soft);line-height:1.6;margin:17px 0 0}.classic-shell[data-classic=morris] .party-arena{background:radial-gradient(ellipse at top,#294547,#172c31);border-color:#8d7956}.classic-shell[data-classic=morris] .party-arena .party-stone{border-radius:50%}
.party-heading{display:flex;gap:20px;align-items:center;margin-bottom:20px}.party-heading h2{font-size:clamp(25px,4vw,38px);margin:4px 0}.party-heading p{margin:0;color:var(--text-soft)}.party-symbol{font-size:48px}
.party-rules{border:1px solid var(--line-strong);padding:12px 18px;border-radius:14px;background:var(--surface-soft)}.party-rules summary{cursor:pointer;font-weight:700}.party-rules p{line-height:1.8;max-width:80ch;color:var(--text-soft)}
.party-connection{font-size:13px;color:var(--green);min-height:22px;overflow-wrap:anywhere}.party-connection.is-error{color:var(--danger)}
.party-setup{display:grid;grid-template-columns:1fr 1fr;gap:20px}.party-setup-card{display:flex;flex-direction:column;gap:14px;background:var(--surface-raised);border:1px solid var(--line);border-radius:22px;padding:clamp(18px,3vw,30px)}.party-setup-card h3{font-size:26px;margin:0}.party-setup-card p,.party-setup-card small{color:var(--text-soft);margin:0}.party-setup-card label{font-size:13px;font-weight:700}.party-setup-card input,.party-setup-card select{width:100%;padding:13px;border:1px solid var(--line-strong);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;min-height:48px}.party-setup-card button{width:100%;justify-content:center}.party-note{margin-top:auto!important;font-size:13px}
.party-room-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:12px 0 18px}.party-room-bar>div{margin-right:auto;display:flex;flex-direction:column}.party-room-bar small{font-size:10px;letter-spacing:.16em;color:var(--text-soft)}.party-room-bar strong{letter-spacing:.17em;font-size:21px}
.party-players{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.party-player{display:flex;align-items:center;gap:9px;padding:10px 14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:14px;min-width:140px;flex:1}.party-player.is-turn{border-color:var(--seat-color);box-shadow:inset 0 -3px var(--seat-color)}.party-player strong,.party-player small{display:block;overflow-wrap:anywhere}.party-player strong{font-size:14px}.party-player small{font-size:11px;color:var(--text-soft)}.party-avatar{background:var(--seat-color);color:#14172b;font-weight:900;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}
.party-lobby{text-align:center;padding:35px 12px}.party-lobby h3{font-size:27px}.party-lobby p{color:var(--text-soft)}.party-turn{text-align:center;font-size:clamp(18px,3vw,25px);font-weight:800;margin:20px 0}.party-arena{max-width:650px;margin:auto;padding:clamp(10px,2vw,22px);border:1px solid var(--line-strong);background:var(--surface-raised);border-radius:22px}.party-message{text-align:center;color:var(--text-soft);font-size:13px}.party-result{text-align:center;padding:20px;border:1px solid var(--game-accent);border-radius:18px;margin-top:20px}
.party-button{border:1px solid var(--line-strong);background:var(--surface-solid);color:var(--text);border-radius:10px;min-height:44px;padding:10px 16px;cursor:pointer;font-weight:700;touch-action:manipulation}.party-button:enabled:hover{border-color:var(--game-accent);background:var(--surface-soft)}.party-button:focus-visible{outline:3px solid var(--game-accent);outline-offset:2px}.party-button:disabled{cursor:default}.party-button:disabled:not(.party-cell):not(.party-card):not(.party-edge):not(.party-pit){opacity:.45}.party-wide{display:block;margin:16px auto 0;width:100%}.party-choice-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:16px 0 0}
.party-board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:6px}.party-cell{aspect-ratio:1;min-height:0;padding:4px;display:grid;place-items:center;border-radius:9px}.party-stone{display:grid;place-items:center;width:90%;height:90%;border-radius:50%;background:var(--seat-color);color:#151b2c;font-weight:900;font-size:clamp(11px,2vw,20px);box-shadow:inset 0 -5px 0 #0002,0 3px 9px #0003}.party-hint{font-size:24px;color:var(--text-faint);line-height:1}.party-cell.is-last{outline:2px solid var(--game-accent);outline-offset:-2px}.party-columns{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:8px}.party-columns button{padding:5px;font-size:22px}
.party-gomoku{gap:2px;background:#bd9854;padding:6px;border-radius:8px}.party-gomoku .party-cell{background:#d7b77c;border:1px solid #a48248;border-radius:0;padding:2px}.party-gomoku .party-hint{color:#6f532f}.party-gomoku .party-stone{font-size:11px}.party-reversi{background:#17674f;padding:8px;border-radius:10px;gap:3px}.party-reversi .party-cell{background:#228163;border-color:#ffffff30}.party-reversi .party-hint{color:#fff8}
.party-connect4{background:linear-gradient(140deg,#37599e,#203266);padding:10px;border-radius:14px;gap:8px}.party-connect4 .party-cell{border-radius:50%;background:#121c38;border:1px solid #122040;box-shadow:inset 0 4px 8px #0007}.party-connect4 .party-hint{opacity:.35}.party-connect4 .party-cell:enabled:hover{background:#284677}
.party-piles{display:flex;flex-direction:column;gap:22px;text-align:center}.party-piles>div{padding:12px;border:1px solid var(--line);border-radius:12px}.party-sticks{color:var(--yellow);font-size:43px;letter-spacing:10px;line-height:1.6}.party-piles .party-choice-row{margin:0}
.party-dots{display:grid;grid-template-columns:12px 1fr 12px 1fr 12px 1fr 12px;grid-template-rows:12px 1fr 12px 1fr 12px 1fr 12px;aspect-ratio:1;max-width:430px;margin:auto;align-items:center;justify-items:center;padding:12px}.party-dot{height:10px;width:10px;background:var(--text);border-radius:50%;z-index:2}.party-edge{min-height:0;padding:0;border:0;border-radius:4px;background:var(--line-strong);position:relative}.party-edge:before{content:'';position:absolute;inset:-11px}.party-edge.horizontal{width:100%;height:10px}.party-edge.vertical{width:10px;height:100%}.party-edge.taken{background:var(--seat-color)}.party-edge:enabled:hover{background:var(--game-accent)}.party-box{font-size:40px;font-weight:900}
.party-kalah{text-align:center}.party-kalah p{font-weight:700}.party-kalah-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0}.party-pit{border-radius:45%;padding:14px 2px;min-height:75px;border:2px solid #c6a365;background:#382e24;color:#ffe6b3}.party-pit small{display:block;font-size:10px;color:#c9b492}.party-pit strong{font-size:25px}.party-pit:enabled{border-color:var(--cyan)}
.party-pairs{gap:9px}.party-card{aspect-ratio:4/5;min-height:0;padding:0;font-size:clamp(18px,4vw,37px);background:linear-gradient(140deg,#3b3273,#1b2754);color:#c5bbff}.party-card.is-revealed{background:#edf2ff}.party-card.is-matched{background:#d7f5e5;opacity:.55}
.party-dice-zone{display:flex;align-items:center;justify-content:center;gap:20px;padding:24px 0;flex-wrap:wrap}.party-die{width:88px;height:88px;background:#fcf5e6;color:#22253d;box-shadow:0 6px 0 #baae94;border-radius:18px;display:grid;place-items:center;font-size:48px;font-weight:900}.party-bank{display:flex;flex-direction:column;text-align:center}.party-bank strong{font-size:50px;line-height:1.2}.party-bank small{font-size:10px;letter-spacing:.1em;color:var(--text-soft)}.party-bank span{font-size:13px;color:var(--text-soft)}
.party-ladders{display:grid;grid-template-columns:repeat(10,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}.party-ladder-cell{aspect-ratio:1;position:relative;background:var(--surface-solid);border:1px solid var(--line);font-size:10px;padding:2px;min-width:0}.party-ladder-cell>small{font-size:9px;color:var(--text-soft)}.party-ladder-cell>span{position:absolute;right:2px;top:3px;font-size:9px}.party-ladder-cell>div{display:flex;flex-wrap:wrap;gap:1px}.party-ladder-cell b{width:14px;height:14px;display:grid;place-items:center;color:#151b2c;border-radius:50%;font-size:9px}.party-ladder-cell.is-ladder{background:#5fdfaa25}.party-ladder-cell.is-snake{background:#ff7fa825}.party-race-status{text-align:center;font-size:12px;margin-bottom:10px}
.party-tiles{display:grid;grid-template-columns:repeat(9,1fr);gap:6px}.party-tiles button{padding:12px 0;font-size:23px}.party-tiles button.is-selected{background:var(--cyan);color:#10152b;outline:2px solid var(--cyan)}
.party-hex{max-width:420px;margin:auto;padding:5px 16% 5px 0}.party-hex-row{display:flex;transform:translateX(calc(var(--row)*5.9%));margin-top:-6%}.party-hex-row:first-child{margin-top:0}.party-hex-row .party-cell{width:14.28%;height:auto;aspect-ratio:.86;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border-radius:0;padding:4px;background:#464967;border:0}.party-hex-row .party-cell:enabled:hover{background:#646a91}.party-axis{text-align:center;font-size:12px;color:var(--text-soft);margin:6px 0 16px}
.party-flood{gap:3px}.party-territory{aspect-ratio:1;display:grid;place-items:center;border-radius:4px;color:#172033;font-size:clamp(10px,2vw,17px)}.party-territory b{border:1px solid #17203355;border-radius:50%;height:75%;width:75%;display:grid;place-items:center}.party-swatch{display:inline-block;width:18px;height:18px;border-radius:50%;vertical-align:middle;margin-right:7px}
@media(max-width:650px){.party-setup{grid-template-columns:1fr}.party-heading{gap:12px}.party-heading .eyebrow{font-size:9px}.party-symbol{font-size:34px}.party-room-bar .control-button{font-size:11px;padding:9px}.party-player{min-width:120px;padding:8px;gap:7px}.party-player strong{font-size:12px}.party-arena{padding:10px;border-radius:14px}.party-shell{padding:14px 8px}.party-board{gap:4px}.party-gomoku{gap:1px;padding:3px}.party-cell{padding:2px;border-radius:5px}.party-tiles{gap:3px}.party-tiles button{font-size:16px}.party-ladder-cell>span{font-size:7px;top:13px}.party-ladder-cell>div{position:relative;z-index:1}.party-pit{min-height:62px}.party-die{width:64px;height:64px;font-size:36px}.party-dice-zone{gap:12px}.party-connection{font-size:11px}}

.party-shell.is-playing .party-heading{display:none}.party-shell.is-playing .party-players{margin:12px 0}.party-shell.is-playing .party-turn{margin:14px 0}.party-shell.is-playing .party-room-bar{padding-top:4px}
.party-hex{padding:4px 0;max-width:480px}.party-hex-row{width:70%;gap:2px;transform:translateX(calc(var(--row)*7.142857%));margin-top:-2.8%}.party-hex-row .party-cell{flex:1;min-width:0;width:0;aspect-ratio:.86;background:#475574}.party-hex-row .party-cell .party-hint{color:#ccd8f1}

/* Table collection. The same seat colours identify every actual piece. */
.classic-shell.party-shell { --table-wood:#8e6543; --table-felt:#234f4c; }
.classic-shell .party-room-bar { border-bottom-color:#738d8f3b; }
.classic-shell .party-player { background:linear-gradient(140deg,#283a42,#15232c); box-shadow:inset 0 1px #c8d9d61c,0 5px 12px #0002; }
.classic-shell .party-avatar { position:relative; border:2px solid #fff5; box-shadow:inset 0 -4px #0003,0 3px 0 #0006; }
.classic-shell .party-player.is-turn { border-color:var(--seat-color); box-shadow:inset 0 -3px var(--seat-color),0 8px 18px #0003; }
.classic-shell.party-shell .party-arena { border:9px solid #624732; outline:1px solid #ccad7766; border-radius:24px; padding:clamp(14px,2.7vw,30px); background:repeating-linear-gradient(110deg,#b8b28d08 0 1px,transparent 1px 4px),radial-gradient(ellipse at 40% 10%,#46716a,#183e3e 70%); box-shadow:inset 0 3px 20px #051719a6,0 8px 0 #342b25,0 24px 35px #0006; }
.classic-shell .party-button { border-color:#829c9e69; background:linear-gradient(145deg,#365059,#213a46); color:#e4eee6; box-shadow:inset 0 1px #e7f5ef1f,0 3px 0 #0e242a; }
.classic-shell .party-button:enabled:hover { background:linear-gradient(145deg,#405e66,#294955); border-color:#c0d3ca; }
.classic-shell .party-button:enabled:active { box-shadow:inset 0 2px 6px #0007; }
.classic-shell .party-turn { color:#e7eee1; letter-spacing:-.025em; text-shadow:0 3px 10px #0007; }
.classic-shell .party-board { border:0; padding:8px; box-shadow:inset 0 3px 13px #0008; }
.classic-shell .party-stone { position:relative; background:radial-gradient(circle at 30% 24%,#ffffffbd,color-mix(in srgb,var(--seat-color) 85%,#e8e0cb) 34%,var(--seat-color) 55%,color-mix(in srgb,var(--seat-color) 52%,#152a32)); border:1px solid #fffffba6; box-shadow:inset 0 2px #fffff75e,inset 0 -4px #0003,0 4px 0 color-mix(in srgb,var(--seat-color) 25%,#102736),0 7px 7px #00151b99; }
.classic-shell .party-stone::after { content:''; position:absolute; inset:13%; border:1px solid #173d4852; border-radius:50%; pointer-events:none; }
.classic-shell .party-stone>span { position:relative; z-index:1; font-size:clamp(9px,1.6vw,16px); text-shadow:0 1px #fff6; }
.classic-shell .party-cell { background:linear-gradient(145deg,#3b5b5d,#27434a); border-color:#6e929e5e; box-shadow:inset 0 2px 6px #0006; }
.classic-shell .party-cell.is-last { outline:0; }
.classic-shell .party-connect4 { border:8px solid #203746; background:linear-gradient(120deg,#648499,#314d67); padding:12px; gap:9px; border-radius:18px; box-shadow:inset 0 1px #c0d1d788,0 7px 0 #122d3c,0 12px 15px #00121b88; }
.classic-shell .party-connect4 .party-cell { border:1px solid #9bb5be88; background:radial-gradient(ellipse at 70% 75%,#224a58,#061d2f); box-shadow:inset 0 5px 8px #0009,0 1px #cadcdb50; }
.classic-shell .party-connect4 .party-stone { width:94%; height:94%; }
.classic-shell .party-columns { margin-bottom:15px; gap:9px; }
.classic-shell .party-columns button { background:transparent; border-color:#b3ccc44a; color:#d9d7b5; box-shadow:none; }
.classic-shell .party-gomoku { border:9px solid #855e3e; gap:0; background:#d5b37b; border-radius:11px; padding:7px; box-shadow:inset 0 2px 10px #4d331975,0 7px 0 #3e342a,0 12px 18px #0005; }
.classic-shell .party-gomoku .party-cell { background:linear-gradient(0deg,transparent calc(50% - .6px),#694c2ba3 calc(50% - .6px),#694c2ba3 calc(50% + .6px),transparent calc(50% + .6px)),linear-gradient(90deg,transparent calc(50% - .6px),#694c2ba3 calc(50% - .6px),#694c2ba3 calc(50% + .6px),transparent calc(50% + .6px)),repeating-linear-gradient(100deg,#7d59270a 0 1px,transparent 1px 4px),#d2ae75; border:0; box-shadow:none; padding:2px; border-radius:0; }
.classic-shell .party-gomoku .party-cell:enabled:hover { background-color:#d2ae75; border:0; }
.classic-shell .party-gomoku .party-stone { width:94%; height:94%; font-size:9px; }
.classic-shell .party-reversi { padding:10px; border:8px solid #b19465; border-radius:13px; gap:3px; background:#172f34; box-shadow:inset 0 2px 10px #0008,0 7px 0 #50452f,0 13px 20px #0006; }
.classic-shell .party-reversi .party-cell { background:linear-gradient(145deg,#2e7060,#22574e); border:1px solid #80a78f48; box-shadow:inset 0 1px #d7e0b41a; }
.classic-shell .party-reversi .party-stone { height:84%; width:84%; }
.classic-shell .party-piles { gap:12px; }
.classic-shell .party-piles>div { border:1px solid #d5c28a47; background:linear-gradient(145deg,#2c4d47,#143a3d); box-shadow:inset 0 3px 9px #0005; }
.classic-shell .party-piles>div>strong { color:#d1dac1; font-size:12px; letter-spacing:.04em; }
.classic-shell .party-sticks { display:flex; gap:clamp(11px,3vw,25px); min-height:85px; align-items:center; justify-content:center; padding:15px 4px; }
.classic-shell .party-sticks i { position:relative; display:block; width:8px; height:63px; border-radius:2px; background:linear-gradient(90deg,#9b7449,#e7c786 42%,#bd9c67 74%,#886a46); transform:rotate(var(--stick-tilt)); box-shadow:3px 5px 5px #061a1a88; }
.classic-shell .party-sticks i::before { content:''; position:absolute; width:12px; height:15px; left:-2px; top:-4px; border-radius:50% 50% 35% 35%; background:radial-gradient(ellipse at 35% 25%,#f2ae85,#af4f45 60%,#73383c); box-shadow:inset 0 1px #ffcda544; }
.classic-shell .party-sticks small { color:#92aaa0; font-size:12px; letter-spacing:.1em; }
.classic-shell .party-dots { max-width:430px; padding:17px; border:1px solid #9fbba54d; border-radius:18px; background:linear-gradient(135deg,#37645a,#1f4d4c); box-shadow:inset 0 3px 14px #001e2380; }
.classic-shell .party-dot { background:radial-gradient(circle at 30% 25%,#f1e8c8,#a1c0b0 60%,#4f7779); box-shadow:0 3px 0 #193b41,0 4px 5px #0006; }
.classic-shell .party-edge { background:#173f415f; border:0; box-shadow:inset 0 2px 3px #0002; }
.classic-shell .party-edge.taken { background:linear-gradient(145deg,color-mix(in srgb,var(--seat-color) 60%,white),var(--seat-color)); box-shadow:0 3px 0 #102d36,0 4px 8px #00182380; }
.classic-shell .party-box { display:grid; place-items:center; width:82%; height:82%; border-radius:14px; font-size:clamp(22px,5vw,40px); background:color-mix(in srgb,var(--seat-color) 15%,transparent); text-shadow:0 3px #0005; }
.classic-shell[data-classic=kalah] .party-arena { background:repeating-linear-gradient(7deg,#d6aa6314 0 2px,transparent 2px 9px),linear-gradient(140deg,#aa7b4c,#704b32); border-color:#563e2f; }
.classic-shell .party-kalah { padding:6px; }
.classic-shell .party-kalah p { color:#f1d7aa; margin:7px 0; font-size:12px; }
.classic-shell .party-kalah-row { gap:9px; }
.classic-shell .party-pit { position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:space-between; min-height:108px; border:2px solid #cda36c; background:radial-gradient(ellipse at 50% 70%,#5c422e,#3e3026 66%,#2a241f); box-shadow:inset 0 5px 11px #201912b8,0 2px #d2a26980; padding:7px 2px; }
.classic-shell .party-pit:enabled { border-color:#cda36c; }
.classic-shell .party-pit strong { position:relative; z-index:1; font-size:20px; color:#fff0d0; text-shadow:0 2px 4px #191b20; background:#2a231f99; padding:0 5px; border-radius:7px; }
.classic-shell .party-pit small { color:#ddbf8e; font-size:9px; }
.classic-shell .party-seeds { position:absolute; left:17%; top:28%; width:66%; height:45%; pointer-events:none; }
.classic-shell .party-seeds i { position:absolute; width:24%; aspect-ratio:.72; left:calc(40% + var(--seed-x)); top:calc(30% + var(--seed-y)); transform:rotate(var(--seed-turn)); background:radial-gradient(ellipse at 25% 20%,#f5d790,#c69d57 45%,#7e623c); border-radius:40% 60% 45% 55%; box-shadow:1px 3px 3px #21171199; }
.classic-shell .party-seeds i:nth-child(3n) { background:radial-gradient(ellipse at 25% 20%,#bce8d4,#69a69a 45%,#3d6d6d); }
.classic-shell .party-seeds i:nth-child(3n + 1) { background:radial-gradient(ellipse at 25% 20%,#e5b197,#b77861 45%,#684d43); }
.classic-shell .party-kalah-stores { display:flex; justify-content:space-between; border-top:1px solid #e0bd7f38; border-bottom:1px solid #e0bd7f38; padding:5px 11px; color:#d9c09b; }
.classic-shell .party-kalah-stores strong { display:inline-block; min-width:30px; font-size:20px; }
.classic-shell .party-pairs { gap:9px; padding:8px; border-radius:14px; background:transparent; box-shadow:none; }
.classic-shell .party-card { position:relative; border:2px solid #a7bfbb88; border-radius:10px; background:repeating-linear-gradient(45deg,transparent 0 6px,#bcd2b91a 6px 7px),linear-gradient(135deg,#426b71,#234c5a); box-shadow:inset 0 0 0 3px #20434e,inset 0 0 0 4px #a7bfbb38,0 5px 0 #112e36,0 8px 10px #00121e77; color:#e0e7c6; }
.classic-shell .party-card.is-revealed { background:linear-gradient(135deg,#f5eed6,#c9dac6); color:#123a42; box-shadow:inset 0 0 0 2px #faf4db88,0 5px 0 #668778,0 8px 10px #00121e77; }
.classic-shell .party-card.is-matched { opacity:1; background:linear-gradient(145deg,#deedc6,#8dbb9e); box-shadow:inset 0 0 0 2px #f2f6cf66,0 2px 0 #537f6b; }
.classic-shell .party-card-face { display:grid; width:100%; height:100%; place-items:center; }
.classic-shell .party-dice-zone { padding:28px 12px; border-radius:24px; background:radial-gradient(ellipse,#163a3b66,transparent 70%); }
.classic-shell .party-die { flex-shrink:0; position:relative; background:linear-gradient(145deg,#fff3cf,#e7dac0 62%,#c4b391); color:#30454c; border:1px solid #fff7d8; border-radius:18px; box-shadow:inset 0 3px #fffff5c9,inset 0 -5px #b3a27c80,0 6px 0 #9c8e74,0 13px 14px #001a2188; }
.classic-shell .party-pips { display:grid; grid-template-columns:repeat(3,1fr); gap:7%; width:69%; height:69%; }
.classic-shell .party-pips i { display:block; border-radius:50%; }
.classic-shell .party-pips .is-pip { background:radial-gradient(circle at 65% 70%,#263b45,#101e28); box-shadow:inset 0 2px 2px #0005,0 1px #fffc; }
.classic-shell .party-bank strong { display:inline-block; color:#f1deb0; text-shadow:0 4px #12313c; font-variant-numeric:tabular-nums; }
.classic-shell .party-bank small { color:#b5cabb; }
.classic-shell .party-ladders { position:relative; overflow:visible; border:7px solid #b39767; border-radius:13px; background:#c5c7a1; box-shadow:0 7px 0 #526058,0 12px 16px #00131e77; }
.classic-shell .party-ladder-cell { background:#c8d2b1; border:1px solid #8d9b7759; color:#263f42; padding:3px; }
.classic-shell .party-ladder-cell:nth-child(20n + 2),.classic-shell .party-ladder-cell:nth-child(20n + 4),.classic-shell .party-ladder-cell:nth-child(20n + 6),.classic-shell .party-ladder-cell:nth-child(20n + 8),.classic-shell .party-ladder-cell:nth-child(20n + 10),.classic-shell .party-ladder-cell:nth-child(20n + 11),.classic-shell .party-ladder-cell:nth-child(20n + 13),.classic-shell .party-ladder-cell:nth-child(20n + 15),.classic-shell .party-ladder-cell:nth-child(20n + 17),.classic-shell .party-ladder-cell:nth-child(20n + 19) { background:#b2c2a3; }
.classic-shell .party-ladder-cell>small { position:relative; z-index:2; font-weight:800; color:#284842; text-shadow:0 1px #edf0ce; }
.classic-shell .party-ladder-cell>span { z-index:2; background:#e7e8c4d9; color:#344a3d; border-radius:3px; font-size:8px; padding:0 2px; }
.classic-shell .party-ladder-cell>div { position:absolute; inset:0; align-items:center; justify-content:center; z-index:3; }
.classic-shell .party-ladder-cell .party-pawn { position:relative; border-radius:48% 48% 30% 30%; height:19px; width:15px; border:1px solid #effadac4; box-shadow:inset -3px -2px #0003,0 3px 0 color-mix(in srgb,var(--seat-color) 45%,#173544),0 5px 5px #001c29aa; font-size:10px; }
.classic-shell .party-race-paths { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; filter:drop-shadow(1px 3px 1px #38452d80); }
.classic-shell .party-race-ladder path { fill:none; stroke:#836d43; stroke-width:10; stroke-linecap:round; }
.classic-shell .party-race-snake path { fill:none; stroke:#578c72; stroke-width:30; stroke-linecap:round; }
.classic-shell .party-race-snake path.party-snake-stripe { stroke:#96b87d; stroke-width:7; stroke-dasharray:5 25; }
.classic-shell .party-race-snake ellipse { fill:#578c72; stroke:#bfd197; stroke-width:3; }
.classic-shell .party-race-snake circle { fill:#112d31; }
.classic-shell .party-tiles { padding:13px 9px 16px; border:6px solid #9c7e4c; gap:5px; border-radius:11px; background:#2b2923; box-shadow:inset 0 3px 6px #0008,0 5px 0 #614d35; }
.classic-shell .party-tiles button { position:relative; border-radius:5px; border-color:#e2c5916b; padding:15px 0; background:linear-gradient(145deg,#f0d5a4,#b99a6d); color:#3b3e38; font-family:ui-rounded,system-ui,sans-serif; font-weight:900; box-shadow:inset 0 3px #fff5,inset 0 -5px #8c6d4d99,0 4px 0 #534736; opacity:1!important; }
.classic-shell .party-tiles button::before { content:''; position:absolute; top:5px; left:25%; width:50%; height:2px; border-radius:2px; background:#685b45a3; }
.classic-shell .party-tiles button.is-selected { background:linear-gradient(145deg,#d2ecda,#82b9aa); outline:2px solid #c8f4de; color:#173f44; }
.classic-shell .party-tiles button.is-closed { background:linear-gradient(145deg,#564e3e,#38372d); color:#b4aa8c66; box-shadow:inset 0 4px 9px #0009; }
.classic-shell .party-hex { padding:15px 7px 15px 0; border-top:6px solid #8bcfc1; border-bottom:6px solid #8bcfc1; border-radius:10px; background:radial-gradient(ellipse,#527a7466,transparent 70%); }
.classic-shell .party-hex-row .party-cell { background:linear-gradient(145deg,#97a89d,#657f7d); padding:4px; box-shadow:none; }
.classic-shell .party-hex-row .party-cell:first-child,.classic-shell .party-hex-row .party-cell:last-child { background:linear-gradient(145deg,#cfaab2,#b9859b); }
.classic-shell .party-hex-row .party-cell .party-stone { box-shadow:inset 0 2px #ffffff83,inset 0 -4px #0004; }
.classic-shell .party-flood { padding:10px; border:7px solid #b7a57a; gap:3px; border-radius:14px; background:#223f43; box-shadow:inset 0 3px 9px #0009,0 6px 0 #5b6658,0 13px 18px #00131e88; }
.classic-shell .party-territory { position:relative; box-shadow:inset 0 2px #fff7,inset 0 -3px #0003,0 2px 0 #112c35; border-radius:4px; }
.classic-shell .party-territory::before { content:''; position:absolute; inset:2px; border:1px solid #1f485326; border-radius:2px; pointer-events:none; }
.classic-shell .party-territory b { z-index:1; height:70%; width:70%; background:#e9f8e757; border:1px solid #17393d4f; box-shadow:0 2px #0002; }
.classic-shell .party-swatch { border:1px solid #ffffe799; box-shadow:inset 0 2px #fff5,inset 0 -3px #0003; }
.classic-shell .party-history { margin:14px 0 0; padding:10px 14px; border-left:3px solid #a5ba9b; border-radius:7px; font-size:13px; background:linear-gradient(120deg,#1e3337,#14252f); box-shadow:inset 0 1px #b6d1c413; color:#c0d0c5; }
.classic-shell .party-history p { margin:4px 0; }
.classic-shell .party-result { background:radial-gradient(ellipse at top,#85a17333,transparent 75%),#192b32; border-color:#b9c9a1; box-shadow:0 12px 20px #0003; }
@media(max-width:650px) { .classic-shell.party-shell .party-arena { padding:12px; border-width:6px; border-radius:18px; } .classic-shell .party-connect4 { border-width:4px; padding:7px; gap:5px; } .classic-shell .party-gomoku { border-width:5px; padding:4px; } .classic-shell .party-reversi { border-width:5px; padding:5px; gap:2px; } .classic-shell .party-kalah-row { gap:4px; } .classic-shell .party-pit { min-height:90px; } .classic-shell .party-pit strong { font-size:16px; } .classic-shell .party-pairs { gap:5px; padding:0; } .classic-shell .party-card { border-width:1px; border-radius:6px; } .classic-shell .party-tiles { padding:10px 5px 13px; border-width:4px; gap:3px; } .classic-shell .party-tiles button { padding:17px 0; } .classic-shell .party-dice-zone { gap:15px; padding:21px 2px; } .classic-shell .party-ladders { border-width:4px; } .classic-shell .party-ladder-cell { padding:1px; } .classic-shell .party-ladder-cell>small { font-size:8px; } .classic-shell .party-ladder-cell>span { font-size:6px; padding:0 1px; top:14px; right:0; } .classic-shell .party-ladder-cell .party-pawn { width:11px; height:14px; font-size:8px; } .classic-shell .party-flood { padding:6px; border-width:4px; } }
.classic-shell .party-outcome { display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:650px; margin:0 auto 16px; border:1px solid #8caaa457; border-left:4px solid #8ca7a6; border-radius:12px; padding:11px 15px; background:linear-gradient(125deg,#2b4147,#1a2c36); box-shadow:inset 0 1px #f4ffe414,0 6px 15px #0002; }
.party-outcome>div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.party-outcome small { color:#a2b7b6; font-size:10px; }
.party-outcome strong { color:#e7eee0; font-size:15px; }
.party-outcome span { color:#b9cdc2; font-size:12px; }
.party-outcome>b { color:#9cb2ae; font-size:11px; font-variant-numeric:tabular-nums; }
.classic-shell .party-outcome[data-kind=success] { border-left-color:#a4d09e; }
.classic-shell .party-outcome[data-kind=risk] { border-left-color:#e3ae8b; }
.classic-shell .party-race-status { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:15px; }
.classic-shell .party-race-status .party-die { width:44px; height:44px; border-radius:10px; font-size:22px; }
.classic-shell .party-race-start { display:flex; align-items:center; gap:6px; padding:12px 7px 0; min-height:32px; }
.party-race-start small { color:#c1cfbb; font-size:9px; letter-spacing:.12em; margin-right:5px; }
.classic-shell .party-race-start .party-pawn { display:grid; place-items:center; width:17px; height:23px; border-radius:48% 48% 30% 30%; border:1px solid #ffffdfb3; box-shadow:inset -3px -3px #0003,0 3px #123b43; color:#16333d; font-size:11px; }
@media(max-width:650px) { .classic-shell .party-outcome { padding:10px 11px; margin-bottom:13px; } .party-outcome strong { font-size:14px; } .party-outcome span { font-size:11px; } }

/* Revisit only boards this tab has already received; the live controls remain separate. */
.party-review-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.party-review-entry>small{color:#9db6b7;font-size:11px}.party-review-entry button,.party-review-toolbar button{min-width:48px;min-height:48px}.party-review-panel{border:1px solid #a4b89b66;border-radius:14px;padding:16px;background:linear-gradient(135deg,#2e4149,#182d3a);margin:12px 0}.party-review-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.party-review-toolbar>div{flex:1 1 220px;min-width:0}.party-review-toolbar small,.party-review-toolbar strong{display:block}.party-review-toolbar small{font-size:9px;color:#dbc995;letter-spacing:.08em}.party-review-toolbar strong{font-size:13px;color:#dbe5d4;line-height:1.6;margin-top:5px}.party-review-board{pointer-events:none}.party-review-board button:disabled{opacity:1;cursor:default}.party-review-note{font-size:11px;line-height:1.7;color:#a3bdbc}.party-review-panel[hidden],.party-arena[hidden]{display:none!important}@media(max-width:600px){.party-review-panel{padding:10px}.party-review-toolbar{gap:6px}.party-review-toolbar>div{flex-basis:100%}.party-review-toolbar button{font-size:11px;padding:8px 10px}.party-review-toolbar button:last-child{flex:1}.party-review-entry>small{font-size:10px}}

/* Keep the complete mobile Show board and its wrapped controls caption above
   the player strip without changing the native player's board or controls. */
@media(max-width:650px){
.ss-catalogue-scene .party-shell[data-classic=morris] .morris-phase{padding-bottom:6px}
.ss-catalogue-scene .party-shell[data-classic=morris] .morris-phase p{font-size:12px;line-height:1.4;margin-top:5px}
.ss-catalogue-scene .party-shell[data-classic=morris] .morris-reserves{gap:8px;margin-bottom:10px}
.ss-catalogue-scene .party-shell[data-classic=morris] .morris-reserves>div{padding:4px 6px}
.ss-catalogue-scene .party-shell[data-classic=morris] .morris-controls{margin-top:10px;font-size:10px;line-height:1.4}
}

/* While a round is played, the briefing cards and the wide room bar give their space to the table. */
.party-shell.is-playing>.classic-mission{display:none}
.party-shell.is-playing .party-rules{padding:8px 14px}.party-shell.is-playing .party-connection{margin:6px 0}
@media(max-width:650px){.party-shell.is-playing .party-room-bar{flex-wrap:nowrap;gap:6px;padding:2px 0 8px}.party-shell.is-playing .party-room-bar strong{font-size:15px;letter-spacing:.1em}.party-shell.is-playing .party-room-bar small{font-size:8px}.party-shell.is-playing .party-room-bar .control-button{min-height:44px;padding:6px 8px;font-size:10px;line-height:1.15}.party-shell.is-playing .party-players{margin:8px 0}.party-shell.is-playing .party-turn{margin:8px 0;font-size:17px}}
.party-arena+.party-outcome,.party-review-panel+.party-outcome{margin-top:14px}

/* Laptop-height screens: the table shrinks with the viewport height so the whole board and its controls are visible at once. */
@media (min-width:700px) and (max-height:820px){.party-shell.is-playing .party-arena{max-width:clamp(430px,calc(100vh - 130px),650px);margin-inline:auto}.party-shell.is-playing .party-arena:has(.party-flood){max-width:clamp(430px,calc(100vh - 160px),650px)}.party-shell.is-playing .party-arena:has(.party-ladders){max-width:clamp(430px,calc(100vh - 226px),650px)}.party-shell.is-playing .party-arena:has(.morris-board){max-width:clamp(430px,calc(100vh - 287px),650px)}}

/* Phones: the table takes the full width of the screen during play, so cells are as large as the device allows. */
@media (max-width:480px){.party-shell.is-playing .party-arena{margin-inline:-14px;padding-inline:6px}}
