/* Shared solitaire surface. Rotating the table does not change browser/OS settings. */
.spider-minimal{display:block!important;overflow:hidden!important;background:#123c30}
#spider-surface{position:fixed;top:0;transform-origin:0 0;display:block;background:#123c30;color:#fff8e8;overflow:hidden}
#spider-surface.spider-rotated{transform:rotate(90deg)}
#spider-surface>header{position:absolute!important;top:7px;right:max(10px,env(safe-area-inset-right));left:auto;width:44px;height:44px!important;z-index:40;padding:0!important;overflow:visible;display:block;background:transparent;border:0}
#spider-surface #menu{height:44px;width:44px;min-width:44px;background:#163b2cb8;color:white;border:1px solid #fff7;backdrop-filter:blur(5px);border-radius:10px;box-shadow:0 2px 5px #0005}
#spider-surface>main{position:absolute;inset:0;width:100%;height:100%;padding:0!important;margin:0!important;overflow:hidden;max-width:none}
#spider-surface #board{border:0;border-radius:0;background:transparent;padding:8px 12px;box-shadow:none;--w:var(--card-width)}
#spider-surface #columns{position:relative;z-index:auto;align-self:flex-start;margin-right:48px!important;max-width:calc(100% - 48px);height:auto}
#spider-surface .column .card{z-index:20}
#spider-surface #top{z-index:30}
#spider-surface #board.spider #top{right:16px;bottom:10px;display:flex;gap:8px;height:var(--pile-height);pointer-events:none}
#spider-surface #board.spider #top>#stock{pointer-events:auto;position:relative;width:calc(var(--pile-width) + 18px * (var(--reserve-count,1) - 1));height:var(--pile-height);min-width:var(--pile-width);cursor:pointer}
#spider-surface #board.spider #stock .card{position:absolute;top:0;width:var(--pile-width);height:var(--pile-height);border:1px solid #eee;box-shadow:0 1px 3px #0007}
#spider-surface #board.spider #stock .stockCount{display:none}
#spider-surface #board.spider #stock[data-deals="0"]{visibility:hidden}
#spider-surface #board.spider #top>.spacer{display:none}
#solitaire-caption{position:absolute;left:max(94px,env(safe-area-inset-left));bottom:10px;z-index:10;max-width:calc(100% - 115px);pointer-events:none}
body[data-solitaire="spider"] #solitaire-caption{max-width:calc(100% - 315px)}
#spider-info{position:static;min-height:60px;display:flex;align-items:center;align-content:center;gap:6px 10px;flex-wrap:wrap;font:14px/1.3 system-ui;color:#fffbe9;text-shadow:0 1px 3px #000;background:#123c3066;border-radius:8px;padding:4px 6px}
#spider-info[hidden]{display:none!important}
#spider-info #title{flex-basis:100%;margin:0;font-size:26px;line-height:1.12;color:#fff9e6;display:flex;align-items:center;font-family:'Arial Black',Impact,system-ui,sans-serif;font-weight:950;letter-spacing:-.06em;font-style:italic;filter:drop-shadow(1px 2px 0 #051c16);transform:rotate(-2deg);transform-origin:left center}
#spider-info #title span{font:inherit;color:inherit}
#spider-info #title .wordmark-accent{color:#ff2858}
#spider-info #title.wordmark-freecell .wordmark-accent{color:#ffd05c}
#spider-info #title:before{display:inline-block;margin-right:6px;font:23px/1 Georgia,serif;content:'♦';color:#ff2858;letter-spacing:0}
#spider-info #title.wordmark-spider:before{content:'';width:25px;height:25px;flex:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23f6e9cf' stroke-width='1.3'%3E%3Cpath d='M2 2h26M2 2v26M2 2l25 25M2 2l25 10M2 2l10 25M2 11Q8 8 11 2M2 21Q15 15 21 2M12 27Q19 19 27 12'/%3E%3C/g%3E%3C/svg%3E")}
#spider-info #title.wordmark-freecell:before{content:'♣';color:#ffd05c}
#spider-info #moves,#spider-info #time{display:inline!important;font-size:14px}
#spider-info button{pointer-events:auto;min-height:40px;min-width:42px;width:42px;height:40px;padding:6px;background:#143d2ba0;border:1px solid #ffffff65;color:inherit}
#spider-info button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#spider-player{display:inline-flex;gap:5px;align-items:center;max-width:150px;min-width:0;font-size:12px;white-space:nowrap}
.solitaire-initials{display:inline-grid;place-items:center;width:26px;height:26px;min-width:26px;border:1px solid #fff9;border-radius:50%;font:600 10px/1 system-ui;background:#11372bab}
.solitaire-nickname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#spider-info-toggle{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:10px;z-index:40;min-width:70px;min-height:44px;padding:7px;display:flex;align-items:center;justify-content:center;gap:5px;background:#163b2cb8;color:white;border:1px solid #fff7;border-radius:10px;backdrop-filter:blur(5px);font:14px system-ui}
#spider-info-toggle .info-eye{width:22px;height:22px;flex:none}
#solitaire-caption>#message{position:static!important;inset:auto!important;transform:none!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%;max-height:38px;overflow:hidden;box-sizing:border-box;min-height:0;width:auto;margin:0 0 5px;padding:2px 6px;font:13px/1.35 system-ui;background:transparent!important;color:#fff8e6!important;border:0!important;border-radius:0;box-shadow:none!important;text-shadow:0 1px 2px #000;pointer-events:auto}
#solitaire-caption>#message:empty{display:none}
#spider-surface .spider-dealing{pointer-events:none}
#spider-surface .drag-run{position:absolute;transform:none;filter:drop-shadow(0 5px 5px #0007)}
.solitaire-invalid{animation:solitaire-invalid 260ms ease-out}
@keyframes solitaire-invalid{0%,70%{box-shadow:inset 0 0 0 3px #ff7676}100%{box-shadow:none}}
.spider-minimal #rotate,.spider-minimal .play-actions,.spider-minimal footer{display:none!important}
.spider-turned dialog:not(.hub-entry):not(#solitaire-orientation){position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;margin:0!important;transform:translate(-50%,-50%) rotate(90deg)!important;transform-origin:center;width:min(560px,calc(var(--spider-width) - 24px))!important;max-width:calc(var(--spider-width) - 24px)!important;max-height:calc(var(--spider-height) - 24px)!important;overflow:auto;overflow-x:hidden}
.spider-turned #column-zoom .zoom-panel{max-height:calc(var(--spider-height) - 40px)}
.spider-turned #ts-game-menu .ts-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.spider-turned #ts-game-menu .ts-menu-list>*{min-width:0;margin:0;font-size:15px}
#spider-surface>.hub-version-badge{position:absolute;left:auto;right:8px;top:auto;bottom:3px;width:36px;height:22px;font-size:8px;z-index:50}
#solitaire-orientation{box-sizing:border-box;width:min(420px,92vw);max-height:90dvh;padding:22px;border:1px solid #6d9582;border-radius:16px;background:#fff8e9;color:#173728;font:17px/1.45 system-ui;overflow:auto;box-shadow:0 8px 50px #0009}
#solitaire-orientation::backdrop{background:#071b15b8}
#solitaire-orientation h2{margin:0 0 12px;font-size:23px}
#solitaire-orientation p{margin:0 0 18px}
#solitaire-orientation label{display:flex;align-items:center;gap:9px;width:auto;margin:10px 0 18px;font-size:15px}
#solitaire-orientation input{width:22px;height:22px;min-width:22px;margin:0;accent-color:#175b3e}
#solitaire-orientation button{width:100%;min-height:46px;margin:0;padding:10px;background:#175b3e;color:white;border:1px solid #175b3e;border-radius:9px;font:700 17px system-ui}
@media(max-height:450px){#spider-info #title{font-size:24px}#spider-info{gap:4px 8px}#solitaire-caption{bottom:7px}#spider-info-toggle{bottom:7px}}
@media(prefers-reduced-motion:reduce){.solitaire-invalid{animation:none;outline:2px solid #ff7676}}

html:has(body.solitaire-minimal){overflow:hidden;overscroll-behavior:none}

