:root{--navy:#18243c;--muted:#778197;--blue:#5865e8;--bg:#f5f7fb;--line:#e8ecf3}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font-family:'DM Sans','Noto Sans KR',sans-serif}.top{height:72px;background:#fff;border-bottom:1px solid #e9edf4;display:flex;align-items:center}.nav{max-width:1120px;width:100%;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.logo{font-weight:800;font-size:22px;letter-spacing:-1px;text-decoration:none;color:var(--navy)}.logo b{color:var(--blue)}.nav-actions{display:flex;align-items:center;gap:18px}.nav-actions a{color:#657088;text-decoration:none;font-size:13px;font-weight:700}.wrap{max-width:1120px;margin:auto;padding:0 24px}.hero{margin:38px auto 20px}.eyebrow{display:inline-flex;align-items:center;color:var(--blue);background:#eef0ff;border-radius:99px;padding:7px 12px;font-size:12px;font-weight:800}.hero h1{font-size:clamp(31px,5vw,44px);letter-spacing:-1.8px;line-height:1.15;margin:15px 0 9px}.hero p{color:var(--muted);font-size:15px;line-height:1.7;margin:0}.play-card{margin:0 auto 24px;padding:20px 22px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 30px #2334580b}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.stats div{padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fafbfe}.stats span{display:block;color:var(--muted);font-size:11px;font-weight:700}.stats strong{display:block;margin-top:3px;font-size:17px}.action-row{display:flex;justify-content:flex-start;gap:9px;margin:13px 0 15px}.btn{border:0;border-radius:10px;padding:10px 16px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #5865e828}.btn.secondary{background:#eef0ff;color:#414fce}.btn:focus-visible,.card:focus-visible{outline:3px solid #9ca5ff;outline-offset:2px}.top-area{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,1vw,10px);align-items:start}.slot{min-width:0}.slot-label{display:block;height:19px;text-align:center;color:#778197;font-size:10px;font-weight:800;white-space:nowrap}.stock-slot{grid-column:1}.waste-slot{grid-column:2}.foundations{grid-column:4 / span 4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(4px,1vw,10px)}.slot-card{width:100%;min-height:60px;display:flex;align-items:flex-start}.card{position:relative;display:flex;width:100%;aspect-ratio:.72;min-height:55px;max-height:94px;border:1px solid #cdd4e2;border-radius:8px;background:#fff;color:#1e2a42;font:inherit;font-weight:800;cursor:pointer;overflow:hidden;box-shadow:0 2px 4px #17244710}.stock-card,.foundation-slot{align-items:center;justify-content:center}.stock-card{background:repeating-linear-gradient(135deg,#5865e8 0 5px,#727df0 5px 10px);border:3px solid #fff;outline:1px solid #5865e8;color:#fff;font-size:20px}.stock-card.recycle{background:#eef0ff;color:#5865e8;border:1px dashed #8c96e8;outline:0}.stock-card:disabled{cursor:default;opacity:.55}.foundation-slot{background:#f8f9fc;border:1px dashed #c9d1e1}.foundation-slot.empty::after{content:attr(data-symbol);font-size:20px;color:#cad1df}.foundation-slot.face-up{border-style:solid;background:#fff}.card.red{color:#d84f64}.card.black{color:#263550}.card .corner{position:absolute;left:4px;top:3px;display:flex;flex-direction:column;align-items:center;font-size:clamp(9px,1.5vw,13px);line-height:1.02}.card .pip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:clamp(15px,2.5vw,24px)}.card .corner-bottom{position:absolute;right:4px;bottom:3px;display:flex;flex-direction:column;align-items:center;font-size:clamp(8px,1.35vw,11px);line-height:1.02;transform:rotate(180deg)}.card.face-down{background:repeating-linear-gradient(45deg,#dbe0ff 0 4px,#6c78e7 4px 6px);border:3px solid #fff;outline:1px solid #5865e8;color:#fff;align-items:center;justify-content:center;font-size:19px}.tableau{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,1vw,10px);margin-top:18px;align-items:start}.pile{min-width:0;min-height:270px;display:flex;flex-direction:column;align-items:stretch}.pile .card+.card{margin-top:-40px}.pile .card.selected,.slot-card .card.selected,.foundation-slot.selected{outline:3px solid #5865e8;outline-offset:1px;z-index:2}.empty-pile{width:100%;aspect-ratio:.72;min-height:55px;border:1px dashed #c9d1e1;border-radius:8px;background:#f8f9fc;color:#c5ccda;font-size:20px;cursor:pointer}.status{margin:14px 0 0;padding:10px 13px;border-radius:11px;background:#f5f6fa;color:#5e6a80;font-size:13px;line-height:1.6;text-align:center}.guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:30px 0 54px}.guide-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px}.guide-card h2{font-size:15px;margin:0 0 8px}.guide-card p,.guide-card li{font-size:13px;line-height:1.7;color:#67738a}.guide-card p{margin:0}.guide-card ul{margin:0;padding-left:19px}.guide-card li+li{margin-top:5px}.footer{border-top:1px solid #e6eaf1;background:#fff;text-align:center;color:#8992a3;padding:25px;font-size:12px}@media(max-width:650px){.top{height:62px}.nav{padding:0 18px}.nav-actions{gap:12px}.nav-actions a{font-size:12px}.wrap{padding:0 13px}.hero{margin:30px auto 18px}.hero h1{letter-spacing:-1.2px}.play-card{padding:14px 10px;border-radius:16px}.stats{gap:5px}.stats div{padding:8px 7px}.stats strong{font-size:15px}.action-row{gap:6px}.btn{padding:10px 11px;font-size:12px}.top-area,.tableau{gap:4px}.slot-label{font-size:8px;height:17px}.card{border-radius:6px;min-height:48px}.card .corner{left:2px;top:2px;font-size:9px}.card .corner-bottom{right:2px;bottom:2px;font-size:8px}.card .pip{font-size:16px}.card.face-down{font-size:15px}.pile{min-height:220px}.pile .card+.card{margin-top:-39px}.empty-pile{min-height:48px}.status{font-size:12px;padding:9px}.guide{grid-template-columns:1fr;gap:10px;margin:24px 0 42px}.guide-card{padding:16px}}
/* Calm felt surface and clearer card faces */
body{background:#eaf0e9}.play-card{max-width:1000px;background:#f4f7f1;border-color:#d8e3d8}.top-area,.tableau{max-width:900px;margin-left:auto;margin-right:auto}.top-area{padding:10px 8px;background:#e7efe5;border:1px solid #d4e0d3;border-radius:14px}.tableau{padding:10px 8px;background:#e7efe5;border:1px solid #d4e0d3;border-radius:14px}.card.face-up{background:linear-gradient(145deg,#fffefa 0%,#f8f5eb 100%);border-color:#c9c8bc;box-shadow:0 2px 5px #273b2a24}.card.face-down{background:repeating-linear-gradient(135deg,#dce8dc 0 5px,#6e9b78 5px 7px);outline-color:#5b8767;border-color:#fff}.pile .card.dragging{opacity:.58;transform:scale(.98);box-shadow:0 8px 20px #18243c35}.card[draggable="true"]{cursor:grab}.card[draggable="true"]:active{cursor:grabbing}.empty-pile,.foundation-slot.empty,.free-cell.empty{background:#f1f5ed;border-color:#bccbbd}

/* Keep cards proportional; unused horizontal space is intentional. */
.card{width:100%;max-width:76px;min-height:0;max-height:none;height:auto;aspect-ratio:.72;margin-left:auto;margin-right:auto;box-sizing:border-box}
@media(max-width:650px){.card{max-width:100%;}}

/* Requested Klondike card styling for standalone QA */
body{background:#dce9df}.play-card{background:#edf4ee;border-color:#c9d9cc}.top-area,.tableau{background:#2f6b4c;border-color:#24583d}.slot-label{color:#edf6ee}.stock-card,.card.face-down{background:repeating-linear-gradient(135deg,#d7dade 0 5px,#7b818a 5px 8px);border:3px solid #f6f7f8;outline:1px solid #707780;color:#fff}.stock-card.recycle{background:#eceef1;color:#5f6670;border:1px dashed #9298a0;outline:0}.foundation-slot.empty{background:rgba(242,248,241,.1);border-color:rgba(237,246,237,.65)}.tableau .empty-pile{background:rgba(242,248,241,.08);border-color:rgba(237,246,237,.62);color:#e5f0e6}.slot-card .waste-empty-slot{width:100%;max-width:76px;height:auto;min-height:0;aspect-ratio:.72;margin:0 auto;background:rgba(242,248,241,.08);border-color:rgba(237,246,237,.62);color:#e5f0e6}.pips{position:absolute;inset:0;pointer-events:none}.card .pip{left:auto;top:auto;transform:translate(-50%,-50%);font-size:clamp(9px,1.3vw,13px);line-height:1;z-index:1}.card .pip.pip-ace{font-size:clamp(20px,2.8vw,27px)}.card .corner,.card .corner-bottom{z-index:2}.court-face{position:absolute;left:24%;right:24%;top:21%;bottom:21%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:12px;background:linear-gradient(145deg,#fffefa 0%,#f0eee5 100%);box-shadow:inset 0 0 0 2px #ffffffa8;z-index:1}.court-rank{font-family:Georgia,serif;font-size:clamp(17px,2.6vw,24px);font-weight:800;line-height:1}.court-suit{font-size:clamp(12px,1.8vw,16px);line-height:1;margin-top:2px}.nav-actions .qa-label{color:#657088;font-size:12px;font-weight:800}@media(max-width:650px){.card .pip{font-size:12px}.card .pip.pip-ace{font-size:22px}.court-rank{font-size:18px}.court-suit{font-size:12px}}
/* Difficulty quotas and compact top controls */
.difficulty-row{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}.difficulty-row .action-row{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;flex-wrap:nowrap}.difficulty-row .btn{padding:9px 10px;white-space:nowrap;font-size:12px}.difficulty-row #giveup-btn{background:#f5e7e8;color:#92363e;border-color:#e8c8cb}.redeal-count{display:block;min-height:14px;margin-top:4px;text-align:center;color:#eaf3e8;font-size:9px;font-weight:800;white-space:nowrap}.stock-slot{align-items:center}
@media(max-width:650px){.difficulty-row{gap:6px;justify-content:flex-start}.difficulty-row select{min-width:75px;padding:8px 18px 8px 7px}.difficulty-row .action-row{flex:1 0 100%;justify-content:space-between;gap:5px;margin:0}.difficulty-row .btn{flex:1 1 auto;padding:8px 6px;font-size:10px}.redeal-count{font-size:8px}}
@media(max-width:380px){.difficulty-row .btn{padding:8px 4px;font-size:9px}}

/* Gold highlight for the card suggested by the hint */
.card.hint-target{border:3px solid #ffc928!important;outline:2px solid rgba(255,201,40,.9);outline-offset:1px;box-shadow:0 0 0 4px rgba(255,201,40,.34),0 0 18px rgba(255,201,40,.9)!important;z-index:999!important;animation:hint-pulse 1s ease-in-out infinite}
@keyframes hint-pulse{0%,100%{filter:brightness(1);box-shadow:0 0 0 3px rgba(255,201,40,.28),0 0 12px rgba(255,201,40,.68)!important}50%{filter:brightness(1.08);box-shadow:0 0 0 5px rgba(255,201,40,.55),0 0 22px rgba(255,201,40,1)!important}}
@media(prefers-reduced-motion:reduce){.card.hint-target{animation:none}}

.card .court-art{position:absolute;left:9%;top:7%;width:82%;height:86%;z-index:1;pointer-events:none;filter:drop-shadow(0 1px 0 rgba(25,28,35,.12))}.card .corner,.card .corner-bottom{z-index:3}@media(max-width:650px){.card .court-art{left:9%;top:8%;width:82%;height:84%}}
