
#modeSetup .game-modes button {
  min-height: 142px;
  padding: 7px 14px 7px 8px;
  gap: 12px;
  border: 2px solid #fff;
  border-radius: 28px;
  box-shadow:
    0 4px 0 #bdb1d452,
    0 8px 15px #7a61921a;
}
#modeSetup .game-modes button img {
  width: 40%;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #81629a25);
}
#modeSetup .game-modes button .mode-copy {
  gap: 7px;
}
#modeSetup .game-modes button b {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.05;
}
#modeSetup .game-modes button small {
  font-size: 15px;
  line-height: 1.25;
  color: #655f8d;
}
#modeSetup .game-modes button[data-game-mode="classic"] {
  background: linear-gradient(115deg, #fff0f6, #f3edff);
}
#modeSetup .game-modes button[data-game-mode="quick"] {
  background: linear-gradient(115deg, #dffbef, #e7f5ff);
}
#modeSetup .game-modes button[data-game-mode="teams"] {
  background: linear-gradient(115deg, #def5ff, #e9e9ff);
}
#modeSetup .game-modes button[data-game-mode="custom"] {
  background: linear-gradient(115deg, #fff3d7, #ffecf1);
}
#modeSetup .game-modes button[data-game-mode="classic"] b {
  color: #c91c5a;
}
#modeSetup .game-modes button[data-game-mode="quick"] b {
  color: #087732;
}
#modeSetup .game-modes button[data-game-mode="teams"] b {
  color: #075dcc;
}
#modeSetup .game-modes button[data-game-mode="custom"] b {
  color: #ab4c00;
}
#modeSetup .mode-arrow {
  width: 45px;
  height: 45px;
  font-size: 35px;
  line-height: 1;
}
#modeSetup [data-game-mode="classic"] .mode-arrow {
  background: #f9bdd8;
  color: #c91c5a;
}
#modeSetup [data-game-mode="quick"] .mode-arrow {
  background: #a7e9b7;
  color: #087732;
}
#modeSetup [data-game-mode="teams"] .mode-arrow {
  background: #acd0fb;
  color: #075dcc;
}
#modeSetup [data-game-mode="custom"] .mode-arrow {
  background: #ffd58c;
  color: #ab4c00;
}
@media (max-width: 700px) {
  #modeSetup .game-modes {
    gap: 7px;
  }
  #modeSetup .game-modes button {
    min-height: 88px;
    gap: 7px;
    padding: 5px 9px 5px 5px;
    border-radius: 20px;
  }
  #modeSetup .game-modes button img {
    width: 29%;
    height: 77px;
  }
  #modeSetup .game-modes button b {
    font-size: 19px;
  }
  #modeSetup .game-modes button small {
    font-size: 14px;
  }
  #modeSetup .mode-arrow {
    width: 32px;
    height: 32px;
    font-size: 27px;
  }
}
@media (max-width: 350px) {
  #modeSetup .game-modes button img {
    width: 27%;
  }
  #modeSetup .game-modes button b {
    font-size: 17px;
  }
  #modeSetup .game-modes button small {
    font-size: 13px;
  }
}
@media (min-width: 701px) and (min-height: 501px) and (max-height: 850px) {
  #modeSetup .game-modes {
    gap: 9px;
  }
  #modeSetup .game-modes button {
    min-height: 122px;
  }
  #modeSetup .game-modes button img {
    height: 108px;
  }
}
@media (min-width: 701px) and (max-height: 500px) {
  #modeSetup .game-modes button {
    min-height: 100px;
  }
  #modeSetup .game-modes button img {
    height: 86px;
    width: 35%;
  }
  #modeSetup .game-modes button b {
    font-size: 17px;
  }
  #modeSetup .game-modes button small {
    font-size: 12px;
  }
  #modeSetup .mode-arrow {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
}

/* Back arrow: flex keeps the icon dead-center (a 2-row grid pushed it up by the hidden "Voltar" text). */
.menu-screen .menu-view > .menu-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.rule-star {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  color: #c3880c;
  font-size: 34px;
  line-height: 1;
}

/* Custom rules use the same compact cockpit surface as the other menu steps. */
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) {
  width: min(570px, 100%);
  height: auto;
  max-height: calc(100dvh - 32px);
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-frame,
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-brand {
  display: none;
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body {
  flex: 0 1 auto;
  overflow: auto;
  padding: 22px 24px 24px;
  border-radius: 30px;
  background: #f9f8ff;
  box-shadow: 0 8px 0 #8e9bd566, 0 16px 42px #111b5966, inset 0 0 0 2px #fff;
  scrollbar-gutter: stable;
  scrollbar-color: #9286c9 #ece9fa;
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body::-webkit-scrollbar {
  width: 9px;
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body::-webkit-scrollbar-track {
  background: #ece9fa;
  border-radius: 9px;
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body::-webkit-scrollbar-thumb {
  background: #9286c9;
  border-radius: 9px;
}
#customRules {
  flex: 0 0 auto;
  justify-content: flex-start;
}
.menu-shell[data-view="customExtra"] .menu-body { overflow: hidden; }
.menu-shell[data-view="customExtra"] #customRules {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.menu-shell[data-view="customExtra"] #customExtras {
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #9286c9 #e1dcef;
  scrollbar-width: thin;
}
#customExtras label { text-align: left; }
.menu-shell[data-view="customExtra"] #customExtras::-webkit-scrollbar { width: 8px; }
.menu-shell[data-view="customExtra"] #customExtras::-webkit-scrollbar-track { background: #e1dcef; border-radius: 8px; }
.menu-shell[data-view="customExtra"] #customExtras::-webkit-scrollbar-thumb { background: #9286c9; border-radius: 8px; }
.custom-more:not([hidden]) {
  flex: none;
  align-self: center;
  height: auto;
  padding: 3px 0;
  color: #514987;
  font: 700 13px/1.3 var(--font-body);
}
.menu-shell[data-view="customExtra"] #customNext {
  flex: none;
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  color: #4a2c00;
  background: linear-gradient(#ffda63, #ffb723);
  box-shadow: 0 4px 0 #ca820f;
}
@media (min-width: 701px) and (max-height: 500px) {
  .menu-shell:is([data-view="custom"], [data-view="customExtra"]) {
    display: flex;
    height: calc(100dvh - 32px);
  }
  .menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
  }
}
@media (max-width: 700px) {
  .menu-shell:is([data-view="custom"], [data-view="customExtra"]) {
    width: min(440px, 100%);
    max-height: calc(100dvh - 72px);
    margin-top: 52px;
  }
  .menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-body {
    padding: 18px 16px 20px;
    border-radius: 24px;
  }
  #modeSetup .menu-heading > span[aria-hidden="true"] {
    display: none;
  }
}
@media (max-width: 420px) {
  #customExtras {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  #customExtras label {
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
    font-size: 15px;
    line-height: 1.25;
  }
}

.menu-shell.resume-first .menu-body > #btnResume { order: 1; }
.menu-shell.resume-first .menu-body > #btnPlay { order: 2; margin: 16px auto 0; }
.menu-shell.resume-first #btnResume svg { width: 22px; height: 22px; }
@media (max-width: 700px) {
  #customRules .exit-choice button { font-size: 13px; overflow-wrap: anywhere; }
}


@media (min-width: 701px) and (min-height: 791px) {
  .menu-shell[data-view="players"] .seat { height: 158px; grid-template-rows: 71px 22px 16px 18px; }
  .menu-shell[data-view="players"] .seat-cat { width: 90px; max-height: 71px; }
}
@media (max-width: 700px) {
  .menu-shell[data-view="players"] .selection-tip { font-size: 14px; line-height: 1.25; }
}
@media (max-width: 420px) and (min-width: 341px) and (orientation: portrait) {
  .menu-shell[data-view="players"] .seat { grid-template-columns: 80px minmax(0, 1fr); }
  .menu-shell[data-view="players"] .seat-cat { width: 80px; max-height: 80px; }
}

/* End of css/menu-08.css */
