@font-face {
  font-family: 'LINE Seed KR';
  src: url('/assets/fonts/LINESeedKR-Rg.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed KR';
  src: url('/assets/fonts/LINESeedKR-Bd.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@view-transition {
  navigation: auto;
}

:root {
  color-scheme: light;
  font-family:
    'LINE Seed KR',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #efeee8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

.sign-in-page {
  min-height: 100dvh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
  border: 0;
  background-image: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  border-style: solid;
  color: inherit;
  font: inherit;
}

#app-shell input:not([type='radio']):not([type='checkbox']):not([type='file']),
#app-shell select,
#app-shell textarea {
  border-color: transparent;
  box-shadow: none;
}

#app-shell input:not([type='radio']):not([type='checkbox']):not([type='file']):focus-visible,
#app-shell select:focus-visible,
#app-shell textarea:focus-visible {
  border-color: transparent;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(126 163 74 / 16%);
}

@supports (-webkit-touch-callout: none) {
  #app-shell input:not([type='radio']):not([type='checkbox']):not([type='file']),
  #app-shell select,
  #app-shell textarea {
    font-size: 16px;
  }
}

.memory-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 36%);
}

.memory-tile--peach {
  background: linear-gradient(145deg, #f8d2bd, #eb9c86);
}

.memory-tile--green {
  background: linear-gradient(145deg, #dbe7bd, #a9c57e);
}

.memory-tile--blue {
  background: linear-gradient(145deg, #cbdff1, #8bb2d0);
}

.memory-tile--cream {
  background: linear-gradient(145deg, #f3e7c7, #d8bd7e);
}

.memory-emoji {
  transform: translateY(-7px);
  font-size: 1.9rem;
  filter: drop-shadow(0 5px 8px rgb(67 58 49 / 16%));
}

.memory-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  border-radius: 10px;
  padding: 6px 7px;
  background: rgb(31 34 27 / 62%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.photo-card {
  isolation: isolate;
  transition: transform 160ms ease;
}

.memory-filter-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.memory-filter-scroll::-webkit-scrollbar {
  display: none;
}

.photo-card--pressing {
  transform: scale(0.97);
}

.photo-viewer-trigger {
  z-index: 1;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}

.photo-favorite-button {
  z-index: 2;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.photo-favorite-button:active {
  transform: scale(0.92);
}

.photo-favorite-button--active {
  background: #fffefa;
  color: #df6470;
  box-shadow: 0 5px 16px rgb(52 37 34 / 22%);
}

.photo-favorite-heart {
  font-size: 18px;
  line-height: 1;
}

.message-list--positioning {
  visibility: hidden;
}

.chat-new-message-button {
  position: absolute;
  right: 1rem;
  bottom: calc(9rem + env(safe-area-inset-bottom));
  z-index: 30;
}

#chat-page nav[aria-label='하단 메뉴'] {
  position: static;
  flex-shrink: 0;
}

.bottom-nav-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #aaa99f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.bottom-nav-item--active {
  color: #5f7b37;
}

.filepond--root {
  min-height: 9rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.filepond--panel-root {
  border-radius: 20px;
  border: 1px dashed #b8c99a;
  background: #f4f7ed;
}

.filepond--root .filepond--drop-label {
  min-height: 9rem;
  color: #627848;
}

.filepond--root.dulkong-filepond--has-files .filepond--drop-label {
  display: none;
  min-height: 0;
}

.filepond-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.filepond-label strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.filepond-label small {
  color: #929b82;
  font-size: 0.72rem;
  font-weight: 600;
}

.filepond-label-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  color: #7e9857;
}

.filepond--item-panel {
  background: #354922;
}

.filepond--file-action-button {
  background: rgb(31 42 20 / 72%);
}

.bottom-nav-item:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgb(126 163 74 / 18%);
}

@media (min-width: 481px) {
  body {
    padding-block: 24px;
  }

  .sign-in-page {
    min-height: calc(100dvh - 48px);
  }

  #home {
    border-radius: 32px;
    overflow: hidden;
  }

  nav[aria-label='하단 메뉴'] {
    bottom: 24px;
    border-radius: 0 0 32px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
