
.aux-card {
  box-sizing: border-box;
  width: min(620px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.aux-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #9286c9 #ece9fa;
  scrollbar-gutter: stable;
}
.aux-card {
  padding: 26px 30px 30px;
  border: 3px solid #b7a8ee;
  border-radius: 30px;
  color: #454275;
  background: #faf8ff;
  box-shadow:
    0 7px 0 #9182d1,
    0 18px 40px #3d355436;
}
.aux-more:not([hidden]) {
  flex: none;
  padding: 7px 0 0;
  color: #514987;
  text-align: center;
  font: 700 13px/1.3 var(--font-body);
}
.aux-more span:last-child { font-size: 19px; line-height: 0.8; }
.aux-scroll::-webkit-scrollbar {
  width: 9px;
}
.aux-scroll::-webkit-scrollbar-track {
  background: #ece9fa;
  border-radius: 9px;
}
.aux-scroll::-webkit-scrollbar-thumb {
  background: #9286c9;
  border-radius: 9px;
}
.aux-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #faf8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.aux-head h2 {
  margin: 0;
  font: 700 28px var(--font-display);
}
.aux-head button {
  flex: none;
  width: 44px;
  height: 44px;
  font: 500 30px/1 var(--font-body);
}
.aux-intro,
.aux-note {
  font: 500 15px/1.5 var(--font-body);
  color: #69638d;
}
.aux-note {
  margin-bottom: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eae6f4;
  text-align: left;
}
.setting-row b,
.setting-row small {
  display: block;
}
.setting-row b,
.volume-row b {
  font-size: 17px;
}
.setting-row small {
  margin-top: 4px;
  font-size: 13px;
  color: #716b8e;
}
.setting-row select {
  max-width: 58%;
  min-height: 44px;
  border: 2px solid #ded8ef;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  color: #514a80;
  font: 600 14px var(--font-body);
}
.volume-row {
  display: block;
  margin: 8px 0;
  text-align: left;
}
.volume-row > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.volume-row output {
  font-size: 14px;
  color: #69638d;
}
.volume-row input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #8d7adc;
  cursor: pointer;
}
.rule-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rule-cards article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: #f1eefb;
  border-radius: 16px;
  text-align: left;
}
.rule-cards article > span {
  font-size: 27px;
}
.rule-cards b {
  font-size: 16px;
}
.rule-cards p {
  margin: 5px 0 0;
  font: 500 13px/1.4 var(--font-body);
  color: #69638d;
}
.rule-cards img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex: none;
}
.player-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 0;
  font: 600 14px var(--font-body);
  color: #68618f;
}
.player-count > div {
  display: flex;
  gap: 5px;
  background: #ebe7f7;
  padding: 4px;
  border-radius: 14px;
}
.player-count button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #777098;
  font: 700 16px var(--font-body);
  cursor: pointer;
}
.player-count button[aria-pressed="true"] {
  background: white;
  color: #554d8f;
  box-shadow: 0 2px 5px #6e609a26;
}
.player-count button:disabled {
  opacity: 0.35;
}
.welcome-cats img:only-child {
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
}
.menu-shell[data-view="home"] #menuHome {
  flex-basis: clamp(125px, 18vw, 210px);
}
.menu-shell:not([data-view="home"]) .menu-brand img {
  width: calc(var(--brand-width) * 0.72);
}
.menu-shell:not([data-view="home"]) .menu-frame {
  top: calc(var(--brand-width) * 0.23);
  height: calc(100% - var(--brand-width) * 0.23);
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-brand {
  display: none;
}
.menu-shell:is([data-view="custom"], [data-view="customExtra"]) .menu-frame {
  top: 0;
  height: 100%;
}
.custom-grid select {
  border: 2px solid #d8d1ed;
  border-radius: 12px;
  background: #fff;
  color: #514a80;
  min-height: 44px;
  padding: 8px;
  font: 600 14px var(--font-body);
}
.custom-select-group {
  text-align: left;
  font: 500 14px/1.2 var(--font-body);
  color: #504a78;
}
#customBasic .custom-select-group {
  grid-column: 1 / -1;
}
.exit-choice {
  display: flex;
  gap: 3px;
  margin-top: 7px;
  padding: 4px;
  border-radius: 12px;
  background: #ded9ef;
}
.exit-choice button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #655b8b;
  font: 600 12px var(--font-body);
  cursor: pointer;
}
.exit-choice button[aria-pressed="true"] {
  background: #fff;
  color: #514a80;
  box-shadow: 0 2px 5px #746e9930;
}
.custom-grid input[type="checkbox"] {
  appearance: none;
  width: 39px;
  height: 23px;
  border-radius: 20px;
  background: #c9c5d8;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.custom-grid input[type="checkbox"]:before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #534d7244;
  transition: transform 0.15s;
}
.custom-grid input[type="checkbox"]:checked {
  background: #8b7bdd;
}
.custom-grid input[type="checkbox"]:checked:before {
  transform: translateX(16px);
}
.custom-grid input:disabled { opacity: 0.65; cursor: not-allowed; }
.custom-grid input:focus-visible,
.custom-grid select:focus-visible,
.volume-row input:focus-visible {
  outline: 3px solid #7566ba;
  outline-offset: 3px;
}
.custom-grid label {
  font-size: 14px;
  color: #504a78;
}
.game-modes button small,
.game-mode-description,
.selection-tip {
  color: #665f83;
}
.hud-logo {
  display: block;
  width: 105px;
  height: 48px;
  object-fit: contain;
}
@media (max-width: 620px) {
  .tray .hint {
    font-size: 13px;
    color: #5d6395;
  }
  .tray .chip {
    font-size: 12px;
  }
  .tray .turn {
    font-size: 20px;
  }
}
@media (max-width: 700px) {
  .menu-hud {
    top: 8px;
    right: 8px;
    gap: 5px;
  }
  .menu-hud button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .aux-card {
    padding: 20px;
    border-radius: 24px;
  }
  .aux-head h2 {
    font-size: 23px;
  }
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .setting-row select {
    max-width: none;
    width: 100%;
  }
  .rule-cards {
    grid-template-columns: 1fr;
  }
  .welcome-cats img:only-child {
    width: 150px;
    height: 150px;
  }
  .menu-shell[data-view="home"] #menuHome {
    flex-basis: 150px;
  }
  .player-count {
    gap: 8px;
  }
  .hud-logo {
    width: 82px;
    height: 43px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .welcome-cats img:only-child {
    width: 105px;
    height: 105px;
  }
  .menu-shell[data-view="home"] #menuHome {
    flex-basis: 105px;
  }
}
@media (min-width: 701px) and (max-height: 500px) {
  .menu-shell:not([data-view="home"]) .menu-frame {
    top: 0;
    height: 100%;
  }
  .welcome-cats img:only-child {
    width: 95px;
    height: 95px;
  }
  .menu-shell[data-view="home"] #menuHome {
    flex-basis: 95px;
  }
  .menu-hud {
    top: 4px;
    right: 4px;
  }
  .menu-hud button {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-hud button,
  .custom-grid input,
  .custom-grid input:before {
    transition: none;
  }
}
/* Keep the actual contents inside each card, with space between menu groups. */
.menu-screen .seat {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 84px 24px 18px 22px;
  row-gap: 4px;
  align-content: center;
  justify-content: stretch;
  justify-items: center;
  height: 190px;
  padding: 12px 8px;
}
.menu-screen .seat-cat {
  width: 104px;
  max-height: 84px;
  object-fit: contain;
}
.menu-screen .seat b,
.menu-screen .seat small {
  margin: 0;
}
.seat-state {
  margin: 0;
  height: 22px;
}
.menu-heading {
  margin-bottom: 18px;
}
.selection-tip {
  margin: 12px 0 0;
}
.menu-play {
  margin-top: 18px;
}
.menu-resume {
  min-height: 44px;
  margin: 12px auto 0;
  padding: 9px 18px;
  box-sizing: border-box;
}
.menu-footer {
  margin-top: 18px;
}
@media (max-width: 700px) and (max-height: 700px) {
  #menuOptions .setting-row { padding: 10px 0; gap: 7px; }
  #optionsToAudio { margin-bottom: 4px; }
}

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