/* ── TODAY PAGE ── */
body {
  background-image: url('../img/bg-fortune.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.hero { text-align: center; padding: 24px 16px 16px; }
.hero-title { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -1px; margin-bottom: 10px; text-shadow: 0 0 24px rgba(251,191,36,0.2); }
.hero-sub { font-size: 14px; color: var(--text-muted); }

.input-card {
  position: relative;
  background: rgba(15,15,35,0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid transparent; background-clip: padding-box;
  border-radius: 24px; padding: 28px 22px; overflow: visible;
  box-shadow: 0 8px 40px rgba(139,92,246,0.2), 0 2px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -2px 20px rgba(139,92,246,0.06);
}
.input-card::before {
  content: '';
  position: absolute; inset: -1.5px; border-radius: 25px;
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(251,191,36,0.3), rgba(139,92,246,0.2));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor; padding: 1.5px;
}
.input-card::after {
  content: '';
  position: absolute; bottom: -20px; left: 10%; right: 10%; height: 60px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.15), transparent 70%);
  pointer-events: none; filter: blur(20px);
}
.input-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--white); }
.input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.input-row input {
  flex: 1; min-width: 0; padding: 13px 14px;
  background: rgba(10,14,39,0.8); border: 1px solid rgba(251,191,36,0.15);
  border-radius: 12px; color: var(--white); font-size: 15px; font-family: inherit;
  outline: none; -webkit-appearance: none; transition: border 0.2s;
}
.input-row input:focus { border-color: var(--gold); }
.input-row input::placeholder { color: var(--text-dim); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-cta {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a2e; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 20px rgba(251,191,36,0.3); transition: all 0.2s;
}
.btn-cta:hover { box-shadow: 0 6px 30px rgba(251,191,36,0.5); transform: translateY(-1px); }

/* FORTUNE CARD */
.fortune-card {
  text-align: center;
  background: rgba(15,15,35,0.55); backdrop-filter: blur(16px);
  border: 1px solid rgba(139,92,246,0.12); border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.fortune-date { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.fortune-grade {
  font-size: 36px; font-weight: 900; color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(251,191,36,0.3);
}
.fortune-score-bar {
  height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px;
  overflow: hidden; margin-bottom: 8px;
}
.fortune-score-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 1s ease;
}
.fortune-score-num { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.fortune-total { font-size: 14px; color: var(--text-muted); line-height: 1.8; text-align: left; white-space: pre-line; }

/* GLASS BOX */
.glass-box {
  background: rgba(15,15,35,0.55); backdrop-filter: blur(16px);
  border: 1px solid rgba(139,92,246,0.12); border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.box-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-sec); }

/* DETAIL ITEMS */
.detail-item { margin-bottom: 16px; }
.detail-item:last-child { margin-bottom: 0; }
.detail-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.detail-label { font-size: 14px; font-weight: 700; color: var(--white); }
.detail-stars { font-size: 12px; color: var(--gold); }
.detail-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* TIME */
.time-item { margin-bottom: 12px; }
.time-item:last-child { margin-bottom: 0; }
.time-label { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.time-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* LUCKY */
.lucky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lucky-item { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 12px; text-align: center; }
.lucky-label { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 4px; }
.lucky-value { font-size: 14px; color: var(--white); font-weight: 600; }

/* ADVICE */
.advice-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; white-space: pre-line; }

/* FIVE DAY */
.five-day { display: flex; gap: 6px; }
.five-day-item { flex: 1; text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,0.02); }
.five-day-item.today { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); }
.five-day-label { font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.five-day-item.today .five-day-label { color: var(--gold); font-weight: 700; }
.five-day-score { font-size: 16px; font-weight: 700; color: var(--text-muted); }
.five-day-item.today .five-day-score { color: var(--gold); }
.five-day-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.five-day-fill { height: 100%; border-radius: 2px; background: var(--gold); }

/* CTA */
.cta-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(15,15,35,0.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(139,92,246,0.15); border-radius: 16px;
  padding: 16px; text-decoration: none; color: inherit; transition: all 0.2s;
}
.cta-card:hover { border-color: var(--gold); }
.cta-icon { font-size: 28px; }
.cta-info { flex: 1; }
.cta-info strong { display: block; font-size: 15px; color: var(--gold); }
.cta-info small { font-size: 11px; color: var(--text-muted); }
.cta-arrow { font-size: 20px; color: var(--gold); }

/* SHARE — common.css 통일 */

@media (max-width: 420px) {
  .hero-title { font-size: 26px; }
  .lucky-grid { grid-template-columns: 1fr 1fr; }
  .share-row { flex-direction: column; }
}
