/* ---------- 메인 페이지: 살아 있는 실험실 주기율표 ---------- */
body.home { background: var(--bg); }

/* 히어로 */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 70% 30%, #e8eeff 0%, #f6f7fb 60%); border-bottom: 1px solid var(--line); }
#swarm { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in { position: relative; padding: 64px 16px 56px; pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--accent); margin: 0 0 12px; }
.etym { font-size: 13px; font-style: italic; color: var(--muted); margin: -4px 0 14px; }
.mega { font-size: clamp(40px, 7.2vw, 88px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 12ch; }
.rq { font-size: clamp(17px, 2.2vw, 24px); font-weight: 600; color: var(--talent); margin: 0 0 14px; min-height: 1.6em; transition: opacity .35s; }
.rq.fade { opacity: 0; }
.hero .lead { max-width: 640px; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px 20px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn.big { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(47,111,237,.3); }
.btn.big:hover { transform: translateY(-1px); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.yt { color: #c4302b; border-color: #f2c4c2; }
.btn.yt:hover { border-color: #e5484d; color: #e5484d; background: #fff5f5; }
.hint { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; max-width: 520px; }

/* 주기율표 */
main.wide { max-width: 1320px; }
.table-sec { margin-top: 48px; scroll-margin-top: 16px; }
.table-sec h2 { margin: 0 0 6px; font-size: 26px; }
.table-sec > p { margin: 0 0 20px; }
.ptable { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px;   /* 분야 15열이 1,100px 폭에도 한 줄에 들어가게 */ align-items: start; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 8px; }
/* 분야 머리: 왼쪽 위 둥근 아이콘 칩 + 그 옆 동그라미 개수, 둘째 줄 이름, 아래 분야색 가는 선. 열마다 높이를 같게 해서 칸의 가로줄을 맞춘다 */
.fh { --chip: 28px; position: relative; box-sizing: border-box; height: 68px; min-width: 0; overflow: hidden; cursor: default; display: grid; grid-template-columns: var(--chip) auto minmax(0, 1fr); grid-template-rows: var(--chip) auto; column-gap: 5px; row-gap: 5px; align-content: start; padding: 0 1px 6px; border-bottom: 2px solid var(--c); }
.fh .chip { grid-column: 1; grid-row: 1; width: var(--chip); height: var(--chip); border-radius: 26%; display: grid; place-items: center; transition: transform .15s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  box-shadow: 0 4px 8px -3px color-mix(in srgb, var(--c) 55%, rgba(20,30,60,.5)), 0 1px 2px rgba(20,30,60,.14), inset 0 1px 0 rgba(255,255,255,.35); }
.fh .chip svg { width: 18px; height: 18px; display: block; }
.fh:hover .chip { transform: translateY(-1px); }
.fh i { grid-column: 2; grid-row: 1; align-self: center; font-style: normal; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--c) 82%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.fh b { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 13.5px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); word-break: keep-all; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 영어·유럽어는 이름이 길어 세 줄까지: 머리를 조금 높이고 글자를 줄인다 (13열 모두 같은 높이) */
html:not([lang="ko"]) .fh { height: 76px; row-gap: 4px; }
html:not([lang="ko"]) .fh b { font-size: 12px; line-height: 1.12; -webkit-line-clamp: 3; overflow-wrap: normal; hyphens: auto; }
/* 머리에 마우스를 올리면 다른 열의 칸을 살짝 흐리게 (home.js) */
.ptable .el { transition: opacity .2s; }
.ptable.fdim .col:not(.hot) .el { opacity: .38; }
/* 실험 칸: 둥근 그림 상자(.art) 위에 번호·기호(왼쪽 위)와 New·3D(오른쪽 아래), 이름은 상자 아래 가운데 */
.el { position: relative; display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--text); -webkit-tap-highlight-color: transparent; }
.el .art { position: relative; display: block; aspect-ratio: 1; border-radius: 23%; overflow: hidden; background: var(--surface); box-shadow: 0 12px 24px -8px rgba(20,30,60,.22), 0 2px 5px rgba(20,30,60,.10); transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.el .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 30%, rgba(10,16,30,0) 55%, rgba(10,16,30,.24) 100%), color-mix(in srgb, var(--c) 14%, transparent); }   /* 사진 톤 정리: 분야색 옅은 덮기 + 아래쪽 살짝 어둡게 */
.el:hover .art, .el.active .art, .el:focus-visible .art { transform: translateY(-4px); box-shadow: 0 18px 32px -10px rgba(20,30,60,.30), 0 3px 8px rgba(20,30,60,.12); }
.el:focus-visible { outline: none; }
.el:focus-visible .art { outline: 2.5px solid var(--c); outline-offset: 3px; }
.el:hover, .el.active { z-index: 2; }
.el .glyph, .el .thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.el .thumb { object-fit: cover; transition: transform .35s ease; }
.el.has-thumb:hover .thumb, .el.has-thumb.active .thumb { transform: scale(1.06); }
.nb-visual.has-thumb .nb-sym { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.el .num { position: absolute; top: 7px; left: 10px; font-size: 9px; font-weight: 800; color: var(--c); letter-spacing: .04em; z-index: 2; }
.el .sym { position: absolute; top: 5px; left: 24px; font-size: 20px; font-weight: 800; color: var(--c); letter-spacing: -0.02em; z-index: 2; }
.el.has-thumb .num, .el.has-thumb .sym { text-shadow: 0 0 6px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.el .nm { display: block; font-size: 12px; font-weight: 700; line-height: 1.22; text-align: center; height: 2.45em; overflow: hidden; padding: 0 2px; word-break: keep-all; }
.el .hid { display: none; }

/* 실험 노트 */
.notebook { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin: 40px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.nb-visual { position: relative; background: #0f1222; min-height: 280px; }
#nbcanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nb-sym { position: absolute; left: 18px; top: 14px; font-size: 44px; font-weight: 800; color: rgba(255,255,255,.55); letter-spacing: -0.03em; }
.nb-text { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; }
.nb-tag { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.nb-text h3 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.nb-text p { margin: 0; max-width: none; }
.nb-model { margin-top: 2px; }
.nb-text .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 760px) {
  .hero-in { padding: 44px 16px 40px; }
  .notebook { grid-template-columns: 1fr; }
  .nb-visual { min-height: 220px; }
  .ptable { grid-template-columns: repeat(2, 1fr); }
  .col { grid-template-columns: 1fr 1fr; }
  .col .fh { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .el { transition: none; } }

/* ---------- 도장판 · 내 실험실 · NEW (engage.js) ---------- */
.eng-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -6px 0 18px; }
.eng-progress[hidden] { display: none; }
.pg-bar { flex: 0 0 min(280px, 100%); height: 8px; border-radius: 99px; background: #e4e8f2; overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f6fed, #7c5cff); border-radius: 99px; transition: width .5s ease; }
.pg-t { font-size: 14px; font-weight: 700; color: var(--text); }
.pg-new { font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e5484d, #e0a100); padding: 3px 10px; border-radius: 99px; }
.mine { margin: 0 0 22px; padding: 14px 16px 16px; background: #fff9e8; border: 1px solid #f0d58a; border-radius: 16px; }
.mine h3 { margin: 0 0 10px; font-size: 16px; }
.mine .ecards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.el .done-mark { position: absolute; right: 8px; bottom: 34px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: #1fa463; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.el.is-star .nm::after { content: " ★"; color: #e0a100; }
.el .new-pill { position: absolute; left: 8px; bottom: 34px; z-index: 3; padding: 1px 7px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.col.complete .fh { border-bottom-color: #1fa463; }
.pg-pred { font-size: 12.5px; font-weight: 800; color: #3b4cc0; background: #eef0ff; padding: 3px 10px; border-radius: 99px; }

/* ---------- 오늘의 만약에 · 주제 투표 · 알림 신청 (engage.js) ---------- */
.dailyrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin: 18px 0 0; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px 18px; box-shadow: var(--shadow); min-width: 0; }
#daily { background: linear-gradient(135deg, #dbe8ff, #cfe0fb); border-color: #aac6f0; }   /* 소개 영역 배경(연한 하늘색)보다 한 단계 진한 하늘색 */
#topic { background: linear-gradient(135deg, #f1f4ff, #f7f1ff); border-color: #cfd8ff; }
.dcard h3 { margin: 0 0 6px; font-size: 16px; }
.dcard h3 small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.dcard .pq { margin: 0 0 12px; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.dcard .popts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dcard .popt { font-size: 14px; padding: 10px 12px; }
#topic .popts { grid-template-columns: 1fr; }
.dlink { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.dlink:hover { text-decoration: underline; }
.dyest { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #e6d7a8; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.notify { margin: 28px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.notify h3 { margin: 0 0 10px; font-size: 18px; }
.nform { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nform input[type=email] { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
.nconsent { flex: 1 0 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text); }
.nconsent input { margin-top: 3px; }
.nform .btn { border: 0; cursor: pointer; }
.nnote, .nmsg { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.nmsg { color: #a32a2e; min-height: 1.2em; }
.nok { margin: 0 0 8px; font-weight: 700; color: #14663f; }
.nlinks { margin: 12px 0 0; font-size: 14px; }
.nlinks a { color: var(--accent); font-weight: 700; text-decoration: none; }
.nlinks a:hover { text-decoration: underline; }
@media (max-width: 860px) { .dailyrow { grid-template-columns: 1fr; } }

/* 오늘의 만약에: 자동으로 바뀌는 질문 */
.dcard h3 { display: flex; align-items: center; gap: 8px; }
.dnav { margin-left: auto; display: inline-flex; gap: 6px; }
.dnav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #a9c3ec; background: #fff; color: #1f4fae; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.dnav button:hover { background: #eaf2ff; }
.dprog { height: 3px; background: #b4cdf0; border-radius: 3px; overflow: hidden; margin: 0 0 12px; }
.dprog i { display: block; height: 100%; width: 0; background: #2f6fed; }
.dprog.run i { animation: dprog var(--dur, 7000ms) linear forwards; }
@keyframes dprog { from { width: 0; } to { width: 100%; } }
.dbody { transition: opacity .22s ease, transform .22s ease; min-height: 150px; }
.dbody.fade { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .dprog.run i { animation: none; } .dbody { transition: none; } }


/* ---- 첫 화면에 주기율표가 바로 보이도록 히어로를 낮게 ---- */
.hero-in { padding: 22px 16px 16px; }
.eyebrow { margin: 0 0 6px; }
.mega { font-size: clamp(30px, 4.4vw, 56px); max-width: none; margin: 0 0 8px; line-height: 1.08; }
.rq { margin: 0 0 8px; min-height: 1.4em; }
.hero .lead { font-size: 15px; max-width: 760px; margin: 0 0 14px; }
.hero .hint { display: none; }
.btn { padding: 9px 16px; }
.table-sec { margin-top: 16px; }
.table-sec h2 { font-size: 21px; margin: 0 0 2px; }
.table-sec > p { margin: 0 0 10px; font-size: 13px; }
@media (max-width: 760px) { #swarm { opacity: .4; } .hero .lead { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; } .hero-in { padding: 20px 16px 16px; } }

/* 넓은 화면: 글은 왼쪽, 오늘의 만약에 카드는 오른쪽 위. 점 애니메이션은 소개 영역 배경 전체에 겹쳐서 움직인다 (표를 위로 끌어올리려고 소개 영역을 낮게) */
@media (min-width: 1060px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 450px; column-gap: 36px; align-items: start; }
  .hero-in > :not(.hero-nb) { grid-column: 1; }
  .hero-in .hero-nb { grid-column: 2; grid-row: 1 / span 6; align-self: start; margin: 0; grid-template-columns: 1fr; min-height: 0; border-radius: 16px; pointer-events: auto; box-shadow: 0 6px 20px rgba(20,30,60,.12); }
  .hero-nb .nb-visual { min-height: 0; height: 130px; }
  .hero-nb .nb-sym { font-size: 30px; left: 14px; top: 8px; }
  .hero-nb .nb-text { padding: 12px 16px 14px; gap: 6px; }
  .hero-nb .nb-tag { font-size: 11px; }
  .hero-nb .nb-text h3 { font-size: 17px; }
  .hero-nb #nbdesc { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-nb .nb-model { display: none; }
  .hero-nb .nb-text .btn { padding: 7px 14px; font-size: 13.5px; margin-top: 2px; }
  .mega br { display: none; }
  .hero .lead { display: block; font-size: 13.5px; line-height: 1.6; max-width: 470px; margin: 0 0 14px; color: var(--muted); }
  .dailyrow.solo { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 카드 안 글자 정렬 ---- */
/* 분야 머리: "모두 완료" 표시는 동그라미 개수 자리(칩 오른쪽 첫 줄)에 들어가 이름을 밀어 내리지 않는다 */
.fh .fcomp { grid-column: 2 / -1; grid-row: 1; align-self: center; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-style: normal; white-space: nowrap; margin: 0; font-size: 9px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; padding: 4px 5px; border-radius: 99px; background: #1fa463; color: #fff; }
.col.complete .fh i { display: none; }   /* 완료한 분야는 동그라미 개수 자리에 ✓ 표시 */
/* 실험 타일: 이름은 두 줄 높이의 칸 안에서 항상 같은 줄에서 시작(위 맞춤), 왼쪽 시작선도 번호·표시와 같게 */
.el .new-pill { left: 10px; bottom: 44px; }
.el .done-mark { right: 8px; bottom: 44px; }
/* 영어·유럽어: 이름이 세 줄까지 가므로 세 줄 높이 칸, 글자는 조금 작게 */
html:not([lang="ko"]) .el .nm { font-size: 11px; height: 3.7em; line-height: 1.2; hyphens: manual; }
html:not([lang="ko"]) .el .new-pill, html:not([lang="ko"]) .el .done-mark { bottom: 56px; }

/* ================= 휴대폰 전용 (≤760px): 분야 탭 + 큰 카드 ================= */
.ftabs { display: none; }
@media (max-width: 760px) {
  body.home { overflow-x: hidden; }
  .hero-in { padding: 18px 16px 14px; }
  .mega { font-size: 34px; }
  .cta .btn.big { flex: 1 1 100%; justify-content: center; padding: 13px 16px; font-size: 16px; }
  .cta .btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
  main > .mob-daily { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; }
  .table-sec { margin-top: 22px; }
  .table-sec > p { display: none; }
  .ftabs { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: 0; z-index: 30; margin: 10px -16px 14px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 6px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; scroll-snap-align: center; box-shadow: 0 1px 2px rgba(20,30,60,.05); -webkit-tap-highlight-color: transparent; }
  .ftabs .chip { flex: none; width: 28px; height: 28px; border-radius: 26%; display: grid; place-items: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000) 100%); box-shadow: 0 3px 6px -3px color-mix(in srgb, var(--c) 60%, rgba(20,30,60,.5)); }
  .ftabs .chip svg { width: 17px; height: 17px; display: block; }
  .ftabs .tn { min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--c) 82%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); }
  .ftabs button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: 0 0 0 1px var(--c) inset; }
  .ftabs button.on .tn { background: #fff; }
  .ptable { grid-template-columns: 1fr; gap: 26px; }
  .col.off { display: none; }
  .col { grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 0 14px; box-sizing: border-box; }   /* 휴대폰 칸을 조금 작게: 좌우 여백·칸 사이 간격을 늘림 */
  .col .fh, .fh, html:not([lang="ko"]) .fh { --chip: 34px; grid-column: 1 / -1; height: auto; grid-template-columns: var(--chip) minmax(0, 1fr) auto; grid-template-rows: var(--chip); column-gap: 10px; padding: 2px 2px 8px; }
  .fh .chip svg { width: 21px; height: 21px; }
  .fh b, html:not([lang="ko"]) .fh b { grid-column: 2; grid-row: 1; align-self: center; font-size: 17px; line-height: 1.2; -webkit-line-clamp: 2; }
  .fh i { grid-column: 3; min-width: 22px; height: 22px; font-size: 12.5px; }
  .fh .fcomp { grid-column: 3; justify-self: end; font-size: 11px; }
  .el { gap: 8px; }
  .el .num { font-size: 11px; top: 10px; left: 13px; }
  .el .sym { font-size: 24px; top: 7px; left: 29px; }
  .el .nm, html:not([lang="ko"]) .el .nm { font-size: 13.5px; height: 2.5em; line-height: 1.25; }
  .el .bdg { right: 9px; bottom: 9px; }
  .el .b3d, .el .bnew { font-size: 10px; padding: 3px 6px; }
  .el .new-pill, html:not([lang="ko"]) .el .new-pill { left: 12px; bottom: 56px; font-size: 11px; }
  .el .done-mark, html:not([lang="ko"]) .el .done-mark { right: 10px; bottom: 54px; width: 24px; height: 24px; font-size: 14px; }
  .notebook { display: none; }   /* 손가락에는 올려 보기(hover)가 없어 실험 노트 상자는 숨긴다 */
}

/* 오늘의 만약에: 결과 화면을 투표 화면과 비슷한 높이로 촘촘하게 */
#daily .pbar { margin: 2px 0; gap: 8px; grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) 40px; font-size: 12.5px; }
#daily .poth-s { margin: 4px 0 0; font-size: 12px; }
#daily .dlink { margin-top: 8px; }
#daily .dfoot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin-top: 6px; }
#daily .dfoot .poth-s { margin: 0; }
#daily .dfoot .dlink { margin-top: 0; }
#daily .pbar { margin: 1px 0; }
#daily .sbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #e4e8f2; margin: 4px 0 6px; }
#daily .sbar i { display: block; height: 100%; }
#daily .slegend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; line-height: 1.35; }
#daily .slegend .sl { display: inline-flex; align-items: baseline; gap: 4px; }
#daily .slegend .sl b { flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(1px); }
#daily .slegend .sl em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
#daily .slegend .sl.right { font-weight: 700; }

/* 오늘의 만약에 카드 자리 미리 잡기: 스크립트가 카드를 채우기 전에도 같은 크기의 상자가 보이게 */
.dsk { display: none; }
@media (min-width: 1060px) {
  .hero-in .dsk { display: block; grid-column: 2; grid-row: 1 / span 6; align-self: start; min-height: 240px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #dbe8ff, #cfe0fb); border: 1px solid #aac6f0; box-shadow: 0 6px 20px rgba(47,111,237,.14); }
}
.dsk i { display: block; height: 14px; border-radius: 8px; margin: 0 0 14px; background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.8), rgba(255,255,255,.35)); background-size: 200% 100%; animation: dsk 1.4s ease-in-out infinite; }
.dsk i:nth-child(1) { width: 38%; } .dsk i:nth-child(2) { width: 92%; height: 22px; } .dsk i:nth-child(3) { width: 100%; height: 38px; }
@keyframes dsk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* New·3D 표시: 그림 상자 오른쪽 아래 구석에 작게 */
.el .bdg { position: absolute; right: 7px; bottom: 7px; z-index: 3; display: flex; gap: 3px; pointer-events: none; }
.el .b3d, .el .bnew { font-size: 9px; font-weight: 800; letter-spacing: .04em; line-height: 1; padding: 2px 5px; border-radius: 5px; color: #fff; }
.el .b3d { background: rgba(15,23,52,.72); }
.el .bnew { background: #e11d48; }
