/* App-owned entry overlays use the existing Scene3D engine and HUD slots. */
:root{--entry-paper:#fff4dc;--entry-muted:#d3c7ae;--entry-gold:#efc56e;--entry-line:#eee0bd33}
.entry-shell{position:relative;isolation:isolate;min-height:100dvh;background:#292c25;color:var(--entry-paper);font-family:"DM Sans",system-ui,sans-serif;overflow:hidden}
.entry-table{position:absolute;inset:0;z-index:-3}
.entry-table>[data-gosx-engine]{width:100%;height:100%}
.entry-table canvas{width:100%;height:100%}
.entry-table svg{width:100%;height:100%;object-fit:cover}
.entry-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#161d19f0 0%,#161d19cb 30%,#161d1922 68%,#161d190d),linear-gradient(0deg,#121a19a0,transparent 20%);z-index:-1;pointer-events:none}
.entry-brand{position:absolute;left:clamp(24px,5vw,80px);top:32px;letter-spacing:.18em;font-size:11px;font-weight:700;color:var(--entry-paper);text-decoration:none}
.entry-overlay{width:min(510px,44vw);margin:0 0 0 clamp(24px,5vw,80px);padding:112px 0 64px;position:relative;max-height:100dvh;overflow:auto;scrollbar-width:thin;scrollbar-color:#e0bb6d55 transparent}
.entry-overlay h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(38px,4vw,60px);line-height:1.05;letter-spacing:-.04em;margin:18px 0 22px}
.entry-overlay h1 em{font-weight:400;color:var(--entry-gold)}
.entry-overlay p{margin:12px 0;line-height:1.6}
.entry-kicker{color:var(--entry-gold);letter-spacing:.17em;font-size:10px;font-weight:700}
.entry-intro{color:var(--entry-muted);font-size:17px;max-width:450px}
.entry-overlay form{margin:0}
.entry-overlay a{color:var(--entry-paper);text-underline-offset:5px;font-size:13px}
.entry-overlay button,.entry-overlay input{font:inherit}
.entry-overlay button{cursor:pointer;border-radius:10px;min-height:48px;padding:14px 18px;transition:background .15s,transform .15s;line-height:1.25}
.entry-overlay button:hover{transform:translateY(-1px)}
.entry-overlay :is(button,a,input,summary):focus-visible,.entry-share :is(button,a,input):focus-visible,.entry-practice button:focus-visible{outline:3px solid #fff3ba;outline-offset:4px}
.entry-primary{width:100%;display:flex;justify-content:space-between;align-items:center;background:var(--entry-gold);color:#242d23;border:1px solid #ffe4a7;font-weight:700!important;margin-top:22px;box-shadow:0 8px 24px #1118}
.entry-primary:hover{background:#ffda84}
.entry-note{font-size:11px;color:var(--entry-muted);line-height:1.6}
.entry-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}
.entry-secondary{width:100%;color:var(--entry-paper);border:1px solid var(--entry-line);background:#192b2485}
.entry-secondary:hover,.entry-choice:hover{background:#405448bb}
.entry-join{border-top:1px solid var(--entry-line);border-bottom:1px solid var(--entry-line);padding:16px 0;margin:20px 0}
.entry-overlay summary{cursor:pointer;font-size:14px;padding:8px 0}
.entry-join form{display:flex;align-items:end;gap:10px;margin-top:14px}
.entry-join label{display:grid;gap:8px;font-size:11px;color:var(--entry-muted);flex:1}
.entry-join input{width:100%;box-sizing:border-box;padding:14px;color:#fff5df;background:#183025;border:1px solid var(--entry-line);border-radius:8px;text-transform:uppercase;letter-spacing:.15em}
.entry-join button{width:auto;white-space:nowrap}
.entry-links{display:flex;gap:14px;flex-wrap:wrap;line-height:1.8}
.entry-links a{color:var(--entry-muted)}
.entry-caption{position:absolute;bottom:18px;right:28px;color:#ffefcfbb;letter-spacing:.05em;font-size:11px;pointer-events:none}
.entry-notice{background:#506846aa;border:1px solid #d7ca9555;color:#fff2cd;padding:10px 14px;border-radius:8px;font-size:13px}
.entry-options{margin:24px 0}
.entry-options fieldset{border:0;padding:12px 0;margin:0}
.entry-options legend{font-size:12px;font-weight:700;color:var(--entry-muted)}
.entry-chips{display:flex;gap:6px;flex-wrap:wrap}
.entry-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0}
.entry-choice{border:1px solid var(--entry-line);background:#172b23c9;color:var(--entry-paper);text-align:left;min-height:40px!important;font-size:12px!important;padding:10px 12px!important;width:100%}
.entry-choice small{display:block;color:var(--entry-muted);font-size:10px;line-height:1.5;margin-top:6px}
.entry-choice small:empty{display:none}
.entry-choice[aria-pressed=true]{border-color:var(--entry-gold);background:#65552dce;box-shadow:inset 0 0 0 1px var(--entry-gold)}
.entry-share{border-top:1px solid #e7c17433;padding-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}
.entry-share p{width:100%;margin:0}.entry-share strong{letter-spacing:.15em;color:#edc36d}.entry-share input{min-width:0;flex:1;padding:8px;background:#0d2117;border:1px solid #eee3b633;border-radius:6px;color:#e9e1d0;font-size:11px}.entry-share a{color:#efc56e;display:block;width:100%;margin-top:8px}
.entry-practice{position:absolute;z-index:4;left:50%;top:82px;transform:translateX(-50%);background:#142b23ee;border:1px solid #e9c77b66;border-radius:12px;padding:10px 14px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;max-width:440px;box-shadow:0 8px 24px #0004;color:#faeed7;font:12px system-ui,sans-serif}
.entry-practice strong{font-size:10px;letter-spacing:.1em;width:100%;color:#e9c77b}.entry-practice button,.entry-context button{background:#334b38;color:#fff1d2;border:1px solid #e7c17455;padding:8px 10px;border-radius:8px;cursor:pointer}.entry-practice p{width:100%;margin:0;line-height:1.4}.entry-practice p:empty{display:none}
.entry-context{position:absolute;z-index:4;left:50%;bottom:190px;transform:translateX(-50%);display:flex;gap:12px;align-items:center;border:1px solid #f6cf7a66;background:#17392cee;border-radius:10px;color:#f3eddc;padding:10px 14px;max-width:470px;font:12px/1.5 system-ui,sans-serif;box-shadow:0 4px 16px #0004;pointer-events:auto}
.entry-learn-nudge{position:absolute;z-index:4;left:20px;top:85px;font:11px system-ui,sans-serif}.entry-learn-nudge a{color:#ffe3a4}
.entry-lesson-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}
.entry-lesson-choice{background:#fff2d8;color:#182d21;border:2px solid transparent;font:600 20px Georgia,serif!important;min-width:100px}
.entry-lesson-choice[data-legal=true]{border-color:#d8e8a5;box-shadow:0 0 24px #b5e58b55}
.entry-knock-pad{background:#72553b;color:#fff0d7;border:2px solid #c99d64;min-height:80px!important;min-width:240px;margin-bottom:10px;touch-action:manipulation}
.entry-text-button{background:transparent;border:0;color:var(--entry-muted);padding:8px 0!important;min-height:36px!important;font-size:12px!important}
.entry-overlay progress{width:100%;height:4px;accent-color:var(--entry-gold)}
@media(max-width:700px){.entry-vignette{background:linear-gradient(90deg,#15201cee,#15201ccc 70%,#15201c88)}.entry-overlay{width:auto;margin:0 24px;max-height:100dvh;padding:88px 0 44px}.entry-brand{top:24px;left:24px}.entry-overlay h1{font-size:44px}.entry-intro{font-size:15px}.entry-caption{display:none}.entry-two{gap:8px}.entry-secondary{font-size:12px!important}.entry-practice{top:78px;width:230px;left:50%}.entry-context{bottom:195px;width:calc(100% - 62px);font-size:11px}.entry-learn-nudge{top:150px;left:15px}.entry-presets{grid-template-columns:1fr 1fr}.entry-share input{flex-basis:60%}}
@media(prefers-reduced-motion:reduce){.entry-overlay button{transition:none}.entry-overlay button:hover{transform:none}}
.entry-skip{position:absolute;left:24px;top:-80px;z-index:20;color:#172c21;background:#ffedb6;padding:12px;border-radius:8px}.entry-skip:focus{top:10px}
.entry-shell{max-width:none;margin:0;padding:0;width:100%}.entry-shell .table-seat-label,.entry-shell .table-end-label{display:none}
/* Hints sit above the line and yield to every HUD dialog. */
.entry-context{top:190px;bottom:auto}.entry-practice{left:24px;transform:none;top:90px;width:260px}
.hud-shell:has(.hud-overlays:not([data-panel=""])) :is(.entry-context,.entry-practice,.entry-learn-nudge){display:none}
@media(max-width:700px){.entry-context{top:220px;bottom:auto}.entry-practice{left:12px;top:78px;width:230px}}
.hud-shell:has(#onboarding-preferences[data-hints="true"]) .hud-tile[data-ends]:not([data-ends=""]):not(:disabled){outline:2px solid #d9e9b0;outline-offset:2px;box-shadow:0 0 18px #d4e99b80,0 7px 12px #03171055}
.hud-shell:has(#onboarding-preferences[data-practice="true"]) .entry-learn-nudge{top:290px}
.entry-share input{flex-basis:100%;width:100%;box-sizing:border-box}

/* Entry has one primary action. Game chrome stays in the HUD. */
.dropin-landing{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right));box-sizing:border-box;background:#122b22;color:#f1ead9;font:16px/1.4 system-ui,sans-serif}
.dropin-landing h1{font:600 clamp(44px,7vw,68px)/1.1 system-ui,sans-serif;letter-spacing:-.04em;margin:0 0 14px}
.dropin-landing form{margin:0;width:min(280px,100%)}
.dropin-landing .entry-primary{width:100%;display:block;padding:16px 24px;font:600 18px/1.4 system-ui,sans-serif}
.dropin-landing a{color:#d3c7ae;text-underline-offset:4px}
.dropin-entry{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:#122b22;color:#f1ead9;font:16px system-ui}
.dropin-entry[data-auto-entry=true][data-onboarding-mounted=true] form,.dropin-entry[data-auto-entry=true][data-onboarding-mounted=true]>a{visibility:hidden}
.dropin-tables{list-style:none;padding:0;margin:0;display:grid;gap:12px;width:100%}
.dropin-table{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid var(--hud-line);border-radius:12px}
.dropin-table p{margin:4px 0;overflow-wrap:anywhere;font-size:12px}
.dropin-table small{color:var(--hud-muted)}
.dropin-table form{margin:0}
.dropin-name{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.dropin-name label{flex:1;min-width:150px}
.dropin-name input{margin-top:6px}
.hud-shell .hud-tools>button:not(.hud-icon){padding:8px 12px;min-height:36px}
@media(max-width:600px){.hud-shell .hud-tools{gap:5px}.hud-shell .hud-tools>button:not(.hud-icon){padding:7px 10px;font-size:12px}.entry-context{top:185px;width:auto;max-width:calc(100% - 32px);white-space:nowrap;font-size:10px;padding:6px 8px}.entry-context button{padding:2px 5px}}
@media(max-width:600px) and (orientation:portrait){
 .hud-shell .hud-tools{top:calc(var(--hud-top) + 55px)!important;bottom:auto!important}
 .hud-shell .hud-player[data-seat="0"]{max-width:190px!important}
 .hud-shell .hud-tools>button:not(.hud-icon){padding:7px 7px}
 .hud-brand>div{display:block;font-size:11px}.hud-brand .hud-mark{font-size:18px}
}

/* The guide shares the top perimeter with the seats, never the played line. */
.hud-shell .entry-learn-nudge {display:none}
.hud-shell .entry-context {top:var(--hud-top);bottom:auto;left:calc(50% + 150px);transform:none;width:max-content;max-width:calc(25% - 100px);gap:6px;padding:4px 8px;font-size:10px;white-space:nowrap;box-shadow:none}
.hud-shell:has(.hud-moment:not(:empty)) .entry-context {visibility:hidden}
.hud-shell .entry-context span {overflow:hidden;text-overflow:ellipsis}
.hud-shell .entry-context button {padding:2px 5px;min-height:24px;flex-shrink:0}
.hud-shell .entry-practice {top:auto;bottom:calc(var(--hud-bottom) + 52px);left:var(--hud-left);width:210px;padding:6px 8px}
@media (max-height:500px) and (min-width:481px) {
 .hud-shell .entry-context {left:calc(50% + 82px);max-width:calc(25% - 70px);padding:2px 6px}
}
@media (max-width:600px) and (orientation:portrait) {
 .hud-shell .entry-context {top:calc(var(--hud-top) + 44px);left:126px;transform:none;max-width:calc(100% - 134px);padding:2px 6px}
}
@media (max-width:480px) and (max-height:360px) {
 .hud-shell .entry-context,.hud-shell .entry-practice {display:none}
}

/* Match entry shares the table's paper, green and brass palette. */
.play-screen{--entry-paper:#f1ead9;--entry-gold:#ebc77c;--entry-muted:#bdc9bd;--entry-line:#496153;--hud-line:#496153;--hud-muted:#bdc9bd;min-height:100dvh;box-sizing:border-box;background:radial-gradient(ellipse at 80% 0%,#284438 0%,#122b22 65%);color:var(--entry-paper);font:15px/1.45 "DM Sans",system-ui,sans-serif;padding:28px clamp(20px,5vw,72px) 40px}
.play-header{display:flex;justify-content:space-between;align-items:center;max-width:1040px;margin:0 auto 80px}
.play-header>a:first-child{font-size:20px;font-weight:700;letter-spacing:-.03em;text-decoration:none}
.play-header>a:last-child{font-size:13px;color:var(--entry-muted)}
.play-screen a{color:var(--entry-paper);text-underline-offset:4px}
.play-content{max-width:1040px;margin:0 auto}
.play-content h1{font:500 clamp(32px,4vw,50px)/1.1 Georgia,serif;letter-spacing:-.025em;margin:14px 0 30px}
.play-content h2{font-size:20px;letter-spacing:-.02em;margin:0 0 12px}
.play-choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.play-choice{min-width:0;background:#1b352bcc;border:1px solid var(--entry-line);border-radius:16px;padding:26px;display:flex;flex-direction:column;align-items:stretch}
.play-choice:first-child{border-color:#b69754;background:#29402b}
.play-choice p{color:var(--entry-muted);font-size:14px;margin:0 0 24px;min-height:42px}
.play-choice form{margin:0}
.play-choice .site-button{box-sizing:border-box;width:100%;justify-content:center;min-height:48px;white-space:nowrap;border-radius:9px;padding:12px 16px;font-size:14px}
.play-choice .site-button.secondary{border:1px solid #748672;background:#213c2e;color:#f1ead9}
.play-choice .site-button.primary{background:var(--entry-gold);color:#1b3023;border-color:var(--entry-gold)}
.play-saved{margin-top:15px;font-size:11px;line-height:1.65;color:#cdd2bc}
.play-footer{margin-top:28px;font-size:13px}
.play-footer a{color:var(--entry-muted)}
.play-note{color:var(--entry-muted);font-size:13px;margin:0 0 22px}
.match-form{max-width:800px}
.match-form form{margin:0}
.match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0 0 16px}
.match-core{grid-template-columns:repeat(3,minmax(0,1fr))}
.match-form label,.match-join label,.match-invite label{display:grid;gap:6px;font:500 12px/1.4 system-ui,sans-serif;color:var(--entry-muted,#c6ccbf)}
.match-form :is(select,input),.match-join input,.match-invite input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #57715d;background:#193225;color:#f1ead9;border-radius:8px;padding:10px 12px;font:14px/1.25 system-ui,sans-serif;accent-color:#ebc77c}
.match-form input:disabled{opacity:.4}
.match-form :is(summary,button,a,input,select):focus-visible,.play-screen :is(a,button,input,summary):focus-visible{outline:3px solid #ffe4a5;outline-offset:3px}
.match-form details{border-top:1px solid #496153;padding:12px 0}
.match-form summary{cursor:pointer;font-size:13px;min-height:24px}
.match-form details[open] .match-grid{margin-top:14px}
.match-submit{display:flex;justify-content:flex-end;margin-top:12px}
.match-submit .entry-primary{margin:0;max-width:180px;min-height:46px;justify-content:center;border-radius:8px;padding:12px 24px;cursor:pointer}
.match-join{margin:20px 0 30px}
.match-join form{display:flex;align-items:end;gap:12px}
.match-join label{flex:1}
.match-join .entry-secondary{width:auto;min-height:44px;padding:10px 22px;border-radius:8px;cursor:pointer}
.match-list-title{display:flex;align-items:baseline;justify-content:space-between;margin:30px 0 16px}
.match-list-title h2{margin:0}
.match-list-title a{font-size:12px}
.match-status{font-size:11px;color:#c6d4b8;margin-left:12px;white-space:nowrap}
.play-screen .dropin-table{padding:18px 20px;background:#1b352baa}
.play-screen .dropin-table strong{font-size:15px}
.dropin-table form{flex:0 0 auto}
.dropin-table .entry-secondary{min-height:42px;padding:8px 18px;border-radius:8px;cursor:pointer}
.match-empty{padding:24px;border:1px dashed #496153;border-radius:10px;color:#bdc9bd}
.match-table-actions{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;margin-bottom:18px}
.hud-shell .match-form label{font-size:12px}
.hud-shell .match-core{grid-template-columns:repeat(2,minmax(0,1fr))}
.hud-shell .match-form{margin-top:18px}
.hud-shell .match-grid{gap:12px}
.hud-shell .match-form :is(select,input){min-height:42px;padding:8px;font-size:13px}
.hud-shell .match-waiting .entry-primary{margin:12px 0 8px}
.hud-shell .match-invite{display:flex;align-items:end;gap:10px}
.hud-shell .match-invite label{flex:1;min-width:0}
.hud-shell .match-invite button{flex-shrink:0}
.hud-shell [data-screen=seats]:has([data-hosted=true])>[data-intent=ready],.hud-shell [data-screen=seats]:has([data-hosted=true])>[data-intent=start]{display:none}
.match-settings-line{position:absolute;z-index:3;left:var(--hud-left,20px);top:calc(var(--hud-top,20px) + 100px);max-width:calc(100% - 40px);margin:0;padding:5px 9px;border-radius:6px;background:#122b22d9;color:#ddd9c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:11px/1.35 system-ui,sans-serif;pointer-events:auto}
.hud-shell:has(.hud-overlays:not([data-panel=""])) .match-settings-line{display:none}
.match-readonly{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;font-size:13px;margin:20px 0}
.match-readonly dt{color:#aebfab}.match-readonly dd{margin:0}
@media(max-width:700px){
 .play-screen{padding:24px 20px 32px}.play-header{margin-bottom:34px}.play-content h1{margin-bottom:24px;font-size:36px}
 .play-choices{grid-template-columns:1fr;gap:12px}.play-choice{padding:20px}.play-choice h2{font-size:19px;margin-bottom:6px}.play-choice p{min-height:0;margin:0 0 16px;font-size:13px}.play-saved{margin-top:10px}.play-footer{margin-top:24px}
 .match-core{grid-template-columns:1fr 1fr}.match-rules{grid-column:1/-1}.match-grid{gap:12px}.match-form :is(select,input){font-size:13px;padding:10px 8px}.match-status{display:block;margin:4px 0 0}.play-screen .dropin-table{padding:14px;gap:10px}.match-join form{gap:8px}.match-join .entry-secondary{padding:10px 16px}
 .hud-shell .match-invite{flex-wrap:wrap}.hud-shell .match-invite label{flex-basis:100%}.match-settings-line{top:calc(var(--hud-top,12px) + 140px);font-size:10px}
}
@media(max-height:500px) and (min-width:701px){.match-settings-line{top:calc(var(--hud-top,6px) + 50px)}.play-screen{padding-top:18px;padding-bottom:20px}.play-header{margin-bottom:18px}.play-content h1{font-size:30px;margin:12px 0 18px}.play-choice{padding:18px}.play-choice p{margin-bottom:12px}.play-footer{margin-top:18px}.match-core{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px) and (max-height:360px){
 .play-screen{padding:8px 12px}.play-header{margin-bottom:6px}.play-header>a:first-child{font-size:14px}.play-header>a:last-child{font-size:10px}.play-content h1{font:500 18px/1.1 Georgia,serif;margin:8px 0}.play-choices{gap:5px}.play-choice{padding:0;border:0;background:none!important}.play-choice :is(h2,p,small){display:none}.play-choice .site-button{min-height:28px;font-size:11px;padding:5px 12px;border-radius:5px}.play-choice .site-button svg{width:12px;height:12px}.play-footer{margin-top:6px;font-size:9px}.play-note{font-size:10px;margin-bottom:10px}.match-form :is(select,input){min-height:32px;font-size:11px}.match-form label{font-size:10px}.match-core,.match-grid{gap:8px}.match-settings-line{left:6px;top:50px;max-width:calc(100% - 12px);font-size:9px;padding:2px 4px}
}
.play-screen{width:100%;max-width:none;margin:0}
.hud-shell .match-waiting [data-match-start]{background:#ebc77c;color:#193225;border:1px solid #ffe3a0;text-align:center}
.hud-shell [data-screen=seats]:has([data-hosted=true])>.hud-ready-list,.hud-shell [data-screen=seats]:has([data-hosted=true])>p.hud-muted{display:none}
.match-waiting-settings{font:11px/1.4 system-ui,sans-serif;color:#c8d0bc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:12px 0}
@media(max-width:700px),(max-height:500px){.play-screen .match-submit{position:sticky;bottom:env(safe-area-inset-bottom,0px);padding:12px 0;background:#122b22f5;z-index:2;border-top:1px solid #496153}.play-screen .match-submit .entry-primary{max-width:none;width:100%}}

.match-finishes{border:0;padding:0;margin:12px 0 18px;min-width:0}.match-finishes legend{font:500 12px system-ui,sans-serif;color:#bdc9bd;margin-bottom:10px}.match-finish-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.match-form label.match-finish{position:relative;display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid #496153;border-radius:8px;cursor:pointer;font-size:11px;text-align:center}.match-form .match-finish input{position:absolute;top:7px;left:7px;width:14px;min-height:14px;height:14px;margin:0;padding:0}.match-finish img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.match-finish:has(input:checked){border-color:#ebc77c;background:#39482e}.match-finish:has(input:focus-visible){outline:3px solid #ffe4a5;outline-offset:2px}@media(max-width:700px){.match-finish-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.hud-shell .match-table-actions a{color:#ebc77c;text-underline-offset:4px}.hud-shell .match-table-actions a:focus-visible{outline:3px solid #ffe4a5;outline-offset:3px}
@media(max-width:600px) and (orientation:portrait){.hud-shell[data-camera-view] .entry-context{top:112px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px)}}
