[data-app="solitaire"] .window-body { margin: 4px 1px 1px; padding: 2px; background: #c0c0c0; overflow: hidden; }
.sol-app { --sol-card-height: 126px; --sol-rank-size: 19px; --sol-pip-size: 24px; display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; background: #c0c0c0; container-type: inline-size; }
.sol-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 5px 6px 7px; flex-shrink: 0; border-bottom: 1px solid #808080; box-shadow: 0 1px #fff; position: relative; z-index: 2; }
.sol-button { border: 0; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; padding: 5px 11px; min-height: 29px; white-space: nowrap; font: 11px/1.5 var(--font); }
.sol-button:active:not(:disabled) { box-shadow: inset -1px -1px #fff, inset 1px 1px #000, inset -2px -2px #dfdfdf, inset 2px 2px #808080; padding: 6px 10px 4px 12px; }
.sol-button:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.sol-button:disabled { color: #808080; text-shadow: 1px 1px #fff; }
.sol-toolbar-spacer { flex: 1; min-width: 0; }
.sol-mode { display: flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.sol-mode select { border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; min-height: 27px; padding: 1px 3px; font-size: 11px; width: 75px; border-radius: 0; }
.sol-rules { padding: 12px 15px 14px; background: #ffffde; color: #1a1a1a; border-bottom: 1px solid #808080; font: 12px/1.65 Tahoma,Arial,sans-serif; overflow: auto; max-height: 72%; flex-shrink: 0; }
.sol-rules strong { font-size: 12px; }
.sol-rules p { margin: 7px 0 10px; }
.sol-rules .sol-button { margin-top: 2px; }
.sol-game-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #008000; scrollbar-color: #c0c0c0 #dfdfdf; }
.sol-board { position: relative; width: 100%; max-width: 880px; margin: 0 auto; padding: 20px 20px 30px; min-height: 100%; user-select: none; -webkit-user-select: none; }
.sol-toprow,.sol-tableau { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(3px,1.7cqw,16px); align-items: start; }
.sol-toprow { margin-bottom: 38px; }
.sol-pile { position: relative; height: var(--sol-card-height); min-width: 0; }
.sol-pile-caption { position: absolute; top: calc(var(--sol-card-height) + 6px); left: -6px; right: -6px; text-align: center; color: #c2e4b7; font: 10px/1.5 var(--font); white-space: nowrap; pointer-events: none; }
.sol-column { position: relative; min-height: var(--sol-card-height); min-width: 0; }
.sol-card { position: relative; display: block; width: 100%; height: var(--sol-card-height); background: #fffef8; border: 1px solid #111; border-radius: 3px; box-shadow: 1px 1px 0 #003f00; padding: 0; color: #161616; font-family: 'Times New Roman',Georgia,serif; text-shadow: none; text-align: left; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
button.sol-card { cursor: pointer; }
.sol-card-front:hover { background: #fff; }
.sol-card-front:focus-visible { outline: 2px solid #fff159; outline-offset: 1px; }
.sol-card-front.is-selected { background: #fff3aa; outline: 2px solid #ffe763; outline-offset: 0; }
.sol-card-front.is-hint-source { outline: 3px solid #fff5a0; outline-offset: 1px; }
.sol-red { color: #c00000; }
.sol-tableau-card { position: absolute; top: 0; left: 0; }
.sol-index { display: flex; align-items: center; gap: 2px; position: absolute; top: 3px; left: 4px; font-size: var(--sol-rank-size); line-height: 1; letter-spacing: -1px; }
.sol-index b { font-weight: 700; }
.sol-index>span { font-size: .9em; letter-spacing: 0; }
.sol-index-bottom { top: auto; left: auto; bottom: 3px; right: 4px; transform: rotate(180deg); }
.sol-pips { position: absolute; inset: 23% 23%; font-size: var(--sol-pip-size); }
.sol-pips>span { position: absolute; line-height: 1; transform: translate(-50%,-50%); }
.sol-ace-pip { font-size: calc(var(--sol-pip-size) * 1.8); }
.sol-simple-suit { display: none; position: absolute; inset: 22% 0; align-items: center; justify-content: center; font-size: calc(var(--sol-pip-size) * 1.5); line-height: 1; }
.sol-royal { position: absolute; inset: 20% 19%; overflow: hidden; }
.sol-royal svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.sol-card-back { background: #fff; padding: 4px; overflow: hidden; }
.sol-card-back:before { content: ''; position: absolute; inset: 4px; border: 1px solid #000080; background-color: #000080; background-image: repeating-linear-gradient(45deg,transparent 0 3px,#b9b9e7 3px 4px,transparent 4px 7px), repeating-linear-gradient(-45deg,transparent 0 3px,#b9b9e7 3px 4px,transparent 4px 7px); }
.sol-back-emblem { display: grid; place-items: center; width: 39%; aspect-ratio: 1; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #000080; border: 1px solid #e1ca55; outline: 2px solid #000080; color: #e8e0b2; font: 25px/1 'Times New Roman',serif; }
.sol-empty-slot { background: #007500; border: 1px solid #005800; box-shadow: inset 1px 1px #006000, 1px 1px #27a026; display: grid; place-items: center; color: #5aa84e; }
.sol-empty-slot:hover:not(:disabled) { background: #087d07; }
.sol-empty-slot:focus-visible { outline: 2px solid #fff159; outline-offset: 1px; }
.sol-empty-slot:disabled { color: #459b3d; cursor: default; }
.sol-empty-ace { font: 35px/1 Georgia,'Times New Roman',serif; opacity: .75; }
.sol-empty-king { font: 27px/1 Georgia,'Times New Roman',serif; opacity: .45; }
.sol-recycle-mark { font: 48px/1 Tahoma,Arial,sans-serif; opacity: .8; }
.sol-waste-card { position: absolute; top: 0; left: 0; }
.sol-fanned .sol-waste-card { left: calc(var(--fan-index) * 12%); }
.sol-fanned .sol-pile-caption { left: 15%; right: -15%; }
.sol-foundation.is-hint-destination:after,.sol-column.is-hint-destination:after,.sol-stock.is-hint-destination:after,.sol-pile.is-drop-target:after,.sol-column.is-drop-target:after { content: ''; position: absolute; inset: -3px; border: 2px dashed #ffed79; pointer-events: none; z-index: 30; border-radius: 4px; }
.sol-column.is-hint-destination:after,.sol-column.is-drop-target:after { top: auto; height: var(--sol-card-height); bottom: -3px; }
.sol-card.is-dragged { opacity: .35; }
.sol-drag-ghost { position: fixed; pointer-events: none; z-index: 10000; opacity: .95; user-select: none; }
.sol-ghost-card { position: absolute; left: 0; box-shadow: 3px 5px 0 #0004; }
.sol-table-signature { color: #49a23c; font: 11px/1.5 var(--font); text-align: center; padding-top: 42px; pointer-events: none; }
.sol-information { flex-shrink: 0; border-top: 1px solid #fff; padding: 4px 8px 5px; color: #222; }
.sol-message { font-size: 10px; line-height: 1.5; margin: 0 0 3px; min-height: 15px; }
.sol-stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; line-height: 1.5; color: #505050; font-variant-numeric: tabular-nums; }
.sol-win { display: flex; align-items: center; justify-content: center; gap: 18px; background: #ffffcf; border-bottom: 1px solid #808080; padding: 15px; flex-shrink: 0; font: 12px/1.4 Tahoma,Arial,sans-serif; }
.sol-win>span { font: 24px/1.3 Georgia,serif; color: #000080; letter-spacing: 2px; }
.sol-win strong { font-size: 18px; }
.sol-win p { margin: 3px 0 0; }
@container (max-width: 590px) {
  .sol-board { padding: 15px 12px 25px; }
  .sol-toprow { margin-bottom: 33px; }
  .sol-pile-caption { font-size: 9px; top: calc(var(--sol-card-height) + 5px); }
  .sol-toolbar { gap: 4px; padding: 5px; }
  .sol-button { padding-inline: 9px; min-height: 30px; }
  .sol-mode { gap: 4px; }
  .sol-mode>span { font-size: 9px; }
  .sol-table-signature { font-size: 10px; padding-top: 30px; }
  .sol-win { gap: 10px; padding: 12px; flex-wrap: wrap; }
  .sol-win>span { display: none; }
}
@container (max-width: 440px) {
  .sol-toolbar-spacer { display: none; }
  .sol-mode { margin-left: auto; }
  .sol-mode>span { font-size: 9px; }
  .sol-mode select { width: 65px; font-size: 10px; }
  .sol-button { padding-inline: 8px; font-size: 10px; min-height: 32px; }
  .sol-rules-button { margin-left: 0; }
  .sol-board { padding: 14px 7px 24px; }
  .sol-toprow,.sol-tableau { gap: 4px; }
  .sol-index { top: 3px; left: 3px; gap: 1px; letter-spacing: -.6px; }
  .sol-index-bottom { bottom: 3px; right: 3px; left: auto; top: auto; }
  .sol-pips,.sol-royal { display: none; }
  .sol-simple-suit { display: flex; }
  .sol-card-back:before { inset: 3px; }
  .sol-back-emblem { font-size: 19px; width: 45%; }
  .sol-empty-ace { font-size: 26px; }
  .sol-empty-king { font-size: 22px; }
  .sol-recycle-mark { font-size: 32px; }
  .sol-information { padding: 5px 6px; }
  .sol-message { font-size: 10px; }
  .sol-stats { font-size: 9px; }
  .sol-rules { padding: 11px 12px; font-size: 11px; }
  .sol-rules strong { font-size: 11px; }
}
@container (max-width: 330px) {
  .sol-button { padding-inline: 7px; }
  .sol-toolbar { gap: 3px; }
  .sol-mode select { width: 61px; }
  .sol-rules-button { padding-inline: 6px; }
  .sol-board { padding-inline: 5px; }
  .sol-toprow,.sol-tableau { gap: 3px; }
  .sol-pile-caption { font-size: 8px; }
  .sol-index-bottom { display: none; }
  .sol-simple-suit { inset: 25% 0 8%; }
}
