.fate-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  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-logo-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.24s ease;
  font-family: "Bodoni Moda", "Didot", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.fate-logo-text {
  display: inline-block;
  font-family: "Bodoni Moda", "Didot", serif;
  font-size: 31px;
  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 {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.fate-top-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.fate-top-noti-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(140deg, #ff4fb5, #7d65ff);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  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: 14px;
  padding-right: 14px;
}

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

.fate-top-sheet {
  width: 100%;
  max-height: calc(100dvh - 92px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(18, 21, 34, 0.95), rgba(8, 10, 18, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.44);
  padding: 12px;
  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: 17px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.fate-top-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

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

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

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

.fate-top-noti-item-title {
  margin: 0;
  font-size: 13px;
  color: #fff;
  line-height: 1.45;
}

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

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

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

.fate-top-menu-link {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

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

.fate-top-caption {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  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-logo-img {
  width: 68px;
}

.fate-topbar.is-scrolled .fate-logo-text {
  font-size: 27px;
}

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

.fate-hero {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(28, 23, 41, 0.82), rgba(10, 14, 28, 0.88));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.fate-hero h1 {
  margin: 0;
  font-size: 26px;
  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: 14px;
  line-height: 1.55;
}

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

.fate-theme-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 16px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 28px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.fate-theme-carousel .fate-theme-poster {
  flex: 0 0 clamp(224px, 72vw, 298px);
  scroll-snap-align: start;
  transform: scale(0.9);
  transform-origin: center bottom;
  opacity: 0.58;
  filter: saturate(0.82) brightness(0.88);
  transition:
    transform 0.26s ease,
    opacity 0.26s ease,
    filter 0.26s ease,
    box-shadow 0.26s ease;
}

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

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

.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(238, 43, 157, 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: 24px;
  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: 13px;
  line-height: 1.5;
}

.fate-theme-carousel .fate-theme-poster h2 {
  font-size: 20px;
}

.fate-theme-carousel .fate-theme-poster p {
  font-size: 12px;
}

@media (min-width: 768px) {
  .fate-theme-carousel .fate-theme-poster {
    flex-basis: clamp(264px, 38vw, 324px);
  }
}

.fate-theme-card {
  border-radius: 20px;
  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: 16px;
  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: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.fate-theme-card p {
  margin: 8px 0 0;
  font-size: 13px;
  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: 999px;
  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: 11px;
  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: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ee2b9d 0%, #8b5cf6 100%);
  box-shadow: 0 12px 30px rgba(238, 43, 157, 0.28);
}

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

.fate-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  outline: none;
}

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

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

.fate-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

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

.fate-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  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: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, rgba(24, 24, 32, 0.96), rgba(10, 12, 22, 0.96));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.fate-modal-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.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: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.fate-bokchae-card {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(130, 86, 255, 0.11));
  padding: 12px;
}

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

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

.fate-bokchae-label {
  margin: 0;
  font-size: 12px;
  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: 12px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 5px 9px;
  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: 12px;
  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: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  font-size: 12px;
}

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

.fate-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  padding: 12px 13px;
  outline: none;
}

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

.fate-mini-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

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

.fate-history-item {
  border-radius: 12px;
  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: 14px;
  font-weight: 700;
  color: #fff;
}

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

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

.fate-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 10px;
  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: #ffd7f4;
  border-color: rgba(238, 43, 157, 0.38);
  background: rgba(238, 43, 157, 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: 10px;
  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: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #ffd7f1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(140deg, rgba(238, 43, 157, 0.7), rgba(139, 92, 246, 0.82));
  box-shadow: 0 10px 24px rgba(238, 43, 157, 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: #ff4ab3;
  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(238, 43, 157, 0.92), rgba(139, 92, 246, 0.96));
}

.fate-theme-detail-poster {
  position: relative;
  width: 100%;
  border-radius: 24px;
  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(238, 43, 157, 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: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-weight: 740;
  letter-spacing: -0.01em;
}

.fate-site-footer {
  margin-top: 18px;
  padding: 16px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.7;
}

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

.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);
}
