:root{color:#173d35;font-synthesis:none;background:#f6f3eb;font-family:DM Sans,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;color:#fff;background:#164c3f;border:1px solid #164c3f;border-radius:8px;min-height:46px;padding:12px 19px;font-weight:600}button:disabled{opacity:.45;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.92)}a{color:inherit}h1,h2,p{margin-top:0}h1,h2{font-family:Libre Baskerville,Georgia,serif;font-weight:400}h1{letter-spacing:-1.5px;margin-bottom:18px;font-size:clamp(30px,4vw,48px);line-height:1.18}h2{font-size:23px;line-height:1.35}p{line-height:1.6}.shell{max-width:1140px;margin:auto;padding:0 28px}header{border-bottom:1px solid #dadcd1;justify-content:space-between;align-items:center;gap:12px;padding:28px 0;display:flex}.brand{letter-spacing:2px;align-items:center;gap:13px;font-size:14px;font-weight:700;text-decoration:none;display:flex}.brand small{letter-spacing:0;color:#69776b;margin-top:6px;font-weight:400;display:block}.logo{color:#f5ead0;background:#184c3d;border-radius:7px;padding:5px 12px;font-size:31px}.connection{white-space:nowrap;border:1px solid #cad7c6;border-radius:50px;padding:8px 12px;font-size:12px}.connection:before{content:"●";color:#4b8754;margin-right:6px}.offline:before{color:#ba6b22}main{padding:25px 0 40px}.banner{background:#e9eddf;border-radius:8px;margin-top:18px;padding:12px 16px;font-size:13px;line-height:1.5}.setup{grid-template-columns:1fr 1fr;align-items:center;gap:65px;padding:36px 0 20px;display:grid}.intro>p:not(.eyebrow){color:#68766a;font-size:19px}.eyebrow{letter-spacing:1.8px;color:#74816a;margin-bottom:19px;font-size:11px;font-weight:700}.tiles{gap:9px;margin-top:40px;display:flex;transform:rotate(-5deg)}.tiles span{background:#fffdf3;border:1px solid #c8cbb8;border-bottom:7px solid #42715d;border-radius:9px;padding:13px 16px;font-family:serif;font-size:45px;box-shadow:0 8px 10px #223e3210}.card{background:#fffef9;border:1px solid #dfe0d4;border-radius:15px;padding:29px;box-shadow:0 3px 10px #213b2e03}.form-grid{grid-template-columns:1fr 1fr;gap:0 18px;display:grid}label{margin-bottom:18px;font-size:13px;font-weight:600;line-height:1.5;display:block}input,select,textarea{color:#193d33;background:#fffefb;border:1px solid #cbd3c6;border-radius:7px;width:100%;min-height:46px;margin-top:7px;padding:10px 12px;display:block}textarea{font-family:monospace}input:focus,select:focus,textarea:focus{outline:2px solid #678e73}.muted{color:#70796c;font-size:13px;font-weight:400}form>button{margin:6px 10px 0 0}.setup form>button{width:100%}.secondary{color:#234c3d;background:0 0;border-color:#c8d1c2}.quiet{color:#73796b;background:0 0;border-color:#0000}.table-heading{justify-content:space-between;align-items:center;gap:20px;padding:15px 0 20px;display:flex}.table-heading p{margin-bottom:10px}.table-heading h1{margin-bottom:12px}.standings{grid-template-columns:repeat(4,1fr);gap:13px;display:grid}.player{background:#eceee3;border:1px solid #d9dfd0;border-radius:12px;min-width:0;padding:20px}.player.dealer{color:#fcfaef;background:#173f34}.seat{justify-content:space-between;gap:6px;margin-bottom:22px;font-size:12px;display:flex}.seat span{letter-spacing:1px;border:1px solid #718c79;border-radius:3px;padding:2px 4px;font-size:9px}.player h2{overflow-wrap:anywhere;margin-bottom:8px;font:500 17px DM Sans,sans-serif}.player strong{font-size:35px;font-weight:500}.player small{opacity:.7;margin-top:3px;font-size:11px;display:block}.negative{color:#b26146}.dealer .negative{color:#ffb39a}nav{border-bottom:1px solid #d9ddcf;gap:24px;margin:28px 0 22px;display:flex}nav button{color:#77816e;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;padding:12px 0}nav button.active{color:#194b3b;border-bottom-color:#194b3b}.entry-layout{grid-template-columns:1.5fr 1fr;align-items:start;gap:22px;display:grid}.check{align-items:flex-start;gap:10px;font-weight:400;display:flex}.check input{accent-color:#164c3f;width:19px;min-width:19px;height:19px;min-height:19px;margin:0}.payment{background:#edf0e4}.total{margin:30px 0 25px;font-size:56px}.total small{margin-top:5px;font-size:14px;display:block}.transfer{border-top:1px solid #d0d9c8;justify-content:space-between;gap:15px;padding:13px 0;font-size:14px;display:flex}.payment .muted{margin-top:20px}hr{border:0;border-top:1px solid #d0d9c8}.table-actions{justify-content:space-between;gap:15px;margin-top:24px;display:flex}.section-title{justify-content:space-between;align-items:center;gap:15px;display:flex}.event{border-top:1px solid #e1e4d9;padding:22px 0}.event small{color:#77816e;margin:8px 0;display:block}.event p{margin-bottom:8px;font-size:14px}.event.undone{opacity:.6}summary{cursor:pointer;padding:12px 0;font-size:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}code{overflow-wrap:anywhere;font-size:12px;display:block}.error{color:#8d3f22;overflow-wrap:anywhere;background:#fff0e7;border:1px solid #d6a28b;border-radius:8px;margin-top:20px;padding:16px}footer{color:#7d8574;border-top:1px solid #d9ddcf;justify-content:space-between;gap:20px;padding:22px 0 30px;font-size:12px;display:flex}@media (width<=720px){.shell{padding:0 16px}.setup{grid-template-columns:1fr;gap:26px;padding-top:15px}.intro h1{font-size:39px}.intro>p:not(.eyebrow){font-size:16px}.tiles{display:none}.card{padding:22px}.entry-layout{grid-template-columns:1fr}.payment{grid-row:1}.payment .total{margin:15px 0;font-size:38px}.payment hr,.payment hr+p{display:none}.standings{grid-template-columns:1fr 1fr;gap:10px}.player{padding:17px}.seat{margin-bottom:15px}.table-heading{flex-direction:column;align-items:flex-start;gap:8px}.table-heading h1{font-size:32px}nav{gap:20px}nav button{font-size:13px}.brand{letter-spacing:1px;font-size:12px}.brand small{font-size:10px}.logo{font-size:25px}.connection{padding:7px;font-size:10px}footer{flex-direction:column;gap:8px}.section-title{flex-direction:column;align-items:flex-start}}@media (width<=380px){.form-grid{grid-template-columns:1fr}nav{gap:13px}.card{padding:18px}}h3{margin:20px 0 12px;font-size:18px;line-height:1.4}h4{margin:15px 0 10px;font-size:14px;line-height:1.4}nav{flex-wrap:wrap;gap:8px 24px}.entry-mode,.guide-tabs{flex-wrap:wrap;gap:8px;margin:8px 0 22px;display:flex}.entry-mode button,.guide-tabs button{flex:1;font-size:13px}.text-button{color:#275f4e;text-underline-offset:3px;background:0 0;border:0;padding:7px 4px;font-size:13px;text-decoration:underline}.tile-row{flex-wrap:wrap;gap:5px;margin:10px 0;display:flex}.mahjong-tile{color:#225746;vertical-align:middle;background:#fffdf6;border:1px solid #d0d2c5;border-bottom:4px solid #42715d;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;width:45px;min-width:45px;height:65px;display:inline-flex;box-shadow:0 2px 2px #223e320a}.mahjong-tile svg{width:36px;height:45px}.mahjong-tile strong{justify-content:center;align-items:center;height:43px;font-size:27px;display:flex}.mahjong-tile small{color:#536858;white-space:nowrap;font-size:7px;font-weight:600;line-height:1}.tile-c strong,.tile-z strong{color:#a54e38}.tile-z[aria-label=Green\ dragon] strong{color:#2f7251}.tile-z[aria-label=White\ dragon] strong{color:#526a87}.set-card{background:#f8f9f1;border:1px solid #d9dece;border-radius:8px;justify-content:space-between;gap:6px;margin:10px 0;padding:15px;display:flex}.set-card b{font-size:13px}.set-card small,.hand-display small{color:#61715e;font-size:11px}.set-actions{flex-direction:column;align-items:flex-end;display:flex}.set-composer{background:#f5f7ed;border:1px dashed #aabca4;border-radius:10px;margin:18px 0;padding:16px}.set-composer h4{margin-top:0}.set-composer .check{margin-top:16px}.pair-picker{border-bottom:1px solid #e1e4d9;margin:20px 0;padding:0 0 10px}.hand-builder .section-title{align-items:flex-start}.hand-builder .section-title p{margin-bottom:0}.hand-display{flex-wrap:wrap;gap:12px;margin:15px 0;display:flex}.flower-grid,.lesson-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.coverage-note{background:#f5edd8;border:1px solid #e5d9b5;border-radius:8px;margin:18px 0;padding:14px 16px;font-size:13px;line-height:1.6}.coverage-note p{margin:8px 0 0}.scoring-breakdown{border-top:1px solid #cfd8c7;margin-top:18px}.scoring-breakdown .transfer{font-size:13px}.pattern-reference article{border-bottom:1px solid #e2e5d9;padding:13px 0}.pattern-reference article>div{justify-content:space-between;gap:15px;display:flex}.pattern-reference h4{margin:0}.pattern-reference b{white-space:nowrap;font-size:13px}.pattern-reference p{color:#68765e;margin:8px 0 0;font-size:14px}.guide p,.guide li{font-size:15px;line-height:1.65}.guide li{margin-bottom:10px}.lesson-grid article{border:1px solid #dee2d3;border-radius:8px;padding:15px}.lesson-grid p{font-size:14px}.guide-dialog{color:#173d35;background:#f6f3eb;border:1px solid #cbd3c1;border-radius:14px;width:min(850px,100% - 24px);max-height:90dvh;padding:0}.guide-dialog::backdrop{background:#102a24a8}.dialog-toolbar{z-index:1;background:#f6f3eb;border-bottom:1px solid #dce0d1;justify-content:space-between;align-items:center;padding:15px 22px;display:flex;position:sticky;top:0}.guide-dialog .card{box-shadow:none;border:0;border-radius:0}.tile-lesson{margin:20px 0}.guide .tile-row{gap:7px}.guide .mahjong-tile{width:48px;min-width:48px;height:68px}@media (width>=721px){.payment{position:sticky;top:20px}}@media (width<=720px){nav{gap:0 18px}.guide-tabs button{flex:40%}.lesson-grid{grid-template-columns:1fr}.guide .mahjong-tile{width:43px;min-width:43px}.hand-builder .form-grid{gap:0 12px}.hand-builder .section-title{flex-direction:column;gap:0}.flower-grid{grid-template-columns:1fr}.set-card{padding:12px}.guide-dialog{max-height:94dvh}.entry-mode button{padding:10px 8px}.payment .scoring-breakdown{display:block}.dialog-toolbar{padding:12px 16px}}.check{cursor:pointer;align-items:center;gap:12px;min-height:48px}.check input[role=switch]{appearance:none;cursor:pointer;background:#c8d0c5;border:1px solid #8e9c90;border-radius:99px;width:48px;min-width:48px;height:28px;min-height:28px;margin:0;padding:0;transition:background .15s;position:relative}.check input[role=switch]:before{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;display:block;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.check input[role=switch]:checked{background:#164c3f;border-color:#164c3f}.check input[role=switch]:checked:before{transform:translate(20px)}.check input[role=switch]:disabled{opacity:.5;cursor:not-allowed}.seating-draw{background:#edf0e4;border:1px solid #d6dfcf;border-radius:10px;margin:0 0 20px;padding:16px}.seat-results{margin:12px 0;padding:0;list-style:none}.seat-results li{border-bottom:1px solid #d6dfcf;justify-content:space-between;gap:12px;padding:12px 0;font-size:14px;display:flex}.seat-results span{overflow-wrap:anywhere;min-width:0}.seat-results b{flex-shrink:0}@media (prefers-reduced-motion:reduce){.check input[role=switch],.check input[role=switch]:before{transition:none}}.join-table{margin:0 0 24px}.join-table form{align-items:flex-end;gap:12px;display:flex}.join-table label{flex:1;margin:0}.join-table form button{margin:0}.join-table .muted{margin:14px 0 0}.recent-tables{padding:0;list-style:none}.recent-tables a{overflow-wrap:anywhere;flex-direction:column;gap:6px;padding:12px 0;display:flex}.recent-tables span{font-size:13px}@media (width<=420px){.join-table form{flex-direction:column;align-items:stretch}}.choice-field{border:0;min-width:0;margin:0 0 18px;padding:0}.choice-field legend{margin:0 0 8px;padding:0;font-size:13px;font-weight:600;line-height:1.5}.choices{flex-wrap:wrap;gap:8px;display:flex}.choices button{color:#365447;overflow-wrap:anywhere;background:#fffef9;border:1px solid #b9c9b5;border-radius:9px;flex:82px;min-width:0;min-height:48px;padding:10px 12px;font-size:13px;line-height:1.35}.choices button[aria-checked=true]{color:#fff;background:#164c3f;border-color:#164c3f;font-weight:700;box-shadow:inset 0 0 0 1px #fff7}.choices button:focus-visible{outline-offset:3px;outline:3px solid #bc8b34}.tile-picker .choice-field{grid-column:1/-1}.tile-picker .choices button{flex:100px;max-width:none}.tile-picker .choices.numeric button{flex:1 0 44px}.set-composer>.choice-field .choices{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.choice-field .choices button:disabled{opacity:.45}@media (width<=720px){.entry-layout .form-grid:has(>.choice-field){grid-template-columns:1fr}.choice-field .choices{gap:7px}.choices button{min-height:48px}}.tile-suit{border:0;min-width:0;margin:0 0 14px;padding:0}.tile-suit legend{margin-bottom:7px;font-size:12px;font-weight:700}.tile-palette-grid{grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px;max-width:516px;display:grid}.tile-choice{min-width:44px;min-height:72px;color:inherit;background:0 0;border:2px solid #0000;border-radius:8px;justify-content:center;align-items:center;padding:3px 0;display:flex}.tile-choice .mahjong-tile{pointer-events:none;width:40px;min-width:40px}.tile-choice:hover{background:#e1eadc}.tile-choice[aria-pressed=true]{background:#dcebd9;border-color:#164c3f;box-shadow:0 0 0 1px #164c3f}.tile-choice:focus-visible{outline-offset:2px;outline:3px solid #bc8b34}.selected-tile{font-size:14px}.entry-layout>*{min-width:0}.tile-palette-grid{width:100%}.tile-palette{container-type:inline-size}.tile-palette-winds{grid-template-columns:repeat(4,minmax(44px,1fr))}@container (width>=444px){.tile-palette-numbered{grid-template-columns:repeat(9,minmax(44px,1fr))}}.set-actions{flex-shrink:0;gap:4px}.set-icon-button{justify-content:center;align-items:center;width:44px;min-width:44px;min-height:44px;padding:10px;display:inline-flex}.set-icon-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.round-wind{background:#fffef9;border:1px solid #d6dfcf;border-radius:10px;margin:0 0 20px;padding:16px}.round-wind-current{margin-bottom:12px;font-size:16px}.round-wind-current strong{color:#164c3f}.round-wind ol{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0;list-style:none;display:grid}.round-wind li{color:#61715e;border:1px solid #d6dfcf;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;font-size:13px;display:flex}.round-wind li>span{font-size:22px}.round-wind li[aria-current=step]{color:#fff;background:#164c3f;border-color:#164c3f;font-weight:700}.round-wind li.completed{background:#edf0e4}.round-wind li small{font-size:10px}.round-wind .muted{margin:0;font-size:12px}.honor-palette{gap:12px;margin:-3px -3px 10px;padding:3px;display:flex;overflow-x:auto}.honor-palette .tile-suit{margin-bottom:4px}.honor-palette .suit-w{flex:4 0 194px}.honor-palette .suit-z{flex:3 0 144px}.honor-scroll-hint{margin:0 0 14px;font-size:12px;display:none}@container (width<=349px){.honor-scroll-hint{display:block}}.table-share{flex-direction:column;flex-shrink:0;gap:7px;width:260px;max-width:100%;display:flex}.table-share-button{flex-direction:column;align-items:center;gap:8px;width:100%;display:flex}.table-share .table-code{letter-spacing:1.5px;font-size:17px}.table-share small{color:#637260;font-size:11px;line-height:1.5}.join-table.card{padding:0}.join-toggle{color:#173d35;justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:14px 18px;font-size:17px;font-weight:700;list-style:none;display:flex}.join-toggle::-webkit-details-marker{display:none}.join-toggle svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.join-table[open]>.join-toggle svg{transform:rotate(180deg)}.join-toggle:focus-visible{outline-offset:-4px;border-radius:10px;outline:3px solid #bc8b34}.join-content{padding:0 18px 18px}.join-toggle-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.join-toggle-copy small{color:#536858;font-size:13px;font-weight:400;line-height:1.4}.header-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.theme-toggle{color:#234c3d;background:0 0;border-color:#c8d1c2;justify-content:center;align-items:center;width:46px;min-width:46px;height:46px;padding:10px;display:inline-flex}.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.theme-toggle:focus-visible{outline-offset:3px;outline:3px solid #bc8b34}@media (width<=380px){header{flex-wrap:wrap}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#eef3e9;background:#101d19}[data-theme=dark] header,[data-theme=dark] footer,[data-theme=dark] nav{border-color:#40564a}[data-theme=dark] .card,[data-theme=dark] .round-wind{box-shadow:none;background:#1b2d26;border-color:#40564a}[data-theme=dark] .player,[data-theme=dark] .payment,[data-theme=dark] .banner,[data-theme=dark] .seating-draw{background:#243a30;border-color:#40564a}[data-theme=dark] .player.dealer{color:#fff;background:#326f59;border-color:#81b89d}[data-theme=dark] .set-card,[data-theme=dark] .set-composer{background:#20352c;border-color:#607b69}[data-theme=dark] .guide-dialog,[data-theme=dark] .dialog-toolbar{color:#eef3e9;background:#1b2d26;border-color:#40564a}[data-theme=dark] .coverage-note{color:#f8ecd0;background:#413b29;border-color:#827254}[data-theme=dark] .error{color:#ffe1d7;background:#4a2825;border-color:#bd887b}[data-theme=dark] input:not([role=switch]),[data-theme=dark] select,[data-theme=dark] textarea{color:#f5f8f2;background:#10221b;border-color:#6a8273}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#b5c8ba;opacity:1}[data-theme=dark] .muted,[data-theme=dark] .eyebrow,[data-theme=dark] .intro>p:not(.eyebrow),[data-theme=dark] .brand small,[data-theme=dark] footer,[data-theme=dark] .pattern-reference p,[data-theme=dark] .event small,[data-theme=dark] .set-card small,[data-theme=dark] .hand-display small,[data-theme=dark] .table-share small,[data-theme=dark] .join-toggle-copy small{color:#becfc0}[data-theme=dark] button:not(.secondary):not(.quiet):not(.text-button):not(.tile-choice):not(.theme-toggle):not([role=radio]):not(nav button){color:#fff;background:#356f58;border-color:#8ab69d}[data-theme=dark] .secondary,[data-theme=dark] .quiet,[data-theme=dark] .text-button,[data-theme=dark] .theme-toggle{color:#d8eade;border-color:#6a8273}[data-theme=dark] .text-button,[data-theme=dark] .quiet{border-color:#0000}[data-theme=dark] .choices button{color:#e6f0e7;background:#10221b;border-color:#718d7b}[data-theme=dark] .choices button[aria-checked=true]{color:#fff;background:#356f58;border-color:#a5d4b7}[data-theme=dark] nav button{color:#bacdbd}[data-theme=dark] nav button.active,[data-theme=dark] .round-wind-current strong{color:#d8f3df;border-bottom-color:#a5d4b7}[data-theme=dark] .round-wind li{color:#d0dfd0;border-color:#6a8273}[data-theme=dark] .round-wind li.completed{background:#30473a}[data-theme=dark] .round-wind li[aria-current=step]{color:#fff;background:#356f58;border-color:#a5d4b7}[data-theme=dark] .join-toggle{color:#eef3e9}[data-theme=dark] .tile-choice:hover{background:#354e3e}[data-theme=dark] .tile-choice[aria-pressed=true]{background:#3a6650;border-color:#b1dfbc;box-shadow:inset 0 0 0 1px #b1dfbc}[data-theme=dark] .tiles span{color:#173d35}[data-theme=dark] .negative{color:#ffb39a}[data-theme=dark] .connection,[data-theme=dark] .seat span,[data-theme=dark] .transfer,[data-theme=dark] hr,[data-theme=dark] .event,[data-theme=dark] .pair-picker,[data-theme=dark] .scoring-breakdown,[data-theme=dark] .pattern-reference article,[data-theme=dark] .lesson-grid article,[data-theme=dark] .seat-results li{border-color:#536d5c}[data-theme=dark] .check input[role=switch]{background:#455c4d;border-color:#9bb2a0}[data-theme=dark] .check input[role=switch]:checked{background:#3f8063;border-color:#a5d4b7}.set-card .mahjong-tile small,.hand-display .mahjong-tile small{color:#536858;font-size:7px}[data-theme=dark] .set-card .mahjong-tile small,[data-theme=dark] .hand-display .mahjong-tile small{color:#536858}
