:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text, #e4ebec);
  background: var(--background, #202932);
  font-synthesis: none;
  --card-width: clamp(38px, 9.4vw, 112px);
  --card-height: calc(var(--card-width) * 1.43);
  --step: clamp(20px, 2.8vw, 31px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#app {
  height: 100vh;
  height: 100dvh;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
body,
body * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--selection);
  outline-offset: 4px;
}
button[hidden],
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.home-header {
  max-width: 1320px;
  margin: auto;
  width: 100%;
  flex-shrink: 0;
  padding: max(10px, env(safe-area-inset-top)) 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 36px;
  letter-spacing: -1.5px;
}
.brand-title {
  font: inherit;
  letter-spacing: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--on-accent);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 32px;
  line-height: 1;
}
.brand-detail {
  font:
    9px/1.7 ui-sans-serif,
    system-ui;
  letter-spacing: 1.8px;
  margin-left: 12px;
  color: var(--muted);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  background: var(--hover);
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.subtle {
  background: transparent;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover {
  background: var(--hover);
}
.theme-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  height: 43px;
}
.theme-control::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
  pointer-events: none;
}
.theme-control select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding-right: 22px;
  font-size: 12px;
  cursor: pointer;
  max-width: 110px;
}
.theme-control select:focus-visible {
  outline: none;
}
.theme-control:has(select:focus-visible) {
  border-color: var(--green);
}
.theme-control option {
  background: var(--surface);
  color: var(--text);
}
.theme-dot {
  width: 13px;
  height: 13px;
  background: var(--green);
  border: 3px solid var(--selected);
  border-radius: 50%;
}
.game-main {
  max-width: 1320px;
  margin: auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 24px 0;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 2.3px;
  color: var(--muted);
  margin: 0 0 10px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0;
}
h1 {
  font-size: 31px;
}
h2 {
  font-size: 29px;
}
.game-surface {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--table);
  overflow: hidden;
  box-shadow: 0 10px 40px #00000009;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--board-edge);
  background: var(--background);
  gap: 16px;
}
.game-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.mode-label {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 2px;
}
.game-stats {
  display: flex;
  gap: 27px;
}
.game-stats > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.game-stats small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.game-stats b {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.board {
  --fan-font: clamp(11px, calc(var(--card-width) * 0.28), 24px);
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background-image: radial-gradient(var(--dots) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
}
.top-row,
.tableau-row {
  display: grid;
  grid-template-columns: repeat(7, var(--card-width));
  justify-content: space-between;
  gap: 0;
}
.top-row {
  flex-shrink: 0;
  margin-bottom: var(--row-gap, 24px);
}
.tableau-row {
  flex: 1;
  min-height: 0;
}
.stock-area {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
}
.foundation-area {
  grid-column: 4/8;
  display: flex;
  justify-content: space-between;
}
.pile {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  border-radius: 8px;
}
.card,
.empty-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--card-height);
  border-radius: 7px;
}
.card {
  border: 1px solid #d7d8d0;
  background: #fffdf6;
  color: #293d3e;
  padding: 0;
  box-shadow: 0 2px 3px #0003;
  touch-action: none;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.card:hover:not(:disabled) {
  box-shadow: 0 3px 9px #0005;
}
.card.red {
  color: #ac4d4b;
}
.card:disabled {
  opacity: 1;
}
.corner {
  position: absolute;
  top: 5%;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Georgia, serif;
  font-size: clamp(12px, calc(var(--card-width) * 0.3), 30px);
  line-height: 1;
}
.corner b {
  font-weight: 400;
}
.corner > span {
  font-size: 0.85em;
}
.fan-covered .corner {
  right: auto;
  flex-direction: column;
  font-size: var(--fan-font);
  gap: 3px;
}
.card-center {
  position: absolute;
  inset: 28% 10% 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  font:
    calc(var(--card-width) * 0.78)/1 Georgia,
    serif;
}
.card.back {
  background: var(--surface);
  padding: 5px;
  border-color: var(--board-edge);
}
.back-pattern {
  position: absolute;
  inset: 5px;
  border: 1px solid var(--green);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--green);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--green) 13%, transparent) 5px,
      color-mix(in srgb, var(--green) 13%, transparent) 6px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--green) 13%, transparent) 5px,
      color-mix(in srgb, var(--green) 13%, transparent) 6px
    );
}
.back-pattern > span {
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  outline: 4px solid var(--surface);
  border-radius: 50%;
  height: 42%;
  width: 60%;
  font-size: clamp(14px, calc(var(--card-width) * 0.34), 37px);
  background: var(--surface);
}
.stock-card {
  box-shadow:
    2px 2px 0 var(--board),
    3px 3px 0 var(--board-edge),
    4px 4px 0 var(--board),
    5px 5px 0 var(--board-edge);
}
.empty-slot {
  background: color-mix(in srgb, var(--board) 15%, transparent);
  border: 1px dashed var(--board-edge);
  color: var(--board-hint);
  display: grid;
  place-items: center;
  font:
    40px Georgia,
    serif;
  opacity: 0.65;
}
.waste-empty {
  opacity: 0.22;
}
.recycle svg {
  width: 27px;
  height: 27px;
}
.pile-caption {
  position: absolute;
  top: calc(var(--card-height) + 8px);
  left: 0;
  width: 100%;
  font-size: clamp(5px, calc(var(--card-width) * 0.14), 8px);
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.waste-pile {
  left: clamp(8px, 1vw, 14px);
}
.waste-pile .card {
  left: calc(var(--fan) * (11% + var(--fan-font) + 2px));
}
.card.dealing {
  visibility: hidden;
}
.deal-flight,
.deal-underlay {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
}
.deal-flight .card,
.deal-underlay .card {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 5px 12px #0003;
  transition: none;
}
.deal-flight .deal-back {
  transform: rotateY(180deg);
}
.tableau {
  height: 100%;
  min-height: 0;
}
.tableau .card {
  top: var(--offset, 0px);
}
.king-placeholder {
  font:
    22px Georgia,
    serif;
  opacity: 0.45;
}
.card.dragging {
  opacity: 0.18;
}
.drop-target {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.hint {
  animation: hint-glow 1s ease-in-out 3;
  outline: 3px solid var(--selection);
  outline-offset: 3px;
}
.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px #0004);
}
.drag-ghost .card {
  width: 100%;
}
.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-top: 1px solid var(--board-edge);
  background: var(--background);
  gap: 10px;
}
.table-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.tiny-suit {
  font-size: 17px;
  color: var(--green);
  font-style: normal;
}
.play-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.play-controls .button {
  border-color: transparent;
  padding: 9px 12px;
  font-size: 12px;
}
.play-controls .icon-button {
  border: 0;
  width: 34px;
  height: 34px;
}
.control-divider {
  height: 21px;
  width: 1px;
  background: var(--line);
  margin: 0 3px;
}
.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  gap: 16px;
  flex-shrink: 0;
  padding: 6px 2px;
}
.game-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--progress);
  flex-shrink: 0;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-size: 11px;
  padding: 5px;
  color: var(--muted);
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.text-button:hover {
  color: var(--text);
}
.bottom-caption {
  font:
    italic 12px Georgia,
    serif;
  color: var(--muted);
  opacity: 0.65;
  text-align: center;
  flex-shrink: 0;
  margin: 0 0 max(4px, env(safe-area-inset-bottom));
}
dialog {
  width: min(500px, calc(100vw - 30px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px #0004;
}
dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(4px);
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
dialog .eyebrow {
  font-size: 8px;
  margin-bottom: 13px;
  padding-right: 25px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 0;
  width: 30px;
  height: 30px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.deal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.deal-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 22px 10px;
  gap: 9px;
}
.deal-option.active {
  border-color: var(--green);
  background: var(--selected);
  box-shadow: 0 0 0 1px var(--green);
}
.deal-symbol {
  font:
    25px Georgia,
    serif;
  color: var(--green);
}
.deal-option strong {
  font-size: 13px;
  font-weight: 600;
}
.deal-option > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.settings-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
}
.settings-section h3 {
  font-size: 13px;
  font-weight: 600;
}
.personal-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.personal-stats > span {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
}
.personal-stats b {
  font:
    24px Georgia,
    serif;
  color: var(--text);
}
.instructions p {
  margin: 20px 0;
}
.instructions strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}
.instructions .keyboard-help {
  font-size: 11px;
}
.win-mark {
  font:
    36px Georgia,
    serif;
  color: var(--green);
  text-align: center;
  margin: 28px 0 15px;
  letter-spacing: 9px;
}
.win-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  font:
    clamp(22px, 5vw, 30px) Georgia,
    serif;
  margin: 25px 0;
}
.win-stats span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.win-stats small {
  font: 9px system-ui;
  letter-spacing: 2px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--text);
  color: var(--background);
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 12px;
  max-width: calc(100vw - 30px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 200;
  box-shadow: 0 6px 25px #0002;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes hint-glow {
  50% {
    box-shadow: 0 0 20px var(--selection);
  }
}
@media (min-width: 1300px) {
  .board {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 900px) {
  .home-header {
    padding: max(8px, env(safe-area-inset-top)) 18px 8px;
  }
  .game-main {
    padding: 8px 14px 0;
  }
  .board {
    padding: 12px 14px;
  }
  .game-stats {
    gap: 15px;
  }
  .game-stats > span {
    flex-direction: column;
    gap: 4px;
  }
  .brand-detail {
    display: none;
  }
  .table-note {
    font-size: 12px;
  }
  .game-toolbar {
    padding: 8px 14px;
  }
}
@media (max-width: 600px) {
  :root {
    --card-width: calc((100vw - 54px) / 7);
    --step: clamp(20px, 5vw, 26px);
  }
  .home-header {
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    gap: 8px;
  }
  .brand {
    font-size: 30px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 27px;
    border-radius: 10px;
  }
  .header-controls {
    gap: 8px;
  }
  .header-controls .button {
    padding: 9px;
  }
  .header-controls .button span {
    display: none;
  }
  .theme-control {
    height: 36px;
    padding: 0 7px;
    gap: 4px;
  }
  .theme-control select {
    font-size: 11px;
    max-width: 80px;
  }
  .header-controls > .icon-button {
    width: 34px;
    height: 34px;
  }
  .game-main {
    padding: 6px 8px 0;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .game-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .game-label {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .mode-label {
    font-size: 9px;
    padding-left: 7px;
    margin: 0;
  }
  .game-stats {
    gap: 12px;
  }
  .game-stats small {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .game-stats b {
    font-size: 10px;
  }
  .board {
    padding: 12px 10px;
  }
  .stock-pile {
    left: -6px;
  }
  .waste-pile {
    left: 2px;
  }
  .card,
  .empty-slot {
    border-radius: 5px;
  }
  .card.back {
    padding: 3px;
  }
  .back-pattern {
    inset: 3px;
    border-radius: 3px;
  }
  .back-pattern > span {
    outline-width: 2px;
  }
  .corner {
    left: 7%;
    right: 7%;
  }
  .fan-covered .corner {
    right: auto;
    font-size: var(--fan-font);
    gap: 1px;
  }
  .waste-pile .card {
    left: calc(var(--fan) * (11% + var(--fan-font) + 2px));
  }
  .empty-slot {
    font-size: 26px;
  }
  .game-bottom {
    padding: 6px 8px;
  }
  .table-note {
    font-size: 10px;
    max-width: 130px;
    line-height: 1.5;
    gap: 6px;
  }
  .play-controls {
    gap: 3px;
  }
  .play-controls .button {
    padding: 9px 7px;
    font-size: 11px;
    gap: 5px;
  }
  .play-controls svg {
    width: 17px;
    height: 17px;
  }
  .control-divider {
    margin: 0 2px;
  }
  .game-footer {
    padding: 4px 2px max(4px, env(safe-area-inset-bottom));
    gap: 8px;
    font-size: 9px;
  }
  .saved-label {
    display: none !important;
  }
  .bottom-caption {
    display: none;
  }
  .game-surface {
    border-radius: 12px;
  }
  dialog {
    padding: 30px 23px;
  }
  h2 {
    font-size: 27px;
  }
  .deal-option > span:last-child {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .home-header {
    padding: max(6px, env(safe-area-inset-top)) 10px 6px;
  }
  .brand {
    font-size: 26px;
  }
  .header-controls {
    gap: 5px;
  }
  .header-controls > .button {
    display: none;
  }
  .game-stats {
    gap: 7px;
  }
  .game-stats small {
    font-size: 5px;
  }
  .game-label {
    gap: 4px;
  }
  .table-note {
    max-width: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tableau .card:not(:last-child) .corner {
  top: 2px;
  font-size: var(--stack-label-size, 16px);
}

.bottom-caption a {
  color: inherit;
  text-underline-offset: 3px;
  margin-left: 5px;
  display: inline-block;
  padding: 8px 0;
}
.bottom-caption a:hover {
  color: var(--text);
}
.bottom-caption a:focus-visible {
  outline: 3px solid var(--selection);
  outline-offset: 4px;
}

.solvable-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.solvable-option input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.solvable-option span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.solvable-option strong {
  font-size: 13px;
  font-weight: 600;
}
.solvable-option small {
  color: var(--muted);
  font-size: 11px;
}
dialog .deal-explanation,
dialog .stats-explanation {
  font-size: 11px;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.result-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.result-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.result-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.result-list p {
  font-size: 11px;
}
.result-list .button {
  font-size: 11px;
  padding: 8px 12px;
}
.game-footer {
  flex-wrap: wrap;
}

.game-bottom > .button {
  flex-shrink: 0;
  padding: 9px 12px;
  font-size: 12px;
}
.play-controls {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .brand-title {
    font-size: inherit;
  }
  .header-controls > #install {
    display: none;
  }
  .game-bottom > .button {
    padding: 9px 8px;
    font-size: 11px;
    gap: 4px;
  }
}
@media (max-height: 700px) {
  .bottom-caption {
    display: none;
  }
}
@media (min-width: 480px) and (max-height: 520px) and (orientation: landscape) {
  .home-header {
    padding: 4px 14px;
  }
  .brand {
    font-size: 27px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
  .brand-detail {
    display: none;
  }
  .header-controls .button {
    padding: 6px 10px;
  }
  .theme-control {
    height: 32px;
  }
  .header-controls > .icon-button {
    width: 32px;
    height: 32px;
  }
  .game-main {
    padding: 4px 10px 0;
  }
  .game-toolbar {
    padding: 5px 12px;
  }
  .game-stats > span {
    flex-direction: row;
  }
  .board {
    display: grid;
    grid-template-columns: calc(var(--card-width) * 3 + 12px) 1fr;
    gap: 18px;
    padding: 8px 12px;
  }
  .top-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }
  .stock-area {
    justify-content: flex-start;
    gap: 10px;
  }
  .stock-pile,
  .waste-pile {
    left: 0;
  }
  .foundation-area {
    display: grid;
    grid-template-columns: repeat(2, var(--card-width));
    row-gap: 10px;
  }
  .game-bottom {
    padding: 4px 10px;
  }
  .game-footer {
    padding: 2px 0 max(2px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 360px) and (orientation: landscape) {
  .game-footer {
    display: none;
  }
  .home-header {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

.collection-link {
  color: var(--green);
  text-underline-offset: 3px;
}

.update-banner {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
}
.update-banner .button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}
