@font-face{font-family:"DM Serif Text";src:url("./assets/dm-serif-text.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("./assets/dm-sans.woff2") format("woff2");font-style:normal;font-weight:100 1000;font-display:swap}
:root{--paper:#f7f4eb;--ink:#252c24;--secondary:#5d6054;--rule:#cecbbd;--red:#a53c29;--jade:#174e40;--gold:#d4bd86;--serif:"DM Serif Text",Georgia,serif;--sans:"DM Sans",sans-serif;--han:"Songti TC","STSong","PMingLiU",serif;color-scheme:light;font-family:var(--sans);font-synthesis:none}
*{box-sizing:border-box}
html{min-width:320px;background:var(--paper);scrollbar-color:#b8b9a8 var(--paper)}
body{margin:0;background:var(--paper) url("./assets/paper.png") repeat;color:var(--ink);min-height:100vh}
button{font:inherit;color:inherit;border:0;border-radius:0;cursor:pointer;background:none}
button:focus-visible,a:focus-visible{outline:3px solid #c44f33;outline-offset:4px}
button:disabled{cursor:default}
:focus:not(:focus-visible){outline:none}
::selection{background:#e4b6a2;color:#263228}
i[data-icon],.ico{width:19px;height:19px;display:inline-flex;flex:none;align-items:center;justify-content:center}
.ico{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400}
h1{font-size:clamp(51px,4.6vw,74px);letter-spacing:-.042em;line-height:1.04}
.game-board{min-width:0;overflow:hidden;border:1px solid #103c32;border-radius:11px;background:#173e34;box-shadow:0 5px 13px #38352510}
.felt{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 49% 44%,#2d6350 0%,#215541 46%,#174735 100%);color:#eae3c9}
.felt:before,.player-area:before{content:"";position:absolute;inset:0;background:url("./assets/felt.png");pointer-events:none;opacity:.54;mix-blend-mode:soft-light;z-index:-1}
.felt:after{position:absolute;inset:0;content:"";z-index:-1;pointer-events:none;background:url("./assets/waves.svg") left bottom/170px 85px repeat;opacity:.21;mask-image:linear-gradient(32deg,#000 -5%,transparent 26%,transparent 78%,#000 108%)}
.fret-border{pointer-events:none;position:absolute;inset:10px 10px 9px;border:1px solid #b2a57272}
.fret{position:absolute;width:35px;height:35px;background:url("./assets/fret.svg") center/100%;opacity:.97}
.tl{top:-1px;left:-1px}.tr{top:-1px;right:-1px;transform:scaleX(-1)}.bl{bottom:-1px;left:-1px;transform:scaleY(-1)}.br{bottom:-1px;right:-1px;transform:scale(-1)}
.table-meta{position:absolute;left:clamp(25px,2vw,39px);right:clamp(25px,2vw,39px);top:22px;z-index:2;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.table-meta>span{display:flex;align-items:center;gap:7px}
.table-meta b{font-weight:520;font-size:12px;letter-spacing:.02em}
.table-meta .ico{width:15px;height:15px;color:#dfc998}
.field{position:relative;height:clamp(300px,24.5vw,394px);min-width:0}
.compass{display:grid;place-items:center;position:absolute;width:clamp(85px,7.35vw,114px);aspect-ratio:1;top:54%;left:50%;transform:translate(-50%,-50%);background:url("./assets/compass.svg") center/contain no-repeat;opacity:.74}
.compass-ch{font:500 clamp(29px,2.7vw,41px)/1 var(--han);color:#d5bc7e}
.seat{position:absolute;text-align:center;z-index:1;color:#f1ecdb}
.seat.west{top:8.1%;left:50%;transform:translateX(-50%)}
.seat.north,.seat.south{top:53%;height:210px;transform:translateY(-50%);display:flex;align-items:center;gap:12px}
.seat.north{left:7%;flex-direction:row-reverse}.seat.south{right:7%}
.seat-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:560;letter-spacing:.005em}
.wind-glyph{display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid #d4c19382;border-radius:50%;font:600 12px/1 var(--han);color:#e6d09b}
.active-seat .wind-glyph{background:#ddc28b;color:#244835}
.seat.west .seat-label{margin-bottom:7px}
.opp-rack{--back-w:clamp(11px,1.07vw,17px);--back-h:clamp(18px,1.67vw,27px);display:flex;justify-content:center;align-items:center;gap:1px;filter:drop-shadow(0 3px 2px #09291f6b)}
.seat.north .opp-rack,.seat.south .opp-rack{height:100%;flex-direction:column}
.back{position:relative;width:var(--back-w);height:var(--back-h);background:linear-gradient(110deg,#71917a 0%,#557c62 46%,#4a725c 100%);border:1px solid #9cac85;border-right-color:#355f4e;border-bottom:3px solid #c4bb8e;border-radius:2px 2px 3px 3px;box-shadow:inset 0 0 0 1px #4a6a53}
.back:before{content:"";position:absolute;inset:2px 1px;border:1px solid #a2b29165;border-radius:1px}
.back:after{content:"";position:absolute;width:3px;height:3px;border:1px solid #a7b58d73;left:50%;top:50%;transform:translate(-50%,-50%) rotate(45deg)}
.seat.north .back,.seat.south .back{height:var(--back-w);width:var(--back-h);border-bottom:1px solid #385f4c}
.seat.north .back{border-right:3px solid #c4bb8e}.seat.south .back{border-left:3px solid #c4bb8e}
.opp-melds{display:flex;gap:4px;justify-content:center;margin-top:3px}
.opp-melds button{font-size:10px;color:#fbebcb;text-decoration:underline;text-underline-offset:3px}
.pond{position:absolute;display:grid;grid-template-columns:repeat(6,auto);gap:2px;z-index:2;align-content:start;justify-content:start}
.west-pond,.east-pond{left:50%;transform:translateX(-50%)}
.west-pond{top:29%}.east-pond{bottom:5%}
.north-pond,.south-pond{top:52%;transform:translateY(-50%);grid-template-columns:repeat(3,auto)}
.north-pond{left:23%}.south-pond{right:23%}
.mini-tile{padding:0;display:grid;place-items:center;width:clamp(15px,1.37vw,22px);aspect-ratio: .75;border-radius:2px;border:1px solid #c2b991;border-bottom:2px solid #afa580;background:#f3ead1;box-shadow:0 1px 2px #133e2d59}
.mini-tile.latest{outline:2px solid #e5a180;outline-offset:1px}
.mini-tile svg{width:91%;height:94%;display:block}
.player-area{position:relative;isolation:isolate;background:linear-gradient(90deg,#173f34,#1d4538 50%,#173d32);border-top:1px solid #47715a;color:#f7efdb;padding:17px clamp(18px,2vw,34px) 18px}
.hand-caption,.hand-name,.hand-actions,.action-buttons,.east-label,.turn-indicator{display:flex;align-items:center}
.hand-caption,.hand-actions{justify-content:space-between;gap:10px}
.hand-name{gap:12px}.hand-name h2{font-size:24px;line-height:1.25;letter-spacing:-.025em}
.east-label{color:#e1ce9b;font-size:11px;gap:5px;border-left:1px solid #a49c6b77;padding-left:11px}
.east-label span{font:600 14px/1 var(--han)}
.turn-indicator{font-size:12px;gap:7px;color:#f5e8c1}
.turn-indicator:before{content:"";width:6px;height:6px;border-radius:50%;background:#e8c776}
.turn-indicator.waiting:before{background:#a8c2b2}
.rack{display:flex;align-items:flex-end;gap:clamp(1px,.16vw,3px);padding:9px 1px 4px;min-height:43px;container-type:inline-size}
.tile-button,.sample-tile{display:grid;place-items:center;border:1px solid #cbbd9d;border-top-color:#fffbea;border-left-color:#f8efd4;border-radius:5px 5px 4px 4px;background:linear-gradient(115deg,#fff8e7 0%,#f6eed9 55%,#e9dec3 100%);box-shadow:inset 0 0 0 1px #fffaf0a3,0 3px 0 #c3ab7d,0 5px 0 #a78d68,1px 6px 0 #376a52,1px 8px 4px #0b281e9c}
.tile-button{position:relative;flex:0 1 calc((100% - 4.5%) / 14);min-width:0;max-width:72px;aspect-ratio:.70;padding:1px;transition:transform .18s cubic-bezier(.2,.82,.2,1),outline-color .16s;outline-offset:1px;touch-action:manipulation}
.tile-button svg,.sample-tile svg{display:block;width:100%;height:100%;pointer-events:none}
.tile-button.drawn{margin-left:1.15%}
@media(hover:hover){.tile-button:not(:disabled):hover{transform:translateY(-4px)}}
.tile-button.selected,.tile-button.selected:hover{transform:translateY(-8px);outline:2px solid #f1bb6d;background:#fff8df}
.tile-button.selected:after{content:"";position:absolute;bottom:2px;left:28%;right:28%;height:2px;background:#ad4832}
.tile-button.taught{outline:2px dashed #f2d68b;outline-offset:2px}
.tile-button:focus-visible{outline:3px solid #efc477}
.hand-actions{min-height:36px;margin-top:15px}
#instruction{font-size:12px;color:#e1e1cb;line-height:1.4}
.action-buttons{flex-wrap:wrap;justify-content:flex-end;gap:6px}
.move-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#f2e7c9;color:#244031;border:1px solid #eedfb9;border-radius:4px;padding:8px 16px;font-size:12px;font-weight:700;white-space:nowrap;min-height:34px}
.move-button .ico{width:14px;height:14px}
.move-button:hover{background:#fff3d5}
.move-button.secondary{background:transparent;color:#f0e7cb;border-color:#8f9b79}
.move-button:disabled{background:#466354;color:#e2e5d3;border-color:#718575}
.player-melds{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}
.player-melds button{display:flex;gap:1px;border:1px solid #8f9b79;border-radius:3px;padding:2px}
.player-melds .mini-tile{width:17px}
.training-body{padding:16px 20px 17px}
.training-body h2,.journal h2{font-size:27px;line-height:1.14;letter-spacing:-.035em}
.training-body p{font-size:13px;line-height:1.5;color:#525649;margin-top:7px;max-width:38ch}
.journal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #bfbfaf;padding-bottom:10px}
.journal h2{font-size:24px}
.journal-all{display:grid;place-items:center;padding:4px;color:#6c705d}
.journal-all .ico{width:15px;height:15px}
.journal ol{list-style:none;margin:0;padding:0}
.journal li{position:relative;padding:11px 0 11px 15px;font-size:12px;color:#575d50;line-height:1.45;border-bottom:1px solid #d8d6c8}
.journal li:before{content:"";width:5px;height:5px;border:1px solid #97a18c;position:absolute;left:0;top:17px;border-radius:50%}
.journal li:first-child{color:var(--ink)}.journal li:first-child:before{border-color:var(--red);background:var(--red)}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.seat-label{padding:0;color:inherit}
.seat-label:hover .wind-glyph{border-color:#e9d6a2}
.opp-rack .opp-face{border:1px solid #aa9f7c;background:#ebe2c7;width:var(--back-w);height:var(--back-h);border-radius:2px;display:grid;place-items:center}
.opp-face svg{width:100%;height:100%}
.opp-face.first{margin-left:3px}
.seat:is(.north,.south) .opp-face{width:var(--back-h);height:var(--back-w)}
.seat:is(.north,.south) .opp-face.first{margin-left:0;margin-top:3px}
.pond-button{display:contents}
.pond-more{color:#efe3bb;font-size:10px;align-self:center}
.board-overlay{position:absolute;z-index:3;left:50%;top:54%;transform:translate(-50%,-50%);text-align:center;min-width:150px;padding:14px 18px;border:1px solid #c1a76c;background:#1d4639;border-radius:4px;box-shadow:0 4px 14px #18181880}
.board-overlay strong{display:block;font:400 25px/1.15 var(--serif);color:#fff2d5}
.board-overlay button{font-size:12px;color:#f5d69d;text-decoration:underline;text-underline-offset:3px;margin-top:6px}
.lesson-progress{font-size:11px;color:var(--red);font-weight:650;letter-spacing:.02em;margin-bottom:7px}
.lesson-progress-line{display:flex;gap:4px;margin:0 0 13px}
.lesson-progress-line span{height:3px;background:#cfccbb;flex:1}
.lesson-progress-line span.filled{background:var(--red)}
dialog{padding:0;border:1px solid #c7bea7;border-radius:9px;width:min(570px,calc(100% - 28px));max-height:min(85dvh,800px);background:var(--paper) url("./assets/paper.png");color:var(--ink);box-shadow:0 15px 60px #132d2660}
dialog::backdrop{background:#0a211b80}
.modal-shell{position:relative;padding:29px 30px 25px}
.close{position:absolute;right:13px;top:13px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--secondary)}
.close:hover{background:#e8e4d7}
dialog h2{font-size:36px;line-height:1.13;letter-spacing:-.035em;margin-right:22px}
dialog p{font-size:14px;color:#525b4f;line-height:1.6;margin:10px 0}
dialog h3{font-size:21px;line-height:1.2;margin:18px 0 7px}
.dialog-tabs{display:flex;gap:20px;border-bottom:1px solid var(--rule);margin:14px 0 13px}
.dialog-tabs button{border-bottom:2px solid transparent;padding:8px 0;font-weight:550;font-size:14px}
.dialog-tabs button.current{color:var(--red);border-color:var(--red)}
.rule-list{margin:0;padding-left:20px;font-size:14px;line-height:1.55;color:#545b50}
.rule-list li{padding:4px 0}.rule-list b{color:var(--ink)}
.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px}
.dialog-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;background:var(--red);border:1px solid var(--red);color:#fff3df;border-radius:4px;font:600 13px/1.3 var(--sans)}
.dialog-action.subtle{background:transparent;border-color:#bbb9a6;color:#374b3d}
.dialog-action:hover{filter:brightness(.95)}
.tile-index{display:flex;flex-wrap:wrap;gap:7px}
.tile-index figure{display:grid;place-items:center;gap:7px;margin:0}
.tile-index figcaption{font-size:10px;line-height:1.4;color:#51584c}
.sample-tile{width:37px;aspect-ratio:.74;box-shadow:inset 0 0 0 1px #fffaf0b0,0 2px 0 #b5a580,0 3px 0 #72917c}
.guide-examples{display:flex;gap:16px;flex-wrap:wrap;margin:15px 0}
.example-group{display:flex;flex-direction:column;gap:7px}
.example-group>span{font-size:11px;font-weight:650;color:#546351}
.example-tiles{display:flex;gap:2px;flex-wrap:wrap}
.example-tiles .sample-tile{width:28px}
.journal-history{padding-left:21px;line-height:1.55;color:#596050;font-size:14px}
.journal-history li{padding:3px 0}
.journal-history li::marker{color:#9b8d71;font-size:11px}
.face-names{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0}
.detail-set{margin:0 8px 9px 0;display:inline-block}
.detail-set b{font-size:12px;font-weight:600;color:#52604e}
.face-names .sample-tile{width:33px}
@media(min-width:1650px){.field{height:410px}}
@media(max-width:1080px){
  .seat.north{left:6%}.seat.south{right:6%}
  .training-body{padding:15px 16px 16px}
  .field{height:292px}
  .back{--back-w:11px}
  .player-area{padding-inline:17px}
}
@media(max-width:820px){
  .training-body{align-self:center;padding:14px}
  .training-body h2{font-size:23px}.training-body p{margin-top:4px;font-size:12px}.training-link{margin-top:8px}
  .journal h2{font-size:23px}
  .field{height:290px}
  .tile-button{max-width:none}
}
@media(max-width:580px){
  .game-board{border-radius:7px}.fret-border{inset:7px}.fret{width:25px;height:25px}
  .table-meta{top:17px;left:18px;right:18px}.table-meta b{font-size:10px}.table-meta .ico{width:12px;height:12px}.table-meta>span{gap:4px}
  .field{height:268px}
  .seat.west{top:19%}.seat.west .seat-label{margin-bottom:4px}
  .seat-label{font-size:10px;gap:3px}.wind-glyph{width:15px;height:15px;font-size:9px}
  .seat.north,.seat.south{top:62%;height:115px;gap:5px;flex-direction:column}
  .seat.north{left:6%}.seat.south{right:6%}
  .opp-rack{--back-w:8px;--back-h:15px;gap:1px}
  .seat:is(.north,.south) .opp-rack{justify-content:flex-start;flex:1}
  .back{--back-w:8px}.back:after{display:none}
  .compass{top:60%;width:61px}.compass-ch{font-size:25px}
  .west-pond{top:37%}.east-pond{bottom:8%}
  .north-pond,.south-pond{top:61%;grid-template-columns:repeat(2,auto)}
  .north-pond{left:17%}.south-pond{right:17%}
  .mini-tile{width:15px}
  .player-area{padding:12px 12px 13px}
  .hand-name h2{font-size:22px}.hand-name{gap:8px}.east-label{padding-left:8px;font-size:10px}
  .turn-indicator{font-size:11px}
  .rack{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px 3px;max-width:425px;margin-inline:auto;padding-top:11px}
  .tile-button{width:100%;aspect-ratio:.80;box-shadow:inset 0 0 0 1px #fffaf0a3,0 2px 0 #c3ab7d,0 4px 0 #ac9672,0 5px 2px #0b281e9c}
  .tile-button.drawn{margin-left:0}
  .tile-button.selected,.tile-button.selected:hover{transform:translateY(-4px)}
  .hand-actions{margin-top:11px;align-items:center;gap:6px}
  #instruction{font-size:11px}.move-button{font-size:12px;padding:8px 10px;min-height:44px}
  .hand-actions:has(.action-buttons button:nth-child(3)){flex-direction:column;align-items:flex-start}
  .journal li{padding-block:8px}.journal li:before{top:14px}
  .board-overlay{top:61%;min-width:125px;padding:10px}.board-overlay strong{font-size:19px}
  .modal-shell{padding:24px 17px 19px}dialog h2{font-size:30px}.tile-index{gap:5px}.sample-tile{width:29px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.wall-frame{position:absolute;pointer-events:none;left:50%;top:55%;width:39%;height:52%;transform:translate(-50%,-50%);--stock-depth:clamp(12px,1.2vw,20px)}
.wall-row{display:flex;gap:1px;position:absolute;filter:drop-shadow(1px 3px 2px #132b2499)}
.wall-west,.wall-east{height:var(--stock-depth);left:2%;right:2%}
.wall-west{top:0}.wall-east{bottom:0;flex-direction:row-reverse}
.wall-north,.wall-south{width:var(--stock-depth);top:7%;bottom:7%}
.wall-north{left:0;flex-direction:column-reverse}.wall-south{right:0;flex-direction:column}
.wall-stack{position:relative;flex:1;min-width:0;min-height:0;border-radius:2px;background:linear-gradient(125deg,#95ab8a,#6c9278 44%,#567e67);border:1px solid #a2b394;border-bottom-color:#536f55;box-shadow:0 2px 0 #d8cdb0,0 3px 0 #939773,0 5px 0 #567b61,0 6px 0 #c4b891}
.wall-stack:after{position:absolute;content:"";inset:1px;border:1px solid #c3d0ac42;border-radius:1px}
.wall-stack.h0{visibility:hidden}.wall-stack.h1{transform:translateY(3px);box-shadow:0 2px 0 #c9bd99}
.west-pond{top:39%}.east-pond{bottom:22%}.north-pond{left:34.5%}.south-pond{right:34.5%}
.pond{z-index:2}
.north-pond,.south-pond{grid-template-columns:repeat(2,auto);top:56%}
.tile-index figcaption,.pond-more{font-size:11px}
.seat-label:before{content:"";position:absolute;inset:-3px;pointer-events:none}
@media(min-width:821px) and (max-width:1100px){.wall-frame{width:40%;height:46%}.west-pond{top:41%}.east-pond{bottom:22%}.north-pond{left:33.5%}.south-pond{right:33.5%}}
@media(max-width:580px){
  .wall-frame{width:52%;height:42%;top:62%;--stock-depth:9px}
  .wall-row{gap:.7px}.wall-stack{border-radius:1px;box-shadow:0 1px 0 #ded0ae,0 2px 0 #70896d,0 3px 0 #c2b998}
  .wall-stack:after{display:none}
  .west-pond{top:46%}.east-pond{bottom:19%}
  .north-pond,.south-pond{top:62%}.north-pond{left:27.4%}.south-pond{right:27.4%}
  .pond .mini-tile{width:12px}.pond{gap:1px}
  .tile-button.drawn:before{content:"";position:absolute;top:2px;right:2px;width:6px;height:6px;background:#9c502e;clip-path:polygon(0 0,100% 0,100% 100%)}
  .table-meta b,.seat-label,.east-label{font-size:11px}
}
.pond{pointer-events:none}
.pond>button{pointer-events:auto}
@media(max-width:580px){
  .west-pond .pond-more,.east-pond .pond-more{grid-column:1 / -1;justify-self:center}
  .pond-more{padding:1px 3px}
}
.voice-seat{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:14px}
.voice-seat select{font:inherit;background:var(--paper);color:var(--ink);border:1px solid #9caa96;border-radius:4px;padding:6px 8px;cursor:pointer}
.voice-samples{border-top:1px solid var(--rule);margin:12px 0}
.voice-samples button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px 6px 9px 0;text-align:left;border-bottom:1px solid var(--rule)}
.voice-samples button span{display:grid;gap:2px}
.voice-samples small,.voice-credit{font-size:12px;color:var(--secondary)}
.voice-samples .ico,.voice-samples button:hover b,.voice-credit a{color:var(--red)}
.voice-samples button:disabled{opacity:.55}
.voice-credit summary{cursor:pointer;padding:6px 0}
.voice-credit p{font-size:12px}
@media(max-width:380px){.dialog-tabs{gap:12px}.dialog-tabs button{font-size:12px}}
.discard-note{display:flex;align-items:center;gap:12px;border-top:1px solid #768d75;margin-top:14px;padding-top:14px;color:#fff1d2}
.hint-face{flex:none;width:31px;aspect-ratio:.74;display:grid;place-items:center;background:#f2e8cc;border-radius:3px;border-bottom:2px solid #b9a781}
.hint-face svg{width:90%;height:90%}
.discard-note strong{font-size:14px;line-height:1.35}
.discard-note p{font-size:13px;line-height:1.48;margin-top:3px;color:#e3e8d7}
.tile-button.suggested:not(.selected){outline:2px dashed #f5d9a5;outline-offset:2px}
.match-ledger{border-block:1px solid var(--rule);padding:14px 0 12px}
.match-ledger h2{font:400 25px/1.13 var(--serif);letter-spacing:-.025em}
.match-ledger>p,.match-resume-note{font-size:13px;color:var(--secondary);margin-top:5px}
.match-tally{display:grid;grid-template-columns:repeat(4,1fr);margin:13px 0 8px}
.match-tally div{display:flex;flex-direction:column;align-items:center;padding:2px 3px;border-inline-start:1px solid var(--rule)}
.match-tally div:first-child{border:0}
.match-tally dt{font-size:12px;color:var(--secondary)}
.match-tally dd{margin:1px 0 0;font:400 26px/1.1 var(--serif);font-variant-numeric:tabular-nums}
.match-tally div:first-child dd{color:var(--red)}
.ledger-link,.session-text-button{color:var(--red);font-size:13px;font-weight:650;padding:5px 0;text-underline-offset:3px}
.ledger-link:hover,.session-text-button:hover{text-decoration:underline}
.game-choice{padding:18px 0 16px;border-bottom:1px solid var(--rule)}
.game-choice:last-child{border:0;padding-bottom:0}
.game-choice h3,.slip-tally h3{margin:0;font:400 23px/1.2 var(--serif)}
.game-choice p{margin:5px 0 12px}
.bot-setting{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 14px}
.bot-setting label{font:400 23px/1.2 var(--serif)}
.bot-setting select{justify-self:start;max-width:100%;min-height:44px;padding:6px 10px;background:var(--paper);color:var(--ink);border:1px solid #9caa96;border-radius:4px;font:inherit;font-size:16px;cursor:pointer}
.bot-setting p{grid-column:1/-1;margin:0;color:var(--secondary)}
.setup-difficulty{margin-bottom:24px}
.choice-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.match-scorecard table{border-collapse:collapse;width:100%;font-size:13px;margin-top:14px;text-align:left}
.match-scorecard th,.match-scorecard td{border-bottom:1px solid var(--rule);padding:7px 4px;font-variant-numeric:tabular-nums}
.match-scorecard thead th{color:var(--secondary)}
.match-scorecard tbody th{font-weight:500}
.score-slip+.match-scorecard,.slip-tally{margin-top:20px;padding-top:15px;border-top:1px solid var(--rule)}
.score-slip+.match-scorecard h3{margin:0}
.dealer-marker{color:#eed89d;font-size:12px;font-weight:500}
@media(min-width:581px) and (max-width:820px){.match-ledger{grid-column:1/-1}.match-ledger .match-tally{max-width:360px}}
@media(max-width:580px){
  .seat-label:has(.dealer-marker){position:relative}
  .dealer-marker{position:absolute;left:50%;transform:translateX(-50%);bottom:100%;line-height:1.2}
  .hand-actions:has([data-hint]){flex-wrap:wrap;row-gap:8px}
  .hand-actions:has([data-hint]) .action-buttons{margin-left:auto}
}

@media(prefers-reduced-motion:no-preference){
  dialog[open] .modal-shell{animation:open-slip .21s cubic-bezier(.2,.8,.2,1)}
  dialog[open]::backdrop{animation:open-scrim .18s ease-out}
  @keyframes open-slip{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
  @keyframes open-scrim{from{background-color:transparent}to{background-color:#0a211b80}}
}
