.mj-game{max-width:620px;min-width:0;margin:auto;color:var(--ink-dark,#f6e8ef);font-family:var(--font-body,'Hanken Grotesk',sans-serif)}
.mj-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mj-heading h2{font:400 1.65rem var(--font-display,'Fraunces',serif);margin:0;color:var(--rose-300,#e8b1ad)}
.mj-heading span,.mj-footnote{font-size:1rem;color:var(--muted)}.mj-instructions{font-size:1rem;line-height:1.5;margin:12px 0}
.mj-stats,.mj-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.mj-stats{padding:10px 12px;border:1px solid #e8a4a426;border-radius:12px;background:#ffffff06;font-variant-numeric:tabular-nums;font-size:1rem}
.mj-contrib{font-size:1rem;margin:10px 0 4px}.mj-turn{color:#f3bfaf;margin:4px 0;font-weight:600}
.mj-feedback{font-size:1rem;min-height:2.5em;margin:10px 0 0;line-height:1.4}
.mj-board{position:relative;width:100%;isolation:isolate;margin:6px auto 16px;border-radius:18px;background:radial-gradient(ellipse,#79425425,transparent 70%)}
.mj-game .mj-tile{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;min-height:0;min-width:0;padding:3px 2px;border:1.5px solid #c68f7c;border-radius:12%;background:linear-gradient(145deg,#fff8e9,#efcfc9);color:#683342;box-shadow:1px 3px 0 #a97062,2px 5px 7px #16091180;touch-action:manipulation;transition:filter .18s,box-shadow .18s,transform .18s;cursor:pointer}
.mj-tile svg{width:62%;height:60%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mj-face-name{font-size:.875rem;line-height:1.2;pointer-events:none}
.mj-game .mj-free{transform:translateY(-2px);box-shadow:1px 4px 0 #ad7868,0 0 8px #f6d7bb55,2px 6px 8px #16091180}
.mj-game .mj-blocked{filter:brightness(.69) saturate(.7)}
.mj-game .mj-selected,.mj-game .mj-hint{outline:3px solid #fff0b9;outline-offset:0;box-shadow:0 0 16px #ffe6c9bb,1px 4px 0 #ad7868;filter:brightness(1.08)}
.mj-game .mj-selected{transform:translateY(-4px)}
.mj-game .mj-tile:focus-visible{outline:3px solid #f8e0ab;outline-offset:1px}
.mj-game .mj-tile:disabled{cursor:default}.mj-actions button{min-height:44px;touch-action:manipulation}.mj-actions button:disabled{opacity:.45;cursor:default}
.mj-actions span{font-size:1rem}.mj-stuck{border:1px solid #dba39355;border-radius:14px;padding:12px;margin-top:12px;background:#ffffff06;font-size:1rem}.mj-stuck p{margin:4px 0 12px}.mj-stuck .mj-actions{justify-content:flex-start}.mj-stuck [data-shuffle-note]{margin:12px 0 0;font-size:1rem}
.mj-game .mj-removing{pointer-events:none;animation:mj-fade .26s ease-out forwards}
.mj-game .mj-shake{animation:mj-shake .25s ease-in-out}
@keyframes mj-fade{to{opacity:0;transform:translateY(-9px) scale(.95)}}
@keyframes mj-shake{25%{translate:-3px 0}75%{translate:3px 0}}
@media(orientation:landscape) and (max-height:600px){.mj-game{max-width:540px}.mj-instructions{margin:6px 0}.mj-feedback{min-height:1.4em}.mj-board{max-width:390px}.mj-footnote{margin-bottom:0}}
@media(prefers-reduced-motion:reduce){.mj-game .mj-tile{transition:none}.mj-game .mj-shake{animation:none}.mj-game .mj-removing{animation:none;opacity:1}}

/* Seat colours also work while the shared player stylesheet loads. */
.mj-game .p0{--pc:var(--p0,#e8a4a4)}
.mj-game .p1{--pc:var(--p1,#f2c777)}
.mj-game{font-size:1rem;line-height:1.5;color:var(--ink)}
.mj-contrib span{color:var(--pc)}
.mj-turn{font-size:1.25rem}
.mj-feedback,.mj-stuck{line-height:1.5}
.mj-game .mj-removing.p0,.mj-game .mj-removing.p1{filter:none;border:3px solid var(--pc);box-shadow:0 0 14px var(--pc);background:var(--pc);color:#38222c}
/* The accessible button name identifies compact tiles without tiny text. */
@media(max-width:600px){.mj-face-name{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

.mj-result-contrib .p0,.mj-result-contrib.p0{--pc:var(--p0,#e8a4a4)}
.mj-result-contrib .p1,.mj-result-contrib.p1{--pc:var(--p1,#f2c777)}
.mj-match-flash{outline:3px solid var(--pc);border-radius:.75rem}
