.cp-shell{width:min(100%,760px);margin:auto;color:#f4edda}
.cp-button{border:1px solid #ffffff55;border-radius:8px;background:#344c59;color:#fff4dd;padding:10px 13px;min-height:44px;font:700 12px/1.4 var(--font);cursor:pointer}
.cp-button:disabled{opacity:.4;cursor:default}.cp-button:hover:not(:disabled){background:#edcc6c;color:#243344}
.cp-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.cp-note{font-size:12px;line-height:1.6;margin:16px 0;color:#c2d3cd}
.cp-status{font-size:14px;font-weight:750;line-height:1.5;text-align:center;margin-bottom:18px}
.cp-result{border:1px solid #ffffff40;background:#ffffff0c;border-radius:10px;padding:20px;text-align:center;margin-top:18px}.cp-result h2{font-size:21px;margin-bottom:12px}
.cp-readouts{display:flex;justify-content:space-between;gap:16px;font-size:12px;margin:6px 0 22px}.cp-readouts span{display:flex;flex-direction:column;gap:8px}.cp-readouts strong{font-size:28px}
.fc-shell{--fc-height:clamp(56px,13vw,92px);--fc-fan:26px}
.fc-labels{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px;color:#c0d2c9}
.fc-top{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-bottom:25px}
.fc-top-slot{min-width:0;height:var(--fc-height);position:relative}
.fc-card,.fc-found,.fc-empty{height:var(--fc-height);min-width:0;width:100%;border:1px solid #dcd2bd;border-radius:5px;padding:3px;background:#fff1d7;color:#203342;font:700 18px/1 Georgia,serif;position:relative;box-shadow:1px 2px 0 #071e17}
.fc-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;touch-action:manipulation}.fc-card span{align-self:center;font-size:28px}.fc-card.red,.fc-found.red{color:#b03748}
.fc-card.chosen{outline:3px solid #edcc6c;outline-offset:1px;z-index:60}
.fc-empty,.fc-found{background:#123228;border:1px dashed #779a86;color:#cadbce;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.fc-found.red{color:#eab1a9}
.fc-top-slot.legal,.fc-found.legal,.fc-column.legal{outline:2px solid #aedb84;outline-offset:1px;border-radius:5px}
.fc-columns{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.fc-column{position:relative;min-width:0;height:calc((var(--cards) - 1) * var(--fc-fan) + var(--fc-height))}
.fc-column>.fc-card{position:absolute;top:calc(var(--at) * var(--fc-fan));left:0}.fc-column-target{position:absolute;top:0;left:0}
.yacht-dice{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.yacht-die{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-width:0;min-height:96px;padding:12px 3px;border:2px solid #d5cdbb;border-radius:12px;background:#fff3d9;color:#233342;box-shadow:0 4px 0 #152130;touch-action:manipulation}
.yacht-die b{font:800 37px/1 var(--font)}.yacht-die small{font-size:10px}.yacht-die.held{background:#edcc6c;border-color:#fff3d9;box-shadow:0 0 0 2px #edcc6c}.yacht-die:disabled{opacity:1;cursor:default}
.yacht-scorecard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.yacht-category{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffffff40;border-radius:8px;background:#344759;color:#f9edd3;padding:12px;min-height:48px;text-align:left;font:12px var(--font)}
.yacht-category strong{font-size:17px}.yacht-category.used{background:#243442;color:#a5b4b9}.yacht-category:disabled:not(.used){opacity:.45}.yacht-category.chosen{outline:2px solid #edcc6c;background:#49534f}.yacht-bonuses{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:12px;margin:20px 0;line-height:1.7}
.bg-score{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:18px}.bg-score>span{display:flex;flex-direction:column;gap:7px}.bg-score>span:last-child{text-align:right}.bg-score b{font-size:11px;color:#c4d2d2}
.bg-board{border:5px solid #996c44;border-radius:9px;background:#dfc99e;padding:8px 5px;box-shadow:0 5px 0 #182635}
.bg-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 20px repeat(6,minmax(0,1fr));gap:2px}
.bg-row+.bg-row{margin-top:10px}.bg-point{position:relative;min-width:0;width:100%;height:185px;background:transparent;border:0;padding:0;color:#182c37}
.bg-point::before{content:'';position:absolute;top:12px;left:0;width:100%;height:85%;clip-path:polygon(0 0,100% 0,50% 100%);background:#6e4b35}
.bg-point.cool::before{background:#627a77}.bg-point.bottom::before{top:auto;bottom:12px;transform:rotate(180deg)}
.bg-point small{position:absolute;top:0;left:0;width:100%;font-size:10px;line-height:1;font-weight:800}.bg-point.bottom small{top:auto;bottom:0}
.bg-checkers{position:absolute;top:14px;left:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:1px;pointer-events:none}
.bg-point.bottom .bg-checkers{top:auto;bottom:14px;flex-direction:column-reverse}
.bg-checker{display:block;width:90%;max-width:29px;aspect-ratio:1;border-radius:50%;border:2px solid #b6a88d;box-shadow:0 1px 1px #0008;background:#fff0cd}.bg-checker.black{background:#243446;border-color:#516373}
.bg-stack-count{font-size:12px;background:#edcc6c;color:#233342;padding:2px 4px;border-radius:4px}
.bg-point:disabled{opacity:1;cursor:default}.bg-point.chosen{outline:2px solid #edcc6c;border-radius:5px}.bg-point.legal{outline:3px solid #164d4b;background:#83c5b455;border-radius:5px}
.bg-divider{background:#996c44}.bg-dice{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:16px 0}.bg-die{display:grid;place-items:center;width:46px;height:46px;background:#fff2d7;color:#243344;border:2px solid #f8e5b7;border-radius:9px;font:800 25px var(--font)}.bg-die.chosen{outline:3px solid #edcc6c;outline-offset:2px}.bg-die:disabled{opacity:1;cursor:default}
.cp-button:focus-visible,.fc-card:focus-visible,.fc-found:focus-visible,.fc-empty:focus-visible,.yacht-die:focus-visible,.yacht-category:focus-visible,.bg-point:focus-visible,.bg-die:focus-visible{outline:3px solid #edcc6c;outline-offset:2px;z-index:70}
@media(max-width:650px){
 [data-game="freecell"] .board-stage,[data-game="yahtzee"] .board-stage,[data-game="backgammon"] .board-stage{padding:16px 7px}
 .fc-shell{--fc-height:clamp(52px,15vw,80px);--fc-fan:22px}.fc-top,.fc-columns{gap:4px}.fc-card{font-size:12px;gap:2px;padding:3px 2px}.fc-card span{font-size:20px}.fc-found,.fc-empty{font-size:18px}.fc-labels{font-size:10px}
 .cp-button{font-size:11px;padding:10px}.cp-status{font-size:12px}.cp-note{font-size:11px}.yacht-dice{gap:6px}.yacht-die{min-height:77px;gap:7px;padding:10px 2px;border-radius:8px}.yacht-die b{font-size:29px}.yacht-die small{font-size:8px}
 .yacht-category{padding:10px 8px;font-size:11px}.yacht-bonuses{font-size:11px;gap:6px}.bg-board{border-width:3px;padding:7px 3px}.bg-row{grid-template-columns:repeat(6,minmax(0,1fr)) 12px repeat(6,minmax(0,1fr));gap:1px}.bg-point{height:145px}.bg-point small{font-size:8px}.bg-checker{border-width:1px}.bg-score{font-size:11px}.bg-score b{font-size:10px}.bg-stack-count{font-size:10px}.bg-point.legal{outline-width:2px}
}
/* Every covered FreeCell card keeps both rank and suit visible. */
.fc-card{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:1px}.fc-card span{align-self:flex-start;font-size:20px;line-height:1}
@media(max-width:650px){.fc-card span{font-size:13px}.fc-card b{font-size:12px}}
