body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fffdf8;
  color: #50391f;
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    Arial,
    sans-serif;
  line-height: 1.5;
}

body.is-menu-open {
  overflow: hidden;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.app-main {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 118px;
}


/* ================================
   헤더
================================ */

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(18px);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 930px);
  height: 102px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #594020;
}

.brand__mark {
  display: block;
  width: 61px;
  height: 61px;
  flex: 0 0 61px;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  font-family:
    "Arial Rounded MT Bold",
    "Trebuchet MS",
    sans-serif;
  font-size: clamp(28px, 4.5vw, 47px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}

.header-action-button {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: #705237;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.header-action-button:hover {
  transform: translateY(-2px);
}

.header-action-button svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button__dot {
  position: absolute;
  top: 1px;
  right: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  background: #f0669e;
}


/* ================================
   하단 내비게이션
================================ */

.bottom-navigation {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 14px 12px;
  pointer-events: none;
}

.bottom-navigation__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 900px);
  min-height: 106px;
  margin: 0 auto;
  padding:
    16px 18px
    max(12px, env(safe-area-inset-bottom));
  border: 1px solid rgba(193, 157, 119, 0.23);
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow:
    0 10px 30px rgba(100, 72, 43, 0.08);
  backdrop-filter: blur(24px);
  pointer-events: auto;
}

.bottom-navigation__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #99734e;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.bottom-navigation__item:hover {
  transform: translateY(-2px);
  color: #8059bd;
}

.bottom-navigation__item.is-active {
  color: #8059bd;
}

.bottom-navigation__icon {
  width: 35px;
  height: 35px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-navigation__item.is-active
.bottom-navigation__icon {
  fill: currentColor;
  stroke: currentColor;
}

.bottom-navigation__label {
  overflow: hidden;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ================================
   공통 반응형
================================ */

@media (max-width: 640px) {
  .app-header__inner {
    height: 76px;
    padding: 0 17px;
  }

  .brand {
    gap: 7px;
  }

  .brand__mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .brand__text {
    font-size: 25px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-action-button {
    width: 37px;
    height: 37px;
  }

  .notification-button__dot {
    width: 12px;
    height: 12px;
  }

  .app-main {
    padding-bottom: 97px;
  }

  .bottom-navigation {
    padding-right: 8px;
    padding-bottom: 7px;
    padding-left: 8px;
  }

  .bottom-navigation__inner {
    min-height: 80px;
    padding: 11px 7px;
    border-radius: 23px;
  }

  .bottom-navigation__icon {
    width: 26px;
    height: 26px;
  }

  .bottom-navigation__label {
    font-size: 12px;
  }
}