/* Hidden solitaire page. Green and yellow, same family as the van and logos. */
body.boe-solitaire {
  margin: 0;
  background: #f6f3e6;
  color: #1a1a1a;
  font-family: Montserrat, "Birdseye", sans-serif;
}
.boe-sol-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 4px solid #e4ef2a;
}
.boe-sol-top img {
  width: 48px;
  height: auto;
  display: block;
}
.boe-sol-top h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-family: Montserrat, sans-serif;
}
.boe-sol-top p {
  margin: 2px 0 0;
  font-size: 13px;
}
.boe-sol-top a {
  color: #146b32;
  font-weight: 700;
}
.boe-sol-rules {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 13px;
  line-height: 1.35;
}
.boe-sol-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 14px 10px;
}
.boe-sol-bar button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  background: #e4ef2a;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  min-height: 40px;
  padding: 6px 12px;
  cursor: pointer;
}
.boe-sol-bar button:disabled {
  opacity: 0.45;
  cursor: default;
}
.boe-sol-bar button:focus-visible,
.boe-card:focus-visible,
.boe-slot:focus-visible {
  outline: 3px solid #146b32;
  outline-offset: 2px;
}
.boe-sol-note {
  font-size: 13px;
}
.boe-board {
  margin: 0 8px 16px;
  padding: 10px 8px 18px;
  background: #146b32;
  border-radius: 12px;
  touch-action: none;
}
.boe-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}
.boe-foundations {
  grid-column: 4 / span 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.boe-slot,
.boe-card {
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 6px;
  box-sizing: border-box;
}
.boe-slot {
  border: 2px dashed rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.boe-pile {
  position: relative;
  min-height: 18vw;
}
.boe-card {
  display: block;
  padding: 2px 3px 0;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  text-align: left;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.boe-card.red { color: #c01919; }
.boe-card.down,
.boe-slot.boe-back {
  background: #c41218;
  border: 2px solid #fff6e6;
  color: transparent;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.boe-slot.boe-back {
  position: relative;
  box-shadow: inset 0 0 0 4px #1a3a78, 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.boe-slot.boe-back::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #e4ef2a;
  border: 2px solid #fff6e6;
  box-sizing: border-box;
}
.boe-card.selected {
  outline: 3px solid #e4ef2a;
  outline-offset: 1px;
  z-index: 3;
}
.boe-card .rank,
.boe-card .suit {
  display: block;
  font-weight: 800;
  line-height: 1;
}
.boe-card .rank { font-size: 20px; }
.boe-card .suit { font-size: 18px; }
.boe-pile .boe-card { position: absolute; left: 0; right: 0; width: auto; height: auto; aspect-ratio: auto; min-height: 0; }
.boe-pile .boe-card.down { padding: 0; border-width: 1px; }
.boe-waste-fan { position: relative; }
.boe-ghost {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  width: 48px;
  opacity: 0.92;
}
.boe-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.boe-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 16, 0.72);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.boe-overlay[hidden] { display: none; }
.boe-sheet {
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fffef6;
  color: #1a1a1a;
  border: 3px solid #e4ef2a;
  border-radius: 14px;
  padding: 16px 16px 20px;
  box-sizing: border-box;
}
.boe-sheet h2 {
  margin: 0 0 8px;
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  color: #146b32;
}
.boe-sheet p { margin: 0 0 10px; line-height: 1.4; }
.boe-prize {
  background: #f4f8d8;
  border-left: 4px solid #146b32;
  padding: 8px 10px;
  margin: 0 0 10px;
}
.boe-limit {
  font-size: 14px;
}
.boe-sheet label {
  display: block;
  font-weight: 700;
  margin: 8px 0 4px;
}
.boe-sheet input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
}
.boe-sheet input[aria-invalid="true"] { border-color: #c01919; }
.boe-field-error { color: #c01919; font-size: 13px; min-height: 1.2em; margin: 2px 0 0; }
.boe-sheet button.primary {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  background: #e4ef2a;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  min-height: 46px;
  padding: 8px 14px;
  width: 100%;
  cursor: pointer;
}
.boe-code {
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: 800;
  background: #146b32;
  color: #fff;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  margin: 8px 0;
}
@media (max-width: 430px) {
  .boe-card .rank { font-size: 17px; }
  .boe-card .suit { font-size: 15px; }
}
@media (min-width: 800px) {
  .boe-overlay { align-items: center; }
  .boe-board { margin: 0 auto 24px; max-width: 920px; }
  .boe-sol-top, .boe-sol-rules, .boe-sol-bar { max-width: 920px; margin-left: auto; margin-right: auto; }
  .boe-card .rank { font-size: 22px; }
  .boe-card .suit { font-size: 20px; }
}
