:root {
      color-scheme: dark;
      --bg: #0b211f;
      --panel: #12372f;
      --felt: #17483b;
      --felt-dark: #123b31;
      --cream: #f6f1e4;
      --muted: #9bb7ab;
      --gold: #eac88d;
      --line: rgba(232,241,225,.12);
      --card-w: clamp(63px, 7.1vw, 92px);
      --card-h: calc(var(--card-w) * 1.4);
      --corner: 10px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% -15%, #296044aa 0, transparent 54%), linear-gradient(#0e2924, #0b211f); pointer-events: none; }
    button { font: inherit; cursor: pointer; }
    button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
    .page { width: min(1480px, 100%); margin: auto; padding: 24px clamp(14px, 3vw, 40px) 24px; }
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
    .brand { display: inline-flex; gap: 14px; align-items: center; }
    .brand-mark { width: 51px; height: 51px; border-radius: 15px; background: #e8c88e; color: #143a32; display: grid; place-items: center; font-size: 37px; line-height: 1; box-shadow: 0 7px 28px #0004; transform: rotate(-5deg); }
    .brand-copy strong { display: block; font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.05em; font-size: 30px; line-height: .98; }
    .brand-copy span { display: block; margin-top: 6px; font-size: 10px; color: #b6c8bb; text-transform: uppercase; letter-spacing: .21em; }
    .top-help { border: 1px solid var(--line); background: #ffffff09; border-radius: 100px; color: #dfebde; padding: 11px 17px; transition: background .2s; }
    .top-help:hover { background: #ffffff19; }
    .headline { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom: 17px; }
    .headline h1 { font-size: clamp(26px, 3vw, 39px); font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.045em; margin: 0 0 5px; }
    .headline p { color: var(--muted); font-size: 13px; margin:0; line-height:1.5; }
    .game-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
    .difficulty { padding: 4px; display: inline-flex; gap: 3px; border-radius: 13px; border: 1px solid var(--line); background: #061c1880; }
    .difficulty button { color: #bad0c5; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
    .difficulty button.active { background: #335f4e; color: #fff8e8; box-shadow: 0 2px 7px #0003; }
    .action { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); color: #f3f1e5; background: #ffffff0a; font-weight: 650; font-size: 12px; transition: transform .16s, background .16s, opacity .16s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    .action:hover:not(:disabled) { transform: translateY(-1px); background: #ffffff1c; }
    .action:disabled { opacity: .42; cursor: not-allowed; }
    .action.gold { color: #18352e; background: var(--gold); border-color: var(--gold); }
    .action.gold:hover { background: #f6daa7; }
    .action svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .stats { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: #55716650; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0 18px; }
    .stat { background: #10342d; padding: 14px 20px 13px; min-width: 0; }
    .stat-label { display:block; color:#a2c0b1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
    .stat-value { display:block; font-size: 27px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
    .stat-value small { font-size: 13px; font-weight: 500; color: #a2c0b1; letter-spacing: 0; }
    .table-wrap { position: relative; border-radius: 22px; padding: 24px 17px 18px; border: 1px solid #77b5912d; box-shadow: 0 30px 65px #0003, inset 0 1px #ffffff12; background: radial-gradient(ellipse at 50% 5%, #23644f 0%, #184d3e 35%, #133c32 90%); overflow: hidden; }
    .table-wrap::after { content:""; inset: 9px; border: 1px solid rgba(225,243,219,.055); border-radius: 17px; position:absolute; pointer-events:none; }
    .table-caption { display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 0 8px 19px; color:#c9ddce; font-size: 12px; position: relative; z-index: 1; }
    .mobile-instruction { display: none; }
    .table-caption strong { font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: #d7e9d9; }
    .table-caption span { color: #b1d0bb; }
    .board-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 3px 0 12px; scrollbar-color: #81a98f66 transparent; scrollbar-width: thin; position:relative; z-index:1; }
    .board { min-width: 740px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(5px, 1vw, 13px); padding: 0 4px; }
    .pile { position:relative; min-width: 0; border-radius: 11px; transition: background .12s; cursor: pointer; }
    .pile::before { content: '♠'; display:grid; place-items:center; position:absolute; top:0; left:50%; transform:translateX(-50%); width: min(100%, var(--card-w)); height:var(--card-h); border:2px dashed #b8d4bd35; border-radius:var(--corner); color:#a8cdaf36; font-size: 28px; box-sizing:border-box; }
    .pile.is-drop-target::before { border-color: #efd392c9; background:#eccd9140; }
    .pile.is-drop-target > .card:last-child { box-shadow: 0 0 0 3px #f0ce86, 0 11px 19px #0004; }
    .pile.pile-hint::before { border-color: #ecd28bb8; box-shadow: 0 0 0 3px #efd39245; }
    .card { position:absolute; left:50%; transform: translateX(-50%); width: min(100%, var(--card-w)); height:var(--card-h); border-radius: var(--corner); box-shadow: 0 2px 4px #07191460, 0 0 0 1px #091c1b29; -webkit-user-select:none; user-select:none; overflow:hidden; }
    .card.face-up { color: #192b2c; background:linear-gradient(150deg, #fffefb, #f0eee6); border:1px solid #d5d4cd; touch-action:none; }
    .card.face-up.red { color:#b64351; }
    .card.face-up.selected { box-shadow: 0 0 0 3px #f7cc76, 0 3px 12px #0007; filter: brightness(1.025); }
    .card.face-up.hint-card { box-shadow: 0 0 0 3px #f5d48e, 0 0 20px #eac88e44; }
    .card.face-up.dragging-source { opacity:.4; }
    .card.face-down { border:2px solid #f8edc9; background:#1e5b5d; }
    .card.face-down::before { content:""; position:absolute; inset: 4px; border-radius:5px; border: 1px solid #fff5d57a; background: repeating-linear-gradient(45deg, #aed4ba28 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, #aed4ba29 0 2px, transparent 2px 9px), #225d59; }
    .card.face-down::after { content:"♠"; position:absolute; inset: 26% 17%; border: 1px solid #ffefce55; border-radius: 50%; color:#e3d29dca; display:grid; place-items:center; font-size:clamp(20px, 3vw, 33px); background:#1e4f4b7f; }
    .card-corner { position:absolute; top:4px; left:6px; display:flex; align-items:center; flex-direction:column; line-height: .97; font-size:clamp(12px, 1.5vw, 19px); font-weight:800; letter-spacing:-.06em; }
    .card-corner .small-suit { font-size:.8em; margin-top: 3px; }
    .card-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:clamp(27px, 3vw, 46px); opacity:.9; }
    .card-corner.bottom { transform:rotate(180deg); top:auto; left:auto; bottom:4px; right:6px; }
    .table-bottom { display:flex; gap:24px; align-items:flex-end; justify-content:space-between; border-top:1px solid #b0d6b029; padding: 18px 8px 1px; position:relative; z-index:1; }
    .table-bottom h2 { margin:0 0 10px; font-size:10px; letter-spacing:.17em; font-weight:700; text-transform:uppercase; color:#b2d3bd; }
    .foundations { display:flex; gap:clamp(4px, .8vw, 9px); flex-wrap:wrap; }
    .foundation { width:clamp(28px, 4vw, 45px); height:clamp(39px, 5.6vw, 62px); border:1.5px dashed #b6d8b74d; border-radius:7px; display:grid; place-items:center; color:#d5e7d64b; font-size:17px; }
    .foundation.filled { background:#f6f3ea; color:#19382f; border:2px solid #e9ce8d; box-shadow: 0 3px 6px #0003; font-family:Georgia, serif; font-size:21px; }
    .foundation.filled.red { color:#b7434b; }
    .stock-region { flex-shrink:0; }
    .stock-row { display:flex; align-items:center; gap:12px; }
    .stock { width:clamp(65px, 7.1vw, 92px); height:calc(clamp(65px, 7.1vw, 92px) * 1.4); background:transparent; border:0; padding:0; position:relative; color:#fff5d8; }
    .stock:disabled { cursor: default; opacity:.45; }
    .stock-layer { position:absolute; inset: 3px 0 0 0; border:2px solid #e6d6aa; border-radius:9px; background: repeating-linear-gradient(45deg, #92caba38 0 2px, transparent 2px 8px), #245c56; box-shadow: 0 3px 6px #0005; }
    .stock-layer:nth-child(1) { transform:translate(-7px,-5px); }
    .stock-layer:nth-child(2) { transform:translate(-4px,-3px); }
    .stock-layer:nth-child(3) { transform:translate(-1px,-1px); }
    .stock-inner { display:grid; position:absolute; inset:9px 7px; border:1px solid #efdca772; border-radius:6px; place-items:center; font-size:25px; }
    .stock.hint-stock .stock-layer:last-of-type { box-shadow:0 0 0 3px #efd392, 0 3px 6px #0005; }
    .stock-empty { width:100%; height:100%; border:2px dashed #b6d8b74d; border-radius:9px; display:grid; place-items:center; color:#d5e7d64b; font-size:24px; }
    .stock-count { display:block; font-size:12px; color:#e8ddbd; margin:0; font-weight:600; white-space:nowrap; }
    .stock-count small { display:block; font-size:11px; font-weight:500; color:#a5c7b3; margin-top:3px; }
    .message-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 5px 0; }
    #message { display:flex; align-items:center; gap:8px; font-size:12px; color:#c5d8c9; line-height:1.5; min-height:20px; }
    .message-dot { width:7px; height:7px; display:inline-block; border-radius:50%; background:#d9bd7c; flex-shrink:0; }
    .shortcuts { color:#77988a; font-size:11px; text-align:right; }
    .bottom-note { display:flex; align-items:center; justify-content:space-between; color:#638a78; font-size:11px; margin:28px 4px 5px; gap:10px; }
    .drag-preview { position:fixed; pointer-events:none; z-index:1000; filter:drop-shadow(0 14px 14px #0007); }
    .drag-preview .card { left:0; transform:none; }
    .modal-backdrop { position:fixed; inset:0; z-index:500; background:#041511b8; backdrop-filter:blur(7px); display:grid; place-items:center; padding:18px; }
    .modal-backdrop[hidden] { display:none; }
    .modal { width:min(480px, 100%); background:#173d33; border:1px solid #c6e4cd30; border-radius:22px; padding:30px; box-shadow:0 30px 100px #0009; }
    .modal-kicker { color:var(--gold); letter-spacing:.16em; text-transform:uppercase; font-size:11px; font-weight:700; }
    .modal h2 { margin:9px 0 13px; font:normal 34px/1.1 Georgia, serif; letter-spacing:-.04em; }
    .modal p { font-size:14px; color:#c5d9ca; line-height:1.7; }
    .modal ul { color:#cadccc; padding-left:20px; font-size:13px; line-height:1.85; }
    .modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:22px; }
    @media (min-width: 1100px) { .board { min-width:0; } }
    @media (max-width: 900px) { .headline { align-items:flex-start; flex-direction:column; } .game-controls { justify-content:flex-start; } .table-wrap { padding:16px 10px; } .board { gap:7px; } .shortcuts { display:none; } }
    @media (max-width: 580px) { .page { padding:16px 11px 19px; } .topbar { margin-bottom:24px; } .brand-mark { width:43px; height:43px; font-size:30px; } .brand-copy strong { font-size:26px; } .brand-copy span { font-size:8px; } .top-help { padding:9px 12px; font-size:12px; } .game-controls { gap:7px; } .difficulty { width:100%; } .difficulty button { flex:1; padding:10px 8px; } .action { flex:1; padding:11px 10px; } .stats { margin:15px 0; } .stat { padding:11px 12px; } .stat-label { font-size:9px; letter-spacing:.05em; } .stat-value { font-size:22px; } .table-caption { padding:0 6px 15px; } .table-caption span { max-width:170px; text-align:right; } .desktop-instruction { display:none; } .mobile-instruction { display:block; } .table-bottom { gap:13px; padding:16px 5px 3px; } .foundations { max-width:250px; } .stock-row { gap:7px; } .stock-count { font-size:10px; } .stock-count small { font-size:10px; } .bottom-note { line-height:1.5; } }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; } }
  
    /* International SEO-site UI extensions */
    .page {padding-bottom: 80px}
    .brand {text-decoration:none;color:inherit}
    .topbar {flex-wrap:wrap}
    .site-nav {display:flex;gap:6px;flex-wrap:wrap;align-items:center}
    .site-nav a {text-decoration:none;color:#d5e8dc;border:1px solid transparent;border-radius:100px;padding:10px 13px;font-size:13px;font-weight:650}
    .site-nav a:hover,.site-nav a[aria-current="page"] {background:#ffffff12;border-color:var(--line)}
    .difficulty a {color:#bad0c5;padding:10px 12px;border:0;border-radius:9px;background:transparent;font-size:12px;font-weight:650;white-space:nowrap;text-decoration:none;display:block}
    .difficulty a.active {background:#335f4e;color:#fff8e8;box-shadow:0 2px 7px #0003}
    .eyebrow {display:block;color:var(--gold);letter-spacing:.16em;text-transform:uppercase;font-size:10px;font-weight:800;margin-bottom:9px}
    .breadcrumb {display:flex;gap:9px;align-items:center;color:#a8c4b8;font-size:12px;margin:0 0 20px}
    .breadcrumb a {color:#bcd8cb;text-underline-offset:3px}
    .intro-text {max-width:720px;color:var(--muted);font-size:15px;line-height:1.65;margin:6px 0 0}
    .content {max-width:1030px;margin:52px auto 0;color:#d4e5d8;font-size:15px;line-height:1.85}
    .content h2,.content h3 {font-family:Georgia,'Times New Roman',serif;letter-spacing:-.025em;color:#fbf3de;line-height:1.22;font-weight:500}
    .content h2 {font-size:clamp(25px,3vw,34px);margin:38px 0 14px}
    .content h3 {font-size:22px;margin:22px 0 9px}
    .content p {max-width:850px;margin:10px 0 18px}
    .content li {padding-left:4px;margin-bottom:8px}
    .content a,.site-footer a {color:#e9ca8e;text-decoration:underline;text-underline-offset:4px}
    .content strong {color:#fff4da}
    .content ul,.content ol {padding-left:25px}
    .content .lead {font-size:18px;line-height:1.75;color:#d6e8d9}
    .content .prose-table {width:100%;border-collapse:collapse;font-size:14px;display:block;overflow-x:auto}
    .content .prose-table th,.content .prose-table td {border-bottom:1px solid var(--line);padding:13px 15px;text-align:left;vertical-align:top}
    .content .prose-table th {color:var(--gold);white-space:nowrap}
    .content .note {border-left:3px solid var(--gold);background:#d9cc9c0c;border-radius:0 12px 12px 0;padding:14px 18px;margin:25px 0}
    .related {margin-top:44px;border-top:1px solid var(--line);padding-top:28px}
    .related-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px;margin-top:17px}
    .related-card {display:block;text-decoration:none!important;color:#e6f1e7!important;background:#143b32;border:1px solid var(--line);padding:20px;border-radius:16px;transition:transform .18s,border-color .18s}
    .related-card:hover {transform:translateY(-2px);border-color:#d9c18c80}
    .related-card strong {display:block;font-size:16px;margin-bottom:7px;color:#f9ebca}
    .related-card span {color:#a6c0b2;font-size:13px;line-height:1.5}
    .faq details {border-top:1px solid var(--line);padding:15px 0}
    .faq summary {cursor:pointer;font-size:16px;font-weight:700;color:#f3eacb}
    .faq details p {margin:10px 0;color:#d2e1d5}
    .site-footer {max-width:1030px;margin:65px auto 0;border-top:1px solid var(--line);padding:24px 0 5px;display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap;font-size:12px;color:#9fb9a9}
    .site-footer nav {display:flex;gap:16px;flex-wrap:wrap}
    .site-footer a {color:#bcd1bf;text-decoration:none}
    .site-footer a:hover {color:#f6deb3}
    .article-hero {max-width:870px;margin:8px 0 35px}
    .article-hero h1 {font:normal clamp(35px,5vw,58px)/1.1 Georgia,serif;letter-spacing:-.04em;margin:0 0 17px}
    .article-hero p {font-size:18px;line-height:1.7;color:#b9d0c0}
    .article-layout {display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:44px;align-items:start}
    .article-layout .content {margin:0}
    .sidebar {position:sticky;top:20px;border:1px solid var(--line);border-radius:18px;background:#13382f;padding:20px}
    .sidebar strong {display:block;color:var(--gold);font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:13px}
    .sidebar a {display:block;color:#d5e2d7;text-decoration:none;padding:8px 0;font-size:13px;border-top:1px solid #ffffff0b}
    .sidebar a:hover {color:var(--gold)}
    .special-tools {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}
    .special-tools label {font-size:13px;font-weight:700;color:#e7d8ad}
    .special-tools input {background:#09251f;color:#fff6e3;border:1px solid #70948375;border-radius:9px;font:inherit;padding:10px 12px;min-width:130px;max-width:220px}
    .special-tools .action {font-size:13px}
    .status-pill {display:inline-flex;border:1px solid #c1ad7950;padding:6px 11px;border-radius:22px;color:#ecd5a6;font-size:12px;font-weight:650}
    .theme-classic .table-wrap {background:radial-gradient(ellipse at center,#146634,#0a4d29 80%);border-radius:8px}
    .theme-classic .card.face-down {background:#1c4c9c}
    .theme-classic .card.face-down::before {background:repeating-linear-gradient(45deg,#dbebff32 0 2px,transparent 2px 10px),#2755a0}
    .theme-classic .brand-mark {background:#d2d3d6}
    .table-wrap:fullscreen {border-radius:0;overflow:auto;display:flex;flex-direction:column;justify-content:center;padding:25px;background:#123b31}
    .table-wrap:fullscreen .board-scroll {flex:1;min-height:420px}
    @media(max-width:900px){.article-layout{grid-template-columns:1fr}.sidebar{position:static;display:none}.site-nav{order:3;width:100%;justify-content:space-between}.topbar{gap:14px}}
    @media(max-width:580px){.site-nav a{font-size:11px;padding:8px}.content{margin-top:35px;font-size:14px}.article-hero h1{font-size:37px}.article-hero p{font-size:16px}.intro-text{font-size:13px}.special-tools input{min-width:100px}.difficulty a{flex:1;text-align:center;padding:10px 6px}.related-grid{grid-template-columns:1fr}}

    .table-bottom .table-label {margin:0 0 10px;font-size:10px;letter-spacing:.17em;font-weight:700;text-transform:uppercase;color:#b2d3bd}
