#classic-page{margin:0;min-height:100dvh;background:#153d2e url('/assets/oyun-zemin-v224.svg') center/cover fixed;color:#fff1d3;font:16px/1.45 system-ui,sans-serif;--gold:#d5b160;--card-w:clamp(42px,9vw,110px);--card-h:calc(var(--card-w)*1.43);--step:clamp(23px,3.7vw,34px)}
#classic-page *{box-sizing:border-box}#classic-page [hidden]{display:none!important}
#classic-page button:where(:not(#giris *)),#classic-page select:where(:not(#giris *)){font:inherit;border:1px solid var(--gold);border-radius:10px;padding:9px 14px;background:linear-gradient(#356446,#234835);color:#fff1d3;cursor:pointer;box-shadow:inset 0 1px #fff2,0 2px 5px #0003;min-height:42px;touch-action:manipulation}
#classic-page button:disabled{opacity:.45;cursor:default}#classic-page button:focus-visible,#classic-page select:focus-visible{outline:3px solid #ffdc75;outline-offset:2px}#classic-page button:hover:not(:disabled){filter:brightness(1.13)}
#classic-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:linear-gradient(135deg,#652b28,#412727);border-bottom:2px solid var(--gold);padding:10px 16px;position:relative;z-index:2}
#classic-header h1{font-size:20px;margin:0;flex:1}#ben-cip{display:flex;align-items:center;gap:6px}
#classic-page .g-sag h1{font-size:inherit;margin:0}
#classic-page .g-top>.kk-tam-ekran{grid-column:-2/-1;justify-self:end;width:max-content;max-width:100%}
#classic-page #g-ben{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;max-width:100%;overflow-wrap:anywhere}
#classic-page label:where(:not(#giris *)){display:flex;flex-direction:column;gap:8px;text-align:left}#classic-page .g-alt{align-items:center;flex-wrap:wrap;gap:10px}
#classic-page .g-devam{display:flex;justify-content:center}
#classic-game{padding:14px 18px 35px;max-width:1600px;margin:auto}#classic-tools{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}#classic-score{color:#f4d88e}#classic-time{font-variant-numeric:tabular-nums;background:#0a241b99;border-radius:8px;padding:8px}
#classic-status{text-align:center;min-height:24px;margin:12px 0;color:#ffe7a3}#classic-tip{text-align:center;font-size:14px;color:#d8cfb2}
#classic-scroll{overflow:auto;overscroll-behavior:contain;padding:8px 4px 24px;max-height:calc(100dvh - 210px);min-height:250px;scrollbar-color:#c5a560 #153c2e}#classic-board{margin:0 auto;width:max-content;min-width:0}
.sol-top,.sol-columns{display:grid;grid-template-columns:repeat(7,var(--card-w));gap:clamp(4px,1.3vw,15px)}.sol-top{margin-bottom:22px}.sol-columns.spider{grid-template-columns:repeat(10,var(--card-w))}.sol-top.spider{grid-template-columns:repeat(10,var(--card-w))}
.sol-pile,.sol-column{position:relative;width:var(--card-w);min-height:var(--card-h);border:1px dashed #efdca96b;border-radius:8px;background:#072f2045;color:#ebddb0;text-align:center}.sol-pile>span{display:block;padding-top:30%;font-size:25px}.sol-pile label{font-size:12px;position:absolute;top:100%;width:100%;text-align:center}
#classic-page .sol-card{display:block;position:absolute;left:0;top:calc(var(--i,0)*var(--step));width:var(--card-w);height:var(--card-h);min-height:0;padding:0;border:1px solid #f1e6c5;border-radius:7px;background-color:#fffcef;background-image:var(--face);background-position:center;background-size:100% 100%;box-shadow:0 2px 4px #0006;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:box-shadow .12s}
#classic-page .sol-card.back{background:repeating-linear-gradient(45deg,#943e32,#943e32 4px,#782e27 4px,#782e27 8px);border:4px solid #efe2bd;pointer-events:none}#classic-page .sol-card.selected{outline:3px solid #ffe16a;outline-offset:-2px;box-shadow:0 0 12px #ffdc7799}#classic-page .sol-card.hint{outline:3px solid #7bf3b1;outline-offset:-3px}#classic-page .sol-pile.target,#classic-page .sol-column.target{box-shadow:0 0 0 3px #70da9c}#classic-page .sol-stock{position:relative;width:var(--card-w);height:var(--card-h);padding:6px;background:repeating-linear-gradient(45deg,#943e32,#943e32 5px,#782e27 5px,#782e27 10px);border:4px solid #efe2bd;font-size:15px}
#classic-page .sol-stock.empty{background:#153d2e}#classic-page #classic-board.spider-board{--card-w:clamp(50px,7.5vw,100px)}.sol-completed{grid-column:span 8;align-self:center;font-size:17px;color:#f1d48a;text-align:center}.sol-columns{align-items:start;padding-bottom:10px}
#mine-players{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:10px 0}#classic-page .mine-person{background:linear-gradient(125deg,#e6c87f,#a5833d);color:#302816;display:flex;align-items:center;gap:8px;font-weight:bold;font-size:14px}#mine-lobby{text-align:center;padding:22px;background:#0c3025bb;border-radius:15px}#mine-lobby label{display:inline-flex;vertical-align:middle;margin-right:12px}
#classic-board.mine-board{display:grid;grid-template-columns:repeat(var(--cols),var(--cell));gap:3px;padding:9px;border:3px solid #bc9850;border-radius:14px;background:#173e30;--cell:36px}
#classic-page .mine-cell{width:var(--cell);height:var(--cell);min-height:0;padding:0;border-radius:5px;font-weight:800;font-size:19px;background:linear-gradient(#67886a,#40664d);border:1px solid #a6b592;color:#fff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
#classic-page .mine-cell.open{background:#e8dfc4;color:var(--num,#304638);border-color:#d2c5a5;box-shadow:none}#classic-page .mine-cell.mine{background:#973d31}#classic-page .mine-cell.exploded{outline:3px solid #ffe274;outline-offset:-3px}#classic-page .mine-cell.flagged{background:#b28a3b}#classic-flag[aria-pressed=true]{background:#a36b2c}
#classic-dialog{color:#fff1d3;background:#173f30;border:2px solid #d4b26b;border-radius:18px;max-width:min(620px,94vw);max-height:85dvh;padding:24px;box-shadow:0 20px 60px #0007}#classic-dialog::backdrop{background:#000a}#classic-dialog-close{float:right}#classic-dialog p{line-height:1.7}#classic-dialog input{width:100%;padding:12px;margin:12px 0}#classic-toast{position:fixed;z-index:10000;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:12px 20px;border:1px solid #edcb79;background:#163d2ef5;border-radius:12px;box-shadow:0 4px 20px #0008}
@media(max-width:600px){#classic-header{padding:8px;gap:6px}#classic-header h1{font-size:17px;min-width:120px}#classic-page button:where(:not(#giris *)){padding:8px 10px;font-size:14px}#classic-header #ben-cip{max-width:140px;overflow:hidden}#classic-game{padding:10px 4px 20px}#classic-tools{gap:6px}#classic-page{--card-w:calc((100vw - 44px)/7);--step:25px}.sol-top,.sol-columns{gap:5px}.sol-top{margin-bottom:18px}#classic-scroll{max-height:calc(100dvh - 240px)}#classic-board.mine-board{--cell:clamp(29px,8.7vw,36px);gap:2px;padding:5px}.sol-completed{font-size:14px}}
@media(prefers-reduced-motion:reduce){#classic-page *{transition:none!important}}
/* Same full-screen setup structure as the other games, including saved settings. */
@media(max-width:600px){#classic-page .kk-giris .g-top{grid-template-columns:1fr auto}#classic-page .kk-giris .g-sag{grid-column:1/-1;justify-self:center}#classic-page .kk-giris .g-sol{width:auto}#classic-page .kk-giris .g-orta{justify-self:end}}
#classic-page #giris.kk-giris.classic-setup[hidden]{display:none!important}
/* Artwork has corner indices close to the edge: inset the face, not the hitbox. */
#classic-page .sol-card{touch-action:none;background-size:94% 94%;background-repeat:no-repeat;border-radius:3px}
#classic-page .sol-card.sol-dealt{z-index:20;pointer-events:none;will-change:transform,opacity}
#classic-page #classic-board[data-dealing]{pointer-events:none}
#classic-page[data-linux-game]{height:auto;min-height:100dvh;overflow:auto;display:block}
#classic-page[data-linux-game]>header{height:auto!important;flex-wrap:wrap!important}
#classic-page .mine-person.current{outline:3px solid #ffe392;box-shadow:0 0 14px #ffdc7755}
#classic-page .mine-board.waiting .mine-cell{opacity:1;cursor:wait}
#classic-page .mine-person-wrap{display:flex;align-items:center;gap:4px}
#mine-last{text-align:center;margin:4px 0 8px;color:#edcf95;font-size:14px}
#classic-page select option{background:#234835;color:#fff1d3}
#classic-page .classic-select{text-align:left;padding-right:34px;position:relative;font-weight:600;width:100%}
/* Setup inherits the same Okey controls; the expanded list stays green. */
#classic-page #giris .classic-select{font:15px system-ui,sans-serif;padding:8px 34px 8px 10px;border-radius:9px;border:1px solid #0003;background:#fff;color:#222;min-height:0;box-shadow:none;cursor:pointer;touch-action:manipulation}
@media(max-height:480px){#classic-page #giris .classic-select{font-size:14px;padding:6px 34px 6px 8px}#classic-page #giris .g-btn{font-size:15px}}
@media(max-width:999px) and (min-height:481px){#classic-page #giris .g-btn:not(.g-kur){font-size:18px}#classic-page #giris .classic-select{font-size:20px;padding:10px 34px 10px 12px}}
@media(min-width:1000px) and (pointer:fine){#classic-page #giris .classic-select{font-size:22px;padding:12px 38px 12px 16px;border-radius:12px}}
#classic-page .classic-select::after{content:'⌄';position:absolute;right:12px}
#classic-page .classic-options{position:fixed;z-index:10050;overflow:auto;padding:5px;background:#173f30;color:#fff1d3;border:2px solid #d5b160;border-radius:12px;box-shadow:0 8px 30px #0008;overscroll-behavior:contain}
#classic-page .classic-options button{display:block;width:100%;text-align:left;border:0;border-radius:7px;box-shadow:none;background:#173f30;color:#fff1d3;padding:10px 12px}
#classic-page .classic-options button[aria-selected=true]{background:#406548;color:#ffe398}
#classic-page .classic-options button:focus{background:#52734b;outline:2px solid #ebc76b;outline-offset:-2px}
#classic-page .sol-drag-ghost{position:fixed;pointer-events:none;z-index:10001;opacity:.9}
#classic-page .sol-flight-layer{position:fixed;pointer-events:none;z-index:10002}
#classic-page .sol-flight-layer .sol-card{pointer-events:none;transition:none;box-shadow:0 3px 12px #0006,0 0 12px #ffdc7766}
#classic-page .sol-landing{background-size:94% 94%;background-position:center;background-repeat:no-repeat}
#classic-page #classic-finish{background:linear-gradient(#ffe6a6,#bd8c35);color:#382b12;font-weight:700;border:2px solid #ffe39b}
#classic-page .sol-completed{display:flex;flex-direction:column;align-items:center;gap:5px}
#classic-page .sol-completed-slots{display:flex;gap:clamp(3px,.7vw,9px)}
#classic-page .sol-completed-slot{width:clamp(20px,3.2vw,44px);aspect-ratio:1/1.43;border:1px dashed #d5b160;border-radius:5px;background:#14392c;color:#d6bf8f;font-size:12px;display:grid;place-items:center;background-size:100% 100%}
#classic-page .sol-completed-slot.full{color:transparent;border-style:solid}
#classic-page .sol-column[data-ready],#classic-page .sol-column[data-ready] .sol-card{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 2 3 16h8v14h10V16h8Z' fill='%23ffdf83' stroke='%233b2b13' stroke-width='2'/%3E%3C/svg%3E") 16 2,pointer}
#classic-page .sol-collect{position:absolute;right:3px;z-index:25;width:36px;height:36px;min-height:36px;padding:0;border:2px solid #fff0b1;border-radius:50%;background:linear-gradient(#ffe89e,#bd8b32);color:#382b12;font-size:27px;line-height:1;font-weight:800;box-shadow:0 0 12px #ffdc7777;cursor:inherit}
#classic-page .sol-victory{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:20px;border:0;background:transparent;color:#fff1d3;overflow:hidden}
#classic-page .sol-victory[open]{display:grid;place-items:center}
#classic-page .sol-victory::backdrop{background:#051d19b8}
#classic-page .sol-victory canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#classic-page .sol-victory section{position:relative;text-align:center;padding:clamp(20px,4vw,42px);border:2px solid #e5c574;border-radius:24px;background:linear-gradient(135deg,#24543e,#14372b);box-shadow:0 12px 60px #0008;max-width:95vw}
#classic-page .sol-victory h2{font-size:clamp(30px,5vw,52px);color:#ffe4a0;margin:4px 0}
#classic-page .sol-final-score{width:100%;border-collapse:collapse;margin:12px 0 18px;text-align:left}#classic-page .sol-final-score th,#classic-page .sol-final-score td{padding:8px 14px;border-bottom:1px solid #d5b16066}
#classic-page .sol-victory p{margin:8px 0 24px}.sol-trophy{font-size:52px}
#classic-page .sol-victory section>div:last-child{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
#classic-page .sol-drop-target{outline:3px solid #7bf3b1;outline-offset:2px;box-shadow:0 0 16px #7bf3b180}
/* Keep the artwork tied to the viewport, not the height of a long card stack. */
#classic-page:is([data-kind="soliter"],[data-kind="spider"]){background-image:none;isolation:isolate}
#classic-page:is([data-kind="soliter"],[data-kind="spider"])::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:#153d2e url('/assets/oyun-zemin-v224.svg') center/contain no-repeat}
@media(orientation:portrait){#classic-page:is([data-kind="soliter"],[data-kind="spider"])::before{background-image:url('/assets/oyun-zemin-v224.svg')}}
#classic-page .sol-stock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:2px;border-width:3px;min-height:0;font-size:clamp(9px,2.6vw,15px);line-height:1.15;text-align:center;white-space:normal;overflow:hidden}
#classic-page .sol-stock>span{display:block;max-width:100%;overflow-wrap:anywhere}
#classic-tools-toggle,#classic-compact-help{display:none}
@media(max-width:900px),(max-height:500px){
 #classic-page[data-kind="spider"] #classic-header{flex-wrap:nowrap;min-height:42px;padding:3px 110px 3px 6px;gap:6px}
 #classic-page[data-kind="spider"] #classic-header h1{min-width:0;font-size:14px}
 #classic-page[data-kind="spider"] #classic-header :is(#ben-cip,#classic-help){display:none}
 #classic-page[data-kind="spider"] #classic-header button{min-height:34px;padding:4px 7px;font-size:12px}
 #classic-page[data-kind="spider"] #classic-tools{gap:5px;min-height:36px;justify-content:space-between}
 #classic-page[data-kind="spider"] #classic-tools>button{display:none;min-height:34px;padding:4px 8px;font-size:12px}
 #classic-page[data-kind="spider"] #classic-tools #classic-tools-toggle,#classic-page[data-kind="spider"] #classic-tools.compact-open>button:not([hidden]){display:block}
 #classic-page[data-kind="spider"] #classic-tools :is(#classic-score,#classic-time){font-size:12px;padding:3px}
 #classic-page[data-kind="spider"] :is(#classic-status,#classic-tip){font-size:11px;margin:3px 0;min-height:0}
 #classic-page[data-kind="spider"] #classic-tip{display:none}
 #classic-page[data-kind="spider"] #classic-scroll{max-height:calc(100dvh - 115px);min-height:0;padding:3px 2px 42px}
 #classic-page[data-kind="spider"] .sol-top{margin-bottom:8px}
 #classic-page[data-kind="spider"] #classic-board{--card-w:clamp(28px,calc((100vw - 50px)/10),78px);--step:clamp(18px,3.5vw,24px)}
 #classic-page[data-kind="spider"] :is(.sol-top,.sol-columns){gap:3px}
 #classic-page[data-kind="spider"] #classic-game{padding:3px 5px 0}
 #classic-page[data-kind="spider"] .sol-completed{font-size:11px}
}
@media(orientation:landscape) and (max-height:500px){#classic-page[data-kind="spider"]{--step:20px}#classic-page[data-kind="spider"] #classic-board{--card-w:clamp(42px,7.2vw,68px)}#classic-page[data-kind="spider"] #classic-header{padding:4px 8px;gap:5px}#classic-page[data-kind="spider"] #classic-header h1{font-size:16px}#classic-page[data-kind="spider"] #classic-game{padding:4px 8px}#classic-page[data-kind="spider"] #classic-status{margin:3px 0}#classic-page[data-kind="spider"] #classic-scroll{max-height:calc(100dvh - 150px);min-height:0}#classic-page[data-kind="spider"] .sol-top{margin-bottom:12px}}
@media(orientation:landscape) and (max-height:500px){#classic-page[data-kind="spider"] #classic-header{padding-right:110px}#classic-page[data-kind="spider"] #classic-scroll{max-height:calc(100dvh - 110px)}#classic-page[data-kind="spider"] #classic-board{--card-w:clamp(28px,calc((100vw - 50px)/10),78px)}}
