#divpop.sp-wrap {
  --sp-ink: #0c0c0c;
  --sp-sub: #6b7280;
  --sp-line: #e9e9e9;
  --sp-blue: #0f5eb3;
  --sp-blue-hl: #1a7fe0;
  --sp-blue-soft: #e8f0fa;
  --sp-en: 'Montserrat', sans-serif;

  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 10000;
  width: auto; height: auto; margin: 0; padding: 0; background: none; border: 0;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--sp-ink); word-break: keep-all; text-align: left;
}
#divpop.sp-wrap *, #divpop.sp-wrap *:before, #divpop.sp-wrap *:after { box-sizing: border-box; }
#divpop.sp-wrap :where(p, div, a, li, span, b, em, small, label, form) {
  font-family: inherit; font-size: inherit; color: inherit; line-height: inherit;
}
#divpop.sp-wrap :where(h2, h3, p, ul, li, form) { margin: 0; padding: 0; }
#divpop.sp-wrap :where(ul) { list-style: none; }
#divpop .sp-en { font-family: var(--sp-en); }

#divpop .sp-dim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .55); }
#divpop .sp-box {
  position: absolute; left: 100px; top: 50%; transform: translateY(-50%);
  width: calc(100% - 32px); max-width: 480px; max-height: calc(100% - 32px);
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

/* 닫기(X) — 파란 카드 위에 놓이므로 반투명 흰색 */
#divpop .sp-x { position: absolute; right: 30px; top: 30px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
#divpop .sp-x:before, #divpop .sp-x:after { content: ''; position: absolute; left: 10px; top: 16px; width: 14px; height: 2px; background: #fff; }
#divpop .sp-x:before { transform: rotate(45deg); }
#divpop .sp-x:after { transform: rotate(-45deg); }
#divpop .sp-x:hover { background: rgba(255, 255, 255, .35); }

#divpop .sp-body { flex: 1 1 auto; min-height: 0; padding: 16px 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 상단 파란 카드 */
#divpop .sp-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px 24px; color: #fff;
  background: linear-gradient(125deg, #1a6fd8 0%, #2f8fe0 45%, #8cc8f2 100%);
}
#divpop .sp-card:before { content: ''; position: absolute; right: -60px; bottom: -90px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
#divpop .sp-card > * { position: relative; }
#divpop .sp-brand { font-size: 17px; font-weight: 800; letter-spacing: .16em; color: #fff; }
#divpop .sp-brand-sub { margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
#divpop .sp-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12.5px; font-weight: 700; color: #d23c3c; }
#divpop .sp-badge i { width: 7px; height: 7px; border-radius: 50%; background: #d23c3c; }
#divpop .sp-title { margin-top: 12px; font-size: 27px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; color: #fff; }
#divpop .sp-title span { background: linear-gradient(transparent 66%, rgba(12, 79, 151, .55) 66%); }
#divpop .sp-card .sp-shield { position: absolute; right: 24px; bottom: 22px; }

/* 안내 */
#divpop .sp-pill { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 0 8px; padding: 5px 12px; border-radius: 8px; background: var(--sp-blue-soft); font-size: 13px; font-weight: 700; color: var(--sp-blue); }
#divpop .sp-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--sp-blue); }
#divpop .sp-head { margin: 12px 8px 0; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--sp-ink); }
#divpop .sp-desc { margin: 8px 8px 0; padding-bottom: 14px; border-bottom: 1px solid var(--sp-line); font-size: 14px; line-height: 1.3; color: var(--sp-sub); }

/* 카드 2개 — 링크(<a>)는 각 <li> 안에 넣음 */
#divpop .sp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 8px 0; }
#divpop .sp-cards li { display: flex; }
#divpop .sp-cards a {
  display: block; width: 100%; padding: 14px 16px; border: 1px solid #dfe8f4; border-radius: 14px; background: #f7faff;
  color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
#divpop .sp-cards a:hover { border-color: var(--sp-blue); background: var(--sp-blue-soft); transform: translateY(-2px); }
#divpop .sp-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 6px; background: var(--sp-blue); font-size: 12px; font-weight: 700; color: #fff; }
#divpop .sp-cards b { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--sp-ink); }
#divpop .sp-cards p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--sp-sub); }

#divpop .sp-queue { display: flex; gap: 10px; margin: 10px 8px 0; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0dca8; }
#divpop .sp-queue svg { flex: 0 0 20px; margin-top: 1px; }
#divpop .sp-queue p { font-size: 13px; line-height: 1.6; color: #4a3b1c; }
#divpop .sp-queue b { font-weight: 700; color: #2b220f; }

#divpop .sp-btn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 8px 0; height: 54px; border-radius: 999px; background: var(--sp-ink); font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; transition: background .2s; }
#divpop .sp-btn:hover { background: var(--sp-blue); }
#divpop .sp-btn-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 14px; }
#divpop .sp-note { margin-top: 8px; text-align: center; font-size: 12px; color: #8a919c; }
#divpop .sp-more { margin-top: 6px; text-align: center; }
#divpop .sp-more a { font-size: 13px; font-weight: 700; color: var(--sp-blue); text-decoration: underline; text-underline-offset: 3px; }

/* 하단: 오늘 하루 이 창을 열지 않음 / 닫기 */
#divpop .sp-foot { display: flex; align-items: stretch; flex: 0 0 auto; border-top: 1px solid var(--sp-line); background: #f6f7f9; }
#divpop .sp-today { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 20px; height: 46px; font-size: 13.5px; color: #4b5563; cursor: pointer; }
#divpop .sp-today input { width: 16px; height: 16px; margin: 0; accent-color: var(--sp-blue); }
#divpop .sp-close { flex: 0 0 104px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--sp-line); font-size: 14px; font-weight: 700; color: var(--sp-ink); text-decoration: none; }
#divpop .sp-close:hover { background: #eef0f3; }

#divpop a:focus-visible, #divpop input:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

@media screen and (max-width: 480px) {
  #divpop .sp-box { border-radius: 16px; }
  #divpop .sp-body { padding: 12px 12px 16px; }
  #divpop .sp-x { right: 24px; top: 24px; }
  #divpop .sp-card { padding: 20px 20px 22px; }
  #divpop .sp-title { font-size: 23px; }
  #divpop .sp-card .sp-shield { width: 58px; height: 67px; right: 18px; }
  #divpop .sp-head { font-size: 18px; }
  #divpop .sp-cards a { padding: 12px 12px; }
  #divpop .sp-cards b { font-size: 15px; }
  #divpop .sp-btn { height: 50px; font-size: 16px; }
  #divpop .sp-today { padding: 0 14px; font-size: 13px; }
  #divpop .sp-close { flex-basis: 80px; }
}

@media screen and (max-width: 768px) {
  #divpop .sp-box { left: 50%; transform: translate(-50%, -50%); }   /* 태블릿·모바일은 가운데 */
}
