.game-shell{max-width:900px;margin:auto}.choice-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.color-peg{width:48px;height:48px;border:2px solid #647681;border-radius:50%;background:var(--peg,#fff);color:var(--ink,#fff);font-weight:800;font-size:19px;display:inline-grid;place-items:center;flex-shrink:0}.color-peg.selected{outline:3px solid #142f43;outline-offset:3px}.guess-input{display:flex;gap:12px;margin:18px 0}.guess-input .color-peg{width:58px;height:58px}.guess-history{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px}.guess-history li{display:flex;align-items:center;gap:10px;padding:12px;background:#f2f5f3;border-radius:12px;flex-wrap:wrap}.guess-history .color-peg{width:34px;height:34px;font-size:14px}.feedback{margin-left:auto;font-size:20px;letter-spacing:2px;color:#263e4a}.feedback small{font-size:12px;letter-spacing:0;display:block}.grid-scroll{overflow:auto;padding:5px;margin:-5px}.virus-grid{display:grid;grid-template-columns:repeat(var(--size),40px);gap:3px;width:max-content;margin:20px auto}.virus-cell{height:40px;border:1px solid #a5b9c0;background:#204758;color:#fff;border-radius:5px;font:750 18px Segoe UI;touch-action:manipulation}.virus-cell.open{background:#edf2ef;border-color:#d2ddda;color:#1f526e}.virus-cell.danger{background:#ffe2de;color:#a12522}.virus-cell.flag{color:#ffde85}.puzzle-grid{display:grid;grid-template-columns:repeat(var(--size),1fr);gap:5px;max-width:520px;margin:20px auto}.puzzle-tile{aspect-ratio:1;position:relative;min-width:0;border:1px solid #9cb1b6;border-radius:8px;background-color:#fff;cursor:pointer;font:750 20px Segoe UI;color:#173544}.puzzle-tile span{position:absolute;left:4px;top:4px;background:#ffffffed;border-radius:4px;padding:2px 6px}.puzzle-tile.empty{background:#e3eae7;border:1px dashed #acb9b5;cursor:default}.puzzle-tile.movable{box-shadow:inset 0 0 0 2px #ac570d}.puzzle-reference{width:100px;height:104px;object-fit:contain;display:block}.sol-scroll{overflow-x:auto;padding:5px;margin:-5px}.sol-board{min-width:630px;background:#e4efe8;padding:16px;border-radius:14px}.sol-top,.sol-piles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.sol-top{margin-bottom:22px}.sol-piles{align-items:start;min-height:360px}.card-slot{aspect-ratio:0.7;border:1px dashed #8ba598;border-radius:8px;display:flex;align-items:center;justify-content:center;background:transparent;color:#557263;font-weight:700;font-size:22px;min-width:0;width:100%;position:relative}.playing-card{aspect-ratio:0.7;background:#fff;border:1px solid #a6b4b3;border-radius:8px;box-shadow:0 2px 4px #1b392020;color:#193440;font-weight:750;font-size:20px;width:100%;text-align:left;padding:5px;display:flex;flex-direction:column;justify-content:flex-start}.playing-card.red{color:#b52f3e}.playing-card.back{background:#234c60;color:white;align-items:center;justify-content:center}.playing-card.selected{outline:3px solid #e8881a;outline-offset:-3px;background:#fff6e7}.playing-card .suit{align-self:center;font-size:32px;margin:auto}.sol-pile{position:relative;display:flex;flex-direction:column;min-height:122px}.sol-pile .playing-card:not(:last-child){margin-bottom:calc(-142.857% + 31px)}.sol-pile .playing-card:not(:last-child) .suit{visibility:hidden}.sol-label{font-size:11px;text-align:center;color:#4d655b;display:block;margin-top:6px}.stock-wrap,.foundation-wrap{min-width:0}.end-banner{font-weight:700;color:#2c6336;background:#edf5e9;padding:12px;border-radius:8px}.status.error{color:#a33428}@media(max-width:650px){.guess-input{gap:9px}.guess-input .color-peg{width:52px;height:52px}.choice-row{gap:8px}.color-peg{width:44px;height:44px}.guess-history li{gap:6px;padding:10px}.feedback{margin-left:0;flex-basis:100%}.virus-grid{grid-template-columns:repeat(var(--size),38px)}.virus-cell{height:38px}.puzzle-tile{font-size:16px}.sol-board{min-width:630px}.sol-piles{min-height:400px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
/* Vrstvení karet: pozdější karta musí překrýt předchozí rub. */
.playing-card{position:relative}.playing-card:disabled{opacity:1}.sol-pile .playing-card{flex-shrink:0}

/* Randomly assigned deck halves retain their back throughout the game. */
body[data-game="pasians"]{--card-back-color:#df7016}
.playing-card.back-blue{--card-back-color:#087fad}
.playing-card.back{background-color:var(--card-back-color);border:4px solid white;box-shadow:0 0 0 1px #a6b4b3,0 2px 4px #1b392020;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36' viewBox='0 0 28 36'%3E%3Cg fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 22c0-4-4-5-4-10a8 8 0 0 1 16 0c0 5-4 6-4 10zM10 25h8M11 28h6M12 31h4M14 1v1M2 7l2 1M24 8l2-1M1 16h3M24 16h3'/%3E%3C/g%3E%3C/svg%3E");background-size:28px 36px}
.playing-card.back::after{content:"";position:absolute;inset:2px;border:1px solid #ffffffb3;border-radius:3px;pointer-events:none}

.virus-cell{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:pan-x pan-y}
.virus-help{padding:14px;border:1px solid #c7dced;border-radius:10px;background:#e4effa;line-height:1.7}
