/* 메인 페이지 데스크톱 전용 분리 스타일 */

@media (min-width: 721px) {
  .home-content-shell {
    grid-template-columns: minmax(0, 840px) minmax(248px, 292px);
    column-gap: clamp(28px, 3vw, 40px);
    row-gap: 0;
    align-items: start;
  }

  .home-content-shell.is-calendar-hidden {
    grid-template-columns: minmax(0, 840px);
  }

  .home-main-column {
    grid-column: 1;
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 20px;
    align-content: start;
    width: 100%;
    max-width: 840px;
    justify-self: center;
  }

  .home-stage-center {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
    gap: 0;
  }

  .home-hero-search {
    max-width: 680px;
    justify-self: center;
    margin-inline: auto;
  }

  .home-search-input-wrap {
    border-radius: 16px;
  }

  .home-search-input {
    padding: 0 108px 0 64px;
    border-radius: 16px;
    text-align: left;
  }

  .home-search-input::placeholder {
    text-align: left;
  }

  .home-search-submit {
    top: 7px;
    right: 7px;
    border-radius: 12px;
  }

  .home-workspace {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 206px);
    grid-auto-rows: 206px;
    gap: clamp(16px, 1.8vw, 22px);
    align-items: stretch;
    align-content: start !important;
    min-height: 0;
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .home-workspace--compact {
    grid-template-rows: 206px;
    grid-auto-rows: 206px;
  }

  .home-stage-label--workspace {
    display: none;
  }

  .home-db-shelf-section,
  .home-db-shelf-track,
  .home-db-shelf-track--single,
  .home-shortcut-card,
  .home-db-card,
  .home-db-card--feature {
    width: 100%;
  }

  .home-shortcut-card,
  .home-db-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    height: 206px;
    min-height: 206px;
    padding: 18px 18px;
    text-align: center;
  }

  .home-shortcut-head,
  .home-db-card-head {
    width: 100%;
    min-width: 0;
    justify-content: center;
    align-self: center;
  }

  .home-shortcut-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .home-shortcut-icon .material-symbols-outlined {
    font-size: 26px;
  }

  .home-db-card-icon {
    width: 52px;
    height: 52px;
  }

  .home-shortcut-copy-block,
  .home-db-card-copy,
  .home-shortcut-card--manage .home-shortcut-copy-block {
    gap: 8px;
    justify-items: center;
    align-content: center;
    max-width: 34ch;
    text-align: center;
  }

  .home-shortcut-card--manage,
  .home-shortcut-card--manage .home-shortcut-head,
  .home-db-card {
    justify-content: center;
    align-items: center;
  }

  .home-stage-side--right {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  body.home-page .home-today-rail-panel {
    height: auto;
    max-height: none;
    gap: 16px;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible;
  }

  body.home-page .home-today-rail-panel::before,
  body.home-page .home-today-rail-panel::after {
    display: none !important;
    content: none !important;
  }

  body.home-page .home-today-rail-panel:has(> .home-section-loading:only-child) {
    min-height: min(680px, calc(100vh - var(--home-header-offset) - 56px));
    align-content: center;
  }

  .home-calendar-mini {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-calendar-rail-list-section {
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(181, 205, 255, 0.2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 19, 34, 0.72), rgba(18, 25, 44, 0.62));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 36px rgba(5, 10, 24, 0.22);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page {
    --home-calendar-panel-surface: linear-gradient(180deg, rgba(13, 19, 34, 0.74), rgba(18, 25, 44, 0.64));
    --home-main-panel-surface: var(--home-calendar-panel-surface);
    --home-main-panel-border: rgba(181, 205, 255, 0.2);
    --home-main-panel-border-strong: rgba(167, 196, 255, 0.42);
    --home-main-panel-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 36px rgba(5, 10, 24, 0.22);
    --home-tcg-panel-bg:
      linear-gradient(145deg, rgba(15, 22, 40, 0.72), rgba(19, 27, 47, 0.64) 56%, rgba(34, 24, 58, 0.58));
    --home-tcg-panel-hover-bg:
      linear-gradient(145deg, rgba(18, 26, 46, 0.82), rgba(24, 33, 56, 0.76) 56%, rgba(42, 30, 70, 0.68));
    --home-tcg-panel-border:
      linear-gradient(135deg, rgba(139, 179, 255, 0.26), rgba(173, 146, 255, 0.22), rgba(255, 214, 153, 0.14));
    --home-tcg-panel-border-strong:
      linear-gradient(135deg, rgba(160, 196, 255, 0.42), rgba(188, 164, 255, 0.34), rgba(255, 224, 173, 0.22));
  }

  body.home-page .home-search-input-wrap {
    min-height: 56px;
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page .home-search-input-icon,
  body.home-page .home-search-input,
  body.home-page .home-search-input::placeholder,
  body.home-page .home-search-clear {
    color: rgba(248, 250, 255, 0.96);
  }

  body.home-page .home-search-input {
    min-height: 56px;
    line-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    font-synthesis-weight: none;
  }

  body.home-page .home-search-submit {
    border-color: rgba(129, 190, 255, 0.78);
    background: linear-gradient(135deg, rgba(70, 132, 255, 0.96), rgba(51, 108, 235, 0.94));
    color: #ffffff;
    box-shadow:
      0 10px 18px rgba(24, 54, 132, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  body.home-page .home-search-submit:hover,
  body.home-page .home-search-submit:focus-visible {
    border-color: rgba(160, 208, 255, 0.88);
    background: linear-gradient(135deg, rgba(88, 147, 255, 0.98), rgba(60, 118, 242, 0.96));
  }

  body.home-page .home-search-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 96;
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page .home-stage-center,
  body.home-page .home-workspace,
  body.home-page .home-hero-search,
  body.home-page .home-search-shell {
    overflow: visible;
  }

  body.home-page .home-stage-center {
    z-index: 30;
  }

  body.home-page .home-workspace,
  body.home-page .home-stage-side--right {
    position: relative;
    z-index: 1;
  }

  body.home-page .home-search-shell,
  body.home-page .home-search-shell.is-results-open,
  body.home-page .home-hero-search {
    z-index: 120;
  }

  body.home-page .home-search-group-title,
  body.home-page .home-search-group-summary,
  body.home-page .home-search-discovery-title,
  body.home-page .home-search-recent-title,
  body.home-page .home-search-recent-clear,
  body.home-page .home-search-feedback-state .fdc-empty-state-title,
  body.home-page .home-search-feedback-state .fdc-loading-copy-text,
  body.home-page .home-search-feedback-state .fdc-empty-state-copy,
  body.home-page .home-search-recent-item,
  body.home-page .home-search-popular-item,
  body.home-page .home-search-popular-rank,
  body.home-page .home-search-popular-text,
  body.home-page .home-search-recent-item-icon,
  body.home-page .home-search-recent-item-remove,
  body.home-page .home-search-group-error {
    color: rgba(244, 247, 255, 0.9);
  }

  body.home-page .home-search-discovery-panel.is-popular {
    border-left-color: rgba(181, 205, 255, 0.16);
  }

  body.home-page .home-search-recent-item:hover,
  body.home-page .home-search-recent-item:focus-within {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
  }

  body.home-page .home-search-recent-clear:hover,
  body.home-page .home-search-recent-clear:focus-visible {
    color: rgba(255, 255, 255, 0.98);
  }

  body.home-page .home-search-post-card,
  body.home-page .home-search-shop-card,
  body.home-page .home-search-user-card,
  body.home-page .home-search-card-item {
    border: 1px solid rgba(176, 199, 240, 0.24);
    background: linear-gradient(180deg, rgba(31, 43, 70, 0.96), rgba(25, 36, 59, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 28px rgba(5, 10, 24, 0.18);
  }

  body.home-page .home-search-post-card:hover,
  body.home-page .home-search-shop-card:hover,
  body.home-page .home-search-user-card:hover,
  body.home-page .home-search-card-item:hover {
    border-color: rgba(196, 215, 250, 0.34);
    background: linear-gradient(180deg, rgba(36, 49, 78, 0.98), rgba(29, 41, 68, 0.94));
  }

  body.home-page .home-search-post-title,
  body.home-page .home-search-shop-name,
  body.home-page .home-search-user-name,
  body.home-page .home-search-post-copy,
  body.home-page .home-search-shop-meta,
  body.home-page .home-search-user-meta,
  body.home-page .home-search-card-copy,
  body.home-page .home-search-card-title,
  body.home-page .home-search-card-meta {
    color: rgba(244, 247, 255, 0.94);
  }

  body.home-page .home-search-post-card:hover .home-search-post-title,
  body.home-page .home-search-shop-card:hover .home-search-shop-name,
  body.home-page .home-search-user-card:hover .home-search-user-name {
    color: #ffffff;
  }

  body.home-page .home-shortcut-card,
  body.home-page .home-db-card {
    border: 1px solid var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
    box-shadow: var(--home-main-panel-shadow);
  }

  body.home-page .home-shortcut-card--interactive:hover,
  body.home-page .home-shortcut-card--interactive:focus-visible,
  body.home-page .home-db-card--available:hover,
  body.home-page .home-db-card--available:focus-visible {
    border-color: var(--home-main-panel-border-strong);
    background: var(--home-main-panel-surface);
  }

  body.home-page .home-shortcut-title,
  body.home-page .home-db-card-title {
    color: rgba(248, 250, 255, 0.98);
  }

  body.home-page .home-shortcut-copy,
  body.home-page .home-db-card-body {
    color: rgba(220, 229, 241, 0.78);
  }

  body.home-page .home-shortcut-card--map .home-shortcut-icon,
  body.home-page .home-shortcut-card--manage .home-shortcut-icon,
  body.home-page .home-db-card-icon {
    background: transparent;
    box-shadow: none;
  }

  body.home-page .home-shortcut-card--map .home-shortcut-icon .material-symbols-outlined,
  body.home-page .home-shortcut-card--manage .home-shortcut-icon .material-symbols-outlined {
    filter: none;
  }

  body.home-page .home-shortcut-icon {
    background: transparent;
    box-shadow: none;
  }

  body.home-page .home-calendar-mini {
    padding: 16px 16px 14px;
    border: 1px solid var(--home-main-panel-border);
    border-radius: 18px;
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page .home-calendar-mini-month,
  body.home-page .home-calendar-rail-list-title,
  body.home-page .home-calendar-rail-title,
  body.home-page .home-calendar-mini-open,
  body.home-page .home-calendar-mini-weekday {
    color: rgba(244, 247, 255, 0.96);
  }

  body.home-page .home-calendar-mini-grid {
    gap: 10px;
  }

  body.home-page .home-calendar-mini--loading,
  body.home-page .home-calendar-rail-list-section--loading {
    visibility: visible;
  }

  body.home-page .home-calendar-mini--loading .home-calendar-mini-month,
  body.home-page .home-calendar-rail-list-section--loading .home-calendar-rail-list-title {
    color: rgba(244, 247, 255, 0.82);
  }

  body.home-page .home-calendar-mini-loading-cell {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body.home-page .home-calendar-mini-day {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(240, 244, 255, 0.92);
    font-size: 0.94rem;
    font-weight: 600;
    transition:
      color 160ms ease,
      background-color 160ms ease,
      border-color 160ms ease,
      transform 160ms ease,
      box-shadow 160ms ease;
  }

  body.home-page .home-calendar-mini-day.is-empty {
    background: transparent;
    border-color: transparent;
  }

  body.home-page .home-calendar-mini-day > span:first-child {
    min-width: 28px;
    min-height: 28px;
    padding: 0 2px;
    border-radius: 999px;
  }

  body.home-page .home-calendar-mini-day.is-sunday {
    color: #fda4af;
  }

  body.home-page .home-calendar-mini-day.is-saturday {
    color: #93c5fd;
  }

  body.home-page .home-calendar-mini-day.is-today {
    color: rgba(226, 236, 255, 0.98);
  }

  body.home-page .home-calendar-mini-day.is-today > span:first-child {
    border: 1px solid rgba(129, 190, 255, 0.78);
    background: rgba(77, 139, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  body.home-page button.home-calendar-mini-day:hover,
  body.home-page button.home-calendar-mini-day:focus-visible {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
  }

  body.home-page .home-calendar-mini-day.is-selected {
    color: #ffffff;
  }

  body.home-page .home-calendar-mini-day.is-selected > span:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(70, 132, 255, 0.96), rgba(51, 108, 235, 0.94));
    box-shadow:
      0 10px 18px rgba(24, 54, 132, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  body.home-page .home-calendar-mini-day.is-selected.is-today > span:first-child {
    box-shadow:
      0 10px 18px rgba(24, 54, 132, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  body.home-page .home-calendar-mini-day.is-selected,
  body.home-page .home-calendar-mini-day.is-selected.is-saturday,
  body.home-page .home-calendar-mini-day.is-selected.is-sunday,
  body.home-page .home-calendar-mini-day.is-selected > span:first-child {
    color: #ffffff;
  }

  body.home-page .home-calendar-mini-dot {
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border: none;
    box-shadow: none;
    transform: translate(38%, -38%);
  }

  body.home-page .home-calendar-mini-day.is-selected .home-calendar-mini-dot {
    border: none;
    box-shadow: none;
  }

  body.home-page .home-calendar-rail-list-section {
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home-page .home-calendar-rail-list {
    gap: 12px;
  }

  body.home-page .home-calendar-rail-list-head {
    padding: 0 2px;
  }

  body.home-page .home-calendar-rail-list--loading {
    min-height: 248px;
    align-items: center;
    align-content: center;
  }

  body.home-page .home-calendar-rail-item {
    width: 100%;
    border: 1px solid var(--home-main-panel-border);
    border-radius: 14px;
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
  }

  body.home-page .home-calendar-rail-item.is-link:hover,
  body.home-page .home-calendar-rail-item.is-link:focus-visible {
    background: var(--home-main-panel-surface);
    border-color: var(--home-main-panel-border-strong);
    box-shadow: var(--home-main-panel-shadow);
  }

  body.home-page .home-calendar-rail-item .calendar-event-time-primary,
  body.home-page .home-calendar-rail-item .calendar-event-time-secondary,
  body.home-page .home-calendar-rail-item .calendar-event-title,
  body.home-page .home-calendar-rail-item .calendar-event-meta,
  body.home-page .home-calendar-rail-item .calendar-event-shop-name-text {
    color: rgba(244, 247, 255, 0.96);
  }

  body.home-page .home-calendar-rail-item .calendar-event-meta {
    color: rgba(214, 224, 241, 0.82);
  }

  body.home-page .home-calendar-rail-item .calendar-event-shop-avatar {
    border-color: rgba(140, 171, 228, 0.24);
    background: rgba(255, 255, 255, 0.08);
  }

  body.home-page .home-calendar-rail-item .calendar-event-shop-avatar--fallback {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(96, 171, 255, 0.98);
  }

  body.home-page .home-calendar-rail-item .calendar-event-arrow {
    color: rgba(220, 229, 241, 0.74);
  }

  body.home-page .home-calendar-rail-empty .fdc-empty-state-icon,
  body.home-page .home-calendar-rail-empty .fdc-empty-state-title,
  body.home-page .home-calendar-rail-empty .fdc-empty-state-copy {
    color: rgba(244, 247, 255, 0.88);
  }

  body.home-page .home-calendar-rail-empty.fdc-empty-state {
    min-height: 248px;
    padding: 24px 20px;
    border: 1px solid var(--home-main-panel-border);
    border-radius: 24px;
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    padding-inline: 20px;
  }

  body.home-page .home-calendar-mini-weekday.is-sunday {
    color: #fca5a5;
  }

  body.home-page .home-calendar-mini-weekday.is-saturday {
    color: #93c5fd;
  }

  body.home-page .home-calendar-list > .home-section-loading .fdc-loading-copy-text {
    color: rgba(244, 247, 255, 0.96);
  }

  body.home-page .home-calendar-list > .home-section-loading,
  body.home-page .home-calendar-rail-list--loading > .home-section-loading {
    display: grid;
    place-items: center;
    min-height: 248px;
    width: 100%;
    padding: 24px 20px;
    border: 1px solid var(--home-main-panel-border);
    border-radius: 24px;
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
  }

  body.home-page .home-calendar-rail-list--loading > .home-section-loading .fdc-loading-stack {
    gap: 12px;
    justify-items: center;
    text-align: center;
  }

  body.home-page .home-calendar-rail-list--loading > .home-section-loading .fdc-loading-copy-text {
    color: rgba(244, 247, 255, 0.96);
  }

  :root[data-theme='dark'] .home-today-rail-panel,
  :root[data-theme='dark'] .home-calendar-mini,
  :root[data-theme='dark'] .home-calendar-rail-list-section {
    box-shadow: none;
  }
}

@keyframes home-logo-float {
  0%,
  100% {
    transform:
      perspective(1600px)
      rotateX(var(--home-logo-rotate-x))
      rotateY(var(--home-logo-rotate-y))
      translateY(0);
  }

  50% {
    transform:
      perspective(1600px)
      rotateX(calc(var(--home-logo-rotate-x) * 0.72))
      rotateY(calc(var(--home-logo-rotate-y) * 0.72))
      translateY(-10px);
  }
}

@media (max-width: 1280px) {
  .home-content-shell,
  .home-content-shell.is-calendar-hidden {
    grid-template-columns: minmax(0, 780px) minmax(220px, 280px);
  }

  .home-hero-title {
    font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  }

  .home-logo-stage {
    width: min(100%, 500px);
  }
}

@media (max-width: 1120px) {
  .home-content-shell,
  .home-content-shell.is-calendar-hidden {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
    align-items: start;
  }

  .home-stage-center {
    order: 1;
    margin-top: 0;
  }

  .home-workspace {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    align-items: stretch;
    margin-top: 0;
    height: auto;
  }

  .home-stage-label--workspace {
    position: static;
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 5.4vw, 2.6rem);
    white-space: normal;
  }

  .home-stage-side {
    order: 3;
  }

  .home-hero-search {
    max-width: 100%;
    transform: none;
    margin-bottom: 0;
  }

  .home-search-popover {
    position: static;
    left: auto;
    right: auto;
    z-index: auto;
  }

  .home-today-rail-panel {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 840px) {
  .home-hero-content {
    gap: 18px;
  }

  .home-hero-kicker,
  .home-hero-signature {
    justify-self: start;
    text-align: left;
  }

  .home-workspace {
    grid-template-columns: 1fr;
  }

  .home-logo-stage {
    aspect-ratio: 1 / 1.04;
  }
}

