.arcade-home {
  margin-block-end: 4rem;
}
.arcade-intro {
  padding-block: 25px 18px;
}
.arcade-intro h1 {
  margin: 0 0 8px;
  font: 700 clamp(2rem, 5vw, 3.8rem)/1.08 var(--serif, Georgia, serif);
}
.arcade-intro p,
.arcade-challenge {
  color: #fff0d7;
}
.arcade-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.arcade-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 125px;
  padding: 14px 17px;
  text-align: start;
  background: #f8eed4;
  color: #213f34;
  border: 1px solid #c4b183;
  border-radius: 14px;
  cursor: pointer;
}
.arcade-entry:hover {
  background: #fff6de;
}
.arcade-entry strong,
.arcade-entry small,
.arcade-best {
  display: block;
}
.arcade-entry strong {
  font: 700 1.3rem/1.15 var(--serif, Georgia, serif);
}
.arcade-entry small {
  font: 0.9rem/1.3 system-ui;
  margin-block: 6px;
}
.arcade-best {
  font-weight: 700;
  color: #754150;
}
.arcade-entry-art {
  flex: 0 0 54px;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  background: #264d39;
  color: #f8dd97;
  font-size: 1.65rem;
  border-radius: 15px;
}
.arcade-entry:nth-child(2) .arcade-entry-art {
  background: #603346;
}
.arcade-entry:nth-child(3) .arcade-entry-art {
  background: #263c64;
}
.arcade-entry:nth-child(4) .arcade-entry-art {
  background: #6c4b36;
}
.arcade-dialog {
  width: min(100% - 20px, 630px);
  max-height: calc(100dvh - 28px);
  border: 1px solid #c5ad7e;
  border-radius: 16px;
  background: #f8edd1;
  color: #243d35;
  padding: 0;
  box-shadow: 0 20px 65px #0e192eb8;
}
.arcade-dialog::backdrop {
  background: #101c2cd9;
}
.arcade-dialog-inner {
  padding: clamp(12px, 4vw, 24px);
}
.arcade-dialog [hidden] {
  display: none !important;
}
.arcade-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.arcade-dialog h2 {
  margin: 0;
}
.arcade-dialog .outline {
  min-width: 44px;
  min-height: 44px;
  color: #243d35;
  border-color: #8d7861;
  background: #fff8e4;
}
.arcade-score {
  font-weight: 700;
  margin: 0.25em 0 0.5em;
}
#arcade-field {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  background: #20394a;
  border: 1px solid #6f8799;
  border-radius: 9px;
  touch-action: none;
}
#arcade-movement {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.arcade-memory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.arcade-memory button {
  min-height: 44px;
  aspect-ratio: 1;
  border: 1px solid #9e8055;
  background: #294c45;
  border-radius: 9px;
  color: #f1da99;
  font-size: 1.3rem;
  display: grid;
  place-content: center;
}
.arcade-memory button[data-up='true'] {
  background: #fff5dd;
}
.arcade-memory button[data-matched='true'] {
  opacity: 0.55;
}
.arcade-memory .felt-sprite {
  width: min(54px, 12vw);
  height: min(54px, 12vw);
  display: block;
}
.arcade-letter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 49px;
  align-items: center;
  margin: 8px 0;
}
.arcade-letter-line button,
.arcade-letter-line span {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid #a58c61;
  border-radius: 6px;
  background: #fff8e5;
  color: #203b33;
  font: 700 1.22rem system-ui;
  padding: 5px;
}
.arcade-letter-line button:disabled {
  opacity: 0.35;
}
@media (max-width: 620px) {
  .arcade-menu {
    grid-template-columns: 1fr;
  }
  .arcade-entry {
    min-height: 99px;
  }
}
