:root {
  --bg: #141210;
  --bg-elevated: #1c1916;
  --surface: #252220;
  --border: #3d3834;
  --text: #f2ebe4;
  --text-muted: #9a918a;
  --accent: #f59e0b;
  --danger: #f87171;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: radial-gradient(1000px 700px at 50% -5%, #2d2418 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

.app {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-wrap {
  perspective: 800px;
  margin-bottom: 1rem;
}

.card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 200px;
  overflow: hidden;
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.card--fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.card--empty .card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1.5rem;
}

.card__hint {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
}

.card__inner {
  padding: 1.35rem 1.25rem 1.5rem;
}

.card__deco {
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.card__country {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.04em;
}

.card__dish {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.actions {
  margin-bottom: 0.5rem;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1c1410;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.status {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.25em;
}

.status--error {
  color: var(--danger);
}

@media (min-width: 480px) {
  .app {
    max-width: 440px;
    padding-top: 1.75rem;
  }
}
