/* Landing menu and shared restaurant chrome. */

.menu-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: #bd8341;
}

.menu-sushi {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.menu-secondary {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.menu-secondary button {
  flex: 1;
  font-size: 16px !important;
}

.art-icon {
  display: inline-block;
  width: 38px;
  height: 38px;
  background-image: url("./assets/ui-icons.png");
  background-size: 300% 200%;
  vertical-align: middle;
  margin-right: 6px;
  font-style: normal;
}

.art-icon.play {
  background-position: 0 0;
}

.art-icon.book {
  background-position: 50% 0;
}

.art-icon.trophy {
  background-position: 100% 0;
}

.art-icon.home {
  background-position: 0 100%;
}

.art-icon.restart {
  background-position: 50% 100%;
}

.art-icon.speaker {
  background-position: 100% 100%;
}

.round-action .art-icon {
  width: 34px;
  height: 34px;
  margin: 0;
}

.result-badge .art-icon {
  margin: 0;
}

.game-shell {
  display: none;
}

body.playing .game-shell {
  display: grid;
}

body {
  background: #241912;
  touch-action: auto;
}

.landing-page {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: auto;
  background:
    linear-gradient(180deg, #181b2833 0%, #24160b33 35%, #1c120ce6 100%),
    url("./assets/bg_sushi_counter.png") center 43% / cover no-repeat;
}

.landing-page.hidden {
  display: none;
}

.landing-content {
  width: min(92vw, 430px);
  text-align: center;
  padding: 40px 24px 30px;
  color: #fff0cf;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-content h1 {
  font-size: clamp(44px, 9vw, 66px);
  line-height: 1.05;
  margin: 16px 0 8px;
  color: #ffedbf;
  text-shadow:
    0 4px 0 #472a1d,
    0 6px 26px #0009;
  letter-spacing: -2px;
}

.landing-content .menu-kicker {
  color: #f6dba2;
  background: #242e42e6;
  padding: 9px 17px;
  border-block: 1px solid #bf914d;
  font-size: 10px;
  letter-spacing: 3px;
}

.landing-content .menu-sushi {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 12px 14px #0009);
  margin: 20px 0 8px;
}

.landing-content p {
  font-size: 14px;
  color: #ffe6b7;
  text-shadow: 0 2px 5px #000;
  margin: 0 0 28px;
}

.landing-content button {
  min-height: 58px;
  cursor: pointer;
  font: 700 18px inherit;
  font-family: inherit;
  color: #ffedc8;
  border: 1px solid #c39858;
  border-radius: 12px;
  background: linear-gradient(#975b30, #5d351e);
  box-shadow:
    inset 0 1px 0 #ffd69088,
    0 5px 0 #332014,
    0 10px 20px #0004;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.15s,
    filter 0.15s;
}

.landing-content #startBtn {
  width: 100%;
  min-height: 68px;
  font-size: 22px;
  background: linear-gradient(#c48a42, #8d542b);
  border: 2px solid #e5bb75;
}

.landing-content button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.landing-content button:active {
  transform: translateY(2px);
}

.landing-content button:focus-visible {
  outline: 3px solid #ffe7ac;
  outline-offset: 5px;
}

.landing-content .menu-secondary {
  width: 100%;
  gap: 14px;
  margin-top: 20px;
}

.landing-content .menu-secondary button {
  background: linear-gradient(#344156, #202b3e);
  border-color: #9b895e;
  font-size: 15px !important;
}

.landing-content .art-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .landing-page {
    background-size:
      auto,
      auto 100%;
    background-color: #241912;
    background-repeat: no-repeat;
  }

  .landing-content {
    padding-top: 24px;
  }
}

@media (max-height: 650px) {
  .landing-content {
    padding: 20px 24px 45px;
  }

  .landing-content .menu-sushi {
    width: 100px;
    height: 100px;
    margin: 8px;
  }

  .landing-content h1 {
    font-size: 42px;
  }

  .landing-content p {
    margin-bottom: 16px;
  }
}

/* Shared restaurant palette across menu, HUD, and dialogs. */

html,
body,
button,
dialog {
  font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif;
}

button {
  font-weight: 700;
}

dialog {
  max-width: 420px;
  width: 80%;
  border: 2px solid #b78240;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 80px #0008;
}

dialog::backdrop {
  background: #140d0acc;
}

dialog p {
  line-height: 1.8;
}

.hud-card,
.phase-badge {
  background: linear-gradient(180deg, #fff0cf, #e7c18b);
  border-color: #9e6b37;
  color: #422b20;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 #fff8,
    0 3px 8px #0003;
}

.value {
  color: #68422a;
}

.round-action {
  width: 44px;
  height: 44px;
  background: linear-gradient(#354258, #222e42);
  border: 1px solid #bb955d;
  border-radius: 12px;
  box-shadow: 0 3px 0 #181d28;
}

.top-actions {
  gap: 8px;
}

.help {
  color: #edcfa4;
  font-weight: 500;
  font-size: 12px;
}

.result-card,
dialog {
  background: linear-gradient(#fff0d4, #ecd0a3);
  border-color: #b38a50;
  color: #4d3424;
}

.result-card {
  max-height: 85vh;
  overflow: auto;
}

.overlay-card h2,
dialog h2 {
  color: #4d3424;
}

.overlay-card button,
dialog button {
  background: linear-gradient(#a16b36, #754624);
  border: 1px solid #d2a362;
  border-radius: 12px;
  color: #fff0cf;
  box-shadow: 0 3px 0 #402719;
  font-weight: 700;
}

dialog button {
  padding: 12px 20px;
  margin: 8px;
}

.battlefield {
  border-color: #a17c4d;
}
