/* A compact paper card; the abstract motif contains no puzzle or reward art. */
body dialog.welcome-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-width: 420px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px 28px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #3d332b;
  background: #fffaf2;
  border: 1px solid #e1d4c4;
  border-radius: 28px;
  box-shadow: 0 24px 90px #3d332b33;
  font-family: Figtree, system-ui, sans-serif;
  text-align: center;
}
body dialog.welcome-dialog::before { display: none; }
.welcome-dialog::backdrop { background: #45392b80; backdrop-filter: blur(4px); }
.welcome-dialog[open] { animation: welcome-appear 200ms ease-out; }
body .welcome-dialog .welcome-eyebrow {
  margin: 0 0 4px;
  color: #746450;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}
body .welcome-dialog .welcome-title {
  margin: 0;
  color: #3d332b;
  font: 600 43px/1.14 Fraunces, Georgia, serif;
  letter-spacing: -1.4px;
}
body .welcome-dialog .welcome-summary {
  margin: 10px 0 0;
  color: #796954;
  font-size: 14px;
  line-height: 1.45;
}
.welcome-art {
  height: 116px;
  margin: 16px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  pointer-events: none;
}
.welcome-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 79px;
  height: 83px;
  flex: 0 0 auto;
  border: 1px solid #ffffffaa;
  border-radius: 18px;
  box-shadow: 0 8px 16px #63513c12;
}
.welcome-tile-word {
  z-index: 1;
  margin-right: -7px;
  color: #794733;
  background: #f0cdb9;
  transform: translateY(5px) rotate(-12deg);
  font: 500 37px/1 Fraunces, Georgia, serif;
  letter-spacing: -2px;
}
.welcome-tile-logic {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: repeat(2, 18px);
  gap: 5px;
  align-content: center;
  background: #dbe7cc;
  transform: translateY(-6px) rotate(3deg);
}
.welcome-grid-cell { background: #769164; border-radius: 4px; }
.welcome-grid-cell:nth-child(2), .welcome-grid-cell:nth-child(3) { background: #ffffffa8; }
.welcome-tile-picture {
  z-index: 1;
  margin-left: -7px;
  overflow: hidden;
  background: #e3d9ef;
  transform: translateY(6px) rotate(12deg);
}
.welcome-sun {
  position: absolute;
  top: 18px;
  right: 17px;
  width: 19px;
  height: 19px;
  background: #f8e8ae;
  border-radius: 50%;
}
.welcome-hill {
  position: absolute;
  width: 77px;
  height: 65px;
  left: -5px;
  bottom: -32px;
  background: #ac98c5;
  border-radius: 13px;
  transform: rotate(37deg);
}
.welcome-details { max-width: 315px; margin: 0 auto; }
body .welcome-dialog .welcome-break-title {
  margin: 0 0 9px;
  font: 500 23px/1.25 Fraunces, Georgia, serif;
  letter-spacing: -.35px;
}
body .welcome-dialog .welcome-choice,
body .welcome-dialog .welcome-reward {
  margin: 0;
  color: #6c5f4f;
  font-size: 14px;
  line-height: 1.5;
}
body .welcome-dialog .welcome-reward { margin-top: 12px; }
.welcome-actions {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}
body .welcome-dialog .welcome-action {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #705c42;
  border-radius: 14px;
  background: #705c42;
  color: #fffaf2;
  font: 600 16px/1.4 Figtree, system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
body .welcome-dialog .welcome-customize:hover { background: #5e4b34; }
body .welcome-dialog .welcome-play { background: transparent; color: #705c42; }
body .welcome-dialog .welcome-play:hover { background: #f1e8dc; }
body .welcome-dialog .welcome-action:focus-visible { outline: 3px solid #8163a3; outline-offset: 4px; }
body .welcome-dialog .welcome-promise {
  margin: 14px 0 0;
  color: #75644f;
  font-size: 11px;
  line-height: 1.5;
}
body dialog.welcome-dialog.welcome-fallback[open] {
  position: fixed;
  inset: 0;
  z-index: 10000;
  box-shadow: 0 0 0 100vmax #45392b80, 0 24px 90px #3d332b33;
}
@keyframes welcome-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 380px), (max-height: 680px) {
  body dialog.welcome-dialog { padding: 24px 22px 20px; }
  body .welcome-dialog .welcome-title { font-size: 39px; }
  .welcome-art { height: 98px; margin-top: 12px; margin-bottom: 14px; }
  .welcome-actions { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-dialog[open] { animation: none; }
  body .welcome-dialog .welcome-action { transition: none; }
}
