@import url("/public/styles/design-system.css?v=20260315a");

/* Prevent horizontal overflow on mobile-capped body layout */
html {
  overflow-x: hidden;
}

:root {
  --fate-home-topbar-h: 72px;
  --fate-home-bottom-h: calc(78px + env(safe-area-inset-bottom, 0px) + 4px);
  --fate-home-main-h: calc(100vh - var(--fate-home-topbar-h) - var(--fate-home-bottom-h));
}

.fate-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  padding: 0 var(--fate-space-4);
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.72), rgba(8, 8, 12, 0.5)),
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 46%);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: height 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.fate-topbar-side {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.fate-topbar-side-left {
  justify-content: flex-start;
}

.fate-topbar-side-right {
  justify-content: flex-end;
}

.fate-logo-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.24s ease;
  font-family: var(--fate-font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.fate-topbar-brand {
  justify-self: center;
  align-self: center;
}

.fate-logo-text {
  display: inline-block;
  font-family: var(--fate-font-display);
  font-size: var(--fate-font-size-display-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1;
  transition: font-size 0.24s ease;
  transform: translateZ(0);
}

.fate-logo-img {
  width: 80px;
  height: auto;
  display: block;
  transition: width 0.24s ease;
}

.fate-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--fate-space-2);
}

.fate-top-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--fate-radius-pill);
  border: 1px solid var(--fate-color-border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fate-top-icon-btn:hover {
  border-color: rgba(255, 78, 35, 0.3);
  background: rgba(255, 78, 35, 0.14);
}

.fate-top-icon-btn:active {
  transform: translateY(1px);
}

.fate-top-icon-btn .material-symbols-outlined {
  font-size: var(--fate-font-size-title);
}

/* 19+ 토글 — 로고 바로 오른쪽, 탑툰 스타일 pill */
.fate-adult-toggle {
  margin-left: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fate-adult-toggle[hidden] {
  display: none !important;
}

.fate-adult-toggle[data-adult-ready="0"] {
  visibility: hidden;
  pointer-events: none;
}

.fate-adult-toggle-track {
  position: relative;
  width: 45px;
  height: 23px;
  border-radius: var(--fate-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  transition: background 0.22s ease;
}

.fate-adult-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  border-radius: var(--fate-radius-pill);
  background: #fff;
  border: 3px solid #ff4e23;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fate-font-size-micro);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #ff4e23;
  transition: left 0.22s ease;
  line-height: 1;
  user-select: none;
}

.fate-adult-toggle[data-adult-ready="0"] .fate-adult-toggle-track,
.fate-adult-toggle[data-adult-ready="0"] .fate-adult-toggle-thumb {
  transition: none;
}

/* ON 상태 — circle 오른쪽 이동 + track 빨간색으로 채움 */
.fate-adult-toggle.is-on .fate-adult-toggle-track {
  background: #ff4e23;
}


.fate-adult-toggle.is-on .fate-adult-toggle-thumb {
  left: calc(100% - 21px);
}

.fate-top-noti-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--fate-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(140deg, #ff824e, #ff4e23);
  color: #fff;
  font-size: var(--fate-font-size-overline);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--fate-space-0) var(--fate-space-1);
  line-height: 1;
}

.fate-top-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  background: rgba(5, 7, 12, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: 76px;
  padding-left: var(--fate-space-3_5);
  padding-right: var(--fate-space-3_5);
}

.fate-top-overlay.on {
  display: block;
}

.fate-top-sheet {
  width: 100%;
  max-height: calc(100dvh - 92px);
  border-radius: var(--fate-radius-lg);
  border: 1px solid rgba(255, 78, 35, 0.16);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 78, 35, 0.14), transparent 54%),
    linear-gradient(160deg, rgba(28, 17, 13, 0.96), rgba(10, 9, 10, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.44);
  padding: var(--fate-space-3);
  overflow: auto;
}

.fate-top-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fate-top-sheet-head h3 {
  margin: 0;
  font-size: var(--fate-font-size-body-lg);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.fate-top-sheet-close {
  appearance: none;
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--fate-radius-pill);
  border: 1px solid var(--fate-color-border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.fate-top-sheet-close-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.fate-top-sheet-close-icon::before,
.fate-top-sheet-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: var(--fate-radius-pill);
  background: rgba(255, 255, 255, 0.95);
  transform-origin: 50% 50%;
}

.fate-top-sheet-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fate-top-sheet-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fate-top-sheet-sub {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--fate-font-size-caption);
  line-height: 1.55;
}

.fate-top-noti-list {
  display: grid;
  gap: 8px;
}

.fate-top-noti-item {
  border-radius: var(--fate-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--fate-space-3);
  color: inherit;
  text-decoration: none;
  display: block;
}

.fate-top-noti-item-title {
  margin: 0;
  font-size: var(--fate-font-size-caption);
  color: #fff;
  line-height: 1.45;
}

.fate-top-noti-item-body {
  margin: 6px 0 0;
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.5;
}

.fate-top-noti-item-meta {
  margin: 8px 0 0;
  font-size: var(--fate-font-size-overline);
  color: rgba(255, 255, 255, 0.48);
}

.fate-top-empty {
  border-radius: var(--fate-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--fate-space-3);
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.fate-top-loading {
  min-height: 120px;
  border-radius: var(--fate-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--fate-space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fate-top-loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ff6a3d;
  animation: fateTopLoadingSpin 0.8s linear infinite;
  flex: 0 0 auto;
}

.fate-top-loading-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fate-font-size-caption);
  line-height: 1.5;
}

@keyframes fateTopLoadingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fate-top-caption {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fate-font-size-overline);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fate-topbar.is-scrolled {
  height: 58px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.84), rgba(8, 8, 12, 0.66)),
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.04), transparent 42%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.fate-topbar.is-scrolled .fate-logo-btn {
  transform: none;
}

.fate-topbar.is-scrolled .fate-top-icon-btn {
  width: 34px;
  height: 34px;
}

.fate-topbar.is-scrolled .fate-logo-img {
  width: 68px;
}

.fate-topbar.is-scrolled .fate-logo-text {
  font-size: var(--fate-font-size-hero);
}

.fate-page-wrap {
  min-height: 100dvh;
  padding-top: 78px;
  padding-bottom: 102px;
  padding-left: 16px;
  padding-right: var(--fate-space-4);
  padding-left: var(--fate-space-4);
  background-image:
    radial-gradient(at 5% 0%, rgba(255, 78, 35, 0.18) 0px, transparent 56%),
    radial-gradient(at 100% 100%, rgba(255, 158, 102, 0.12) 0px, transparent 52%);
}

body[data-page]::before,
body[data-page]::after {
  content: "";
  position: fixed;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

body[data-page]::before {
  inset: 0;
  z-index: 9998;
  pointer-events: auto;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 78, 35, 0.18), transparent 52%),
    radial-gradient(100% 90% at 100% 100%, rgba(255, 140, 92, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.98), rgba(10, 8, 8, 0.98));
}

body[data-page]::after {
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #ff4e23;
  border-right-color: #ff8d61;
  box-shadow:
    0 0 0 6px rgba(255, 78, 35, 0.08),
    0 0 28px rgba(255, 78, 35, 0.24);
  animation: fatePageLoaderSpin 0.88s linear infinite;
  pointer-events: none;
}

body[data-page]:not([data-page-ready="1"]) #fateTopbarMount,
body[data-page]:not([data-page-ready="1"]) #fateBottomNavMount,
body[data-page]:not([data-page-ready="1"]) .fate-page-wrap,
body[data-page="start"]:not([data-page-ready="1"]) #app-container {
  opacity: 0;
  visibility: hidden;
}

body[data-page][data-page-ready="1"] #fateTopbarMount,
body[data-page][data-page-ready="1"] #fateBottomNavMount,
body[data-page][data-page-ready="1"] .fate-page-wrap,
body[data-page="start"][data-page-ready="1"] #app-container {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease;
}

body[data-page][data-page-ready="1"]::before,
body[data-page][data-page-ready="1"]::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-page="mypage"] #fateBottomNavMount {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 180;
}

body[data-page="mypage"] .fate-bottom-nav {
  z-index: 180 !important;
}

body[data-page="home"] .fate-page-wrap {
  height: auto;
  min-height: calc(var(--fate-home-topbar-h) + var(--fate-home-main-h) + var(--fate-home-bottom-h));
  display: flex;
  flex-direction: column;
  padding-top: var(--fate-home-topbar-h);
  padding-bottom: var(--fate-home-bottom-h);
}

.fate-hero {
  border-radius: var(--fate-radius-lg);
  border: 1px solid rgba(255, 78, 35, 0.18);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 78, 35, 0.18), transparent 54%),
    linear-gradient(145deg, rgba(42, 24, 18, 0.88), rgba(17, 10, 8, 0.94));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: var(--fate-space-4);
}

.fate-hero h1 {
  margin: 0;
  font-size: var(--fate-font-size-title-lg);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  word-break: keep-all;
}

.fate-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--fate-font-size-body);
  line-height: 1.55;
}

.fate-theme-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

body[data-page="home"] .fate-theme-list {
  margin-top: 0;
  flex: 0 0 var(--fate-home-main-h);
  height: var(--fate-home-main-h);
  min-height: 0;
}

.fate-theme-carousel {
  --card-w: clamp(238px, 78vw, 332px);
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: calc(50% - var(--card-w) / 2);
  padding-right: calc(50% - var(--card-w) / 2);
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-page="home"] .fate-theme-carousel {
  height: 100%;
  overflow-y: hidden;
  cursor: grab;
}

body[data-page="home"] .fate-theme-carousel:active {
  cursor: grabbing;
}

.fate-theme-carousel::-webkit-scrollbar {
  display: none;
}

.fate-theme-carousel .fate-theme-poster {
  flex: 0 0 var(--card-w);
  height: min(90dvh, 760px);
  scroll-snap-align: center;
  transform: none;
  opacity: 0.58;
  filter: saturate(0.82) brightness(0.88);
  transition:
    opacity 0.26s ease,
    filter 0.26s ease,
    box-shadow 0.26s ease;
}

.fate-theme-carousel .fate-theme-poster.is-focus {
  transform: none;
  opacity: 1;
  filter: none;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.54);
}

.fate-theme-poster {
  position: relative;
  display: block;
  border-radius: var(--fate-radius-lg-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

body[data-page="home"] .fate-theme-carousel .fate-theme-poster {
  height: 100%;
}

.fate-theme-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.36) 50%, rgba(0, 0, 0, 0.74) 100%),
    radial-gradient(120% 60% at 0% 100%, rgba(255, 78, 35, 0.42), transparent 55%);
}

.fate-theme-poster-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.fate-theme-poster h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: var(--fate-font-size-title-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.fate-theme-poster p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--fate-font-size-caption);
  line-height: 1.5;
}

.fate-theme-carousel .fate-theme-poster h2 {
  font-size: var(--fate-font-size-title);
}

.fate-theme-carousel .fate-theme-poster p {
  font-size: var(--fate-font-size-caption);
}

@media (min-width: 768px) {
  .fate-theme-carousel {
    --card-w: clamp(284px, 38vw, 360px);
  }
  .fate-theme-carousel .fate-theme-poster {
    flex-basis: var(--card-w);
    height: min(90dvh, 820px);
  }
}

@keyframes fatePageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.fate-theme-card {
  border-radius: var(--fate-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  padding: var(--fate-space-4);
  text-decoration: none;
  color: #fff;
  display: block;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.fate-theme-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.fate-theme-card h2 {
  margin: 0;
  font-size: var(--fate-font-size-title);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.fate-theme-card p {
  margin: 8px 0 0;
  font-size: var(--fate-font-size-caption);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.fate-chip-row {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fate-chip {
  border-radius: var(--fate-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fate-font-size-overline);
  font-weight: 600;
}

.fate-chip-muted {
  color: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.fate-cta-btn {
  margin-top: 14px;
  width: 100%;
  height: 50px;
  border-radius: var(--fate-radius-pill);
  border: 0;
  font-size: var(--fate-font-size-body-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff7a45 0%, #ff4e23 100%);
  box-shadow: 0 12px 30px rgba(255, 78, 35, 0.28);
}

.fate-search-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--fate-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--fate-space-3) var(--fate-space-4);
}

.fate-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: var(--fate-font-size-body);
  outline: none;
}

.fate-search-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.fate-panel {
  margin-top: 14px;
  border-radius: var(--fate-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--fate-space-4);
}

.fate-panel h3 {
  margin: 0;
  color: #fff;
  font-size: var(--fate-font-size-body-lg);
  font-weight: 700;
}

.fate-panel p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fate-font-size-caption);
  line-height: 1.5;
}

.fate-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--fate-space-4);
  background: rgba(2, 2, 5, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fate-modal-overlay.on {
  display: flex;
}

.fate-modal-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--fate-radius-lg);
  border: 1px solid rgba(255, 78, 35, 0.24);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 78, 35, 0.18), transparent 56%),
    linear-gradient(152deg, rgba(38, 22, 16, 0.97), rgba(13, 9, 8, 0.98));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 78, 35, 0.14);
  padding: var(--fate-space-4);
}

.fate-modal-title {
  margin: 0;
  color: #fff;
  font-size: var(--fate-font-size-title);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.fate-modal-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fate-font-size-caption);
  line-height: 1.55;
  text-align: center;
}

.fate-form-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.fate-inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.fate-note-inline {
  margin: 2px 0 0;
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.fate-bokchae-card {
  margin-top: 10px;
  border-radius: var(--fate-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 120, 87, 0.11));
  padding: var(--fate-space-3);
}

.fate-bokchae-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fate-bokchae-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--fate-radius-xs);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: var(--fate-space-1_5);
}

.fate-bokchae-label {
  margin: 0;
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.64);
}

.fate-bokchae-value {
  margin: 2px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.fate-bokchae-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fate-bokchae-meta span {
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--fate-radius-pill);
  padding: var(--fate-space-1_25) var(--fate-space-2_25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.fate-bokchae-theme-cost {
  margin-top: 10px;
}

.fate-bokchae-theme-cost h4 {
  margin: 0 0 8px;
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

.fate-bokchae-cost-list {
  display: grid;
  gap: 7px;
}

.fate-bokchae-cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: var(--fate-radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--fate-space-2) var(--fate-space-2_5);
  font-size: var(--fate-font-size-caption);
}

.fate-bokchae-cost-item strong {
  color: #fff;
}

.fate-input {
  width: 100%;
  border: 1px solid var(--fate-color-border);
  border-radius: var(--fate-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fate-color-text-strong);
  font-size: var(--fate-font-size-body);
  padding: var(--fate-space-3) var(--fate-field-pad-x);
  outline: none;
}

.fate-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.fate-mini-btn {
  height: 38px;
  border-radius: var(--fate-radius-xs);
  border: 1px solid var(--fate-color-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fate-color-text-strong);
  font-size: var(--fate-font-size-caption);
  font-weight: var(--fate-font-weight-bold);
  padding: 0 12px;
}

.fate-inline-row > .fate-mini-btn,
.fate-inline-row > .fate-btn,
.mypage-field-inline > .fate-mini-btn,
.mypage-field-inline > .fate-btn,
.mypage-edit-phone-wrap > .fate-mini-btn,
.mypage-edit-phone-wrap > .fate-btn,
.fate-auth-input-row > .fate-mini-btn,
.fate-auth-input-row > .fate-btn {
  height: var(--fate-field-height-md);
  min-height: var(--fate-field-height-md);
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
}

.fate-social-login-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.fate-social-login-btn {
  border: 0;
  padding: 0;
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: var(--fate-radius-sm);
  font-size: var(--fate-font-size-body);
  font-weight: var(--fate-font-weight-bold);
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fate-social-login-btn.kakao {
  background-color: var(--fate-color-kakao);
  color: var(--fate-color-kakao-text);
}

.fate-social-login-btn.naver {
  background-color: #03C75A;
  color: #FFFFFF;
}

.fate-social-login-btn svg {
  width: 18px;
  height: 18px;
}

.fate-social-login-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fate-social-login-btn:active {
  transform: translateY(0);
}

.fate-social-login-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: var(--fate-radius-sm);
}

.fate-history-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.fate-history-item {
  border-radius: var(--fate-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fate-history-title {
  margin: 0;
  font-size: var(--fate-font-size-body);
  font-weight: 700;
  color: #fff;
}

.fate-history-meta {
  margin: 3px 0 0;
  font-size: var(--fate-font-size-caption);
  color: rgba(255, 255, 255, 0.56);
}

.fate-history-link {
  border-radius: var(--fate-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--fate-font-size-caption);
  font-weight: 700;
  text-decoration: none;
  padding: 7px 10px;
  white-space: nowrap;
}

.fate-live-activity-badge {
  position: fixed;
  left: auto !important;
  right: max(14px, calc((100vw - min(430px, 100vw)) / 2 + 14px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 108px);
  z-index: 74;
  width: calc(min(430px, 100vw) * 0.5);
  max-width: calc(min(430px, 100vw) * 0.5);
  min-width: 150px;
  border-radius: var(--fate-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(12, 14, 22, 0.9);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fate-live-activity-badge.on {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fate-live-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--fate-radius-pill);
  background: #ffc93e;
  box-shadow:
    0 0 0 0 rgba(255, 201, 62, 0.44),
    0 0 14px rgba(255, 201, 62, 0.4);
  animation: fateLivePulse 1.9s ease-in-out infinite;
  flex: 0 0 auto;
}

.fate-live-activity-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fate-font-size-caption);
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fateLivePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 201, 62, 0.44),
      0 0 14px rgba(255, 201, 62, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 7px rgba(255, 201, 62, 0),
      0 0 14px rgba(255, 201, 62, 0.24);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 201, 62, 0),
      0 0 10px rgba(255, 201, 62, 0.2);
  }
}

.fate-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--fate-radius-pill);
  font-size: var(--fate-font-size-overline);
  font-weight: 700;
  padding: 2px 7px;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.fate-status-paid {
  color: #ffe3d6;
  border-color: rgba(255, 78, 35, 0.38);
  background: rgba(255, 78, 35, 0.16);
}

.fate-bottom-nav {
  height: 78px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border-top: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.8), rgba(8, 8, 12, 0.95));
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.fate-nav-item {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: var(--fate-font-size-overline);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fate-nav-item .material-symbols-outlined {
  font-size: 21px;
}

.fate-nav-item-center {
  transform: translateY(-10px);
}

.fate-nav-item-center .material-symbols-outlined {
  width: 46px;
  height: 46px;
  border-radius: var(--fate-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #ffe3d6;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(140deg, rgba(255, 78, 35, 0.7), rgba(255, 106, 61, 0.82));
  box-shadow: 0 10px 24px rgba(255, 78, 35, 0.34);
}

.fate-nav-item-center span:last-child {
  margin-top: 1px;
}

.fate-nav-item.active {
  color: #fff;
}

.fate-nav-item.active .material-symbols-outlined {
  color: #ff6a3d;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

.fate-nav-item-center.active .material-symbols-outlined {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(140deg, rgba(255, 78, 35, 0.92), rgba(255, 106, 61, 0.96));
}

.fate-theme-detail-poster {
  position: relative;
  width: 100%;
  border-radius: var(--fate-radius-lg-plus);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: url("/public/assets/branding/theme-default.jpeg") center / cover no-repeat;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.fate-theme-detail-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.4) 58%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(130% 64% at 0% 100%, rgba(255, 78, 35, 0.44), transparent 56%);
}

.fate-theme-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fate-theme-detail-secondary {
  width: 100%;
  height: 46px;
  border-radius: var(--fate-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fate-font-size-body);
  font-weight: 740;
  letter-spacing: -0.01em;
}

.fate-site-footer {
  margin-top: 18px;
  padding: var(--fate-space-4) var(--fate-space-3_5) var(--fate-space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: var(--fate-font-size-overline);
  line-height: 1.7;
}

.fate-site-footer p {
  margin: 0 0 3px;
}

.fate-site-footer-inline-link {
  color: inherit;
  text-decoration: none;
}

.fate-site-footer-inline-link:hover {
  color: #fff;
}

.fate-site-footer-links {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.64);
}

.fate-site-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.fate-site-footer-links a:hover {
  color: #fff;
}

.fate-site-footer-copy {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
}
