:root {
  --accent: #ff9828;
  --accent-soft: rgba(255, 152, 40, 0.2);
  --accent-strong: #ffad42;
  --bg: #070503;
  --bg-brown: #160d08;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.13);
  --text: #fff8ee;
  --muted: rgba(255, 248, 238, 0.72);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius-lg: 28px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: #060504;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  isolation: isolate;
  width: min(100%, 430px);
  margin: 0 auto;
  background:
    radial-gradient(circle at 74% 5%, rgba(255, 152, 40, 0.12), transparent 10rem),
    linear-gradient(180deg, #090705 0%, #050403 100%);
}

.welcome-screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background: #050302;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-coffee.jpg?v=10");
  background-position: center top;
  background-size: cover;
  transform: none;
  animation: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.46) 64%, #050403 100%),
    radial-gradient(circle at 50% 26%, transparent 0%, rgba(0, 0, 0, 0.16) 74%);
}

.welcome-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 32px max(69px, env(safe-area-inset-bottom));
}

.glass-panel {
  width: 100%;
  min-height: 402px;
  padding: 31px 23px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 29px;
  background: linear-gradient(145deg, rgba(23, 16, 11, 0.48), rgba(11, 8, 6, 0.54));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  animation: riseIn 900ms var(--ease) both 120ms;
  text-align: center;
}

.panel-cup {
  display: grid;
  place-items: center;
  width: 70px;
  height: 54px;
  margin: 0 auto 18px;
  color: var(--accent);
  font-size: 2.25rem;
  filter: drop-shadow(0 0 18px rgba(255, 152, 40, 0.28));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
  text-transform: none;
  text-wrap: balance;
}

.welcome-lead {
  margin-bottom: 21px;
  color: rgba(255, 248, 238, 0.78);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.45;
}

.welcome-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 auto 26px;
  color: var(--accent);
}

.welcome-divider::before,
.welcome-divider::after {
  width: 95px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 152, 40, 0.85));
  content: "";
}

.welcome-divider::after {
  background: linear-gradient(90deg, rgba(255, 152, 40, 0.85), transparent);
}

.welcome-divider span {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 4px 4px 8px 4px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 152, 40, 0.38);
}

.welcome-copy {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 400;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  border: 1px solid rgba(255, 219, 174, 0.32);
  border-radius: 28px;
  color: #fff8ee;
  background:
    linear-gradient(145deg, rgba(255, 177, 68, 0.98), rgba(217, 105, 12, 0.96)),
    rgba(255, 152, 40, 0.8);
  box-shadow:
    0 20px 40px rgba(255, 126, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    filter 260ms var(--ease);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 28px 54px rgba(255, 126, 20, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}

.button-icon,
.brand-mark,
.category-icon,
.arrow-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button-icon {
  font-size: 1.42rem;
  color: #fff8ee;
}

.arrow-icon {
  margin-left: 9px;
  color: #fff8ee;
  font-size: 1.45rem;
}

.menu-screen {
  display: none;
  min-height: 100svh;
  padding: 32px;
  opacity: 0;
  transform: translateY(34px);
  pointer-events: none;
  transition:
    opacity 560ms var(--ease),
    transform 560ms var(--ease);
}

body:not(.menu-open) .menu-screen {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none !important;
}

body.menu-open .welcome-screen {
  animation: fadeAway 360ms var(--ease) both;
}

body.welcome-gone .welcome-screen {
  display: none;
}

body.menu-open .menu-screen {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto 24px;
  text-align: center;
}

.brand-mark {
  display: none;
}

.menu-header h2 {
  margin: 0;
  color: #fff7ee;
  font-family: "Great Vibes", cursive;
  font-size: 4.35rem;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
}

.tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-radius: 28px;
  margin: 0 auto;
  margin-bottom: 17px;
  margin-top: 17px;
  background: linear-gradient(180deg, rgba(7, 5, 3, 0.94), rgba(7, 5, 3, 0.76) 78%, transparent);
  backdrop-filter: blur(14px);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
 
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 0;
  border-radius: 28px;
  color: rgba(255, 248, 238, 0.78);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    color 260ms var(--ease),
    background 260ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.tab-button svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}

.tab-button[aria-selected="true"] {
  color: #fff8ee;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 176, 64, 0.98), rgba(220, 107, 13, 0.96));
  box-shadow:
    0 14px 34px rgba(255, 130, 22, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tab-button:not([aria-selected="true"]):hover {
  color: #fff8ee;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.category-section {
  width: 100%;
  border-radius: 28px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding-top: 18px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}

.category-icon {
  width: 35px;
  height: 35px;
  border-radius: 0;
  background: transparent;
  font-size: 1.8rem;
}

.category-heading h3 {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
  transition:
    opacity 280ms var(--ease),
    transform 280ms var(--ease);
}

.menu-grid.is-changing {
  opacity: 0;
  transform: translateY(14px);
}

.drink-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(14, 10, 7, 0.66);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  animation: cardIn 520ms var(--ease) both;
  transform-origin: center bottom;
  transition:
    transform 260ms var(--ease),
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.drink-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255, 152, 40, 0.34);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    0 0 38px rgba(255, 152, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.drink-card::after {
  position: absolute;
  right: 66px;
  bottom: 24px;
  left: 66px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 152, 40, 0.9), transparent);
  content: "";
}

.drink-image-wrap {
  position: relative;
  width: 100%;
  height: 178px;
  overflow: hidden;
}

.drink-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 3, 0.8));
  content: "";
}

.drink-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 420ms var(--ease);
}

.drink-card:hover img {
  transform: scale(1.07);
}

.drink-card h4 {
  display: grid;
  place-items: center;
  min-height: 85px;
  margin: 0;
  padding: 9px 9px 27px;
  font-size: 1.09rem;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 720px) {
  body {
    background: #060504;
  }

  .app-shell {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 374px) {
  .tabs {
    min-height: 54px;
  }

  .tab-button {
    gap: 4px;
    min-height: 54px;
    font-size: 0.72rem;
  }

  .tab-button svg {
    width: 15px;
    height: 15px;
  }

  .menu-grid {
    gap: 14px 9px;
  }

  .drink-card h4 {
    padding-inline: 7px;
    font-size: 0.95rem;
  }

  .drink-image-wrap {
    height: 151px;
  }

  .welcome-content {
    padding-inline: 24px;
  }

  .glass-panel {
    min-height: 486px;
    padding-inline: 20px;
  }

  h1 {
    font-size: 2.36rem;
  }

  .welcome-lead,
  .welcome-copy {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeAway {
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
    pointer-events: none;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
