:root {
  --paper: #f6e9d6;
  --ink: #293b39;
  --accent: #8d3a45;
}
.board {
  background-image: url("./stage.webp");
}
.eye {
  fill: #f5d699;
}
.story-strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 -4px;
}
.frame-mark {
  min-height: 48px;
  width: min(31%, 130px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 1px;
  overflow: hidden;
  background: #f2dbb1;
  border: 1px solid #a58d68;
  font-size: 13px;
}
.frame-mark svg {
  width: 100%;
  height: 48px;
}
.frame-mark span {
  position: absolute;
  left: 2px;
  bottom: 1px;
  font-size: 11px;
  color: #462d27;
  background: #ffe6b9;
  padding: 1px 3px;
  border-radius: 3px;
}
.frame-mark:disabled {
  opacity: 0.7;
}
.frame-mark[aria-current] {
  outline: 2px solid #8d3a45;
  outline-offset: 1px;
}
.frame-mark i {
  color: #977c60;
  font-weight: 800;
}
@media (max-width: 600px) {
  .frame-mark {
    min-height: 44px;
  }
}
@media (min-aspect-ratio: 7/4) and (max-height: 570px) {
  main {
    grid-template-rows: auto auto minmax(0, 1fr) 42px;
    row-gap: 3px;
  }
  .board {
    width: min(100%, calc((100dvh - 66px) * 1.5));
  }
  .story-strip {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    gap: 8px;
    align-self: end;
  }
  .story-strip .frame-mark {
    width: 76px;
    min-height: 40px;
  }
  #controls {
    grid-row: 3/5;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .board {
    background-size: 140.625% 109.09%;
    background-position: 50% 70%;
  }
}

@media (min-aspect-ratio: 7/4) and (max-height: 570px) {
  .frame-mark svg {
    height: 34px;
  }
}
