:root{color:#16322c;background:#eef2e9;font:16px/1.4 Inter,system-ui,sans-serif}*{box-sizing:border-box}button,input,textarea{font:inherit}button{min-width:44px;min-height:44px;color:inherit;cursor:pointer;background:#fff;border:1px solid #bbcabc;border-radius:8px;padding:.4rem .8rem;font-weight:610}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #1681ac}button:enabled:hover{border-color:#34745d}.level-picker{border:0;min-width:0;margin:0;padding:0}.level-picker legend{margin-bottom:.4rem;padding:0}.level-options{flex-wrap:wrap;gap:.4rem;display:flex}.level-options button{margin:0}.level-options button[aria-pressed=true]{color:#fff;background:#163b31;border-color:#163b31}h1,h2,h3,p{margin:.3rem 0 .7rem}h1{letter-spacing:-.055em;font-size:clamp(2rem,4vw,3.3rem);line-height:1.05}h2{font-size:1.15rem}.brand{letter-spacing:-.06em;font-size:1.4rem}.wordmark{white-space:nowrap;letter-spacing:-.06em;font-weight:700}.wordmark-tile{color:#163b31;letter-spacing:0;background:#cbf17d;border-radius:.22em;margin-right:.1em;padding:0 .24em .08em;line-height:1.05;display:inline-block}.settings-brand{color:#fff;background:#163b31;border-radius:.65rem;gap:.25rem;margin-bottom:.75rem;padding:.75rem 1rem;display:grid}.settings-brand a{color:inherit}.primary{color:#193327;background:#cbf17d;border-color:#9ab84f}small{font-size:.78rem}.entry{background:#fff;border-radius:22px;grid-template-columns:1.2fr 1fr;width:min(900px,94vw);margin:12vh auto;display:grid;overflow:hidden;box-shadow:0 16px 55px #193e2814}.entry>section,.hero{padding:clamp(24px,4vw,60px)}.hero{color:#ecf7da;background:#173e34;gap:2rem;display:grid;overflow:hidden}.hero small{letter-spacing:.17em;font-weight:700}.entry-court{align-self:end;width:100%;height:auto;display:block}.entry nav{gap:.4rem;margin-bottom:2rem;display:flex}.entry nav [aria-pressed=true]{background:#e2efda}form,label{gap:.45rem;display:grid}form{gap:1rem}input,textarea{border:1px solid #9eb5a5;border-radius:7px;width:100%;padding:.7rem}textarea{height:9rem}.board{flex-direction:column;gap:.55rem;max-width:1600px;min-height:100dvh;margin:auto;padding:0 clamp(10px,2vw,32px) 12px;display:flex}.board-lower{flex-direction:column;flex:1;gap:.55rem;min-height:0;display:flex}.board-lower:has(.live-view-panel){grid-template-rows:minmax(105px,1fr) auto;grid-template-columns:minmax(0,1fr) auto;display:grid}.board-lower>.waiting{grid-area:1/1}.board-lower>.inactive{grid-area:2/1}.live-view-panel{background:#fff;border:1px solid #c7d3c5;border-radius:12px;grid-area:1/2/3;align-self:start;width:156px;padding:6px}.live-view-panel .qr-toggle{background:0 0;border-color:#0000;justify-content:space-between;align-items:center;gap:.25rem;width:100%;padding:.35rem;display:flex}.qr-content{text-align:center}.qr-content img{background:#fff;width:128px;height:128px;margin:0 auto 6px;display:block}.qr-content p{overflow-wrap:anywhere;font-size:.8rem}.qr-content .copy-url{width:128px;margin:0 auto 6px}.live-view-panel.collapsed{width:44px;padding:0}.live-view-panel.collapsed .qr-toggle{flex-direction:column;padding:.65rem .35rem}.live-view-panel.collapsed .qr-toggle span:first-child{writing-mode:vertical-rl;white-space:nowrap}.view-settings{border-top:1px solid #ccdace;margin-top:1rem;padding-top:.75rem}.view-settings-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.mast,.panel header,dialog header,.setting,.toolbar{align-items:center;gap:.65rem;display:flex}.mast{color:#fff;z-index:2;background:#163b31;flex-wrap:wrap;margin:0 clamp(-32px,-2vw,-10px);padding:8px clamp(10px,2vw,32px);position:sticky;top:0}.toolbar,dialog header button{margin-left:auto}.toolbar{flex-wrap:wrap}.mast button{color:#143c2e}.boardcode,.count{border-radius:5px;padding:.24rem .5rem;font:600 .85rem monospace}.boardcode{letter-spacing:.12em;background:#325749}.panel{background:#fff;border:1px solid #c7d3c5;border-radius:13px;flex-direction:column;min-height:0;display:flex}.panel header{min-height:46px;padding:0 .8rem}.waiting>header{flex-wrap:wrap}.waiting>header>.add-player{margin-inline-start:auto}.waiting>.list{padding-top:.5rem}.panel h2{margin:0}.inactive header{flex-wrap:wrap;padding-block:.3rem}.inactive-members{display:contents}.inactive-members .chip:first-child{margin-inline-start:.75rem}.count{background:#edf2e8}#root:has(.card-scroll){container-type:inline-size}.card-scroll{min-height:0;position:relative}.scroll-arrow{z-index:1;color:#fff;background:#163b31;border:0;border-radius:50%;width:44px;height:44px;padding:0;font-size:1.35rem;position:absolute;top:50%;transform:translateY(-50%)}.scroll-arrow-previous{left:calc(50% - 50cqw)}.scroll-arrow-next{right:calc(50% - 50cqw)}.strip,.list{padding:0 .7rem .6rem;overflow:auto}.strip{--card-gap:.65rem;--visible-cards:min(var(--card-count), 2);gap:var(--card-gap);align-items:stretch;display:flex}.strip article{flex:0 0 calc((100% - (var(--visible-cards) - 1) * var(--card-gap)) / var(--visible-cards));background:#f5f8ef;border:1px solid #c5d5c6;border-radius:9px;min-width:0;max-width:100%}@media (width>=1000px){.strip{--visible-cards:min(var(--card-count), 4)}}.groups article{background:#f1f5f8}.cardtitle{white-space:nowrap;text-align:left;background:0 0;border:0;flex:auto;justify-content:space-between;align-items:center;gap:.2rem;display:flex}.courts .cardtitle,.courts .finish{min-height:66px}.courts .strip{padding-top:.6rem}.total{white-space:nowrap;align-items:center;gap:.45rem;display:flex}.cardtitle small,.chip small{font-family:monospace}.slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem;padding:0 .4rem .3rem;display:grid}.chip{align-items:center;gap:.4rem;min-width:0;max-width:100%;padding:.35rem .55rem;display:inline-flex}.chip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chip .swap-icon{flex-shrink:0}.level-tag{color:#334155;background:#e2e8f0;border-radius:.35rem;flex:none;justify-content:center;align-items:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;font-size:.75rem;font-weight:700;line-height:1;display:inline-flex;overflow:visible}.level-tag[data-level=A]{color:#5b21b6;background:#ede9fe}.level-tag[data-level=B]{color:#1e40af;background:#dbeafe}.level-tag[data-level=C]{color:#115e59;background:#ccfbf1}.level-tag[data-level=D]{color:#92400e;background:#fef3c7}.level-tag[data-level=E]{color:#9a3412;background:#ffedd5}.level-tag[data-level=G]{color:#9f1239;background:#ffe4e6}.chip small{background:#e7eddf;border-radius:5px;margin-left:auto;padding:1px 5px}.list{flex-wrap:wrap;align-content:flex-start;gap:.35rem;max-height:32vh;display:flex}.empty{color:#536658;grid-column:1/-1;padding:.5rem}.selected,.strip article.selected,.ready .roster-players .chip{outline-offset:-2px;background:#fff1de;outline:2px solid #bd6826}.action,.marker{color:#194f78;background:#dbebfa}.marker{flex:0 0 44px;justify-content:center;align-items:flex-start;padding:.4rem;display:flex}.marker span{writing-mode:vertical-rl;white-space:nowrap}.play,.next{color:#1b581b;background:#d5efcd}.exchange{color:#674184;background:#eee1fa}.warn{animation:1s infinite pulse}@keyframes pulse{50%{background:#f6ce88}}@media (prefers-reduced-motion:reduce){.warn{background:#f6ce88;animation:none}}[role=alert]{background:#fff0d6;border-radius:8px;padding:.4rem .8rem}dialog{color:#16322c;background:#fff;border:1px solid #ccdace;border-radius:14px;width:min(560px,94vw);max-height:85dvh;padding:1.25rem}.requested-players{padding-left:0;list-style:none}.requested-players .chip{border-radius:8px;min-height:44px;font-weight:610}dialog:has(>.settings-brand){width:min(760px,94vw)}dialog::backdrop{background:#092c2370}dialog header,.setting{margin-bottom:.8rem}.setting button:first-of-type{margin-left:auto}dialog button{margin:2px}dialog .modal-close{color:#536658;background:0 0;border-color:#0000;border-radius:50%;flex:0 0 44px;justify-content:center;align-items:center;width:44px;height:44px;margin:0 0 0 auto;padding:0;font-size:1.8rem;font-weight:400;line-height:1;display:inline-flex}dialog .modal-close:enabled:hover{color:#163b31;background:#edf2e8;border-color:#0000}dialog img{max-width:100%;margin:auto;display:block}@media (width>=760px) and (height>=650px){.board{height:100dvh}.waiting.expanded{flex:1;min-height:105px}.list{max-height:none}.courts,.groups,.inactive{flex-shrink:0}}@media (width<=680px){.board-lower:has(.live-view-panel){display:flex}.live-view-panel{align-self:flex-end}.entry{grid-template-columns:1fr;margin:3vh auto}.hero{gap:.9rem;position:relative}.entry-court{opacity:.22;width:160px;position:absolute;bottom:0;right:0}.mast{gap:.4rem}.toolbar{gap:.3rem}.strip{--visible-cards:1}.board{gap:.4rem}}.publicform{background:#fff;border-radius:16px;max-width:480px;margin:6vh auto;padding:2rem}.publicform h1{margin:1rem 0}.mast{grid-template-columns:minmax(0,1fr) auto max-content;display:grid}.identity,.cardhead{align-items:center;gap:.4rem;display:flex}.identity{flex-wrap:wrap}.identity h1,.roster h3{margin:0}.toolbar{justify-content:flex-end}.roster-section{background:#f5f8f4;border:1px solid #ccdace;border-radius:10px;margin-top:1rem;padding:.75rem}.roster{flex-wrap:wrap}.roster-section .roster{margin-bottom:.4rem}.roster-hint{color:#536658;margin:0 0 .65rem;font-size:.875rem;line-height:1.4}.roster-tools{align-items:center;gap:.75rem;margin-bottom:.65rem;display:flex}.roster-tools .roster-hint{flex:1;min-width:0;margin:0}.roster-tools button{flex-shrink:0;margin:0}button.danger{color:#9f3434;background:#fff4f2;border-color:#c97b7b}button.danger:enabled:hover{color:#7c2222;background:#ffe6e1;border-color:#9f3434}.roster-players{flex-wrap:wrap;gap:.35rem;display:flex}.roster-players button{margin:0}.roster-actions{flex-wrap:wrap;gap:.4rem;margin-left:auto;display:flex}.cardhead{padding:.2rem}.ready .cardtitle,.ready .chip{background:#e4f0e8;border:1px solid #799c8c;box-shadow:0 1px 2px #163b3126}.finish{background:#fff1de;border-color:#bd6826;flex:none;min-width:5.5rem}.finish.play{color:#fff;background:#24734d;border-color:#24734d}.finish.play:enabled:hover{background:#1b583b;border-color:#1b583b}.preference{gap:.5rem}.preference>span{min-width:0}.setting.preference .toggle{background:#edf2e8;border-color:#0000;border-radius:22px;flex-shrink:0;align-items:center;gap:.4rem;margin:0;padding:.3rem .5rem;display:inline-flex}.toggle-track{background:#718077;border-radius:10px;width:36px;height:20px;padding:2px}.toggle-track:before{content:"";background:#fff;border-radius:50%;width:16px;height:16px;display:block}.toggle[aria-checked=true] .toggle-track{background:#24734d}.toggle[aria-checked=true] .toggle-track:before{transform:translate(16px)}@media (width<=900px){.mast{grid-template-columns:minmax(0,1fr) auto}.total{justify-self:center}.toolbar{grid-column:1/-1}}.board:not(.viewer) .groups[data-group-count="1"] .strip{--visible-cards:2}.strip:not(:has(>article~article)){--visible-cards:2}@media (width<=680px){.board:not(.viewer) .courts .strip:not(:has(>article~article)) .cardhead{flex-wrap:wrap}}.board.viewer{height:auto}.viewer .panel{flex-shrink:0}.viewer .strip{--card-gap:.35rem;grid-template-columns:repeat(2,minmax(0,1fr));padding:.35rem;display:grid;overflow:visible}.viewer .list{max-height:none;overflow:visible}@media (width>=1000px){.viewer .strip>article:only-child{grid-column:span 2}.viewer .strip{grid-template-columns:repeat(4,minmax(0,1fr))}}.viewer .cardhead{padding:.1rem}.viewer .cardtitle,.viewer .chip{cursor:default;opacity:1;background:0 0;border:0;min-width:0;min-height:0;padding:.25rem .35rem}.viewer .slots{gap:.1rem;padding:0 .25rem .25rem}.viewer .panel header{min-height:36px;padding-inline:.5rem}@media (width<=900px){.viewer .mast{grid-template-columns:minmax(0,1fr) auto}.viewer .identity{white-space:nowrap;flex-wrap:nowrap;grid-column:1/-1;justify-content:space-between}.viewer .brand{font-size:clamp(1rem,4.8vw,1.4rem)}.viewer .boardcode{padding-inline:.35rem;font-size:clamp(.65rem,2.8vw,.85rem)}.viewer .total{justify-self:start}.viewer .toolbar{white-space:nowrap;grid-column:2}}@media (width<=680px){.viewer{gap:.3rem;padding-bottom:6px;font-size:.875rem;line-height:1.3}.viewer .mast{gap:.2rem;padding-block:6px}.viewer .board-lower{gap:.3rem}.viewer .panel{border-radius:9px}.viewer .panel header{gap:.35rem;min-height:30px;padding-inline:.4rem}.viewer .panel h2{font-size:1rem}.viewer .count{padding:.15rem .35rem;font-size:.75rem}.viewer .strip{--card-gap:.3rem;padding:.25rem}.viewer .cardtitle,.viewer .chip{padding:.15rem .25rem}.viewer .cardhead{gap:.2rem}.viewer .slots{gap:.2rem;padding:0 .15rem .15rem}.viewer .chip{text-align:left;gap:.25rem}.viewer .chip .level-tag{border-radius:.25rem;min-width:1.1rem;height:1.1rem;padding-inline:.2rem;font-size:.65rem}.viewer .chip small{padding-inline:3px;font-size:.7rem}.viewer .empty{padding:.25rem}.viewer .list{gap:.1rem .2rem;padding:0 .3rem .3rem}}.viewer .panel,.viewer>[role=status],.viewer>[role=alert]{font-size:1.125rem}.viewer .panel h2,.viewer .cardtitle{font-size:1.1875rem}.viewer .chip{text-align:start;background:#fff;border:1px solid #d5d8d7;border-radius:6px;flex-wrap:wrap;justify-content:flex-start}.viewer .chip .player-name{white-space:normal;overflow-wrap:anywhere;font-size:1.25rem;line-height:1.25}.viewer .count,.viewer .cardtitle small,.viewer .chip small,.viewer .chip .level-tag{font-size:.9375rem}.viewer .chip .level-tag{height:auto;min-height:1.3em}.court-numbers{margin-block:.8rem}.court-number-grid{grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.5rem;display:grid}.court-number-grid>div{background:#f3f7f2;border-radius:.5rem;justify-content:space-between;align-items:center;gap:.4rem;padding:.5rem;display:flex}.court-number-grid button[aria-invalid=true]{border:2px solid #ad2929}.court-numbers dialog{width:min(19rem,94vw)}.court-drum{background:#f3f7f2;border-radius:.75rem;position:relative;overflow:hidden}.court-drum:before{content:"";top:40%;pointer-events:none;background:#cceab8;border-radius:.45rem;height:20%;position:absolute;inset-inline:.35rem}.court-wheel{overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;touch-action:pan-y;height:220px;padding-block:88px;position:relative;overflow-y:auto}.court-wheel>div{scroll-snap-align:center;cursor:pointer;place-items:center;height:44px;font-size:1.2rem;display:grid}.court-wheel [aria-selected=true]{font-weight:750}.court-renumber{align-items:center;gap:.6rem;min-height:44px;display:flex}.court-renumber input{width:20px;height:20px}.court-numbers footer{justify-content:flex-end;gap:.5rem;display:flex}
