/* The practice surface uses the game's table card, tile faces, portraits and palette. */
#tutorial-dialog{box-sizing:border-box;width:min(96vw,620px);max-width:620px;max-height:94dvh;padding:0;border:1px solid #579a83;border-radius:24px;background:#0c342e;color:#f6f6ed;overflow:hidden;box-shadow:0 25px 80px #001d19b0}
#tutorial-dialog[open]{display:flex;flex-direction:column}
#tutorial-dialog .tutorial-header{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;flex:none;background:#103e38;border:0;position:static}
#tutorial-dialog .tutorial-header>img{width:38px;height:38px;object-fit:contain}#tutorial-dialog .tutorial-header>div{flex:1;min-width:0}#tutorial-title{font-size:18px;line-height:1.2;margin:0!important}#tutorial-progress{font-size:12px;color:#a9c9bc}#tutorial-close{flex:none;width:40px;height:40px;min-height:40px;padding:0;font-size:28px;border:0;background:#ffffff08;border-radius:50%}
#tutorial-meter{appearance:none;display:block;height:4px;width:100%;flex:none;margin:0;border:0;background:#214d42;border-radius:0}#tutorial-meter::-webkit-progress-bar{background:#214d42}#tutorial-meter::-webkit-progress-value{background:#e9bd66;border-radius:0 3px 3px 0;transition:width .3s}#tutorial-meter::-moz-progress-bar{background:#e9bd66}
#tutorial-dialog .tutorial-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 12px}#tutorial-step-title{margin:0 0 6px!important;font-size:24px!important;line-height:1.15;letter-spacing:-.5px}#tutorial-prompt{font-size:16px;line-height:1.4;margin:0 0 12px;color:#c8ded2}
#tutorial-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:0;margin:0;padding:0;border:0;border-radius:20px;gap:10px;background:radial-gradient(ellipse at 50% 30%,#216248,#103e32 65%,#0b342c);overflow:visible}
#tutorial-stage .tutorial-table{position:relative;display:block;min-height:220px;height:220px;border-radius:20px;background:radial-gradient(ellipse at 50% 46%,#1e5a43,#104633 64%,#0a382d);box-shadow:inset 0 0 0 1px #b5dfbe1a}
#tutorial-stage .tutorial-player{position:absolute;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;color:#c6dcd0;z-index:1}#tutorial-stage .tutorial-player img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #a5f3cd55;box-shadow:0 2px 8px #00271d55}#tutorial-stage .tutorial-player-top{top:10px;left:50%;transform:translateX(-50%)}#tutorial-stage .tutorial-player-left{left:10px;top:65px}#tutorial-stage .tutorial-player-right{right:10px;top:65px}
#tutorial-stage .tutorial-source,#tutorial-stage .tutorial-discard{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px;min-height:60px;min-width:50px;width:auto;box-shadow:none;background:transparent;border:0;color:#dbe9df;border-radius:12px;font-size:12px}
#tutorial-stage .tutorial-stock{left:50%;top:95px;transform:translateX(-50%);width:88px}#tutorial-stage .tutorial-take{left:9%;bottom:8px;width:86px}#tutorial-stage .tutorial-discard{right:9%;bottom:8px;width:80px}#tutorial-stage .tutorial-pile-label{font-size:12px;line-height:1.15;white-space:nowrap;color:#d3e2d6}
#tutorial-stage .stock-pile{position:relative;display:grid;place-items:center;width:34px;height:46px;background:linear-gradient(135deg,#fff9e7,#dfdbbd);border:1px solid #f9f9e9;border-radius:6px;box-shadow:2px 3px 0 #90a087,4px 6px 0 #50745d}#tutorial-stage .stock-pile img{width:25px;height:25px;object-fit:contain;opacity:.85}
#tutorial-stage .tutorial-source.source-ready{background:#a5f3cd0b}#tutorial-stage .source-ready .stock-pile,#tutorial-stage .source-ready>.tutorial-tile{outline:2px solid #a5f3cd;outline-offset:3px;animation:tutorial-source-invite 2s ease-in-out infinite}
#tutorial-stage .tutorial-tile{box-sizing:border-box;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;height:47px;min-height:47px;padding:2px 0;border:1px solid #f9f5dd;border-radius:5px;background:linear-gradient(130deg,#fffef1,#ede9d3);box-shadow:0 3px 0 #b6bba3;color:#171c1d;font-size:24px;font-weight:800;line-height:1;touch-action:none;user-select:none;-webkit-user-select:none;position:relative}
#tutorial-stage .tutorial-tile small{display:block;font-size:9px;line-height:1;margin:3px 0 0;color:inherit}#tutorial-stage .tutorial-tile.c0{color:#b52d40}#tutorial-stage .tutorial-tile.c1{color:#126a97}#tutorial-stage .tutorial-tile.c2{color:#a2750b}#tutorial-stage .tutorial-tile.c3{color:#1f2828}#tutorial-stage .tutorial-tile.selected{outline:3px solid #ffdb78;outline-offset:1px}#tutorial-stage .tutorial-source>.tutorial-tile,#tutorial-stage .tutorial-discard>.tutorial-tile,#tutorial-stage .tutorial-indicator .tutorial-tile{width:32px;min-width:32px;height:43px;min-height:43px;font-size:24px;pointer-events:none}
#tutorial-stage .tutorial-tile:disabled{opacity:1}#tutorial-stage .tutorial-empty-pile{display:grid;place-items:center;width:32px;height:43px;border:1px dashed #9fcb9f66;border-radius:5px;color:#9fcb9f66;font-size:22px}
#tutorial-stage .tutorial-rack{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:49px;gap:7px 4px;padding:8px 7px 11px;margin:0;background:linear-gradient(#365d40,#426949 47%,#1f4835 49%,#416747);border:1px solid #608463;border-bottom:5px solid #799779;border-radius:10px;min-height:125px;align-content:start;box-shadow:inset 0 2px 2px #bdc9a822,0 8px 15px #001c1b3d;max-width:none;overflow:visible}
#tutorial-stage .tutorial-rack>.tutorial-tile{animation:tutorial-deal-in .45s ease-out both}#tutorial-stage .tutorial-rack>.tutorial-tile:nth-child(3n){animation-delay:.07s}#tutorial-stage .tutorial-rack>.tutorial-tile:nth-child(3n + 1){animation-delay:.14s}#tutorial-stage .tutorial-rack>.tutorial-tile:nth-child(3n + 2){animation-delay:.21s}
#tutorial-stage .tutorial-slot{display:flex;align-items:center;justify-content:center;width:46px;min-width:0;height:52px;min-height:47px;padding:0;border:2px dashed #a5f3cd88;background:#a5f3cd12;border-radius:6px;color:#a5f3cd;font-size:22px}#tutorial-stage .tutorial-rack>.tutorial-slot{width:100%;height:47px}#tutorial-stage .tutorial-slots{display:flex;align-items:center;justify-content:center;gap:10px;margin:-5px 0 0;padding:4px 0 8px;flex-wrap:nowrap}#tutorial-stage .tutorial-slot.filled{border-style:solid;background:#a5f3cd40}#tutorial-stage .tutorial-slot .tutorial-tile{width:100%;height:47px;min-height:47px}
#tutorial-stage.scene-combination .tutorial-table{height:150px;min-height:150px}#tutorial-stage.scene-combination .tutorial-stock{top:76px}#tutorial-stage.scene-combination .tutorial-take,#tutorial-stage.scene-combination .tutorial-discard{display:none}#tutorial-stage.scene-combination .tutorial-player-left,#tutorial-stage.scene-combination .tutorial-player-right{top:45px}
#tutorial-stage .tutorial-indicator{position:absolute;left:calc(50% + 52px);top:94px;display:flex;align-items:center;flex-direction:column;gap:3px}#tutorial-stage .tutorial-indicator .tutorial-pile-label{font-size:12px}
#tutorial-stage .is-dragging{z-index:30!important;pointer-events:none;transform:translate(var(--drag-x),var(--drag-y)) scale(1.12)!important;animation:none!important;filter:drop-shadow(0 8px 7px #001f1ba0)}
#tutorial-stage.scene-table{padding:12px;background:radial-gradient(ellipse at 50% 35%,#39694c,#113c32 76%);gap:24px}
#tutorial-stage .tutorial-entry-card{width:100%;min-height:128px;display:flex;flex-direction:row;border-radius:18px;margin:12px 0 0;border:2px solid #d1aa5a;background:linear-gradient(140deg,#2c7369,#18413e 53%,#13252c);box-shadow:0 8px 20px #03181660;overflow:hidden;text-align:left}
#tutorial-stage .tutorial-entry-card .coin-card-art{width:78px;min-height:128px;flex:0 0 78px;height:auto}#tutorial-stage .tutorial-entry-card .coin-card-copy{display:grid;grid-template-columns:1fr;gap:3px;padding:12px;min-width:0;flex:1}#tutorial-stage .tutorial-entry-card h3{font-size:16px;margin:0;color:#ffe6a8;line-height:1.2}#tutorial-stage .tutorial-entry-card strong{font-size:28px;color:#f6f6ed;line-height:1.1}#tutorial-stage .tutorial-entry-card p{font-size:12px;line-height:1.25;margin:0 0 6px;color:#d2dfd5}#tutorial-stage .tutorial-entry-card button{width:100%;min-height:40px;padding:8px 12px;grid-column:auto;grid-row:auto;font-size:14px}#tutorial-stage .coin-art-tile{top:30px;left:7px;transform:rotate(-12deg) scale(.7)}#tutorial-stage .coin-art-tile.tile-b{top:34px;left:34px;transform:rotate(12deg) scale(.7)}
#tutorial-stage .tutorial-welcome-players{display:flex;align-items:center;padding:8px 2px 14px;gap:0}#tutorial-stage .tutorial-welcome-players img{width:34px;height:34px;object-fit:cover;border-radius:50%;border:2px solid #123f32;margin-right:-8px}#tutorial-stage .tutorial-welcome-players span{font-size:14px;line-height:1.3;padding-left:18px;max-width:190px;color:#c9ded1}#tutorial-stage.table-selected .coin-card{animation:tutorial-selected .6s ease-out}
#tutorial-feedback{display:flex;align-items:center;gap:8px;min-height:0!important;margin:12px 0 0;padding:10px 12px;border-radius:14px;background:#a5f3cd13;color:#d9f0df;font-size:14px;line-height:1.35}#tutorial-feedback[hidden]{display:none}#tutorial-feedback img{width:30px;height:30px;flex:none;object-fit:contain}
#tutorial-tip{background:transparent;border:0;border-radius:0;padding:0;margin:10px 0 0;color:#b5d1c1;font-size:14px;line-height:1.5}#tutorial-tip summary{font-size:14px;cursor:pointer;color:#a5f3cd;min-height:32px;display:list-item;padding:5px 0}#tutorial-tip p{font-size:14px;margin:5px 0 8px;line-height:1.5}
#tutorial-dialog .tutorial-actions{flex:none;display:flex!important;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #a5f3cd1a;background:#103e38}#tutorial-dialog .tutorial-actions button{min-height:44px;padding:10px 17px;font-size:14px}#tutorial-dialog .tutorial-free{display:block!important;font-size:12px;color:#a9c9bc;text-align:center}
.tutorial-ink{position:absolute;inset:0;width:100%;height:100%;z-index:10;pointer-events:none;overflow:visible;color:#ffe098;filter:drop-shadow(0 1px 1px #123629)}.tutorial-ink path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:ink-draw 2.6s ease-in-out infinite}.tutorial-ink .ink-circle{stroke-width:2;opacity:.8}.tutorial-ink .ink-arrowhead{animation-delay:.1s}
#tutorial-stage .tutorial-icon{display:inline-flex;width:24px;height:24px;color:inherit;flex:none}#tutorial-stage .tutorial-icon svg{width:100%;height:100%}
#tutorial-stage .tutorial-wallet{display:flex;align-items:center;align-self:flex-end;gap:7px;position:relative;z-index:3;padding:8px 12px;margin:12px 12px 0;border:1px solid #e4c27c99;border-radius:30px;color:#f8d582;background:#173d34;font-size:14px}#tutorial-stage .tutorial-balance{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
#tutorial-stage.scene-payout{padding-bottom:14px;gap:10px}#tutorial-stage .tutorial-cash-scene{display:grid;place-items:center;min-height:216px;padding:8px 24px}#tutorial-stage .tutorial-result-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;padding:12px 10px 20px;border:1px solid #edce8355;border-radius:24px;background:radial-gradient(ellipse at 50% 20%,#4f794a44,#123e3255);box-shadow:0 10px 20px #001f1922}#tutorial-stage .tutorial-result-card img{width:58px;height:58px;object-fit:contain;animation:tutorial-joy-bob 2.5s ease-in-out infinite}#tutorial-stage .tutorial-result-card>strong{font-size:21px;line-height:1.2;color:#f6f6ed}#tutorial-stage .tutorial-result-amount{font-size:36px;font-weight:850;color:#ffdf8f;line-height:1.3;font-variant-numeric:tabular-nums}#tutorial-stage .tutorial-result-caption{font-size:14px;color:#c9decd}#tutorial-stage .tutorial-result-card.is-loss .tutorial-result-amount{color:#efae9d}
#tutorial-stage .tutorial-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 12px}#tutorial-stage .tutorial-outcome{min-height:44px;border-radius:12px;border:1px solid #98b89b55;background:#224e3a;color:#e5ecde;padding:8px;font-size:14px}#tutorial-stage .tutorial-outcome.active{border-color:#efd18c;background:#efd18c;color:#253c2c}
#tutorial-stage .tutorial-flying-coin{position:absolute;z-index:15;pointer-events:none;display:grid;place-items:center;width:26px;height:26px;color:#ffd887;filter:drop-shadow(0 1px 2px #714d00)}
#tutorial-stage.scene-pricing{padding-bottom:12px;gap:8px}#tutorial-stage.scene-pricing .tutorial-table{height:135px;min-height:135px}#tutorial-stage.scene-pricing .tutorial-player-top{top:3px}#tutorial-stage.scene-pricing .tutorial-player-left,#tutorial-stage.scene-pricing .tutorial-player-right{top:25px}#tutorial-stage.scene-pricing .tutorial-stock{top:65px}#tutorial-stage.scene-pricing .tutorial-take,#tutorial-stage.scene-pricing .tutorial-discard{display:none}#tutorial-stage.scene-pricing .tutorial-rack{margin:0 8px}
#tutorial-stage .tutorial-coach-panel{margin:0 10px;display:flex;flex-direction:column;gap:8px}#tutorial-stage .tutorial-coach-open{display:flex;align-items:center;gap:9px;width:100%;padding:12px;color:#fff6d9;background:#28583e;border:1px solid #d5b979;border-radius:14px;text-align:left;min-height:52px;font-size:15px}#tutorial-stage .tutorial-coach-open .tutorial-icon{color:#ffe39b;animation:tutorial-light-on 1.8s ease-in-out infinite}#tutorial-stage .tutorial-coach-price{margin-left:auto;color:#e9d3a0;font-size:14px}#tutorial-stage .tutorial-coach-open:disabled{opacity:1;background:#335b3d;color:#b8d3b8}#tutorial-stage .tutorial-cap{display:grid;grid-template-columns:1fr auto;gap:5px;color:#bcd0bd;font-size:12px}#tutorial-stage .tutorial-cap strong{font-size:12px;color:#e4d3a5}#tutorial-stage .tutorial-cap progress{grid-column:1/-1;width:100%;height:4px;margin:0;accent-color:#e8c271}
#tutorial-stage .tutorial-consent,#tutorial-stage .tutorial-open-tip{border-radius:14px;padding:12px;background:#fff2cf;color:#233d2c;animation:tutorial-deal-in .3s ease-out}#tutorial-stage .tutorial-consent strong,#tutorial-stage .tutorial-open-tip strong{font-size:15px}#tutorial-stage .tutorial-consent p,#tutorial-stage .tutorial-open-tip p{font-size:14px;line-height:1.4;margin:5px 0 10px;color:#3d5546}#tutorial-stage .tutorial-consent button,#tutorial-stage .tutorial-open-tip button{width:100%;min-height:40px;font-size:14px;background:#1b5641;color:#f4f2d9;border:0;padding:8px}#tutorial-stage .coach-keep{outline:3px solid #a5f3cd;outline-offset:1px}
#tutorial-stage .shown-indicator{outline:3px solid #ffdf87;animation:tutorial-selected .6s ease-out}#tutorial-stage .tutorial-gosterge-bubble{position:absolute;top:75px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#ffdc8b;color:#174533;border-radius:12px;padding:8px 12px;font-size:16px;font-weight:750;z-index:4}#tutorial-stage.tutorial-won .tutorial-rack{animation:tutorial-selected .6s ease-out}
@keyframes ink-draw{0%{stroke-dashoffset:1;opacity:.3}45%,85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.35}}
@keyframes tutorial-source-invite{50%{filter:brightness(1.13);outline-offset:5px}}
@keyframes tutorial-deal-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@keyframes tutorial-selected{40%{filter:brightness(1.25);scale:1.025}100%{filter:none;scale:1}}
@keyframes tutorial-joy-bob{50%{transform:translateY(-4px) rotate(5deg)}}
@keyframes tutorial-light-on{50%{filter:drop-shadow(0 0 7px #ffe39b);transform:rotate(-10deg) scale(1.08)}}
@media(min-width:500px){#tutorial-stage .tutorial-rack{grid-auto-rows:57px;gap:8px 6px}#tutorial-stage .tutorial-rack>.tutorial-tile{height:55px;min-height:55px;font-size:29px}#tutorial-stage .tutorial-rack>.tutorial-slot{height:55px}#tutorial-stage .tutorial-entry-card .coin-card-art{width:126px;flex-basis:126px}#tutorial-stage .coin-art-tile{left:25px;transform:rotate(-12deg)}#tutorial-stage .coin-art-tile.tile-b{left:62px;transform:rotate(12deg)}}
@media(max-width:360px){#tutorial-dialog .tutorial-body{padding:12px}#tutorial-dialog .tutorial-actions{padding:10px 12px}#tutorial-stage .tutorial-rack{gap:6px 3px;padding:7px 5px 10px}#tutorial-stage .tutorial-tile{font-size:22px}#tutorial-step-title{font-size:22px!important}#tutorial-dialog .tutorial-free{max-width:72px}}
@media(prefers-reduced-motion:reduce){#tutorial-stage *,#tutorial-stage .tutorial-tile,.tutorial-ink path{animation:none!important;transition:none!important}.tutorial-ink path{stroke-dashoffset:0}#tutorial-stage .tutorial-flying-coin{display:none}}
/* Intro lessons show the same tile faces before the first turn. */
#tutorial-stage.scene-tiles,#tutorial-stage.scene-goal{padding:14px;gap:12px}
#tutorial-stage .tutorial-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#tutorial-stage .tutorial-color{min-height:44px;padding:7px 2px;border:1px solid #86ae9855;border-radius:10px;background:#153a30;color:#e9eee2;font-size:14px}
#tutorial-stage .tutorial-color[aria-pressed=true]{background:#f4edd7;color:#173a30;border-color:#ffe0a1;box-shadow:0 2px 0 #acb69b}
#tutorial-stage .tutorial-color::before{content:'\25cf';display:block;font-size:12px;color:#f07580}#tutorial-stage .color-1::before{content:'\25c6';color:#60bbeb}#tutorial-stage .color-2::before{content:'\25b2';color:#f1cc60}#tutorial-stage .color-3::before{content:'\25a0';color:#abbcb4}#tutorial-stage .color-3[aria-pressed=true]::before{color:#26372d}
#tutorial-stage .tutorial-tile-facts{text-align:center;color:#ffdfa0;font-size:23px;letter-spacing:1px}
#tutorial-stage .tutorial-number-set{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px 4px}
#tutorial-stage .tutorial-number-set[hidden],#tutorial-stage .tutorial-reveal[hidden]{display:none}
#tutorial-stage .tutorial-number-set .tutorial-tile{height:42px;min-height:42px;font-size:23px;animation:tutorial-deal-in .45s ease-out both}
#tutorial-stage .tutorial-extra-jokers{display:flex;align-items:center;gap:6px;border-top:1px solid #91b29a44;padding-top:12px}
#tutorial-stage .tutorial-extra-jokers .tutorial-tile{width:30px;min-width:30px;height:40px;min-height:40px;font-size:21px}
#tutorial-stage .tutorial-extra-jokers>span{font-size:14px;color:#cce0cc;line-height:1.35;margin-left:6px}
#tutorial-stage .tutorial-reveal{min-height:44px;font-size:15px;padding:10px 12px;margin:0;border-radius:12px}
#tutorial-stage .tutorial-goal-example{padding:14px;border:1px solid #9bc5a944;border-radius:14px;background:#163e30}
#tutorial-stage .tutorial-goal-example>strong{font-size:18px;color:#ffe0a1}
#tutorial-stage .tutorial-example-tiles{display:flex;gap:6px;margin:12px 0}
#tutorial-stage .tutorial-example-tiles .tutorial-tile{width:44px;animation:tutorial-deal-in .4s ease-out both}
#tutorial-stage .tutorial-goal-example p{font-size:16px;line-height:1.4;color:#d6e6d5;margin:0}
#tutorial-stage.scene-deal .tutorial-take,#tutorial-stage.scene-deal .tutorial-discard{display:none}
#tutorial-stage.scene-deal .tutorial-table{height:185px;min-height:185px}
#tutorial-stage .tutorial-player-count{font-size:12px;color:#ffdfa0}
#tutorial-stage .tutorial-hand-count{font-size:16px;color:#ffdfa0;padding:0 10px}
#tutorial-stage.scene-deal>.tutorial-reveal{margin:0 10px 12px}
#tutorial-stage .tutorial-payout-faces{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;margin-top:5px}
#tutorial-stage .tutorial-payout-faces .tutorial-tile{width:30px;height:40px;min-height:40px;font-size:23px}
#tutorial-stage .tutorial-outcomes .tutorial-outcome:last-child{grid-column:1/-1}
/* Play-along edition: a table, a small spoken cue, and the player's own seat. */
#tutorial-dialog{width:min(100vw - 16px,620px);max-height:96dvh;border-radius:28px;background:#082e29;border-color:#779b7d;box-shadow:0 22px 100px #001f1cd9}
#tutorial-dialog::backdrop{background:#001e1adb;backdrop-filter:blur(8px)}
#tutorial-dialog .tutorial-header{padding:12px 16px;background:#0d3932;gap:10px}
#tutorial-dialog .tutorial-header>img{width:42px;height:42px;object-fit:cover;border:2px solid #f0ca80;border-radius:50%;box-shadow:0 0 0 4px #edce8312}
#tutorial-title{font-size:17px!important;letter-spacing:-.25px}#tutorial-progress{font-size:12px}
#tutorial-meter{height:3px;background:#143d32}#tutorial-meter::-webkit-progress-value{background:#a5efc8}
#tutorial-dialog .tutorial-chapters{display:flex;gap:4px;padding:10px 14px 2px;background:transparent;flex:none}
#tutorial-dialog .tutorial-chapters span{flex:1;min-width:0;text-align:center;font-size:12px;color:#b0c7b8;padding:6px 2px;border-radius:8px;position:relative}
#tutorial-dialog .tutorial-chapters span.active{background:#edd092;color:#183c2c;font-weight:750;box-shadow:0 3px 0 #796a3f}
#tutorial-dialog .tutorial-chapters span.done{color:#acf3cf}
#tutorial-dialog .tutorial-body{padding:12px 12px 6px}
#tutorial-dialog .tutorial-joy{display:flex;gap:10px;align-items:flex-start;padding:11px 12px 12px;margin:0 0 12px;background:#f6f0da;color:#173c2d;border-radius:5px 18px 18px 18px;box-shadow:0 4px 0 #c3c5a13b;position:relative}
#tutorial-dialog .tutorial-joy>img{width:34px;height:34px;object-fit:contain;flex:none;animation:tutorial-joy-bob 3.2s ease-in-out infinite;margin-top:2px}
#tutorial-dialog .tutorial-joy>div{min-width:0}#tutorial-dialog .tutorial-joy-name{display:block;font-size:11px;font-weight:800;letter-spacing:1.5px;color:#42614a;margin-bottom:3px}
#tutorial-dialog #tutorial-step-title{font-size:20px!important;line-height:1.15;letter-spacing:-.35px;color:#173c2d;margin:0 0 6px!important}
#tutorial-dialog #tutorial-prompt{font-size:16px;line-height:1.38;color:#355744;margin:0}
#tutorial-stage{border:1px solid #aec19b22;border-radius:20px;background:radial-gradient(ellipse at 50% 20%,#245d3f,#123e30 65%,#0b322a);gap:0;overflow:hidden}
#tutorial-stage .tutorial-table{height:208px;min-height:208px;background:radial-gradient(ellipse at 50% 60%,#246249,#114430 73%,#14382a);box-shadow:inset 0 0 0 7px #96b88d07,inset 0 0 45px #001b1944;border-radius:20px 20px 0 0}
#tutorial-stage .tutorial-player{font-size:12px;gap:3px;color:#e0eadb}
#tutorial-stage .tutorial-player img{width:44px;height:44px;border:2px solid #d7d5ae;box-shadow:0 3px 0 #092b2288,0 0 0 4px #d7d5ae0c}
#tutorial-stage .tutorial-player-top{top:10px}#tutorial-stage .tutorial-player-left,#tutorial-stage .tutorial-player-right{top:49px}
#tutorial-stage .tutorial-player-left{left:13px}#tutorial-stage .tutorial-player-right{right:13px}
#tutorial-stage .tutorial-stock{top:102px;width:75px}#tutorial-stage .stock-pile{height:46px;width:35px;box-shadow:3px 3px 0 #9eaa89,6px 6px 0 #5d795c,9px 9px 0 #355b40}
#tutorial-stage .tutorial-take{left:5%;bottom:8px;width:100px}#tutorial-stage .tutorial-discard{right:5%;bottom:8px;width:106px}
#tutorial-stage .tutorial-pile-label{font-size:12px;color:#cee0cc;line-height:1.2}
#tutorial-stage .tutorial-self-seat{display:flex;align-items:center;gap:7px;padding:8px 10px;color:#eff0db;background:#103d2e;font-size:14px;border-top:1px solid #a0c79822}
#tutorial-stage .tutorial-self-seat>img{width:30px;height:30px;border-radius:50%;border:2px solid #e7c888;object-fit:cover}
#tutorial-stage .tutorial-self-name{font-size:14px;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tutorial-stage .tutorial-self-count{margin-left:auto;font-size:12px;color:#d1dcbf;font-variant-numeric:tabular-nums}
#tutorial-stage .tutorial-rack{margin:0 6px 8px;border-radius:7px;gap:7px 4px;background:linear-gradient(#657556,#738363 44%,#465c44 47%,#667a55);border:1px solid #9d9d74;border-bottom:6px solid #ada882;padding:7px 5px 9px;box-shadow:inset 0 2px 2px #f5f2c13b,0 7px 7px #001e1d44;min-height:122px}
#tutorial-stage .tutorial-rack>.tutorial-tile{animation:tutorial-deal-in .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--tile-order,0)*40ms)}
#tutorial-stage .tutorial-tile{border-radius:5px;background:linear-gradient(120deg,#fffef0,#eae6cb);box-shadow:0 3px 0 #a7aa8c,1px 4px 4px #172e2455;border-color:#fffae5;font-family:Arial,sans-serif;font-weight:800}
#tutorial-stage .tutorial-tile[hidden]{display:none!important}
#tutorial-stage .tutorial-tile.selected,#tutorial-stage .twin-found{outline:3px solid #ffdf85;outline-offset:1px;box-shadow:0 3px 0 #a7aa8c,0 0 18px #ffde8366}
#tutorial-stage .tutorial-tile.twin-found{animation:tutorial-twin-pop .5s ease-out both}
#tutorial-stage .tutorial-facts{position:absolute;left:50%;top:112px;transform:translateX(-50%);display:flex;flex-direction:column;gap:4px;align-items:center;white-space:nowrap}
#tutorial-stage .tutorial-facts span{font-size:14px;color:#ffe09b;font-weight:750}
#tutorial-stage.scene-tiles{padding:0;gap:0}#tutorial-stage.scene-tiles .tutorial-table{height:230px;min-height:230px}#tutorial-stage.scene-tiles .tutorial-stock,#tutorial-stage.scene-tiles .tutorial-take,#tutorial-stage.scene-tiles .tutorial-discard{display:none}
#tutorial-stage .tutorial-total{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:92%;display:flex;align-items:center;gap:5px;color:#ddedce}
#tutorial-stage .tutorial-total .tutorial-tile{width:23px;min-height:30px;height:30px;font-size:19px}#tutorial-stage .tutorial-total>span{font-size:12px;line-height:1.3;max-width:190px}
#tutorial-stage .tutorial-banter{position:absolute;z-index:7;bottom:calc(100% + 9px);width:136px;background:#f6eed4;color:#25442f;padding:8px 9px;border-radius:12px 12px 12px 2px;box-shadow:0 3px 12px #071f2a33;font-size:13px;line-height:1.25;font-weight:600;text-align:left}
#tutorial-stage .tutorial-player-left .tutorial-banter{left:0}#tutorial-stage .tutorial-player-right .tutorial-banter{right:0;border-radius:12px 12px 2px 12px}#tutorial-stage .tutorial-player-top .tutorial-banter{left:calc(100% + 9px);bottom:5px;width:106px}
#tutorial-stage .tutorial-cheer{position:absolute;z-index:30;left:50%;top:34%;pointer-events:none;transform:translateX(-50%) rotate(-4deg);padding:10px 20px;font-size:26px;font-weight:900;white-space:nowrap;border-radius:12px;background:#ffd889;color:#20432b;box-shadow:0 5px 0 #92723d,0 10px 30px #05271d55}
#tutorial-stage .tutorial-confetti{position:absolute;left:50%;top:38%;z-index:25;pointer-events:none;width:7px;height:12px;border-radius:2px;background:var(--confetti-color)}
#tutorial-stage .tutorial-target{outline:2px solid #a5f3cd;outline-offset:2px;animation:tutorial-target-pulse 1.8s ease-in-out infinite}
#tutorial-stage .tutorial-replay{align-self:center;font-size:13px;color:#cde6d1;min-height:36px;padding:5px 12px;margin:0 0 7px;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
#tutorial-stage.scene-combination .tutorial-table{height:144px;min-height:144px}#tutorial-stage.scene-combination .tutorial-stock{top:72px}#tutorial-stage.scene-combination .tutorial-indicator{top:75px;left:calc(50% + 52px)}
#tutorial-stage .tutorial-combination-rail{background:linear-gradient(#426548,#284d37);padding:9px 12px 13px;margin:0 6px;gap:7px;border:1px solid #8ca478;border-bottom:4px solid #a6b08b;border-radius:8px 8px 0 0;min-height:62px;box-shadow:inset 0 1px 3px #f5edb11c}
#tutorial-stage .tutorial-combination-rail+.tutorial-rack{border-radius:0 0 7px 7px;border-top:0}
#tutorial-stage .tutorial-slot{height:48px;width:38px;min-height:48px;background:#c1e2b716;border-color:#bddeb788;border-radius:5px}
#tutorial-stage .tutorial-slot.filled{background:transparent;border:0}#tutorial-stage .tutorial-slot .tutorial-tile{height:47px;min-height:47px}
#tutorial-stage.scene-table{padding:12px 12px 0;gap:12px;background:radial-gradient(ellipse at 50% 0,#3b6851,#143e30 60%,#0c3027)}
#tutorial-stage .tutorial-welcome{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:9px 0 0;color:#fff0c5}
#tutorial-stage .tutorial-welcome-self{width:70px;height:70px;object-fit:cover;border:3px solid #f2cd82;border-radius:50%;box-shadow:0 0 0 7px #edce8310,0 6px 24px #001b1a66;animation:tutorial-seat-in .65s cubic-bezier(.2,.8,.2,1) both}
#tutorial-stage .tutorial-welcome>span{font-size:12px;color:#cde1cb;margin-top:7px}#tutorial-stage .tutorial-welcome>strong{font-size:25px;letter-spacing:-.5px;max-width:100%;overflow-wrap:anywhere}
#tutorial-stage .tutorial-entry-card{margin:0;min-height:128px;border-color:#efcd86;box-shadow:0 7px 18px #001d1744}
#tutorial-stage .tutorial-welcome-players{justify-content:center;padding:5px 0 15px}#tutorial-stage .tutorial-welcome-players span{font-size:13px;max-width:200px;font-style:italic}
#tutorial-feedback{font-size:14px;background:#143e2d;border:1px solid #9ab88944;margin:10px 0 0;padding:10px 11px;border-radius:12px;color:#d5edce;animation:tutorial-deal-in .25s ease-out}
#tutorial-feedback img{width:25px;height:25px}#tutorial-tip{margin:7px 2px 0}#tutorial-tip summary{font-size:13px;min-height:34px;color:#bdd7c5}#tutorial-tip p{font-size:14px}
#tutorial-dialog .tutorial-actions{gap:9px;padding:10px 14px max(12px,env(safe-area-inset-bottom));background:#0a3028}
#tutorial-dialog .tutorial-actions #tutorial-next{background:#f1ce84;color:#1c392a;border:1px solid #ffe6af;box-shadow:0 3px 0 #907448;font-weight:800;max-width:60%}
#tutorial-dialog .tutorial-actions #tutorial-next:disabled{background:#184737;color:#a8c9b5;border-color:#49745a;box-shadow:none;font-weight:600}
#tutorial-dialog .tutorial-free{font-size:11px;max-width:65px;line-height:1.25}#tutorial-dialog .tutorial-actions #tutorial-back{border:0;background:transparent;padding-left:0;padding-right:0;color:#bdd3c2;font-size:13px;min-width:40px}
#tutorial-stage .tutorial-result-card>img{border-radius:50%;object-fit:cover;width:66px;height:66px;border:2px solid #f2d288}
#tutorial-stage .tutorial-result-card{background:radial-gradient(ellipse at 50% 0,#70915155,#123e3255);border:1px solid #edce8344}
#tutorial-stage .tutorial-cash-scene{padding:12px 16px 8px;min-height:210px}
#tutorial-stage .tutorial-result-amount{font-size:43px;letter-spacing:-1.5px}
#tutorial-stage .tutorial-outcomes{gap:6px;margin:0 9px}#tutorial-stage .tutorial-outcome{font-size:13px;line-height:1.25;min-height:43px}
#tutorial-stage .tutorial-wallet{margin:9px 10px 2px;background:#102e25}
#tutorial-stage.scene-pricing .tutorial-self-seat{margin:0 8px;background:transparent;border:0;padding:3px 2px 5px}#tutorial-stage.scene-pricing .tutorial-rack{margin-bottom:7px}
#tutorial-stage .tutorial-coach-open{background:#eacf88;color:#27442d;border:1px solid #f9e4b2;font-weight:700;box-shadow:0 3px 0 #8a7240}
#tutorial-stage .tutorial-coach-open .tutorial-icon{color:#38512c}#tutorial-stage .tutorial-coach-price{color:#3f5939}
#tutorial-stage .tutorial-coach-open:disabled{background:#35553d;box-shadow:none}
#tutorial-stage .tutorial-cap{margin-top:4px}#tutorial-stage .tutorial-cap strong{color:#e5cd96}
#tutorial-stage.scene-deal .tutorial-hand-count{display:none}#tutorial-stage.scene-deal .tutorial-reveal{margin-top:5px;background:#edce8a;color:#27452f}
@keyframes tutorial-twin-pop{0%{scale:1}40%{scale:1.18;rotate:-5deg}100%{scale:1;rotate:0deg}}
@keyframes tutorial-target-pulse{50%{outline-offset:5px;filter:brightness(1.15)}}
@keyframes tutorial-seat-in{0%{opacity:0;scale:.6;rotate:-10deg}75%{opacity:1;scale:1.08;rotate:4deg}100%{scale:1;rotate:0}}
@media(min-width:500px){#tutorial-dialog .tutorial-body{padding:14px 20px 8px}#tutorial-dialog .tutorial-joy{padding:14px 16px}#tutorial-dialog #tutorial-step-title{font-size:23px!important}#tutorial-stage .tutorial-table{height:232px;min-height:232px}#tutorial-stage .tutorial-stock{top:118px}#tutorial-stage .tutorial-player img{width:50px;height:50px}#tutorial-stage .tutorial-player-left,#tutorial-stage .tutorial-player-right{top:58px}#tutorial-stage .tutorial-slot{width:48px;height:55px}#tutorial-stage .tutorial-slot .tutorial-tile{height:52px;min-height:52px}#tutorial-stage .tutorial-combination-rail{gap:10px}}
@media(max-width:360px){#tutorial-dialog .tutorial-body{padding:10px 8px 4px}#tutorial-dialog .tutorial-joy{gap:6px;padding:10px 9px}#tutorial-dialog .tutorial-joy>img{width:27px;height:27px}#tutorial-dialog #tutorial-prompt{font-size:16px}#tutorial-stage .tutorial-take{left:1%}#tutorial-stage .tutorial-discard{right:1%}#tutorial-stage .tutorial-player-top .tutorial-banter{width:88px}#tutorial-dialog .tutorial-free{display:none!important}}
@media(prefers-reduced-motion:reduce){#tutorial-dialog *,#tutorial-stage .tutorial-rack>.tutorial-tile{animation:none!important;transition:none!important}.tutorial-confetti{display:none!important}}
#tutorial-dialog[data-lesson=table] .tutorial-actions #tutorial-next{display:none}#tutorial-dialog[data-lesson=table] .tutorial-actions{justify-content:center}#tutorial-dialog[data-lesson=table] .tutorial-actions #tutorial-back{display:none}#tutorial-dialog[data-lesson=table] .tutorial-free{max-width:none;font-size:12px}
/* Keep the reward and advice controls in reach on phone screens. */
#tutorial-stage.scene-payout .tutorial-cash-scene{min-height:0;padding:7px 12px}
#tutorial-stage.scene-payout .tutorial-result-card{display:grid;grid-template-columns:50px 1fr;gap:5px 10px;align-items:center;padding:12px;text-align:left;border-radius:18px}
#tutorial-stage.scene-payout .tutorial-result-card>img{width:48px;height:48px;grid-row:1/3}
#tutorial-stage.scene-payout .tutorial-result-card>strong{font-size:17px;overflow-wrap:anywhere}
#tutorial-stage.scene-payout .tutorial-result-amount{font-size:35px;line-height:1.1}
#tutorial-stage.scene-payout .tutorial-result-caption{grid-column:1/-1;font-size:13px;text-align:center;margin-top:5px}
#tutorial-stage.scene-payout .tutorial-payout-faces{grid-column:1/-1;margin-top:2px}
#tutorial-stage.scene-pricing .tutorial-table{display:none}
#tutorial-dialog[data-lesson=pricing] #tutorial-feedback{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;margin:0}

/* Combination exercises use the real rack, never an extra third rail. */
#tutorial-stage .tutorial-rack.tutorial-slots{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:49px;gap:7px 4px;margin:0 6px 8px;padding:7px 5px 9px;min-height:122px}
#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot{display:block;width:100%;height:47px;font-size:26px;background:linear-gradient(#fffdec,#e5e2c7);border:2px dashed #edce8a;color:inherit}
#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot.c0{color:#ba3450}#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot.c1{color:#1874b9}#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot.c2{color:#b88420}#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot.c3{color:#1a1714}
#tutorial-stage .tutorial-rack>.tutorial-slot.filled{border-style:solid;border-color:#edce8a}
@media(min-width:500px){#tutorial-stage .tutorial-rack.tutorial-slots{grid-auto-rows:57px;gap:8px 6px}#tutorial-stage .tutorial-rack>.tutorial-tile.tutorial-slot{height:55px;font-size:29px}}

/* A brief animated introduction, then a real two-row rack action. */
#tutorial-stage.scene-tiles{padding:16px;min-height:345px}
#tutorial-stage .tutorial-tile-intro{display:grid;gap:18px;width:100%}
#tutorial-stage .tutorial-intro-part[hidden]{display:none}
#tutorial-stage .tutorial-intro-part h4{font-size:16px;line-height:1.3;margin:0 0 10px;color:#f4dfab;text-align:center}
#tutorial-stage .tutorial-tile-fan,#tutorial-stage .tutorial-twin-pair{display:flex;justify-content:center;gap:10px}
#tutorial-stage .tutorial-tile-fan .tutorial-tile,#tutorial-stage .tutorial-twin-pair .tutorial-tile{width:42px;height:52px;min-height:52px;font-size:28px}
#tutorial-stage .tutorial-tile-fan .tutorial-tile:nth-child(1){rotate:-10deg}
#tutorial-stage .tutorial-tile-fan .tutorial-tile:nth-child(4){rotate:10deg}
#tutorial-stage .tutorial-number-line{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px 5px;max-width:370px;margin:auto}
#tutorial-stage .tutorial-number-line .tutorial-tile{height:39px;min-height:39px;font-size:23px}
#tutorial-stage.scene-run{padding-top:4px}
#tutorial-stage .tutorial-rack-task{font-size:16px;line-height:1.4;color:#f3dfa8;margin:10px 12px 14px}
#tutorial-stage .tutorial-rack>.tutorial-run-gap{color:#f3dfa8;background:#193f32;border:2px dashed #edd092;font-size:24px}
#tutorial-dialog[data-lesson=tiles] .tutorial-free,#tutorial-dialog[data-lesson=run] .tutorial-free{display:none!important}
