:root {
  --bg-wood: #fcf6ec;
  --bg-card: #ffffff;
  --border-card: #e5d5bc;
  --border-selected: #ef5b25;
  --accent-red: #e03e2d;
  --accent-orange: #f47920;
  --accent-green: #2b9348;
  --accent-blue: #1d6fa5;
  --text-main: #2d231e;
  --text-sub: #6e5a4f;
  --shadow-soft: 0 4px 12px rgba(74, 52, 35, 0.08);
  --shadow-active: 0 6px 16px rgba(239, 91, 37, 0.22);
  --radius-card: 18px;
  --radius-btn: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  font-family: "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  background-color: var(--bg-wood);
  background-image:
    radial-gradient(#ecdcc2 1px, transparent 1px),
    radial-gradient(#f3e7d3 1px, var(--bg-wood) 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: var(--text-main);
  overflow: hidden; /* 1画面に収めて縦スクロールを発生させない */
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header - Compact */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
  height: 50px;
  background: linear-gradient(180deg, #fffaf2 0%, #f7ebd9 100%);
  border-bottom: 2px solid #dec6a4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo {
  font-size: 1.55rem;
  line-height: 1;
}

.app-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remaining-badge {
  background: #fff3cd;
  border: 2px solid #f0ad4e;
  color: #7a4b00;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.remaining-badge strong {
  font-size: 1.2rem;
  color: var(--accent-red);
  margin: 0 2px;
}

.remaining-badge.limit-reached {
  background: #ffe3e0;
  border-color: var(--accent-red);
  color: #a61c0e;
}

.nav-btn {
  background: #ffffff;
  border: 2px solid #d4be9e;
  color: var(--text-main);
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.nav-btn:active {
  transform: scale(0.95);
  background: #f2e5d2;
}

.nav-btn.muted {
  background: #eeeeee;
  color: #777777;
  border-color: #cccccc;
}

/* Main Area - Strictly fits remaining height */
.app-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 18px 10px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
  gap: 8px;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Screen 1: Sushi Grid - Auto-scales vertically to fit 1 screen */
.sushi-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px 16px;
  align-items: stretch;
  overflow-y: auto;
}

/* Notice card in the grid (matching bottom-right of Sketch 1!) */
.sushi-grid-notice-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 240, 0.85);
  border: 3px dashed #d9b991;
  border-radius: var(--radius-card);
  padding: 10px;
  text-align: center;
  min-height: 0;
}

.sushi-grid-notice-slot .notice-main {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: #b8321a;
  line-height: 1.35;
}

.sushi-grid-notice-slot .notice-sub {
  margin-top: 6px;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 700;
  color: var(--text-sub);
}

.sushi-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 0;
}

/* The Framed Box from Sketch 1 (画像 + 名前) */
.sushi-card {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: var(--bg-card);
  border: 3px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 6px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sushi-card:active {
  transform: scale(0.98);
}

.sushi-card.selected {
  border-color: var(--border-selected);
  box-shadow: var(--shadow-active);
  background: #fffdf9;
}

.sushi-card-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(224, 62, 45, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sushi-card.selected .sushi-card-badge {
  opacity: 1;
  transform: scale(1);
}

.sushi-card-audio-hint {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.95rem;
  opacity: 0.55;
}

.sushi-image-box {
  width: 100%;
  flex: 1;
  min-height: 48px;
  max-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sushi-image-box svg,
.sushi-image-box img {
  max-width: 86%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.11));
}

.sushi-name {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: var(--text-main);
  margin-top: 2px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  flex-shrink: 0;
}

/* Stepper Row under each card: ー [ □ ] ＋ */
.sushi-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}

.step-btn {
  width: 56px;
  height: 44px;
  border-radius: 12px;
  border: 2.5px solid #cbb292;
  background: #ffffff;
  color: var(--text-main);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #d5bfa2;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.step-btn.minus-btn {
  background: #fff5f5;
  border-color: #e6a8a1;
  color: #c93b2b;
  box-shadow: 0 3px 0 #e6a8a1;
}

.step-btn.plus-btn {
  background: #eef9f0;
  border-color: #8ed09f;
  color: #1f7a39;
  box-shadow: 0 3px 0 #8ed09f;
}

.step-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 transparent;
}

.step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: #f0eae1;
  border-color: #d6cbbd;
  color: #9e9386;
}

.step-count-box {
  min-width: 62px;
  height: 44px;
  border: 2.5px solid #5c4938;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.07);
}

.step-count-box.has-count {
  background: #fff8eb;
  border-color: var(--accent-orange);
  color: var(--accent-red);
}

/* Screen 1 Footer - Compact */
.screen1-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 2px dashed #dec6a4;
  flex-shrink: 0;
}

.limit-notice {
  font-size: 1.2rem;
  font-weight: 900;
  color: #b8321a;
  background: #fff2e2;
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid #f0b884;
}

.primary-action-btn {
  background: linear-gradient(180deg, #f76b1c 0%, #e03e2d 100%);
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #a32214, 0 6px 14px rgba(224, 62, 45, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.primary-action-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #a32214;
}

.secondary-action-btn {
  background: #ffffff;
  color: var(--text-main);
  border: 2.5px solid #cbb292;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #cbb292;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.secondary-action-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #cbb292;
}

/* =====================================================
   SCREEN 2: Summary / ごうけいの数の表示 (Fits 1 screen)
   ===================================================== */
.summary-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.summary-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  border-left: 7px solid var(--accent-red);
  padding-left: 12px;
}

.speak-again-btn {
  background: #fff8e6;
  border: 2.5px solid #f4a220;
  color: #8a4f00;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #e09112;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speak-again-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #e09112;
}

.summary-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
  padding: 4px 0;
}

.summary-item-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 210px;
  max-width: 30%;
  min-width: 150px;
  flex: 1 1 170px;
}

.summary-item-card {
  width: 100%;
  background: #ffffff;
  border: 3.5px solid #5c4938;
  border-radius: var(--radius-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.summary-item-card:active {
  transform: scale(0.96);
}

.summary-item-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 2.5px solid #dec6a4;
  border-radius: 999px;
  padding: 4px 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.summary-count-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1.05;
}

.summary-count-unit {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Bottom "あわせて 〇 こ" Box from Sketch 2 */
.summary-total-box {
  align-self: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff0d9 100%);
  border: 4px solid var(--accent-orange);
  border-radius: 999px;
  padding: 8px 44px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(244, 121, 32, 0.18);
  cursor: pointer;
}

.summary-total-label {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
}

.summary-total-number {
  font-size: 2.9rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
}

.summary-total-unit {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
}

.screen2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 2px dashed #dec6a4;
  flex-shrink: 0;
}

.confirm-order-btn {
  background: linear-gradient(180deg, #34a853 0%, #217a39 100%);
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #165426, 0 6px 14px rgba(43, 147, 72, 0.25);
}

.confirm-order-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #165426;
}

/* =====================================================
   Modals (Settings & Cumulative History)
   ===================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 25, 18, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fffcf7;
  border: 4px solid #d4be9e;
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-card.modal-large {
  max-width: 860px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f7ebd9;
  border-bottom: 2px solid #dec6a4;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.modal-close-btn {
  background: #ffffff;
  border: 2px solid #cbb292;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 20px;
  background: #f7ebd9;
  border-top: 2px solid #dec6a4;
}

.settings-group {
  background: #ffffff;
  border: 2px solid #e6d6be;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.settings-group h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #5c4938;
  border-bottom: 2px solid #f2e6d5;
  padding-bottom: 6px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.setting-hint {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.toggle-checkbox {
  width: 26px;
  height: 26px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.stepper-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid #cbb292;
  background: #fff8ee;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.stepper-val {
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 34px;
  text-align: center;
  color: var(--accent-red);
}

.setting-select {
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #cbb292;
  font-weight: 700;
  background: #ffffff;
}

/* Add Sushi Form & Custom Menu List in Settings */
.sub-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text-main);
}

.add-sushi-box {
  background: #fff9ef;
  border: 2px dashed #e2b887;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.add-sushi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-sub);
}

.text-input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid #cbb292;
  font-size: 1rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-main);
  user-select: text;
  -webkit-user-select: text;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.add-sushi-preset-section {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.preset-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.preset-option-btn {
  background: #ffffff;
  border: 2px solid #dec6a4;
  border-radius: 10px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
}

.preset-option-btn.selected {
  border-color: var(--accent-red);
  background: #fff0eb;
  box-shadow: 0 0 0 2px rgba(224, 62, 45, 0.2);
}

.preset-option-btn svg {
  width: 48px;
  height: 30px;
}

.new-sushi-photo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-upload-label {
  background: #fff3e0;
  border-color: #f4a220;
  color: #7a4600;
}

.photo-status-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-green);
}

.add-sushi-submit-btn {
  width: 100%;
  background: linear-gradient(180deg, #34a853 0%, #217a39 100%);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #165426;
}

.add-sushi-submit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #165426;
}

.existing-sushi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.custom-image-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.custom-image-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #faf5ec;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e5d5bc;
}

.custom-image-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
}

.custom-image-preview {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-image-preview svg,
.custom-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.custom-image-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.small-btn {
  background: #ffffff;
  border: 2px solid #cbb292;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.small-btn.delete-sushi-btn {
  background: #fff0f0;
  border-color: #f5a3a3;
  color: #c92a2a;
}

/* History Modal Styles */
.stats-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff3da;
  border: 2px solid #f0c27b;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.stats-banner strong {
  font-size: 1.45rem;
  color: var(--accent-red);
}

.speak-Button-small {
  background: #ffffff;
  border: 2px solid #e09112;
  color: #8a4f00;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.history-totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.history-sushi-box {
  background: #ffffff;
  border: 2px solid #dec6a4;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.history-sushi-box .mini-img {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-sushi-box .mini-img svg,
.history-sushi-box .mini-img img {
  max-height: 44px;
  max-width: 74px;
}

.history-sushi-box .mini-name {
  font-weight: 800;
  font-size: 1rem;
}

.history-sushi-box .mini-count {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-red);
}

.history-log-title {
  margin: 10px 0 6px;
  font-size: 1rem;
  color: var(--text-sub);
}

.history-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.history-log-item {
  background: #ffffff;
  border: 1px solid #e5d5bc;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
}

.danger-btn {
  background: #fff0f0;
  color: #c92a2a;
  border: 2px solid #ffa8a8;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-right: auto;
}

/* Toast Notification */
.toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(45, 35, 30, 0.92);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Portrait / Shorter viewport adjustments */
@media (max-width: 820px) {
  .add-sushi-form-row {
    grid-template-columns: 1fr;
  }
  .step-btn {
    width: 48px;
    height: 40px;
    font-size: 1.45rem;
  }
  .step-count-box {
    min-width: 50px;
    height: 40px;
    font-size: 1.4rem;
  }
}

@media (max-height: 680px) {
  .app-header {
    height: 44px;
    padding: 4px 14px;
  }
  .app-main {
    padding: 6px 14px 8px;
  }
  .sushi-grid {
    gap: 8px 12px;
  }
  .sushi-image-box {
    max-height: 76px;
  }
  .step-btn {
    height: 38px;
    font-size: 1.45rem;
  }
  .step-count-box {
    height: 38px;
    font-size: 1.4rem;
  }
  .primary-action-btn,
  .confirm-order-btn {
    padding: 8px 20px;
    font-size: 1.1rem;
  }
  .secondary-action-btn {
    padding: 8px 16px;
    font-size: 1rem;
  }
}
