:root{font-family:Geologica,Segoe UI,sans-serif;color:#272923;background:#ece9e1;font-synthesis:none;font-weight:430;--ink: #272923;--muted: #66695f;--paper: #f8f5ed;--line: #d8d6cd;--red: #973a2c;--focus: #286353;color-scheme:light;accent-color:var(--ink)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:#bcd4c8;color:#172920}input{caret-color:var(--red)}*{scrollbar-width:thin;scrollbar-color:#b2b3a7 transparent}a{color:inherit;text-underline-offset:4px}button{color:inherit}svg{display:block}h1,h2,p{margin:0}input[type=range]{min-width:0;cursor:pointer}button,select,input{border-radius:5px}.studio{max-width:1800px;margin:0 auto;min-height:100dvh}.studio-header{height:84px;padding:0 36px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:baseline;gap:12px;width:fit-content;text-decoration:none;font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-weight:800;font-size:38px;line-height:1;text-transform:uppercase;color:var(--red)}.wordmark span{font-size:17px;color:var(--muted);font-weight:700;letter-spacing:.05em}.mode-switch{display:flex;gap:4px;padding:4px;background:#dedfd5;border-radius:7px}.mode-switch button{min-width:96px;border:0;padding:10px 20px;background:transparent;font-size:13px;font-weight:600}.mode-switch button[aria-pressed=true]{background:var(--paper);box-shadow:0 2px 5px #292c2412}.customize-toggle{justify-self:end;display:flex;align-items:center;gap:9px;padding:10px 13px;background:transparent;border:1px solid #babdb0;font-size:13px}.customize-toggle svg,.turn-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.customize-toggle[aria-expanded=true]{background:var(--paper)}.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr)}.with-settings .studio-workspace{grid-template-columns:minmax(0,1fr) 292px}.table-area{min-width:0;padding:22px 24px 0}.stage{height:clamp(510px,calc(100dvh - 275px),880px);min-width:0;position:relative;isolation:isolate;background:#b9b1a0;border-radius:10px;overflow:hidden}.card-scene{position:absolute;inset:0;touch-action:none}.card-scene canvas{display:block;width:100%;height:100%}.card-scene[data-mode=inspect]{cursor:grab}.stage-top{position:absolute;top:25px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:start;pointer-events:none;color:#202c27}.stage-top>div{background:#f8f5edf0;padding:10px 14px;border-radius:6px}.stage-top h2{font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-weight:700;font-size:33px;line-height:1.05}.stage-top p{font-size:11px;margin-top:5px;color:#515c54}.stage-mode{padding:8px 10px;border-radius:5px;background:#f8f5edf0;font-size:11px}.opponent-label{position:absolute;top:114px;left:50%;transform:translate(-50%);font-size:11px;pointer-events:none;color:#202c27;background:#f8f5edf0;padding:5px 9px;border-radius:4px;white-space:nowrap}.opponent-label span{margin-left:8px;color:#596259}.mobile-preview-bar{display:none}.upload-button svg,.studio-message svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}@media(max-width:760px){.studio:not(.is-mobile-editing) .appearance-panel{display:none}.is-mobile-editing .studio-workspace{display:block}.is-mobile-editing .table-area{display:contents}.is-mobile-editing .stage{position:sticky;top:0;z-index:5;height:300px;margin:0 12px;border-radius:0 0 8px 8px;box-shadow:0 6px 14px #27332924}.is-mobile-editing .hand-controls,.is-mobile-editing .game-bar,.is-mobile-editing .accessible-bout,.is-mobile-editing .stage-top,.is-mobile-editing .stage-bottom{display:none}.is-mobile-editing .appearance-panel{padding-top:24px}.is-mobile-editing .mobile-preview-bar{position:absolute;top:10px;left:12px;right:12px;z-index:2;display:flex;gap:4px;align-items:center}.mobile-preview-bar button{border:0;background:#f8f5ed;padding:9px 11px;font-size:11px}.mobile-preview-bar button[aria-pressed=true]{background:#293b30;color:#f8f5ed}.mobile-paused{font-size:10px;color:#202c27;background:#f8f5ed;padding:5px 7px;border-radius:4px}.mobile-preview-bar button:last-child{margin-left:auto}.is-mobile-editing .inspection-tools{bottom:10px}.is-mobile-editing .inspection-tools>p,.is-mobile-editing .zoom-control,.is-mobile-editing .turn-controls button:last-child{display:none}.is-mobile-editing .card-scene[data-mode=play]{pointer-events:none}}.pile-label{position:absolute;top:61%;font-size:11px;color:#202c27;background:#f8f5edf0;padding:6px 8px;border-radius:4px;pointer-events:none;display:grid;gap:5px}.talon-label{left:7%}.beat-label{right:7%}.trump-label{display:flex;align-items:center;gap:5px;color:#515c54}.small-suit{width:15px;height:15px}.stage-bottom{position:absolute;bottom:18px;left:26px;right:26px;display:flex;justify-content:space-between;font-size:11px;pointer-events:none;color:#202c27;gap:6px}.stage-bottom span{background:#f8f5edf0;border-radius:4px;padding:5px 8px}.inspection-tools{position:absolute;bottom:65px;left:50%;transform:translate(-50%);display:grid;justify-items:center;gap:13px;white-space:nowrap}.turn-controls{display:flex;align-items:center;background:var(--paper);border-radius:6px;padding:4px;gap:2px}.turn-controls button{border:0;background:transparent;min-height:36px;padding:8px 11px;font-size:12px}.turn-controls button:hover{background:#e1e1d7}.inspection-tools>p{font-size:11px;background:#f8f5edf0;padding:5px 9px;border-radius:4px;color:#49594b}.zoom-control{display:flex;align-items:center;gap:10px;font-size:11px;background:#f8f5edf0;padding:3px 12px;border-radius:4px}.zoom-control input{width:115px}.hand-controls{padding:17px 3px 13px;display:flex;align-items:center;gap:24px;min-height:72px}.hand-controls-label{display:grid;gap:5px;flex-shrink:0;font-size:12px}.hand-controls-label span+span{font-size:10px;color:var(--muted)}.hand-choices{display:flex;flex-wrap:wrap;gap:6px}.hand-choice{min-width:45px;height:35px;padding:0 8px;border:1px solid #c9ccc0;display:flex;align-items:center;justify-content:center;gap:5px;background:#f8f5ed;position:relative;font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-size:22px;font-weight:700}.hand-choice.red{color:#973a2c}.hand-choice[aria-pressed=true]{background:#d3e2d5;border-color:#557662}.hand-choice i{position:absolute;width:4px;height:4px;border-radius:50%;background:#416850;bottom:3px;right:4px}.hand-choice:hover{background:#e0e7d9}.game-bar{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 3px 22px}.game-caption p{font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-size:25px;font-weight:700;line-height:1}.game-caption span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.game-actions{display:flex;gap:7px;flex-shrink:0}.game-actions button{padding:11px 16px;min-height:42px;font-size:12px;border:1px solid #bcc1b4;background:transparent}.game-actions .primary-action{background:#293b30;color:#f7f2e6;border-color:transparent;min-width:105px}.game-actions button:not(:disabled):hover{background:#d9ded1}.game-actions .primary-action:not(:disabled):hover{background:#3e5948}.accessible-bout{font-size:12px;margin-bottom:20px;padding:10px 4px}.accessible-bout summary{cursor:pointer}.accessible-bout ul{padding-left:20px}.accessible-bout li{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.accessible-bout button{background:var(--paper);padding:8px;border:1px solid var(--line)}.appearance-panel{padding:29px 23px 24px;border-left:1px solid var(--line);background:var(--paper);overflow:auto;max-height:calc(100dvh - 84px);position:sticky;top:0}.panel-heading h2{font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-size:29px;font-weight:700;line-height:1.1}.panel-heading p{margin-top:7px;color:var(--muted);font-size:11px}.settings-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin-top:24px}.settings-tabs button{border:0;background:transparent;font-size:12px;padding:0 0 12px;border-radius:0;color:var(--muted)}.settings-tabs button[aria-pressed=true]{box-shadow:0 2px 0 var(--ink);color:var(--ink)}fieldset{border:0;padding:0;margin:25px 0 0;min-width:0}legend{padding:0;font-size:12px;font-weight:600;margin-bottom:12px}.finish-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.finish-options button{padding:0 0 8px;border:1px solid #d4d6cb;background:transparent;overflow:hidden;font-size:10px}.finish-options button[aria-pressed=true]{border:2px solid #57725c}.finish-sample{display:block;height:55px;background:#e6ddc9;position:relative;margin-bottom:8px;overflow:hidden}.finish-sample:before{content:"";position:absolute;inset:11px 18px 9px;border-radius:3px;background:#f9f4e7;transform:rotate(-14deg);box-shadow:4px 6px 8px #40392c29}.finish-sample.satin{background:#c3cbbb}.finish-sample.satin:before{background:linear-gradient(125deg,#d7d9ca,#fffdf5 43%,#e1e2d5 65%)}.finish-sample.foil{background:#b4aca0}.finish-sample.foil:before{background:linear-gradient(125deg,#b19665,#f7e4b9 38%,#b19364 62%,#e1c995)}.field-note{font-size:10px;line-height:1.6;color:var(--muted);margin-top:10px}.color-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:6px 0}.color-value{display:flex;align-items:center;gap:10px;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}input[type=color]{padding:0;width:26px;height:26px;border:1px solid #bcbfb2;border-radius:4px;background:transparent;cursor:pointer;overflow:hidden}input[type=color]::-webkit-color-swatch-wrapper{padding:2px}input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.range-label{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;font-size:11px;margin-top:17px}.range-label output{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.range-label input{grid-column:1/-1;width:100%;margin:0;height:14px}.appearance-panel select{width:100%;font-size:11px;padding:10px 28px 10px 9px;border:1px solid #c7cabd;background:transparent;color:var(--ink)}.upload-button{display:flex;justify-content:space-between;width:100%;margin-top:9px;font-size:11px;padding:11px 10px;border:1px solid #c7cabd;background:transparent}.upload-button:hover{background:#e8e9de}.text-button{border:0;padding:7px 0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:10px}.surface-options{display:flex;gap:10px;margin-bottom:15px}.surface-options button{width:43px;height:40px;border:3px solid var(--paper);outline:1px solid #c6c9be}.surface-options button[aria-pressed=true]{outline:2px solid #425e4b}.setup-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.setup-options button{display:flex;gap:7px;align-items:center;text-align:left;border:0;padding:5px 0;background:transparent;font-size:10px}.setup-options button:hover{color:#276442}.setup-swatch{width:29px;height:32px;border-radius:3px;display:grid;place-items:center;flex-shrink:0}.setup-swatch>span{width:13px;height:20px;border:1px solid #f6eddb;transform:rotate(-13deg);border-radius:2px}.save-setup form{display:flex;margin-top:10px;gap:6px}.save-setup input{width:100%;min-width:0;padding:10px 8px;font-size:11px;border:1px solid #c7cabd;background:transparent}.save-setup input::placeholder{color:#6a7064}.save-setup button{padding:8px 10px;font-size:11px;border:0;background:#dce1d3}.reset-style{margin-top:18px}.studio-message{position:fixed;z-index:10;bottom:20px;left:50%;transform:translate(-50%);max-width:min(90vw,540px);display:flex;align-items:center;gap:20px;padding:14px 18px;border-radius:8px;background:#293b30;color:#f9f6ed;box-shadow:0 8px 24px #14291e30;font-size:12px;line-height:1.5}.studio-message button{background:transparent;border:0;color:inherit;font-size:21px;padding:0 4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.appearance-panel{padding-left:28px;padding-right:28px}.with-settings .studio-workspace{grid-template-columns:minmax(0,1fr) 320px}.table-area{padding:28px 32px 0}.stage{height:calc(100dvh - 275px)}}@media(max-width:1050px){.studio-header{padding:0 24px}.with-settings .studio-workspace{grid-template-columns:minmax(0,1fr) 264px}.appearance-panel{padding:25px 18px}.table-area{padding:18px 16px 0}.hand-controls{display:block}.hand-controls-label{display:flex;justify-content:space-between;margin-bottom:10px}.stage{height:540px}.stage-top{left:16px;right:16px;top:16px}.stage-top p{display:none}.game-actions{gap:5px}.game-actions button{padding:10px 12px}.game-caption span{max-width:210px;line-height:1.5}}@media(max-width:760px){.studio-header{height:72px;padding:0 16px;grid-template-columns:1fr auto auto;gap:14px}.wordmark{font-size:30px;gap:7px}.wordmark span{display:none}.mode-switch button{min-width:65px;padding:9px 11px;font-size:12px}.customize-toggle{padding:9px}.customize-toggle span{display:none}.with-settings .studio-workspace{grid-template-columns:minmax(0,1fr)}.table-area{padding:12px 12px 0}.stage{height:540px;border-radius:7px}.appearance-panel{position:static;max-height:none;border-left:0;border-top:1px solid var(--line);padding:25px 24px;display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.panel-heading,.settings-tabs,.reset-style{grid-column:1/-1}.panel-heading h2{font-size:30px}.hand-controls{padding-top:14px}.hand-controls-label{gap:10px;font-size:11px}.hand-controls-label span+span{font-size:9px}.game-bar{padding:17px 0}.game-caption p{font-size:25px}.game-caption span{font-size:10px;max-width:150px}.game-actions button{padding:10px 11px}.game-actions .primary-action{min-width:90px}.stage-bottom{left:12px;right:12px;font-size:9px}.stage-top h2{font-size:27px}.opponent-label{top:130px;font-size:10px}.pile-label{font-size:9px;top:57%}.talon-label{left:3%}.beat-label{right:3%}.inspection-tools{bottom:58px;gap:10px}.turn-controls button{padding:8px 9px;font-size:11px}.stage-mode{font-size:10px}}@media(max-width:390px){.studio-header{gap:9px}.stage{height:505px}.appearance-panel{grid-template-columns:1fr}.appearance-panel>*{grid-column:1}.game-bar{flex-wrap:wrap}.game-actions{width:100%}.game-actions button{flex:1}.game-caption span{max-width:none}.hand-controls-label{display:grid;gap:4px}.stage-bottom span:last-child{max-width:145px;text-align:right}.stage-top h2{font-size:25px}}.pile-label{left:var(--talon-x);top:var(--talon-y);right:auto;transform:translate(-50%)}.beat-label{left:var(--beat-x);top:var(--beat-y)}.opponent-label{left:var(--opponent-x);top:var(--opponent-y)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}button:enabled:active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){button:enabled:active{transform:none}}.game-status{position:sticky;top:0;z-index:4;background:#ece9e1;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:82px;padding:0 3px 16px}.game-status h1{display:flex;align-items:center;gap:9px;font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-size:34px;font-weight:700;line-height:1.1;color:var(--ink)}.status-mark{width:23px;height:23px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.game-status[data-tone=human] h1,.game-status[data-tone=won] h1{color:#286353}.game-status[data-tone=lost] h1{color:var(--red)}.game-status p{font-size:12px;line-height:1.5;margin-top:5px}.game-status .bout-update{color:var(--muted);font-size:11px;margin-top:4px}.resume-game{padding:10px 14px;min-height:44px;border:1px solid #bcc1b4;background:var(--paper);font-size:12px;white-space:nowrap}.resume-game:hover{background:#d9ded1}.table-area[data-view=play] .stage{height:clamp(430px,calc(100dvh - 360px),800px)}.opponent-label[data-active=true],.stage-bottom>span[data-active=true]{background:#293b30;color:#f8f5ed}.opponent-label[data-active=true] span{color:#e1e8da}.opponent-label strong,.stage-bottom strong{font-size:inherit;font-weight:600;margin-left:9px}.game-result{position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 32px));padding:30px 28px;text-align:center;background:var(--paper);border-radius:8px;box-shadow:0 12px 36px #1a251b30}.game-result h2{font-family:Sofia Sans Extra Condensed,Arial Narrow,sans-serif;font-size:64px;font-weight:800;line-height:1;color:#286353}.game-result[data-tone=lost] h2{color:var(--red)}.game-result[data-tone=draw] h2{color:var(--ink)}.game-result h2:focus{outline:none}.game-result p{font-size:13px;line-height:1.6;margin:14px auto 22px;max-width:28ch}.game-result button{min-height:44px;padding:12px 28px;border:0;background:#293b30;color:#f8f5ed;font-size:13px}.game-result button:hover{background:#3e5948}@media(max-width:760px){.game-status{min-height:90px;padding:0 2px 12px;gap:12px}.game-status h1{font-size:30px}.game-status p{font-size:12px}.game-status .bout-update{font-size:10px}.table-area[data-view=play] .stage{height:clamp(350px,calc(100svh - 355px),505px)}.is-mobile-editing .game-status{display:none}.is-mobile-editing .table-area[data-view=play] .stage{height:300px}.game-result{padding:26px 22px}.game-result h2{font-size:54px}.game-bar{position:sticky;bottom:0;z-index:3;background:#ece9e1;gap:12px}.game-caption span{line-height:1.5}.game-actions button{min-height:44px}.resume-game{padding:10px}}.stage-bottom:has(.court-picker){bottom:10px;align-items:center}.court-picker{min-width:0;pointer-events:auto}.court-picker select{width:180px;max-width:100%;min-height:44px;padding:10px 24px 10px 10px;color:var(--ink);background:var(--paper);border:1px solid #bcbfb2;border-radius:5px}@media(max-width:760px){.court-picker select{width:156px;font-size:11px}}.back-pattern-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.back-pattern-options button{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:10px 4px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);font-size:11px}.back-pattern-options button:hover{background:#e8e9de}.back-pattern-options button[aria-pressed=true]{border-color:var(--focus);background:#dce1d3}.back-pattern-options canvas{display:block;width:44px;height:auto;border-radius:3px}.back-pattern-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.back-frame{display:flex;align-items:center;gap:8px;min-height:44px;font-size:11px;cursor:pointer}.back-frame input{width:16px;height:16px;margin:0;accent-color:var(--focus)}.variation-button{min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);font-size:11px}.variation-button:hover{background:#e8e9de}@media(min-width:391px)and (max-width:760px){.back-settings{grid-column:1 / -1}}@media(max-width:760px){.is-mobile-editing .stage-bottom:has(.court-picker){display:flex;right:50%;bottom:10px}.is-mobile-editing .stage-bottom>span{display:none}.is-mobile-editing .court-picker,.is-mobile-editing .court-picker select{width:100%}.is-mobile-editing .inspection-tools{left:auto;right:12px;transform:none;max-width:calc(50% - 18px)}.is-mobile-editing .turn-controls{gap:0;padding:2px}.is-mobile-editing .turn-controls button{padding:8px 6px}}
