
:root {
  color-scheme: light;
  --paper:#f7f5ef; --surface:#fffefa; --ink:#232923; --quiet:#4c594f;
  --accent:#17513d; --line:#cdd3c7; --shadow:#12251b26; --alert:#982424; --accent-ink:#fff;
  font-family:Inter,system-ui,sans-serif; background:var(--paper); color:var(--ink);
}
:root[data-module-theme="light"] { color-scheme: light; }
:root[data-module-theme="dark"] { color-scheme:dark;
  --paper:#111827; --surface:#1f2937; --ink:#f9fafb; --quiet:#cbd5e1;
  --accent:#93c5fd; --line:#475569; --shadow:#0008; --alert:#ffc0ba; --accent-ink:#172b41; }
@media (prefers-color-scheme:dark) { :root[data-module-theme="system"] { color-scheme:dark;
  --paper:#111827; --surface:#1f2937; --ink:#f9fafb; --quiet:#cbd5e1;
  --accent:#93c5fd; --line:#475569; --shadow:#0008; --alert:#ffc0ba; --accent-ink:#172b41; } }
* { box-sizing: border-box; }
body { margin:0; }
.frame { width:min(74rem, calc(100% - 2rem)); margin-inline:auto; }
header.module-header, footer.module-footer { padding:.4rem 0; border-bottom:1px solid var(--line); }
header.module-header > .frame { display:flex; justify-content:space-between; align-items:center; gap:.8rem; flex-wrap:wrap; }
.module-header-tools, .module-preferences { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; min-width:0; }
.module-header-tools { margin-inline-start:auto; justify-content:end; }
.module-screen-bar { position:sticky; inset-block-start:0; z-index:5; background:var(--paper); }
.module-screen-bar > .frame { position:relative; }
.module-screen-bar:not(header) { padding:.35rem 0; border-bottom:1px solid var(--line); }
.module-screen-bar:not(header) > .frame { display:flex; justify-content:flex-end; }
.module-screen-tools { position:relative; }
.module-screen-tools > summary { cursor:pointer; min-height:2.75rem; align-content:center; font-weight:700; color:var(--accent); }
.module-screen-panel { position:absolute; inset-block-start:100%; inset-inline-end:0; inline-size:min(24rem,calc(100vw - 2rem));
  max-block-size:min(75vh,30rem); max-block-size:min(75dvh,30rem); overflow:auto; overflow-wrap:anywhere; padding:1rem; color:var(--ink); background:var(--surface);
  border:1px solid var(--line); border-radius:.8rem; box-shadow:0 .65rem 1.6rem var(--shadow); }
.module-screen-panel p { margin:0 0 .65rem; }
.module-screen-panel p:empty { margin:0; }
.module-screen-panel [hidden] { display:none !important; }
.module-screen-panel [role="status"] { font-weight:700; }
.module-screen-panel [role="alert"] { color:var(--alert); }
.module-screen-panel form, .module-screen-panel .display-remote-actions { display:grid; gap:.55rem; }
.module-screen-panel .display-remote-actions { margin-block-start:.75rem; }
.module-screen-panel a { font-weight:600; }
.module-screen-panel label { font-weight:650; }
.module-screen-panel input, .module-screen-panel button { min-height:2.75rem; border:1px solid var(--line); border-radius:.45rem;
  background:var(--paper); color:var(--ink); font:inherit; padding:.45rem .65rem; }
.module-screen-panel input { inline-size:100%; text-transform:uppercase; letter-spacing:.08em; }
.module-screen-panel button { cursor:pointer; }
.module-screen-panel button:disabled { cursor:wait; opacity:.7; }
.module-screen-panel form > button { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); font-weight:700; }
.module-screen-close { margin-block-start:.65rem; }
.module-screen-tools :is(summary,button,a,input):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:42rem) {
  .module-screen-tools { position:static; }
  .module-screen-panel { inset-inline:0; inline-size:auto; }
}
footer.module-footer { border-top:1px solid var(--line); border-bottom:0; }
a { color:var(--accent); text-underline-offset:.2em; }
header.module-header a { font-weight:750; }
.module-presentation .player iframe { background: var(--paper); }
.player { padding-block:.5rem; }
.player h1 { font:700 clamp(2rem,5vw,3.5rem)/1.1 Georgia,serif; letter-spacing:-.04em; margin:0 0 .4rem; }
.module-page-heading, .module-page-summary { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.module-private-view .module-page-summary { display:none; }
.module-dilemma.module-private-view .player { padding-top:0; }
.player > p { color:var(--quiet); max-width:65ch; }
.player iframe { display:block; width:100%; height:clamp(32rem,75vh,58rem); height:clamp(32rem,75dvh,58rem); border:0; background:var(--surface); color-scheme:inherit; }
.player iframe[hidden] { display:none; }
.module-dilemma.module-private-view.module-header .player iframe { height:max(28rem,calc(100dvh - 4.25rem)); }
.module-none .player { padding-block:0; width:100%; }
.module-none .player iframe { height:100dvh; }
.surface { margin:.75rem 0; padding:.75rem 1rem; border:1px solid var(--line); border-radius:.5rem; background:var(--surface); }
.module-tools { display:flex; flex-wrap:wrap; gap:1rem; margin-top:.8rem; align-items:center; }
.module-tools .module-preferences { margin-inline-start:auto; }
.module-none .module-tools { padding:.5rem 1rem; }
.module-account { color:var(--quiet); overflow-wrap:anywhere; }
.module-account-row { margin-block:.4rem; }
.module-none .module-account-row { padding-inline:1rem; }
.module-ad-controls { font-size:.875rem; }
button { font:inherit; padding:.35rem .65rem; }
.ludo-host-presentation { min-width:0; max-width:36rem; margin:0 auto 1rem; scroll-margin-top:5rem; }
.ludo-host-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; margin-block-end:.5rem; }
.ludo-host-toolbar button { min-height:2.75rem; cursor:pointer; border:1px solid var(--line); border-radius:.55rem; color:var(--ink); background:var(--surface); }
.ludo-host-toolbar button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.ludo-host-board { min-width:0; width:100%; margin:0; }
body.ludo-presenting { overflow:hidden; }
.ludo-host-presentation[data-expanded] { position:fixed; inset:0; z-index:1000; width:100%; height:100dvh; max-width:none;
  box-sizing:border-box; margin:0; padding:max(.5rem,env(safe-area-inset-top)) max(.5rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom)) max(.5rem,env(safe-area-inset-left));
  display:flex; flex-direction:column; overflow:auto; overscroll-behavior:contain; background:var(--paper); color:var(--ink); }
.ludo-host-presentation[data-expanded] .ludo-host-toolbar { flex:none; }
.ludo-host-presentation[data-expanded] .ludo-host-board { flex:1; min-height:0; }
.ludo-host-presentation[data-expanded] .display-board-area { margin-inline:auto; }
.ludo-host-presentation[data-expanded] .display-board-participants { margin-block:.35rem; }
.ludo-host-board h2 { margin:0 0 .5rem; font-size:1.25rem; }
@media (min-width:50rem) {
  .ludo-host-layout:has(.ludo-host-presentation:not([hidden])) {
    display:grid; grid-template-columns:minmax(0, 1fr) minmax(20rem, 1fr);
    gap:clamp(1rem, 3vw, 2.5rem); align-items:start;
  }
  .ludo-host-presentation { width:100%; }
}

.display-board-area { container-type:inline-size; position:relative; margin-inline:auto; width:100%; aspect-ratio:var(--board-columns) / var(--board-rows); }
.display-board, .display-board-overlays { position:absolute; inset:0; display:grid;
  grid-template:repeat(var(--board-rows),minmax(0,1fr)) / repeat(var(--board-columns),minmax(0,1fr)); }
.display-board-face[data-state="unknown"] { background:transparent; border:1px dashed var(--line,#aab1ac); }
.display-board-face[data-state="absent"] { background:light-dark(#858b88,#626b67); }
.display-board-cell { display:grid; padding:clamp(.5px,.14vw,1.5px); min-width:0; min-height:0; }
.display-board-face { min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:1px; overflow:hidden;
  border-radius:12%; border:1px solid light-dark(#adb8a9,#586a58); background:var(--cell-tint,light-dark(#e8e9df,#2a3830)); }
.display-board-token { display:inline-flex; min-width:36%; aspect-ratio:1; justify-content:center; align-items:center;
  border-radius:50%; background:var(--token); color:var(--token-text); border:1px solid var(--token-text);
  font-size:clamp(.45rem,1.3vw,.85rem); font-weight:800; line-height:1; }
.display-board-label { font-size:clamp(.45rem,1.3vw,.85rem); line-height:1; }
.display-board [data-tone=red] { --cell-tint:light-dark(#f6c5c8,#6a313d); --token:#9c263e; --token-text:#fff; }
.display-board [data-tone=green] { --cell-tint:light-dark(#bce9cf,#225543); --token:#11684e; --token-text:#fff; }
.display-board [data-tone=yellow] { --cell-tint:light-dark(#fae1a4,#6c5524); --token:#f0c547; --token-text:#312709; }
.display-board [data-tone=blue] { --cell-tint:light-dark(#c3dbf9,#2c476d); --token:#275aa0; --token-text:#fff; }
.display-board [data-tone=purple] { --cell-tint:light-dark(#e0caf7,#53426e); --token:#6a429b; --token-text:#fff; }
.display-board [data-tone=orange] { --cell-tint:light-dark(#ffd4ae,#6e462e); --token:#a94a19; --token-text:#fff; }
.display-board [data-tone=cyan] { --cell-tint:light-dark(#b6eef3,#23565f); --token:#076d79; --token-text:#fff; }
.display-board [data-tone=pink] { --cell-tint:light-dark(#f8c9e4,#65314f); --token:#9f316f; --token-text:#fff; }
.display-board [data-tone=neutral] { --token:#525c55; --token-text:#fff; }
.display-board-overlays { pointer-events:none; }
.display-board-zone { align-self:center; justify-self:center; width:min(82%,calc(100% - 4px)); max-height:82%; aspect-ratio:1;
  border-radius:50%; background:var(--board-tone,#cbd5e1); }
.display-board-zone[data-compact] { width:100%; max-height:100%; }
.display-board-participants { display:flex; justify-content:center; flex-wrap:wrap; gap:.35rem; list-style:none;
  margin:0 auto .4rem; padding:0; text-align:start; }
.display-board-participants li { display:flex; align-items:center; gap:.35em; min-width:0; max-width:100%; overflow-wrap:anywhere;
  border:1px solid light-dark(#b7c5d5,#77869b); border-radius:999px; padding:.18em .62em; }
.display-board-participants li::before { content:''; width:.63em; height:.63em; border-radius:50%; flex:none;
  background:var(--board-tone,#64748b); border:1px solid light-dark(#142234,#f4f7fa); }
.display-board-participants [aria-current] { border-color:currentColor; font-weight:750; box-shadow:inset 0 0 0 1px currentColor; }
.display-board-area, .display-board-participants { --board-tone:#64748b; }
:is(.display-board-area,.display-board-participants) [data-tone="red"] { --board-tone:#fb4649; --board-shade:#971826; }
:is(.display-board-area,.display-board-participants) [data-tone="green"] { --board-tone:#10bc74; --board-shade:#046845; }
:is(.display-board-area,.display-board-participants) [data-tone="yellow"] { --board-tone:#ffcb27; --board-shade:#af6512; }
:is(.display-board-area,.display-board-participants) [data-tone="blue"] { --board-tone:#25baf5; --board-shade:#106596; }
:is(.display-board-area,.display-board-participants) [data-tone="purple"] { --board-tone:#b585f5; --board-shade:#6940a8; }
:is(.display-board-area,.display-board-participants) [data-tone="orange"] { --board-tone:#ff903f; --board-shade:#a74412; }
:is(.display-board-area,.display-board-participants) [data-tone="cyan"] { --board-tone:#29d3e2; --board-shade:#15aebe; }
:is(.display-board-area,.display-board-participants) [data-tone="pink"] { --board-tone:#fa91c6; --board-shade:#db6aab; }
.display-board-area[data-appearance="dots"] { background:light-dark(#ffffff,#e9eef5); color:#253345;
  border-radius:clamp(.7rem,2vw,1.25rem); box-shadow:0 .4rem 1.25rem #10182822; overflow:hidden; }
[data-appearance="dots"] .display-board-face { position:relative; box-sizing:border-box; border-radius:50%;
  background:var(--board-tone,#edf1f6); border:1px solid #273b5c40; }
[data-appearance="dots"] .display-board-face[data-tone="neutral"] { --board-tone:#edf1f6; }
[data-appearance="dots"] .display-board-face[data-shape="slot"] {
  background:color-mix(in srgb,var(--board-tone,#fff) 16%,white); border:2px solid var(--board-shade,#526273); }
[data-appearance="dots"] .display-board-face:has(.display-board-token) .display-board-label { position:absolute; z-index:0; }
[data-appearance="dots"] .display-board-label { font-weight:850; }
.display-board-token[data-active] { outline:2px solid #182533; outline-offset:1px; }
[data-appearance="dots"] .display-board-token { position:relative; z-index:1; min-width:0; width:43%; max-height:80%;
  box-sizing:border-box; border:1px solid #ffffffcc; color:#fff;
  background:radial-gradient(circle at 34% 22%, #ffffff8c 0%, transparent 43%),
    linear-gradient(150deg,var(--board-tone,#697b90) 8%,var(--board-shade,#344356) 85%);
  box-shadow:0 1px 2px #10182880; text-shadow:0 1px 2px #061126; }
[data-appearance="dots"] .display-board-face:not(:has(.display-board-token + .display-board-token)) .display-board-token { width:80%; }
[data-appearance="dots"] .display-board-token[data-tone=yellow] { color:#291502; text-shadow:none; }
[data-appearance="dots"] .display-board-token[data-tone=cyan] { color:#09353b; text-shadow:none; }
[data-appearance="dots"] .display-board-token[data-tone=pink] { color:#451b37; text-shadow:none; }

.display-board-tools { display:flex; justify-content:flex-end; margin:0 0 .35rem; }
.display-board-sound { font:inherit; font-size:.8rem; min-height:2.75rem; padding:.35rem .65rem; border-radius:.5rem;
  border:1px solid light-dark(#81958a,#738e7d); color:inherit; background:light-dark(#f7f9f8,#25332a); cursor:pointer; }
.display-board-sound[aria-pressed="true"] { border-color:currentColor; }
.display-board-sound:focus-visible { outline:3px solid currentColor; outline-offset:3px; }
.display-board-sound:disabled { opacity:.65; cursor:default; }
.display-board-face[data-token-count] { position:relative; display:grid; box-sizing:border-box; padding:13%; gap:4%;
  grid-template:repeat(var(--token-rows),minmax(0,1fr)) / repeat(var(--token-columns),minmax(0,1fr)); align-items:center; justify-items:center; }
.display-board-face[data-token-count] > .display-board-label { position:absolute; inset:0; display:grid; place-items:center; opacity:.55; }
.display-board-face[data-token-count] > .display-board-token { width:100%; min-width:0; min-height:0; max-height:100%;
  line-height:1; font-size:clamp(3px,calc(100cqi / var(--board-columns) * .23),14px); border-width:1px; }
.display-board-motion-layer { position:absolute; inset:0; z-index:4; pointer-events:none; }
.display-board-moving-token { position:absolute; display:grid; place-items:center; min-width:0; min-height:0; border-radius:50%;
  line-height:1; will-change:transform; }
.display-board-moving-token::after { content:'✦'; position:absolute; inset-block-start:-35%; inset-inline-end:-28%; font-size:85%;
  color:#fff7c2; text-shadow:0 0 3px #bc7914,0 0 8px #ffefb1; }

.display-board-die { z-index:2; position:relative; display:grid; place-items:center; padding:10%; }
.display-board-die-face { display:grid; grid-template:repeat(3,minmax(0,1fr)) / repeat(3,minmax(0,1fr));
  place-items:center; width:56%; max-height:90%; aspect-ratio:1; box-sizing:border-box; padding:8%;
  border:1px solid #c7d1de; border-radius:20%; color:#1f2937; background:linear-gradient(145deg,#fff,#f4f6fb 65%,#dce5f1);
  box-shadow:0 3px 7px #091a3666,inset -1px -2px 0 #30496722; }
.display-board-die-pip { width:65%; aspect-ratio:1; border-radius:50%; background:#202c3d; }
.display-board-die-empty { grid-area:1 / 1 / -1 / -1; font-size:clamp(.85rem,3vw,2rem); line-height:1; font-weight:650; }
.display-board-die-value { position:absolute; inset-inline-end:8%; inset-block-end:9%; min-inline-size:1.45em; min-block-size:1.45em;
  display:grid; place-items:center; padding:.05em .22em; border-radius:50%; color:#fff; background:#202c3d;
  box-shadow:0 1px 3px #091a3655; font-size:clamp(.65rem,1.8vmin,1.35rem); font-weight:800; line-height:1; }
.display-board-die[data-compact] { padding:0; }
.display-board-die[data-compact] .display-board-die-face { width:95%; max-height:100%; }
.display-board-die[data-compact] .display-board-die-value { inset-inline-end:0; inset-block-end:0; min-inline-size:1.15em; min-block-size:1.15em;
  font-size:clamp(.55rem,1.1vmin,.85rem); }
@media (prefers-reduced-motion:no-preference) {
  .display-board-die[data-rolling] .display-board-die-face { animation:display-die-roll .68s cubic-bezier(.25,.75,.25,1) both; }
  @keyframes display-die-roll {
    0% { transform:translateY(-18%) rotate(-24deg) scale(.86); }
    35% { transform:translateY(7%) rotate(20deg) scale(1.07); }
    61% { transform:translateY(-6%) rotate(-12deg) scale(.98); }
    82% { transform:translateY(3%) rotate(6deg); }
    100% { transform:none; }
  }
}
.display-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
/* Higher specificity avoids invalid-at-computed-value var(light-dark()) colors. */
@supports not (background:light-dark(white,black)) {
  .display-board .display-board-face { background:#e8e9df; border-color:#adb8a9; }
  :root[data-module-theme="dark"] .display-board .display-board-face { background:#2a3830; border-color:#586a58; }
  .display-board .display-board-face[data-tone="red"] { --cell-tint:#f6c5c8; background:#f6c5c8; }
  .display-board .display-board-face[data-tone="green"] { --cell-tint:#bce9cf; background:#bce9cf; }
  .display-board .display-board-face[data-tone="yellow"] { --cell-tint:#fae1a4; background:#fae1a4; }
  .display-board .display-board-face[data-tone="blue"] { --cell-tint:#c3dbf9; background:#c3dbf9; }
  .display-board .display-board-face[data-tone="purple"] { --cell-tint:#e0caf7; background:#e0caf7; }
  .display-board .display-board-face[data-tone="orange"] { --cell-tint:#ffd4ae; background:#ffd4ae; }
  .display-board .display-board-face[data-tone="cyan"] { --cell-tint:#b6eef3; background:#b6eef3; }
  .display-board .display-board-face[data-tone="pink"] { --cell-tint:#f8c9e4; background:#f8c9e4; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="red"] { --cell-tint:#6a313d; background:#6a313d; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="green"] { --cell-tint:#225543; background:#225543; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="yellow"] { --cell-tint:#6c5524; background:#6c5524; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="blue"] { --cell-tint:#2c476d; background:#2c476d; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="purple"] { --cell-tint:#53426e; background:#53426e; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="orange"] { --cell-tint:#6e462e; background:#6e462e; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="cyan"] { --cell-tint:#23565f; background:#23565f; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-tone="pink"] { --cell-tint:#65314f; background:#65314f; }
  .display-board-area [data-tone="red"], .display-board-participants [data-tone="red"] { --board-tone:#fb4649; --board-shade:#971826; }
  .display-board-area [data-tone="green"], .display-board-participants [data-tone="green"] { --board-tone:#10bc74; --board-shade:#046845; }
  .display-board-area [data-tone="yellow"], .display-board-participants [data-tone="yellow"] { --board-tone:#ffcb27; --board-shade:#af6512; }
  .display-board-area [data-tone="blue"], .display-board-participants [data-tone="blue"] { --board-tone:#25baf5; --board-shade:#106596; }
  .display-board-area [data-tone="purple"], .display-board-participants [data-tone="purple"] { --board-tone:#b585f5; --board-shade:#6940a8; }
  .display-board-area [data-tone="orange"], .display-board-participants [data-tone="orange"] { --board-tone:#ff903f; --board-shade:#a74412; }
  .display-board-area [data-tone="cyan"], .display-board-participants [data-tone="cyan"] { --board-tone:#29d3e2; --board-shade:#15aebe; }
  .display-board-area [data-tone="pink"], .display-board-participants [data-tone="pink"] { --board-tone:#fa91c6; --board-shade:#db6aab; }
  .display-board-area[data-appearance="dots"] .display-board-face { background:var(--board-tone,#edf1f6); border-color:#526273; }
  .display-board-area[data-appearance="dots"] .display-board-face[data-shape="slot"] { background:#edf1f6; }
  .display-board-area[data-appearance="dots"] .display-board-token { background:var(--board-tone,#697b90); border:1px solid #fff; text-shadow:0 1px 2px #061126; }
  .display-board .display-board-face[data-state="correct"] { background:#bce9cf; border-color:#327447; }
  .display-board .display-board-face[data-state="present"] { background:#fae1a4; border-color:#8c6b18; }
  .display-board .display-board-face[data-state="absent"] { background:#858b88; border-color:#69736c; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-state="correct"] { background:#225543; border-color:#83bd97; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-state="present"] { background:#6c5524; border-color:#c6a657; }
  :root[data-module-theme="dark"] .display-board .display-board-face[data-state="absent"] { background:#626b67; border-color:#939c96; }
  .display-board .display-board-face[data-state="unknown"], :root[data-module-theme="dark"] .display-board .display-board-face[data-state="unknown"] { background:transparent; border:1px dashed #aab1ac; }
}

.account-menu { position:relative; max-width:100%; font-size:.875rem; }
.account-menu summary { cursor:pointer; padding:.45rem .65rem; border:1px solid var(--line); border-radius:.45rem; }
.account-menu-panel { position:absolute; z-index:3; inset-inline-end:0; min-width:10rem; margin-top:.3rem;
  padding:.25rem; background:var(--surface); border:1px solid var(--line); border-radius:.45rem; }
.module-account-row .account-menu { display:inline-block; }
.module-account-row .account-menu-panel { inset-inline:0 auto; }
.account-menu-panel button { width:100%; text-align:start; min-height:2.75rem; color:var(--ink); background:transparent; border:0; }
.account-menu-panel button:hover { background:var(--paper); }
.account-menu-panel [role="status"]:not(:empty) { display:block; padding:.4rem; }
.account-menu :is(summary,button):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.theme-picker { position:relative; width:max-content; flex:none; font-size:.875rem; }
.theme-picker summary { cursor:pointer; padding:.45rem .65rem; border:1px solid var(--line); border-radius:.45rem; }
.theme-picker ul { position:absolute; z-index:2; inset-inline-end:0; min-width:10rem; margin:.3rem 0 0;
  padding:.25rem; list-style:none; background:var(--surface); border:1px solid var(--line); border-radius:.45rem; }
.theme-picker a { display:block; padding:.45rem .65rem; border-radius:.25rem; }
.theme-picker a[aria-current] { font-weight:700; background:var(--paper); }
.theme-picker :is(summary,a):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.language-picker { position:relative; width:max-content; flex:none; font-size:.875rem; }
.language-picker summary { cursor:pointer; padding:.45rem .65rem; border:1px solid var(--line); border-radius:.45rem; }
.language-picker ul { position:absolute; z-index:3; inset-inline-end:0; min-width:8rem; margin:.3rem 0 0;
  padding:.25rem; list-style:none; background:var(--surface); border:1px solid var(--line); border-radius:.45rem; }
.language-picker a { display:block; padding:.45rem .65rem; border-radius:.25rem; }
.language-picker a[aria-current] { font-weight:700; background:var(--paper); }
.language-picker :is(summary,a):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.module-private-view .module-sponsor,
.module-private-view .module-donation,
.module-private-view #module-ad-preference { display: none; }
.module-sponsor-label { display: block; color: var(--quiet); font-size: .85rem; margin-bottom: .35rem; }
.module-sponsor-image { display: block; max-width: 100%; height: auto; border-radius: .25rem; margin-bottom: .35rem; }
@media (max-width: 47.999rem) { [data-module-visibility="desktop"] { display: none; } }
@media (min-width: 48rem) { [data-module-visibility="mobile"] { display: none; } }
.module-adsense { display: block; width: 100%; }
.module-adsense .module-ad-fallback { display: none !important; }
.module-adsense[data-ad-status="unfilled"] .module-ad-fallback,
.module-adsense[data-yce-ad-error] .module-ad-fallback { display: block !important; }
.module-sponsor:has(.module-adsense[data-ad-status="unfilled"]:not([data-yce-ad-fallback])),
.module-sponsor:has(.module-adsense[data-yce-ad-error]:not([data-yce-ad-fallback])) { display: none !important; }
.module-ad-manager + .module-ad-fallback { display: none; }
.module-ad-manager[data-yce-ad-error] { display: none; }
.module-ad-manager[data-yce-ad-error] + .module-ad-fallback { display: block; }
.module-sponsor:has(.module-ad-manager[data-yce-ad-error]:not([data-yce-ad-fallback])) { display: none !important; }

.game-host-tools { margin:0 0 1rem; padding:.8rem; border:1px solid var(--line,#b7c7bf); border-radius:.75rem; background:var(--surface,#fff); color:var(--ink,#192b24); }
.game-host-tools[hidden],.game-host-tools [hidden] { display:none!important; }
.game-host-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35rem 1rem; margin-bottom:.65rem; }
.game-host-heading strong { font-size:1rem; overflow-wrap:anywhere; }
.game-host-heading [role=status] { font-size:.875rem; }
.game-host-actions { display:flex; flex-wrap:wrap; gap:.65rem 1rem; align-items:flex-start; }
.game-host-actions > * { flex:1 1 13rem; min-width:0; margin:0; }
.game-host-tools label { display:block; font-size:.85rem; font-weight:650; margin:0 0 .25rem; }
.game-host-actions > * > div { display:flex; gap:.35rem; align-items:stretch; }
.game-host-tools select,.game-host-tools input,.game-host-tools button,.game-host-tools a { font:inherit; }
.game-host-tools input,.game-host-tools select { box-sizing:border-box; min-width:0; min-height:2.75rem; padding:.5rem; border:1px solid var(--line,#b7c7bf); border-radius:.45rem; background:var(--paper,#f6f7f5); color:var(--ink,#192b24); }
.game-host-tools select { flex:1; width:100%; }
.game-host-tools input { width:5rem; }
.game-host-tools button { min-height:2.75rem; padding:.45rem .7rem; border:1px solid var(--line,#b7c7bf); border-radius:.45rem; background:var(--paper,#f6f7f5); color:var(--ink,#192b24); cursor:pointer; }
.game-host-tools button:disabled { opacity:.55; cursor:default; }
.game-host-tools small { display:block; margin-top:.25rem; font-size:.8rem; line-height:1.4; }
.game-host-tools a { display:inline-block; margin-top:.4rem; color:var(--accent,#126a54); overflow-wrap:anywhere; }
.game-host-message,.game-host-error { margin:.5rem 0 0; font-size:.875rem; line-height:1.4; }
.game-host-error { font-weight:650; }
.game-host-connections { border-top:1px solid var(--line,#b7c7bf); padding-top:.6rem; margin-top:.65rem; }
.game-host-connections summary { cursor:pointer; min-height:2rem; font-weight:650; }
.game-host-connections ul { list-style:none; padding:0; margin:.4rem 0; }
.game-host-connections li { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:.4rem 0; }
.game-host-connections li span { flex:1; min-width:0; overflow-wrap:anywhere; font-size:.875rem; }
.game-host-connection-actions { display:flex; flex-wrap:wrap; gap:.4rem; }
.game-host-tools :is(button,a,input,select,summary):focus-visible { outline:2px solid var(--accent,#126a54); outline-offset:3px; }
@media(max-width:420px) { .game-host-tools { padding:.65rem; } .game-host-actions { gap:.6rem; } .game-host-actions > * { flex-basis:100%; } }
