:root {
  --ink: #1c1410;
  --ink-2: #2b1810;
  --cream: #fdf6ec;
  --muted: #c9bbae;
  --muted-2: #8a7a6c;
  --flame: #ff6b35;
  --red: #e63946;
  --bg: #0b0705;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: "Euljiro";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/BMEULJIRO.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

.display {
  font-family: "Euljiro", "Black Han Sans", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: min(820px, 92vh);
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  container-type: inline-size;
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 20;
}

/* ===== Screens ===== */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.screen[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

/* ===== Home screen ===== */
.screen--home {
  padding: 56px 24px 32px;
}

.embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: -10px;
  border-radius: 999px;
  background: #ff8a5c;
  animation: ember-float linear infinite;
}

@keyframes ember-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-360px) scale(0.35);
    opacity: 0;
  }
}

.home-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.title {
  font-size: 60px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  color: var(--cream);
}

.accent-text {
  color: var(--flame);
}

.tagline {
  font-size: 16px;
  color: var(--muted);
  max-width: 260px;
  margin: 0 0 48px;
  line-height: 1.5;
}

.btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none !important;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--flame), var(--red));
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.btn-cta .icon {
  width: 22px;
  height: 22px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.45), 0 0 36px 8px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 107, 53, 0), 0 0 54px 16px rgba(255, 107, 53, 0.55);
  }
}

.browse-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.browse-link:hover {
  color: var(--flame);
  border-color: var(--flame);
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 24px;
  color: var(--muted-2);
}

.footer-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}

.footer-line {
  font-size: 11px;
  margin: 0 0 8px;
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-line a {
  transition: color 0.2s ease;
}

.footer-line a:hover {
  color: var(--flame);
}

.dot {
  margin: 0 6px;
}

/* ===== Recommend screen ===== */
.screen--recommend {
  padding: 0;
}

/* 쇼츠 스타일 세로 스크롤 피드 */
.feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.feed-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

/* 다음 메뉴를 위해 스크롤하라는 힌트 (첫 카드에서만 잠깐 보여줌) */
.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: hint-bounce 1.6s ease-in-out infinite, hint-fade-in 0.4s ease 0.6s forwards;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
}

.feed-item:not(:first-child) .scroll-hint {
  display: none;
}

.feed-item.hint-dismissed .scroll-hint {
  display: none;
}

@keyframes hint-fade-in {
  to {
    opacity: 0.85;
  }
}

@keyframes hint-bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -8px);
  }
}

.recommend-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 28%, rgba(255, 107, 53, 0.2) 0%, var(--ink) 70%);
  transition: background 0.4s ease;
}

.food-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 좌우/상하 여백 없이 프레임을 꽉 채움 (넘치는 부분은 크롭) */
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 28%,
    rgba(0, 0, 0, 0.1) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}

.video-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(253, 246, 236, 0.25);
  border-top-color: var(--flame);
  animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 0;
  pointer-events: none;
}

.btn-text {
  font-size: 14px;
  color: var(--muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.btn-mute {
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.icon-unmuted {
  color: var(--flame);
}

.food-card {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  animation: card-in 0.45s ease-out;
}

/* 영상이 있을 때: 원형 orb 없이, 텍스트를 화면 하단으로 내려서
   풀스크린 영상이 최대한 넓게 보이도록 함 */
.food-card.video-mode {
  justify-content: flex-end;
  padding-bottom: 8px;
}

.food-card.video-mode .food-name,
.food-card.video-mode .food-desc {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.category-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.food-orb-wrap {
  position: relative;
  margin-bottom: 32px;
}

.food-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.food-orb {
  position: relative;
  width: 192px;
  height: 192px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}

.steam {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.steam-wisp {
  width: 6px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  animation: steam-rise 2.2s ease-in infinite;
}

@keyframes steam-rise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-46px) scaleX(1.7);
    opacity: 0;
  }
}

.food-name {
  font-size: 38px;
  margin: 0 0 12px;
  text-align: center;
  color: var(--cream);
}

.food-desc {
  text-align: center;
  color: var(--muted);
  max-width: 260px;
  margin: 0;
}

.food-detail-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.food-detail-link:hover {
  color: var(--flame);
  border-color: var(--flame);
}

.action-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  padding: 16px 24px 40px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 16px 0;
  border-radius: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--flame), var(--red));
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 16px 0;
  border-radius: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  background: rgba(253, 246, 236, 0.1);
  border: 1.5px solid rgba(253, 246, 236, 0.32);
  transition: background 0.15s ease;
}

.btn-secondary:hover,
.btn-secondary:active {
  background: rgba(253, 246, 236, 0.18);
}

.order-wrap {
  position: relative;
  flex: 1;
  display: flex;
}

.order-wrap .btn-primary {
  width: 100%;
}

.delivery-picker {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid rgba(253, 246, 236, 0.15);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.delivery-option {
  padding: 13px;
  border-radius: 11px;
  background: rgba(253, 246, 236, 0.07);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background 0.15s ease;
}

.delivery-option:hover,
.delivery-option:active {
  background: rgba(253, 246, 236, 0.16);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Small screens ===== */
@media (max-width: 420px) {
  .page {
    padding: 0;
    min-height: 100dvh;
  }
  .phone {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .notch {
    display: none;
  }
}
