/* honsluck Prototype Styles — Modern Data / Stat Lab Aesthetic (Mobile WebView Ready) */

:root {
  --bg: #070b14;
  --surface: #111827;
  --surface-2: #182234;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --profile-accent: #38bdf8;
  --radius: 18px;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top center, #111d35 0%, var(--bg) 52%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: #070b14;
  font-family: var(--font-mono);
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.header-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pill-muted {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
}

/* Fixed Top Profile Summary Bar */
.profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.profile-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-edit-profile {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--surface-2);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-edit-profile:hover {
  border-color: var(--accent);
}

/* Mobile-First 3 Main Tabs */
.main-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
}

.main-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.main-tab:hover {
  color: var(--text);
}

.main-tab.is-active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #060913;
}

/* Scratch Card Panel */
.scratch-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-heading {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 900;
}

.section-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.scratch-controls {
  display: flex;
  gap: 6px;
}

.btn-mini {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-mini:hover {
  border-color: var(--accent);
  color: #fff;
}

.scratch-stage {
  position: relative;
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--profile-accent) 45%, transparent);
  background: linear-gradient(145deg, #0b1326, #161f38);
  min-height: 270px;
}

.scratch-underlay {
  padding: 24px 22px;
  text-align: center;
}

.charm-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.charm-title {
  margin: 4px 0 6px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.charm-tagline {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cbd5e1;
}

.charm-special {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.35s ease;
}

.scratch-canvas.is-revealed {
  opacity: 0;
  pointer-events: none;
}

.scratch-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.scratch-percent {
  font-weight: 800;
  color: var(--accent);
}

.scratch-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  transition: transform 0.2s ease;
}

.scratch-cta-bar.is-highlighted {
  transform: scale(1.01);
}

.btn-primary-full {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #060913;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary-full {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.btn-action-accent {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.28));
  border-color: rgba(125, 211, 252, 0.45);
  color: #fff;
}

/* Tab 3: Receipt Layout */
.receipt-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.action-bar-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Horizontal Scroll Cross-Selling ('더 많은 운세') */
.more-section {
  margin-top: 28px;
}

.more-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.more-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.more-hint {
  font-size: 12px;
  color: var(--muted);
}

.more-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.more-card {
  flex: 0 0 185px;
  scroll-snap-align: start;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.more-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.more-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-phase1 {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.badge-phase2 {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}

.badge-phase3 {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.more-emoji {
  font-size: 26px;
  margin-bottom: 6px;
}

.more-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.more-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero & Input Form */
.hero-card {
  background: linear-gradient(180deg, rgba(24, 34, 52, 0.9), rgba(17, 24, 39, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.6vw, 30px);
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.input-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.drawer-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-link-muted {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-link-muted:hover {
  color: #e2e8f0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-container {
  max-width: 820px;
}

.legal-article h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.legal-article h2 {
  margin: 22px 0 8px;
  font-size: 16.5px;
  color: #e2e8f0;
}

.legal-article p,
.legal-article li {
  font-size: 14px;
  color: #cbd5e1;
}

.legal-date {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1220;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  color-scheme: dark;
}

.field input {
  font-size: 15px;
  font-family: var(--font-mono);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-primary {
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #060913;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.btn-chip {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.btn-chip:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Theme Switcher */
.theme-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.theme-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.theme-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.theme-tab:hover {
  color: var(--text);
}

.theme-tab.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.25));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35);
}

.share-id-badge {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Main Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

/* Stat Card Panel */
.stat-card-panel {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--profile-accent) 42%, transparent);
}

.stat-card-panel::before {
  content: '';
  position: absolute;
  inset: -80px auto auto -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, color-mix(in srgb, var(--profile-accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.theme-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--profile-accent);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.theme-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.theme-tagline {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

.ovr-box {
  text-align: right;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--border);
  min-width: 96px;
}

.ovr-num {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-mono);
}

.ovr-grade {
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
  margin-top: 4px;
}

.ovr-label {
  font-size: 11px;
  color: var(--muted);
}

.meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.meta-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: #e2e8f0;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lucky-color-chip {
  border-color: color-mix(in srgb, var(--profile-accent) 55%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 14%, var(--surface-2));
  color: #f8fafc;
}

.receipt-lucky-bar {
  height: 7px;
  width: 100%;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 12px;
}

.radar-svg {
  width: 100%;
  max-width: 390px;
  height: auto;
}

.theme-summary {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.55);
  border-left: 3px solid var(--profile-accent);
  font-size: 14px;
  color: #e2e8f0;
}

.axis-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin-bottom: 16px;
}

.axis-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.top-chip {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(253, 224, 71, 0.2);
  color: #fde047;
  margin-left: 4px;
}

.axis-bar-track {
  height: 7px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.axis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--profile-accent), #818cf8);
  border-radius: 999px;
}

.axis-bar-item.is-top .axis-bar-fill {
  background: linear-gradient(90deg, #facc15, #f97316);
}

.lucky-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.lucky-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.lucky-k {
  color: var(--muted);
}

.lucky-v {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.advice-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.26);
  font-size: 13.5px;
  font-weight: 600;
  color: #e0e7ff;
  text-align: center;
}

/* Action Buttons */
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-action {
  flex: 1;
  min-width: 150px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.14);
}

/* Receipt View (Thermal Paper) */
.receipt-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.receipt-paper {
  width: 100%;
  max-width: 380px;
  background: #faf9f5;
  color: #111827;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
  position: relative;
  font-family: var(--font-sans);
}

.receipt-edge {
  height: 10px;
  background-size: 16px 10px;
  background-repeat: repeat-x;
}

.receipt-edge-top {
  background-image: radial-gradient(circle at 8px 0, var(--bg) 6px, transparent 6.5px);
}

.receipt-edge-bottom {
  background-image: radial-gradient(circle at 8px 10px, var(--bg) 6px, transparent 6.5px);
}

.receipt-body {
  padding: 18px 22px 20px;
}

.receipt-header {
  text-align: center;
}

.receipt-brand {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.receipt-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #475569;
}

.receipt-divider {
  border-top: 1.5px dashed #cbd5e1;
  margin: 13px 0;
}

.receipt-divider.double {
  border-top: 2px solid #111827;
}

.receipt-character {
  text-align: center;
}

.receipt-theme-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.receipt-char-title {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.receipt-char-sub {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono);
}

.receipt-section-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.receipt-row.is-top {
  font-weight: 800;
}

.receipt-dots {
  flex: 1;
  border-bottom: 1px dotted #94a3b8;
}

.receipt-item-score {
  font-family: var(--font-mono);
  font-weight: 700;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
}

.receipt-grade-desc {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

.receipt-lucky-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
}

.receipt-lucky-row span:first-child {
  color: #64748b;
}

.receipt-lucky-row span:last-child {
  font-weight: 700;
}

.receipt-color-val {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.receipt-advice {
  text-align: center;
}

.receipt-advice-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
}

.receipt-advice-text {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.receipt-footer {
  margin-top: 14px;
  text-align: center;
}

.receipt-barcode-svg {
  width: 82%;
  max-width: 240px;
  height: 40px;
  display: block;
  margin: 0 auto 4px;
}

.receipt-barcode-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #475569;
}

.receipt-disclaimer {
  margin-top: 8px;
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Engine JSON Inspector (for 20_reward app integration verification) */
.dev-inspector {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

.dev-inspector summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: #cbd5e1;
}

.dev-inspector pre {
  margin: 12px 0 0;
  padding: 14px;
  background: #060a12;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12px;
  color: #7dd3fc;
  font-family: var(--font-mono);
}

/* Guide Section (AdSense Thin-Content Defense Sample) */
.guide-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.guide-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.guide-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.guide-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.guide-themes {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Global Service Navigation (Daily / 2027 Yearly / Name Lab) */
.global-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.global-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.16s ease;
  text-align: center;
}

.global-nav-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
}

.global-nav-item.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.2));
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
}

/* Year Switcher (2026 Current Year / 2027 New Year) */
.year-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.year-switch-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.year-switch-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e2e8f0;
}

.year-switch-btn.is-active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--profile-accent);
  color: #f8fafc;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--profile-accent) 35%, transparent);
}

.more-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-open {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Yearly & Name Shared Highlight Strip */
.highlight-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}

.highlight-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
}

.highlight-box.is-gold {
  border-color: rgba(253, 224, 71, 0.32);
  background: rgba(253, 224, 71, 0.06);
}

.highlight-box.is-rest {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.06);
}

.highlight-k {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.highlight-v {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.highlight-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Quarter Grid */
.quarter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.quarter-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border);
}

.quarter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.quarter-sub {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}

.mode-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(15, 23, 42, 0.6);
}

.quarter-desc {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

/* 12-Month Rhythm Chart & Cards */
.legend-pills {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #cbd5e1;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.monthly-chart-wrap {
  width: 100%;
  margin: 14px 0 18px;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.monthly-svg {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.month-card {
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.month-card.is-best {
  border-color: rgba(253, 224, 71, 0.45);
  background: rgba(253, 224, 71, 0.06);
}

.month-card.is-rest {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.05);
}

.month-card.is-pulse {
  transform: scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.month-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.month-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.month-tag {
  font-size: 11.5px;
  font-weight: 700;
}

.month-score {
  margin-left: auto;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.month-advice {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.yearly-theme-card {
  margin-top: 12px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.65));
  border: 1px solid color-mix(in srgb, var(--profile-accent) 45%, transparent);
}

/* Name Analysis Specific Styles */
.name-hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.name-input-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.name-input-form input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0b1220;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.syllable-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 8px;
}

.syllable-card {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1.5px solid var(--border);
  text-align: center;
}

.syllable-char {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.syllable-el {
  font-size: 12.5px;
  font-weight: 800;
  margin-top: 4px;
}

.syllable-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.name-theme-block {
  margin-top: 22px;
}

.guide-consonants {
  margin: 6px 0 4px;
  font-size: 12px;
  color: #7dd3fc;
}

.guide-el-desc {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Lucky Numbers 10-Ball Pool (1..45) */
.lucky-numbers-box {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}

.lucky-numbers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.lucky-numbers-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.lucky-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucky-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.lucky-ball.ball-y {
  background: linear-gradient(135deg, #fde047, #eab308);
}

.lucky-ball.ball-b {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #f8fafc;
}

.lucky-ball.ball-r {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #f8fafc;
}

.lucky-ball.ball-g {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  color: #0f172a;
}

.lucky-ball.ball-gr {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #052e16;
}

.charm-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* 6-item Global Nav */
.global-nav-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Prominent Result Page Disclaimer Box */
.result-disclaimer {
  margin-top: 18px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.result-disclaimer strong {
  color: #f8fafc;
}

/* Saju Manseryeok Styles */
.saju-input-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.saju-input-form input[type='time'] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0b1220;
  color: var(--text);
  font-size: 14px;
}

.basis-banner {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  font-size: 12px;
  line-height: 1.5;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.pillar-col {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-col.is-day {
  border-color: rgba(253, 224, 71, 0.45);
  background: rgba(253, 224, 71, 0.05);
}

.pillar-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.pillar-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

.pillar-char {
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
  border: 1.5px solid var(--border);
}

.pillar-hanja {
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.pillar-ko {
  display: block;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 4px;
}

.pillar-cell-empty {
  padding: 16px 6px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 11.5px;
  color: var(--muted);
}

/* I-Ching 64 Hexagrams Styles */
.iching-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.live-hex-preview {
  margin-top: 16px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hex-line-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
}

.hex-pos {
  font-size: 11.5px;
  color: var(--muted);
}

.hex-bar-yang {
  height: 14px;
  border-radius: 4px;
}

.hex-bar-yin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hex-bar-yin span {
  height: 14px;
  border-radius: 4px;
  display: block;
}

.hex-bar-empty {
  height: 14px;
  border-radius: 4px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.iching-result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
}

.hex-svg-wrap {
  padding: 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trigram-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trigram-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trigram-role {
  font-size: 11.5px;
  color: var(--muted);
}

.trigram-trait {
  font-size: 12.5px;
  color: #7dd3fc;
}

/* Editorial Columns Styles */
.btn-chip.is-active-chip {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #f8fafc;
}

.column-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.column-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
}

.column-lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: #cbd5e1;
}

.column-section {
  margin-top: 18px;
}

.column-section h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: #f8fafc;
}

.column-section p {
  margin: 0;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.75;
}

.column-figure {
  margin: 18px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}

.column-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.column-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.column-card {
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s ease;
}

.column-card:hover,
.column-card.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.08);
}

.column-card-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: #7dd3fc;
}

.column-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.column-card-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Contact & Notices Styles */
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-email {
  font-size: 18px;
  font-weight: 800;
  color: #7dd3fc;
}

.contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notices-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-title {
  margin: 4px 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.notice-body {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.7;
}

.notice-highlights {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.6;
}

/* Zodiac / Animal / Blood Rankings */
.my-rank-banner {
  margin-bottom: 14px;
  border-color: rgba(56, 189, 248, 0.4);
}

.my-rank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.my-rank-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.my-rank-emoji {
  font-size: 40px;
  line-height: 1;
}

.my-rank-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.my-rank-title small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.my-rank-note {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
}

.blood-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rank-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-card.is-mine {
  border-color: rgba(253, 224, 71, 0.55);
  background: rgba(253, 224, 71, 0.06);
}

.rank-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-medal {
  min-width: 34px;
  font-size: 14px;
  font-weight: 900;
  color: #fde047;
}

.rank-emoji {
  font-size: 22px;
}

.rank-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.rank-score {
  margin-left: auto;
  font-size: 15px;
  font-weight: 900;
}

.rank-note {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.rank-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* Biorhythm Cards */
.bio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.bio-metric-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1.5px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bio-k {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.bio-v {
  font-size: 24px;
  font-weight: 900;
}

.bio-state {
  font-size: 11.5px;
  font-weight: 800;
}

/* Fortune Cookie Stage */
.cookie-stage {
  text-align: center;
  padding: 28px 20px;
}

.cookie-button {
  margin: 18px auto 0;
  padding: 26px 32px;
  border-radius: 24px;
  border: 2px dashed rgba(253, 224, 71, 0.45);
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.14), rgba(15, 23, 42, 0.85));
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.cookie-button:hover {
  transform: scale(1.03);
  border-color: #fde047;
}

.cookie-button.is-cracked {
  border-style: solid;
  border-color: #38bdf8;
}

.cookie-emoji {
  font-size: 64px;
  line-height: 1.1;
}

.cookie-hint {
  font-size: 13.5px;
  font-weight: 800;
  color: #fde047;
}

.cookie-slip {
  max-width: 560px;
  margin: 22px auto 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: #faf9f5;
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.cookie-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cookie-msg {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.cookie-meta {
  font-size: 12px;
  color: #64748b;
}

/* Moving Good Days Calendar */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.calendar-selects {
  display: flex;
  gap: 8px;
}

.calendar-selects select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0b1220;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin: 14px 0 8px;
}

.cal-weekdays .is-sun { color: #fb7185; }
.cal-weekdays .is-sat { color: #60a5fa; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  min-height: 68px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
}

.cal-cell.is-good {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.cal-cell.is-good-weekend {
  border-color: rgba(253, 224, 71, 0.7);
  background: rgba(253, 224, 71, 0.14);
}

.cal-day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.cal-day {
  font-size: 14px;
  font-weight: 800;
}

.cal-cell.is-sun .cal-day { color: #fb7185; }
.cal-cell.is-sat .cal-day { color: #60a5fa; }

.cal-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.cal-cell.is-good-weekend .cal-badge {
  background: rgba(253, 224, 71, 0.28);
  color: #fef08a;
}

.cal-lunar {
  font-size: 10.5px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .ranking-grid,
  .bio-cards {
    grid-template-columns: 1fr;
  }

  .cal-cell {
    min-height: 58px;
    padding: 6px 4px;
  }

  .cal-badge {
    font-size: 8.5px;
    padding: 1px 3px;
  }
}

@media (max-width: 860px) {
  .global-nav-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .saju-input-form,
  .iching-result-layout,
  .columns-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .input-form,
  .name-input-form,
  .highlight-strip,
  .quarter-grid,
  .monthly-grid {
    grid-template-columns: 1fr;
  }

  .global-nav-item {
    font-size: 12px;
    padding: 9px 6px;
  }

  .result-grid,
  .receipt-layout {
    grid-template-columns: 1fr;
  }

  .scratch-cta-bar {
    grid-template-columns: 1fr;
  }

  .theme-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .theme-tab {
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .axis-bars,
  .lucky-grid {
    grid-template-columns: 1fr;
  }
}
