/* StarPocket v0.1 */
.starpocket-app {
  --sp-ink: #1d1b2e;
  --sp-soft: #5c5873;
  --sp-line: #e6e3ef;
  --sp-bg: #faf9fd;
  --sp-night: #1b1838;
  --sp-gold: #c9a24a;
  --sp-accent: #6b4fd8;
  --sp-korean: #c8553d;
  color: var(--sp-ink);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}
.starpocket-app * { box-sizing: border-box; }
.starpocket-app h2, .starpocket-app h3 { margin: 0 0 .5em; line-height: 1.25; color: inherit; }

/* form */
.sp-hero {
  background: radial-gradient(circle at 20% 10%, #3a2f7a 0, var(--sp-night) 55%);
  color: #fff; border-radius: 20px; padding: 32px 24px; text-align: center;
}
.sp-hero h2 { font-size: 30px; color: #fff; }
.sp-hero p { color: #d9d4f3; margin: 0 0 20px; }
.sp-form { display: grid; gap: 14px; text-align: left; max-width: 460px; margin: 0 auto; }
.sp-form label { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.sp-form .sp-opt { font-weight: 400; color: #b9b3dd; }
.sp-form input[type=text], .sp-form input[type=date], .sp-form input[type=time] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #4a438a;
  background: #fff; color: var(--sp-ink); font-size: 16px;
}
.sp-form input:disabled { background: #d9d6e8; }
.sp-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-top: 6px; color: #d9d4f3 !important; }
.sp-cityfield { position: relative; }
.sp-city-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0;
  list-style: none; background: #fff; color: var(--sp-ink); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-height: 280px; overflow-y: auto;
}
.sp-city-list li { padding: 8px 14px; cursor: pointer; font-size: 15px; }
.sp-city-list li:hover, .sp-city-list li.is-active { background: #efeafd; }
.sp-btn, .sp-form button {
  display: inline-block; width: 100%; padding: 14px 18px; border: 0; border-radius: 999px;
  background: var(--sp-gold); color: var(--sp-night); font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none;
}
.sp-btn:disabled { opacity: .55; cursor: default; }
.sp-error { background: #fde8e4; color: #9b2c1b; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0; }
.sp-privacy { font-size: 12px; color: #b9b3dd !important; text-align: center; margin: 4px 0 0 !important; }

/* result */
.sp-result { margin-top: 28px; display: grid; gap: 20px; scroll-margin-top: 24px; }
.sp-card { border-radius: 20px; padding: 26px 24px; }
.sp-summary { background: var(--sp-night); color: #fff; text-align: center; }
.sp-summary .sp-eyebrow { color: var(--sp-gold); }
.sp-big3 { font-size: 26px; color: #fff !important; }
.sp-big3 span { color: var(--sp-gold); }
.sp-korean-badge { color: #e3dff7; margin: 0 0 16px; }
.sp-share { background: transparent; color: #fff; border: 1px solid #6c64a8; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-size: 14px; }
.sp-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--sp-accent); margin: 0 0 6px; }
.sp-section { background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; padding: 22px 22px; }
.sp-section h3 { font-size: 21px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.sp-bigcard { background: var(--sp-bg); border-radius: 14px; padding: 16px; }
.sp-bigcard p { margin: 0 0 6px; font-size: 15px; }
.sp-label { font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--sp-soft); margin: 0 0 4px !important; }
.sp-sign { font-size: 22px !important; font-weight: 700; color: var(--sp-ink); margin: 0 !important; }
.sp-deg { color: var(--sp-soft); font-size: 13px; }
.sp-locked { border: 1px dashed var(--sp-line); background: #fff; }
.sp-korean { border-color: #f1cfc6; background: #fff8f5; }
.sp-korean .sp-eyebrow { color: var(--sp-korean); }
.sp-han { font-family: serif; color: var(--sp-korean); }
.sp-combo { background: #fff; border-radius: 12px; padding: 12px 14px; margin: 10px 0; border: 1px solid #f3dcd5; }
.sp-combo p { margin: 0 0 4px; }
.sp-note { background: #fff3d6; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.sp-small { font-size: 13px; color: var(--sp-soft); }
.sp-bok { display: inline-block; margin-top: 6px; color: var(--sp-korean); font-weight: 700; text-decoration: none; }
.sp-bok:hover { text-decoration: underline; }
.sp-section details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sp-section details summary::-webkit-details-marker { display: none; }
.sp-section details summary::after { content: '+'; font-size: 22px; color: var(--sp-soft); }
.sp-section details[open] summary::after { content: '–'; }
.sp-section details summary h3 { margin: 0; }
.sp-planets, .sp-houses, .sp-aspects { list-style: none; margin: 14px 0 0; padding: 0; }
.sp-planets li, .sp-houses li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sp-line); }
.sp-planets li p, .sp-houses li p { margin: 0 0 2px; font-size: 15px; }
.sp-pglyph, .sp-hnum {
  flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--sp-bg); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--sp-accent);
}
.sp-hnum { font-size: 14px; font-weight: 700; }
.sp-hs { display: flex; gap: 16px; margin: 12px 0 0; font-size: 14px; }
.sp-aspects li { padding: 8px 0; border-top: 1px solid var(--sp-line); font-size: 15px; }
.sp-paid { background: linear-gradient(135deg, #f6f1ff, #fff7ea); text-align: center; border: 1px solid #e8dcc0; }
.sp-paid p { color: var(--sp-soft); }
.sp-paid .sp-btn { max-width: 420px; }
@media (max-width: 520px) {
  .sp-hero { padding: 26px 16px; border-radius: 16px; }
  .sp-hero h2 { font-size: 25px; }
  .sp-big3 { font-size: 21px; }
  .sp-section { padding: 18px 16px; }
}
