
.menu-footer button {
  min-height: 48px;
}
.mode-switch button,
.option-toggle,
.speed-choice button,
.menu-back {
  min-height: 44px;
  box-sizing: border-box;
}
.has-resume .menu-brand img {
  width: 290px;
}
body:not(.game-started) .top,
body:not(.game-started) .tray,
body.menu-open .tray {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
body.game-revealing #fx {
  pointer-events: none;
}
.tray.game-entering {
  opacity: var(--intro-opacity, 0);
  transform: translateY(var(--intro-y, 20px)) scale(var(--intro-scale, 0.94));
  pointer-events: none;
}
@media (min-width: 701px) and (max-height: 930px) {
  .menu-screen .seat {
    height: 180px;
    grid-template-rows: 78px 24px 16px 20px;
    padding: 12px 8px;
    row-gap: 3px;
  }
  .menu-screen .seat-cat {
    width: 96px;
    max-height: 78px;
  }
  .seat-state {
    height: 20px;
  }
}
@media (min-width: 701px) and (max-height: 790px) {
  .menu-brand img {
    width: 260px;
  }
  .has-resume .menu-brand img {
    width: 210px;
  }
  .menu-screen .seat {
    height: 165px;
    grid-template-rows: 68px 22px 16px 19px;
    padding: 12px 6px;
    row-gap: 3px;
  }
  .menu-screen .seat-cat {
    width: 84px;
    max-height: 68px;
  }
  .seat-state {
    height: 19px;
  }
  .menu-heading {
    margin-bottom: 14px;
  }
  .menu-footer {
    margin-top: 14px;
  }
}
@media (max-width: 700px) {
  .menu-screen .seat {
    height: 138px;
    grid-template-rows: 58px 18px 14px 18px;
    padding: 9px 3px;
    row-gap: 3px;
  }
  .menu-screen .seat-cat {
    width: 72px;
    max-height: 58px;
  }
  .seat-state {
    height: 18px;
  }
  .menu-screen .seat-state svg {
    width: 16px;
    height: 16px;
  }
  .menu-heading {
    margin-bottom: 14px;
  }
  .selection-tip {
    margin-top: 11px;
  }
  .menu-play {
    margin-top: 16px;
  }
  .menu-footer {
    margin-top: 15px;
  }
  .menu-footer button {
    min-height: 44px;
  }
  .menu-resume {
    margin-top: 11px;
    font-size: 13px;
  }
  .has-resume .menu-brand img {
    width: 205px;
  }
  .menu-body {
    padding-bottom: 28px;
  }
  .option-row {
    gap: 8px;
  }
  .menu-back {
    padding-block: 12px;
  }
}
@media (max-width: 350px) {
  .menu-screen .seat {
    height: 128px;
    grid-template-rows: 52px 16px 13px 16px;
    padding: 8px 3px;
    row-gap: 3px;
  }
  .menu-screen .seat-cat {
    width: 64px;
    max-height: 52px;
  }
  .seat-state {
    height: 16px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .menu-brand img {
    width: 180px;
  }
  .has-resume .menu-brand img {
    width: 155px;
  }
  .menu-frame {
    top: 49px;
    height: calc(100% - 49px);
  }
  .menu-body {
    padding-bottom: 23px;
  }
  .menu-heading {
    margin-block: 12px 13px;
  }
  .selection-tip {
    margin-top: 10px;
  }
  .menu-play {
    margin-top: 14px;
  }
  .menu-footer {
    margin-top: 12px;
  }
}
@media (min-width: 701px) and (max-height: 500px) {
  .menu-brand img,
  .has-resume .menu-brand img {
    width: 210px;
  }
  .menu-frame {
    top: 0;
    height: 100%;
  }
  .menu-screen .seat {
    height: 128px;
    grid-template-rows: 50px 18px 13px 16px;
    padding: 8px 2px;
    row-gap: 3px;
  }
  .menu-screen .seat-cat {
    width: 62px;
    max-height: 50px;
  }
  .seat-state {
    height: 16px;
  }
  .menu-heading {
    margin-block: 10px 12px;
  }
  .menu-play {
    margin-top: 10px;
  }
  .menu-footer {
    margin-top: 12px;
  }
  .menu-resume {
    min-height: 44px;
    margin-top: 10px;
  }
  .menu-body {
    padding-block: 4px 12px;
  }
  .menu-shell {
    margin-block: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-shell,
  .menu-brand img,
  .seat-pop,
  .menu-screen.menu-leaving,
  .menu-leaving .menu-shell {
    animation: none !important;
  }
  .menu-screen button,
  .menu-screen .seat-cat,
  .menu-play svg {
    transition: none;
  }
}
/* Each setup step has its own compact panel, keeping the ears in proportion. */
.game-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.game-modes button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-height: 90px;
  padding: 9px 12px;
  background: #efedf9;
  border: 2px solid #fff9;
  box-shadow: 0 3px 0 #d7d1e9;
  color: #514a80;
}
.game-modes button:hover,
.game-modes button:focus-visible {
  background: #e5e1f5;
  transform: translateY(-2px);
}
.game-modes button canvas {
  width: 64px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.game-modes button b {
  font-size: 16px;
  white-space: nowrap;
}
.game-modes button small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8e86a9;
}
.game-modes button {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 10px;
  row-gap: 0;
  align-content: center;
}
.game-modes button canvas,
.mode-pair {
  grid-column: 1;
  grid-row: 1 / 3;
}
.game-modes button b,
.game-modes button small {
  grid-column: 2;
}
.mode-pair {
  position: relative;
  display: block;
  width: 64px;
  height: 52px;
}
.mode-pair canvas {
  position: absolute;
  width: 46px;
  height: 46px;
  top: 3px;
}
.mode-pair canvas:first-child {
  left: 0;
}
.mode-pair canvas:last-child {
  right: 0;
}
#customRules .custom-grid {
  background: #f0edf9;
  border-radius: 15px;
  padding: 14px;
  margin-top: 4px;
}
#customRules .menu-heading {
  margin: 8px 0 14px;
}
#customRules .custom-done {
  margin: 14px auto 0;
  min-height: 44px;
}
#customRules .menu-back,
#modeSetup .menu-back,
#playerSetup .menu-back {
  margin-top: 10px;
}
@media (max-width: 700px) {
  .game-modes {
    gap: 7px;
  }
  .game-modes button {
    grid-template-columns: 45px 1fr;
    column-gap: 4px;
    min-height: 79px;
    padding: 7px 5px;
  }
  .game-modes button canvas {
    width: 45px;
    height: 40px;
  }
  .game-modes button b {
    font-size: 13px;
  }
  .game-modes button small {
    font-size: 10px;
    line-height: 1.2;
  }
  .mode-pair {
    width: 45px;
    height: 40px;
  }
  .mode-pair canvas {
    width: 33px !important;
    height: 33px !important;
  }
}
.menu-shell {
  container-type: inline-size;
  min-height: min(790px, calc(100dvh - 24px));
}
.menu-frame {
  border-style: solid;
  border-width: 1px;
  border-color: #fff;
  border-radius: 36px;
  background: #f8f7ff;
  box-shadow: 0 8px 0 #aaa2df, 0 20px 45px #241e6f50;
}
.menu-shell {
  height: min(730px, calc(100dvh - 24px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  --brand-width: 380px;
}
.menu-brand {
  flex: none;
}
.menu-brand img,
.has-resume .menu-brand img {
  width: var(--brand-width);
}
.menu-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #c8c1e3 transparent;
}
.menu-shell[data-view="home"] #menuHome {
  flex: 0 0 110px;
}
.welcome-cats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.welcome-cats img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #77709925);
}
.welcome-cats img:nth-child(2) {
  width: 100px;
  height: 100px;
}
.menu-shell[data-view="home"] .menu-body {
  justify-content: space-evenly;
}
.menu-shell[data-view="home"] .menu-footer {
  margin-top: 0;
}
.menu-shell:not([data-view="home"]) .menu-tagline,
.menu-shell:not([data-view="home"]) .menu-footer {
  display: none;
}
.menu-screen .seat:hover .seat-cat {
  transform: translateY(-2px);
}
#modeSetup,
#playerSetup,
#customRules {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-modes button {
  min-height: 104px;
}
.game-modes button small {
  font-size: 12px;
}
.game-modes button .mode-pair canvas {
  width: 46px;
  height: 46px;
}
/* End of css/menu-05.css */
