/* =====================================================================
   사주왕 실험실 — 화면
   ---------------------------------------------------------------------
   ★ 클래스 이름을 짧게 짓지 말 것. 이 파일은 sazuwang.com 안에서 살지만
     lab/ 은 제 페이지라 충돌은 없다. 그래도 앱 본체(`.dim`·`.blank`·`.one`)에서
     짧은 이름이 세 번 사고를 냈으므로 여기서도 두 글자 이름을 쓰지 않는다.
   ★ 실험실은 폰에서 본다. 데스크톱은 가운데 한 칸으로 세운다.
   ===================================================================== */
:root {
  --바탕: #faf7f2;
  --판: #ffffff;
  --먹: #23282f;
  --옅은먹: #5c6773;
  --흐린먹: #8b95a1;
  --선: #e8e2d8;
  --금: #b08d3f;
  --목: #1f7a63; --화: #c2352a; --토: #a97c2a; --금색: #6c7a85; --수: #23282f;
  --그늘: 0 1px 2px rgba(35,40,47,.05), 0 8px 24px rgba(35,40,47,.07);
  --둥글: 18px;

  /* ★ 테마를 안 타는 「어두운 판」. 밝은 글자를 얹는 자리(아래 띠·사주왕 칸)는 이걸 쓴다.
     `--먹` 은 다크모드에서 **밝은 색으로 뒤집히는데**, 거기에 흰 글자를 고정해 두면
     다크에서 흰 바탕에 흰 글자가 된다 — 2026-09-06 에 실제로 그렇게 나갔다.
     아래 셋은 다크 블록에서 **다시 정의하지 않는다.** */
  --진판: #23282f;
  --진글: #f4efe4;
  --진흐림: #a8a296;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.nt-tone) {
    --바탕: #16181c; --판: #1e2126; --먹: #f0ece4; --옅은먹: #b7bec7;
    --흐린먹: #7f8892; --선: #2c3138; --금: #d0aa55;
    --목: #4bb493; --화: #e8695c; --토: #d3a94e; --금색: #a3b1bd; --수: #cfd6de;
    --그늘: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
/* ★ 앱·놀이터와 같은 톤(2026-10-24 대표님 「놀이터 실험실 어플 3가지 배경 톤에 일관성이 좀 있어야 할거 같음」 → 「남색 톤 + 그림 없이」).
     html.nt-tone 일 때만 켜진다 — 놀이터 공용 위쪽 바(/home/위쪽바.js 새 판)가 단다. 그래서 실험실 파일이 먼저 올라가도
     위쪽 바가 올라가기 전까지는 위 옛 색(폰 설정 따라 낮 흰 칸·밤 회색)이 그대로다.
     낮·밤은 앱·놀이터와 같은 스위치(localStorage 'sazuwang.theme' → html.day, index.html 머리 스크립트)를 따르고 처음은 밤.
     낮 = 앱 한지(바탕이 가장 옅고 칸이 바탕보다 짙다, 흰색으로 칠하지 않는다) · 밤 = 앱 남색 · 바탕 그림 없음 */
html.nt-tone {
  --바탕: #fcfaf6; --판: #f3ecdd; --먹: #2b2217; --옅은먹: #4a3c2b;
  --흐린먹: #6b5c45; --선: #e0d6c3;
}
html.nt-tone:not(.day) {
  --바탕: #0b0e13; --판: #161b23; --먹: #e9edf3; --옅은먹: #aeb8c6;
  --흐린먹: #8a94a2; --선: #38424f; --금: #d0aa55;
  --목: #4bb493; --화: #e8695c; --토: #d3a94e; --금색: #a3b1bd; --수: #cfd6de;
  --그늘: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}
/* --액센트 는 실험마다 lab.js 가 인라인으로 심는다(오행 다섯 색 중 하나). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--바탕); color: var(--먹);
  font: 16px/1.65 "Pretendard Variable",-apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }

/* ── 머리 ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
  background: color-mix(in srgb, var(--바탕) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--선);
}
/* ★ 「today」가 들어오면서 좁은 폰(320·390px)에서 **제목이 두 줄로 접혔다**(실측).
   상단바가 두 줄이 되면 화면을 먹고 보기도 나쁘다 — 제목은 안 접히게 못 박고,
   대신 오른쪽 사람 칩이 줄어들게 둔다(그쪽은 이미 …으로 줄이는 처리가 있다). */
/* ★ margin-right:auto — 제목은 늘 왼쪽(놀이터 옆)에 붙고 오른쪽 무리(today·사람 칩)를 민다.
     2026-10-13 머리줄의 「교육장」 입구를 뗐다(대표님 「실험실 배너 위쪽에 교육장 있는 거 다 없애줘」).
     그 입구가 margin-left:auto 로 오른쪽 무리를 밀고 있었다 — 떼기만 하면 today 가 숨은 동안 제목이 오른쪽 끝으로 간다. */
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none;
         flex: 0 0 auto; white-space: nowrap; margin-right: auto; }
.flask { font-size: 20px; }
/* 맨 왼쪽 「‹ 놀이터」 — 사주왕 놀이터(/home/)로 돌아가는 길(2026-10-01). 제목처럼 안 줄어든다 */
.nori { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
        min-height: 32px; padding: 0 11px 0 8px; margin-right: -4px; border-radius: 999px;
        border: 1px solid var(--선); background: var(--판); color: var(--먹);
        font-size: 13px; font-weight: 700; text-decoration: none; }
.nori-ch { font-size: 17px; line-height: 1; margin-top: -2px; color: var(--옅은먹); }
.nori:active { opacity: .7; }
.bname { font-size: 16px; letter-spacing: -.2px; color: var(--옅은먹); }
.bname b { color: var(--먹); font-weight: 700; }
/* 오른쪽 위 「today : N」 — 오늘 움직인 수.
   ★ 사람 칩(.who) **왼쪽**에 선다. 둘 다 있으면 좁은 폰에서 붙으므로 글자를 작게 두고
     `.who` 가 줄어들 수 있게(min-width:0) 둔다 — 320px 에서도 안 겹친다(실측). */
.today {
  margin-left: auto; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2px;
  white-space: nowrap;
  color: var(--금); opacity: .95;
}
.today + .who { margin-left: 8px; }
/* ★ 좁은 폰(320px)에서 놀이터·제목·today·사람 칩이 한 줄에 서게 틈과 글자를 줄인다 —
   그래도 모자라면 줄어드는 것은 사람 칩이다. */
@media (max-width: 400px) {
  .top { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .brand { gap: 6px; }
  .nori { padding: 0 9px 0 6px; font-size: 12px; }
  .today { font-size: 11px; letter-spacing: 0; }
  .who { padding: 6px 10px; }
}
.who {
  border: 1px solid var(--선); background: var(--판); color: var(--옅은먹);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer;
  font-family: inherit; min-width: 0; max-width: 46vw; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.who:hover { color: var(--먹); }

.view { max-width: 560px; margin: 0 auto; padding: 22px 18px 40px; }

/* ── 아래에 늘 떠 있는 띠 ─────────────────────────────── */
/* ★ 머리말과 같은 방식으로 붙어 있되, **내릴 때는 숨고 올릴 때 떠오른다.**
   읽는 동안 화면을 덜 가리려는 것이고, 손이 닿는 자리라 유입선으로도 제일 세다. */
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom, 0px));
  text-decoration: none; color: var(--진글); background: var(--진판);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.bottom .btxt { flex: 1; min-width: 0; }
.bottom b { display: block; font-size: 15.5px; letter-spacing: -.3px; color: #fff; }
.bottom .btxt span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--진흐림); }
/* 사주왕 낙관 — 저장 그림에 찍히는 그 도장. 「사주왕으로 이동」을 그림으로 한 번 더 말한다.
   ★ 화살표(누를 수 있다는 신호)는 그대로 둔다 — 도장이 그 자리를 뺏으면 눌리는 띠로 안 읽힌다. */
/* 캐릭터와 이름이 함께 읽히도록 높이를 확보한다. 좁은 폰에서는 폭만 줄이고
   그림 비율은 유지해, 왼쪽 안내와 오른쪽 화살표가 밀리지 않게 한다. */
.bseal { flex: 0 0 auto; width: 108px; max-width: 28vw; height: 36px;
         object-fit: contain; opacity: .96; }
.bgo { flex: 0 0 auto; font-size: 20px; color: var(--금); }
/* 내려갈 때는 아래로 빠진다. 다시 올리면 떠오른다. */
.bottom.down { transform: translateY(130%); }
.bottom[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .bottom { transition: none; } }

/* ── 허브 ─────────────────────────────────────────────── */
/* ★ 2026-10-21 — 소개는 상자를 걷어 짧은 머리말로(대표님 「위쪽도 ux ui 개선 ㄱㄱ」 · 「위에 있던 것들 의미는 살려야지」).
   제목 · 부제 · 「당신의 아이디어가 테스트가 됩니다」 말풍선(아래 실험 추천을 가리킨다)은 그대로 — 자리만 줄였다 */
.hero {
  position: relative; text-align: center; margin: 0 0 12px; padding: 4px 8px 0;
  background: none; border: 0; border-radius: 0;
}
.hero::before {
  content: none; display: none; width: 24px; height: 3px; margin: 0 auto 10px;
  background: var(--금); border-radius: 2px; opacity: .7;
}
.hero h1 { margin: 0 0 2px; font-size: 23px; font-weight: 800; letter-spacing: -.9px; }
/* 2026-10-23 — 제목 밑 왼쪽에 사주왕을 크게, 소개 글은 사주왕이 하는 말(말풍선)로.
   대표님 「실험실에도 좌측 상단에 공간이 좀 비는데 저기다가 사주왕 캐릭터 좀 넣어두자」 → 제목 옆에 작게 세웠더니
   「아니 왼쪽에 좀 크게 있고 그 밑에 안내를 저 캐릭터가 얘기하는 느낌으로」.
   그림은 펼친 손이 오른쪽 말풍선을 가리키게 뒤집었다(실험실/디자인/허브_사주왕_만들기.py). 소개 글(대표님 문장)은 그대로 한 줄씩 */
.hero-talk { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; text-align: left; }
.hero-sazuwang { flex: 0 0 auto; width: auto; height: 132px; pointer-events: none; }
.hero p { margin: 0; color: var(--옅은먹); font-size: 13.5px; }
/* 「당신의 아이디어가 테스트가 됩니다」 — **바로 아래 실험 추천 티커를 가리키는 말풍선.**
   ★ 꼬리가 아래를 향한다 — 글이 「아래」라고 하는데 시선이 안 내려가면 반만 한 것이다.
   ★ 부제보다 조용하게 둔다. 머리말에 큰 글자가 셋이면 어디를 읽을지 모른다.
     그래서 **글자는 작게 두고 연한 면과 테두리로만** 세운다. */
.hcall {
  position: relative; display: inline-block;
  margin: 11px auto 0 !important; padding: 7px 14px 7px;
  font-size: 13px; font-weight: 700; color: var(--금); line-height: 1.45;
  background: color-mix(in srgb, var(--금) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--금) 32%, transparent);
  border-radius: 13px;
}
.hcall span { display: block; margin-top: 1px; font-size: 12px; font-weight: 500;
              color: var(--흐린먹); }
/* 말풍선 꼬리 — 테두리 위에 면을 겹쳐 얇은 선까지 이어 보이게 한다 */
.hcall::before, .hcall::after {
  content: ''; position: absolute; left: 50%; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
}
.hcall::before {
  bottom: -8px; margin-left: -7px;
  border-top: 8px solid color-mix(in srgb, var(--금) 32%, transparent);
}
.hcall::after {
  bottom: -6px; margin-left: -7px;
  border-top: 8px solid color-mix(in srgb, var(--금) 10%, var(--바탕));
}
/* 아주 살짝 떠오르내린다 — 눈이 한 번 가면 그걸로 된다.
   ★ 움직임을 싫어하는 설정이면 멈춘다. */
@media (prefers-reduced-motion: no-preference) {
  .hcall { animation: hcallbob 2.6s ease-in-out infinite; }
}
@keyframes hcallbob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ★★ 실험 목록 = 웹툰식 세로 그림 타일 (2026-10-21 대표님 — 「실험들도 약간 네이버 웹툰스트로 놓여서 이거저거 해볼 수 있게.
   디자인도 좀 다듬고 세련되게」). 그림 위 · 제목 아래, 한 줄에 셋(넓으면 넷). 한줄 설명은 타일에서 뺐다.
   ★ 화면점검이 보는 이름은 그대로 — .card · .ctitle b · .ctag · .cused · .cmaker · .cflag(그림 왼쪽 위). */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
@media (min-width: 540px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 12px; } }
.card {
  position: relative;      /* 왼쪽 위 딱지가 그림 모서리에 걸친다 */
  display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0;
  padding: 0; margin: 0; text-align: left; cursor: pointer; text-decoration: none;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  color: inherit; font-family: inherit; font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.cpic {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 12px; background: color-mix(in srgb, var(--액센트) 14%, var(--판));
  box-shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 6px 16px rgba(20, 22, 27, .09);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* 그림 테두리 한 줄 — 어두운 그림이 다크 바탕에 묻히지 않게 */
.cpic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--먹) 8%, transparent); }
.card:hover .cpic { transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20, 22, 27, .08), 0 14px 28px rgba(20, 22, 27, .16); }
.card:active .cpic { transform: scale(.97); }
.card:focus-visible { outline: none; }
.card:focus-visible .cpic { box-shadow: 0 0 0 3px var(--금); }
.cthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 그림이 아직 없는 실험 — 실험 색 바탕에 큰 아이콘 하나 */
.cicon {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; line-height: 1;
  background:
    radial-gradient(120% 90% at 28% 18%, color-mix(in srgb, var(--액센트) 34%, transparent), transparent 62%),
    linear-gradient(165deg, color-mix(in srgb, var(--액센트) 24%, var(--판)), color-mix(in srgb, var(--액센트) 7%, var(--판)));
}
.cbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.ctitle { display: block; }
.ctitle b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 700; line-height: 1.38; letter-spacing: -.35px; color: var(--먹); }
.ctag { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.4; color: var(--액센트);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 1px; font-size: 11px; line-height: 1.45;
  color: var(--흐린먹); }
/* 얼마나 열렸나 — 꼬리 옆에 한 칸 띄고 조용히 선다.
   ★ 꼬리(`.ctag`)와 같은 무게로 두지 않는다. 이건 자랑이 아니라 참고다. */
/* 오늘의 인기 셋 — 앱 팝업의 「오늘의 사주왕 실험실」과 같은 꼴(2026-09-08 대표님).
   ★ 아래 카드 목록보다 **낮게** 둔다. 같은 무게로 그리면 목록이 둘로 보인다. */
.hot3 { margin: 22px 0 4px; }
.hot3 h3 { margin: 0 0 10px 2px; font-size: 15px; font-weight: 800;
           letter-spacing: -.3px; color: var(--먹); }
.hot3c {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; margin-bottom: 7px; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  /* ★ 추천 칸은 `<a>` 다(제 페이지로 가는 카드라). 밑줄이 그어지면 카드가 아니라
     링크 뭉치로 보인다 — 실측으로 걸렸다(2026-09-15). */
  text-decoration: none;
  background: var(--판); border: 1px solid var(--선); border-radius: 13px;
}
.hot3c:hover { border-color: var(--액센트); }
.hot3i { flex: 0 0 auto; font-size: 19px; line-height: 1; }
.hot3t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hot3t b { display: flex; align-items: center; gap: 6px;
           font-size: 14px; letter-spacing: -.2px; }
.hot3t b i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--흐린먹); }
.hot3t > span { font-size: 12px; line-height: 1.5; color: var(--옅은먹);
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot3a { flex: 0 0 auto; font-size: 17px; color: var(--흐린먹); }
/* ── 오늘의 추천 실험 (2026-09-15) ────────────────────── */
/* 인기 셋 **바로 위**에 한 칸. 같은 꼴이되 한 눈금 더 세게 —
   테두리를 액센트로 두르고 왼쪽에 색 띠를 세운다. */
.pickday { margin: 20px 0 2px; }
.pickday h3 { margin: 0 0 2px 2px; font-size: 15px; font-weight: 800;
              letter-spacing: -.3px; color: var(--먹); }
/* 누가 만드는지 — 제목 바로 밑에 한 줄 (2026-09-19 대표님) */
.pickwhy { margin: 0 0 9px 2px; font-size: 11.5px; line-height: 1.5;
           color: var(--흐린먹); }
.hot3c.pickone { border-color: color-mix(in srgb, var(--액센트) 42%, var(--선));
                 border-left: 3px solid var(--액센트); }
.hot3c.pickone .hot3t b { font-weight: 800; }
.hot3c.pickone .hot3a { color: var(--액센트); }
/* ★ 2026-10-21 — 추천 · 인기 셋도 목록 타일과 같은 그림으로(대표님 「위에 있던 것들 의미는 살려야지 추천이나 인기순 3개, 실험추천받기 등등」).
   뜻과 자리는 그대로 — 추천은 인기 셋 위 한 칸, 인기 셋은 서버가 준 오늘 순위 1·2·3. */
.hot3c .hot3i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pickday .hot3c { padding: 11px 14px 11px 11px; gap: 13px; }
.pickday .hot3i { width: 60px; height: 75px; flex: 0 0 60px; border-radius: 11px; overflow: hidden;
  display: grid; place-items: center; font-size: 28px; line-height: 1;
  background: color-mix(in srgb, var(--액센트) 16%, var(--판)); }
.pickday .hot3t b { font-size: 15.5px; }
.hot3row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hot3 .hot3c { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin: 0; padding: 0;
  border: 0; background: none; border-radius: 0; }
.hot3 .hot3c:hover .hot3pic { transform: translateY(-2px); }
.hot3pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
  background: color-mix(in srgb, var(--액센트) 16%, var(--판)); transition: transform .18s ease;
  box-shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 6px 14px rgba(20, 22, 27, .09); }
.hot3pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot3pic .hot3i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.hot3rank { position: absolute; left: 8px; bottom: 4px; font-size: 27px; font-weight: 900; font-style: italic;
  line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .45); }
.hot3 .hot3t b { display: block; font-size: 13px; line-height: 1.35; letter-spacing: -.3px; }
.hot3 .hot3t b i { display: block; margin-top: 2px; }
/* 이 실험을 낸 사람 — 의견에서 뽑혀 만들어진 실험에만 붙는다(2026-09-08 대표님).
   ★ 아주 조용하게 둔다. 「이 자리는 당신 것이 될 수 있다」를 보이는 게 목적이고
     그 사람을 내세우는 자리는 아니다. */
.cmaker { font-size: 11px; font-weight: 600; color: var(--금); opacity: .9;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.maker { margin-top: 4px !important; font-size: 12px; font-weight: 600;
         color: var(--금) !important; }
.cused { font-size: 11px; font-weight: 600; color: var(--흐린먹); white-space: nowrap; }
.cone { margin: 3px 0 0; font-size: 14px; color: var(--옅은먹); line-height: 1.55; }
/* 작은 딱지 — HOT 은 제일 많이 열린 하나, NEW 는 마지막에 더한 하나.
   ★ 카드 **왼쪽 위 모서리에 걸친다.** 제목 옆에 두면 꼬리표와 같은 무게로 읽힌다. */
.cflags { position: absolute; top: 7px; left: 7px; z-index: 2; display: flex; gap: 3px; }
.cflag {
  font-size: 10px; font-weight: 800; letter-spacing: .2px;
  padding: 2px 6px; border-radius: 6px; line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}
.cflag.hot { background: var(--화); color: #fff; }
.cflag.new { background: var(--금); color: #211a08; }

/* ── 입력 ─────────────────────────────────────────────── */
.form { background: var(--판); border: 1px solid var(--선); border-radius: var(--둥글);
        padding: 22px 20px; box-shadow: var(--그늘); }
.form h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.4px; }
.form .fsub { margin: 0 0 20px; color: var(--옅은먹); font-size: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--옅은먹); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px;
  color: var(--먹); background: var(--바탕);
  border: 1px solid var(--선); border-radius: 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--금); outline-offset: 1px; }
.dates { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.cal { display: flex; gap: 8px; margin-bottom: 15px; }
.calbtn {
  flex: 1; padding: 10px; font: inherit; font-size: 14px; cursor: pointer;
  background: var(--바탕); color: var(--옅은먹);
  border: 1px solid var(--선); border-radius: 11px;
}
.calbtn[aria-pressed="true"] { background: var(--먹); color: var(--바탕); border-color: var(--먹); }
.leap { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--옅은먹); margin-bottom: 15px; }
.leap[hidden] { display: none; }
.go {
  width: 100%; padding: 15px; font: inherit; font-size: 17px; font-weight: 700;
  cursor: pointer; color: var(--바탕); background: var(--먹);     /* 다크에선 --먹 이 밝아진다 — 글자도 같이 뒤집는다(흰 글자 고정 금지) */
  border: 0; border-radius: 13px; letter-spacing: -.3px;
}
.go:hover { opacity: .92; }
.fnote { margin: 14px 0 0; font-size: 12.5px; color: var(--흐린먹); line-height: 1.55; }
.err { margin: 12px 0 0; padding: 11px 13px; border-radius: 11px; font-size: 14px;
       background: color-mix(in srgb, var(--화) 10%, transparent); color: var(--화); }

/* ── 결과 ─────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px;
        font-size: 14px; color: var(--옅은먹); text-decoration: none; }
.back:hover { color: var(--먹); }

.res { background: var(--판); border: 1px solid var(--선);
       border-radius: 22px; box-shadow: var(--그늘); overflow: hidden; }
.rhead { padding: 26px 22px 22px; text-align: center;
         background: linear-gradient(180deg, color-mix(in srgb, var(--액센트) 9%, transparent), transparent); }
.reyebrow { font-size: 12.5px; color: var(--액센트); font-weight: 700; letter-spacing: .3px; }
.rname { font-size: 13px; color: var(--흐린먹); margin-top: 8px; }
.rtitle { margin: 9px 0 6px; font-size: 32px; line-height: 1.25; letter-spacing: -1.1px; }
/* ★ 「○○○의 야구단」 — 결과에서 제일 먼저 읽히는 줄. 공유는 여기서 갈린다. */
.rown { margin: 7px 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -.6px; }
.rsub { margin: 0; font-size: 14.5px; color: var(--옅은먹); }
.rart { width: 158px; height: 158px; margin: 4px auto 10px; position: relative; }
/* ★ 그림에 position 을 주지 않으면 배지(absolute)가 위로 올라와 짐승이 통째로 가려진다.
   배치가 안 된 요소는 배치된 요소보다 늘 아래에 그려진다 — 실제로 한 번 그렇게 나갔다. */
.rart img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.rbadge { position: absolute; inset: 0; z-index: 0; border-radius: 50%; border: 5px solid; }
.rglyph { position: absolute; z-index: 2; right: -2px; bottom: -2px; width: 42px; height: 42px;
          border-radius: 50%; display: grid; place-items: center;
          font-size: 21px; font-weight: 700; border: 2px solid; }
.remoji { font-size: 64px; line-height: 1; margin: 6px 0 2px; }
/* ── 짝의 얼굴 (2026-09-08) — 관상 도판을 조립해 그린다 ──────────────
   ★ 한지 바탕이 캔버스 안에 이미 칠해져 있으므로 배경을 또 깔지 않는다.
   ★ 세로 비율은 그리는 쪽이 정한다 — 여기서 height 를 못 박으면 얼굴이 눌린다. */
/* 머리줄 아래 훅 한 줄 — 「이렇게 생긴 사람 잡으세요」 */
.rown2 { margin: 2px 0 6px; font-size: 14px; font-weight: 700; color: var(--액센트); }
/* ── 달임 — 결과 앞 2초 (2026-09-08 대표님) ─────────────────────
   ★ 실험실의 얼굴이 삼각플라스크다. 생일을 넣고 섞어 건져 내는 그림.
   ★ 「빠른 움직임 줄이기」를 켠 기기에서는 흔들지 않는다. */
.brew { display: flex; flex-direction: column; align-items: center; justify-content: center;
        min-height: 58vh; gap: 4px; }
.brew .flask { width: 132px; height: 165px; }
.brew .glass { fill: none; stroke: var(--먹); stroke-width: 4;
               stroke-linejoin: round; stroke-linecap: round; }
.brew .liq { fill: var(--액센트, #b08d3f); animation: 차오름 3s ease-in-out forwards; }   /* 2026-10-22 연출 3초에 맞춤 */
.brew .bub { fill: rgba(255,255,255,.62); animation: 방울 1.4s ease-in infinite; }
.brew .bub.b2 { animation-delay: .35s; }
.brew .bub.b3 { animation-delay: .7s; }
.brewT { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--먹);
         animation: 스밈 .45s ease; }
.brewS { margin: 4px 0 0; font-size: 13px; color: var(--흐린먹); }
@keyframes 차오름 { from { transform: translateY(0); } to { transform: translateY(-86px); } }
@keyframes 방울 { 0% { transform: translateY(0); opacity: 0; }
                  25% { opacity: .9; }
                  100% { transform: translateY(-42px); opacity: 0; } }
@keyframes 스밈 { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .brew .liq { animation: none; transform: translateY(-70px); }
  .brew .bub { animation: none; opacity: .5; }
  .brewT { animation: none; }
}

/* ── 사진 보기(기본) — 사진 위에 제목을 얹는다 (2026-09-08 대표님) ── */
.rhero { position: relative; border-radius: 18px; overflow: hidden;
         margin: 6px 0 2px; background: var(--선); }
.rhero .rphoto { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
                 object-fit: cover; border-radius: 0; }
.rhero .rheroin { position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 16px 16px;
                  background: linear-gradient(to bottom, rgba(20,23,28,0), rgba(20,23,28,.82)); }
.rhero .rtitle { margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.rherosub { margin: 4px 0 0; font-size: 13.5px; color: rgba(255,255,255,.88); }
.rtitle .rtpre { display: block; margin-bottom: 4px; font-size: .5em; font-weight: 700; letter-spacing: 0; opacity: .82; }
/* 배우자 얼굴 — 제목은 사진 밑 띠(얼굴을 가리지 않게, 2026-10-21) */
.facehero .rheroin { position: static; padding: 12px 16px 14px; background: #181b21; }
/* 외모 네 단계(2026-10-21) — 고르기 전엔 흐린 사진 위에 「배우자 보기」, 누르면 창에서 네 단계 중 하나. 고르면 이 폰에서는 고정 */
.rphotowrap { position: relative; overflow: hidden; }
.rphoto.realblur { filter: blur(18px) brightness(.7); transform: scale(1.08); }
.realask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.realask button { padding: 13px 26px; border-radius: 999px; border: 0; background: #fff; color: #1b1d22;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.realask.small button { padding: 9px 16px; font-size: 14px; }
.realtag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12);
  color: #e9e3d6; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.realwait { display: inline-block; margin: 0 0 6px 8px; color: #b9b3a6; font-size: 12px; }
.realmodal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10,12,16,.62); }
.realbox { width: 100%; max-width: 340px; background: var(--판, #fff); color: var(--먹, #1b1d22); border-radius: 18px; padding: 22px 18px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: center; }
.realq { margin: 0; font-size: 19px; font-weight: 800; }
.realnote { margin: 6px 0 16px; font-size: 13px; color: var(--흐린먹, #6b6f78); }
.realopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.realopts button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; border: 0;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.realopts button small { font-size: 11px; font-weight: 700; opacity: .65; }
.realopts button[data-pick="암울한"] { background: #4a505b; color: #eef0f3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.realopts button[data-pick="차가운"] { background: #dfe7f1; color: #1f2a38; }
.realopts button[data-pick="따뜻한"] { background: #f6d9a8; color: #3a2a12; }
.realopts button[data-pick="꿈같은"] { background: #f3c9dc; color: #4a1d33; }
.realpicked { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.realpicked[data-pick="암울한"] { background: #4a505b; color: #eef0f3; }
.realpicked[data-pick="차가운"] { background: #dfe7f1; color: #1f2a38; }
.realpicked[data-pick="따뜻한"] { background: #f6d9a8; color: #3a2a12; }
.realpicked[data-pick="꿈같은"] { background: #f3c9dc; color: #4a1d33; }
.realbox .realq + .realnote { line-height: 1.6; }
.realyes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.realyes button { padding: 13px 8px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.realback { border: 1px solid var(--선, #d5d0c4); background: transparent; color: var(--흐린먹, #6b6f78); }
.realok { border: 0; background: var(--먹, #1b1d22); color: var(--판, #fff); }
.realclose { margin-top: 12px; border: 0; background: transparent; color: var(--흐린먹, #6b6f78); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 14px; }
/* 결과마다 그린 그림(삽화) — 4:5 세로 한국화. 성별을 모르면 그림 대신 먼저 묻는다(2026-09-25) */
.ilhero { aspect-ratio: 4 / 5; background: #14161b; }
.ilhero .rphoto { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.ilhero .rheroin { pointer-events: none; padding: 96px 18px 20px; text-align: center;
                   background: linear-gradient(to bottom, rgba(12,14,18,0), rgba(12,14,18,.6) 40%, rgba(12,14,18,.9)); }
/* 「100명 중 N명만 나오는 결과」 — 드문 결과에만(2026-09-25) */
.rrare { display: inline-block; margin: 0 auto 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
         color: #6b4d12; background: #f3dfae; border: 1px solid #e3c07a; }
.ilhero .rrare { color: #1b1d22; background: #e3c07a; border-color: #e3c07a; }
/* 새 판(2026-10-10) — 그 사람만의 답 한 줄(「2031년부터 · 만 서른여섯 살」). 이 실험의 답이라 크게 선다 */
.rrare.rwhen { display: table; margin: 0 auto 10px; padding: 7px 16px; font-size: 17px; font-weight: 900; letter-spacing: -.02em;
               word-break: keep-all; line-height: 1.35; }
/* 새 판 결과 맨 아래 한 줄 — AI 가 계산법대로 풀어 쓴 결과이고 다듬는 중이라는 것 */
.ainote { margin: 0; padding: 12px 22px 16px; font-size: 12px; line-height: 1.6; color: var(--흐린먹); text-align: center;
          border-top: 1px solid var(--선); word-break: keep-all; }
/* 결과 앞에서 성별을 한 번 묻는 화면 */
.sexask .cal.sex { margin-top: 18px; }
.sexask .calbtn { min-height: 52px; font-size: 17px; }
.ilhero .rtitle { font-size: 28px; font-weight: 900; line-height: 1.3; }
/* 제목을 그림 밑 띠에 — 그림 위 번호 점(입 · 턱)을 가리지 않게(2026-10-22 ㊿⑦ 잘 맞는 얼굴) */
.ilhero.ilbelow { aspect-ratio: auto; }
.ilhero.ilbelow .rphoto { position: static; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.ilhero.ilbelow .rheroin { position: static; padding: 14px 16px 16px; background: #181b21; }
.ilhero .rherosub { font-size: 15px; font-weight: 600; margin-top: 6px; }
/* 칩 두 줄 — 성별과 보기 */
.rchips { display: flex; gap: 16px; justify-content: center; align-items: center;
          flex-wrap: wrap; margin: 9px 0 8px; }
/* ★ 성별 칩과 보기 칩이 같은 꼴이면 넷이 한 줄로 붙어 보인다 —
   보기 쪽은 **테두리만 칠해** 하는 일이 다르다는 것을 눈으로 가른다. */
.rview { display: flex; gap: 6px; position: relative; }
.rview::before { content: ''; position: absolute; left: -9px; top: 3px; bottom: 3px;
                 width: 1px; background: var(--선); }
.rview button { border: 1px solid var(--선); background: transparent; color: var(--흐린먹);
                border-radius: 8px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; }
.rview button.on { color: var(--액센트); border-color: var(--액센트); font-weight: 700; }
/* 실사와 먹 그림을 나란히 — 2026-09-08 대표님 「두개 다 보여줘」 */
.rfaces { display: flex; gap: 10px; align-items: flex-start; justify-content: center;
          margin: 4px 0 2px; }
.rfaces figure { flex: 1 1 0; min-width: 0; margin: 0; }
.rfaces figcaption { margin-top: 5px; font-size: 11.5px; color: var(--흐린먹); }
.rphoto { display: block; width: 100%; height: auto; border-radius: 14px;
          background: var(--선); aspect-ratio: 1 / 1; object-fit: cover; }
.rface { display: block; width: 100%; height: auto; border-radius: 14px;
         background: #fdfcf9; }
/* ★★ `display:block` 이 브라우저 기본 `[hidden]{display:none}` 을 이긴다 —
   「사진」 보기에서 먹 그림을 숨긴 채로 그려 두는데, 이 줄이 없으면 그대로 보인다.
   (`.jimg{display:flex}` 로 앱에서 겪은 것과 같은 함정) */
.rface[hidden] { display: none !important; }
/* 「관상」 보기 — 부위 번호와 왜 좋은 상인지(2026-10-21) */
.facepin { position: relative; }
.fpin { position: absolute; transform: translate(-50%, -50%); width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800; font-style: normal; line-height: 1;
  color: #2b2217; background: #e8c779; box-shadow: 0 0 0 1.5px #fdfcf9, 0 1px 3px rgba(0,0,0,.35); pointer-events: none; }
.facelegend { list-style: none; margin: 12px 2px 4px; padding: 0; text-align: left; }
.facelegend li { position: relative; padding: 6px 0 6px 25px; border-top: 1px solid var(--선); font-size: 13.5px; line-height: 1.5; color: var(--옅은먹); }
.facelegend li:first-child { border-top: 0; }
.facelegend li.fl0 { padding-left: 0; }
.facelegend li i { position: absolute; left: 0; top: 7px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; font-style: normal; color: #2b2217; background: #e8c779; }
.facelegend li b { display: block; font-size: 13.5px; font-weight: 800; color: var(--먹); }
/* 성별 — 지어낸 값을 못 박지 않고 눌러서 바꾼다 */
.rsex { display: flex; gap: 6px; justify-content: center; }
.rsex button { border: 1px solid var(--줄2); background: transparent; color: var(--옅은먹);
               border-radius: 999px; padding: 3px 13px; font-size: 12.5px; cursor: pointer; }
.rsex button.on { background: var(--먹); color: var(--바탕); border-color: var(--먹); }

/* ── ㉙ 당신의 살 — 그림을 꽉 채우고 살 이름과 「상위 몇 %」를 얹는다 (2026-09-24 대표님) ──
   ★ 그림 위 글자는 늘 흰·금색이다 — 그림이 밤 장면이라 라이트·다크 어느 쪽에서도 같은 판이다. */
.salhero { aspect-ratio: 4 / 5; background: #14161b; }
.salhero .salphoto { position: absolute; inset: 0; width: 100%; height: 100%;
                     object-fit: cover; display: block; }
/* 글만 얹는 막이다 — 손가락을 가로채면 아래 「남자예요」 단추가 안 눌린다(2026-09-24 실제로 막혔다) */
.salin { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 16px 18px; text-align: center;
         background: linear-gradient(to bottom, rgba(12,14,18,0), rgba(12,14,18,.62) 40%, rgba(12,14,18,.92)); }
.salhan { font-size: 14px; font-weight: 700; letter-spacing: .4em; text-indent: .4em; color: #e3c07a; }
.salhero .salname { margin: 2px 0 0; color: #fff; font-size: 38px; font-weight: 900; letter-spacing: -.01em;
                    text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.salpct { margin-top: 2px; color: #e3c07a; font-size: 20px; font-weight: 800;
          text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.salpct b { font-size: 46px; font-weight: 900; letter-spacing: -.02em; }
.salpct .salnw { white-space: nowrap; }   /* 셀프 귀인 두 줄 — 줄마다 끊기지 않게(2026-09-26) */
/* 태어난 시(선택) — 입력 화면 (2026-09-25) */
.hoursel { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px;
           border: 1px solid var(--선); background: var(--판); color: var(--먹); }
/* 「복숭아꽃 같은 사주」 — 훅 밑에 이름의 뜻과 그림 한 장 (2026-09-25 대표님 「설명이 좀 적어」) */
.salfeel { margin: 10px 0 8px; padding: 12px 14px 13px; border-radius: 14px; text-align: left;
           background: color-mix(in srgb, var(--금) 9%, var(--판)); border: 1px solid color-mix(in srgb, var(--금) 50%, transparent); }
.salfeel b { display: block; margin-bottom: 4px; color: var(--금); font-size: 16px; font-weight: 800; }
.salfeel p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--먹); }
/* ── ㉛ 오행 측정기 — 막대 두 벌(목화토금수 · 나를 기준으로 본 다섯 기운, 각 합 100%) (2026-09-25 대표님)
   ★ 이름은 전부 oh 로 시작한다 — 짧은 전역 이름은 다른 규칙에 먹힌다(app-global-class-collisions). */
.ohpanel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
           background: radial-gradient(circle at 50% 40%, var(--ohc, #3a3f48), #14161b 78%); }
.ohpanel span { color: rgba(255,255,255,.9); font-size: 132px; font-weight: 700; line-height: 1;
                font-family: "Apple SD Gothic Neo", "Noto Serif CJK KR", serif; margin-bottom: 70px; }
.ohshout { margin: 14px 0 0; font-size: 27px; font-weight: 900; line-height: 1.3; word-break: keep-all; color: var(--먹); }
.ohpctline { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: var(--금); }
.ohpctline b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.ohpunch { font-size: 18px; font-weight: 800; color: var(--먹); }
.ohgauge { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 10px 0 2px; flex-wrap: nowrap; }
.ohgauge i { font-style: normal; color: var(--흐린먹); font-size: 12px; }
.ohstep { padding: 3px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
          color: var(--옅은먹); background: color-mix(in srgb, var(--먹) 7%, transparent); }
.ohstep.on { color: #1b1d22; background: #e3c07a; font-weight: 900; font-size: 13px; padding: 4px 9px; }
.ohsum { margin: 4px 0 10px; font-size: 15px; font-weight: 800; color: var(--금); text-align: center; }
.ohbars { margin: 12px 0 6px; padding: 12px 12px 8px; border-radius: 14px; text-align: left;
          border: 1px solid var(--선); background: var(--판); }
.ohbars h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--먹); }
.ohrow { display: grid; grid-template-columns: minmax(64px, 30%) 1fr 40px 70px; align-items: center;
         gap: 8px; padding: 5px 0; }
.ohname { font-size: 15px; font-weight: 800; color: var(--먹); line-height: 1.2; }
.ohname small { display: block; font-size: 11.5px; font-weight: 500; color: var(--옅은먹); }
.ohtrack { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--먹) 10%, transparent); overflow: hidden; }
.ohtrack i { display: block; height: 100%; border-radius: 999px; }
.ohpct { font-size: 14px; font-weight: 800; color: var(--먹); text-align: right; font-variant-numeric: tabular-nums; }
.ohchip { justify-self: end; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
          color: #1b1d22; background: #e3c07a; }
.ohchip.ohlow { color: var(--먹); background: color-mix(in srgb, var(--수) 16%, transparent); }
.ohchip.ohnone { background: none; padding: 0; }
.ohrow.ohtop .ohname, .ohrow.ohtop .ohpct { color: var(--금); }
.ohsip { margin: 6px 2px 4px; font-size: 14px; line-height: 1.6; color: var(--먹); text-align: left; }
.ohsip b { color: var(--금); margin-right: 4px; }
.ohnote { margin: 2px 2px 8px; font-size: 12px; line-height: 1.5; color: var(--흐린먹); text-align: left; }
/* 상위 50% 안에 든 다른 살 — 가로로 넘기는 그림 띠 (2026-09-25 대표님 「사진 다 보여줘」) */
.salmore { margin: 14px 0 6px; text-align: left; }
.salmore h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--먹); }
.salstrip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
            padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.salcard { flex: 0 0 136px; margin: 0; padding: 0; border: 0; cursor: pointer; font: inherit; text-align: center;
           scroll-snap-align: start; border-radius: 14px; overflow: hidden;
           background: #14161b; position: relative; aspect-ratio: 4 / 5; }
.salcard:active { transform: scale(.97); }
.salbest { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800;
           color: #1b1d22; background: #e3c07a; }
.salcard img, .salcardph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.salcardph { display: flex; align-items: center; justify-content: center; color: #e3c07a;
             font-size: 26px; font-weight: 700; letter-spacing: .1em;
             background: radial-gradient(circle at 50% 40%, #2a2f3a, #14161b 70%); }
.salcard .salcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 8px 8px; text-align: center;
                      background: linear-gradient(to bottom, rgba(12,14,18,0), rgba(12,14,18,.9) 55%); color: #fff; }
.salcard .salcap b { display: block; font-size: 15px; font-weight: 900; }
.salcard .salcap > span { display: block; color: #e3c07a; font-size: 13px; font-weight: 800; }
.salcard .salcap small { display: block; margin-top: 1px; font-size: 11px; color: rgba(255,255,255,.8); }
.salnext { margin: 2px 0 6px; text-align: center; font-size: 13px; color: var(--옅은먹); }
.salnext b { color: var(--먹); font-weight: 700; }
/* 성별을 모를 때 — 그림 대신 먼저 묻는다(남자에게 여자 그림이 뜨지 않게, 2026-09-24 대표님) */
.salask { position: absolute; left: 0; right: 0; top: 0; bottom: 44%; display: flex; flex-direction: column;
          align-items: center; justify-content: center; gap: 14px;
          background: radial-gradient(circle at 50% 40%, #2a2f3a, #14161b 70%); }
.salask p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; font-weight: 600; }
.salaskbtn { display: flex; gap: 10px; }
.salaskbtn button { border: 1px solid #e3c07a; background: rgba(227,192,122,.12); color: #f4e3bd;
                    border-radius: 999px; padding: 11px 22px; font-size: 16px; font-weight: 800; cursor: pointer; }
.salaskbtn button:active { background: #e3c07a; color: #14161b; }

.rows { padding: 4px 22px 6px; }
.row { padding: 15px 0; border-top: 1px solid var(--선); }
.row:first-child { border-top: 0; }
.rlab { font-size: 12px; color: var(--액센트); font-weight: 700; margin-bottom: 4px; }
.rtxt { margin: 0; font-size: 15.5px; line-height: 1.68; }

.list { margin: 0; padding: 16px 22px; list-style: none;
        border-top: 1px solid var(--선); background: color-mix(in srgb, var(--액센트) 5%, transparent); }
.list li { position: relative; padding-left: 17px; margin: 9px 0; font-size: 15px; line-height: 1.6; }
/* 목록체크 — 장면을 눌러 몇 개 맞나(2026-10-21 ⑦ 연애) */
.chk { margin: 0; padding: 14px 16px 12px; }
.chk h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.chklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.chkitem { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left;
  border: 1px solid var(--선); background: var(--판); color: var(--먹); font: inherit; font-size: 15px; line-height: 1.5; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.chkbox { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid var(--선); }
.chkitem.on { border-color: var(--액센트, var(--금)); background: color-mix(in srgb, var(--액센트, var(--금)) 12%, var(--판)); }
.chkitem.on .chkbox { border-color: var(--액센트, var(--금)); background: var(--액센트, var(--금))
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.chkcount { margin: 12px 0 0; text-align: center; font-size: 17px; font-weight: 800; color: var(--액센트, var(--금)); }
.list li::before { content: ""; position: absolute; left: 3px; top: 10px;
                   width: 5px; height: 5px; border-radius: 50%; background: var(--액센트); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--선); }
.pbox { padding: 12px 13px; border-radius: 13px; background: var(--바탕); border: 1px solid var(--선); }
.pbox b { display: block; font-size: 11.5px; color: var(--흐린먹); margin-bottom: 3px; font-weight: 600; }
.pbox span { font-size: 14.5px; line-height: 1.6; }
.pbox.wide { grid-column: 1 / -1; }

.why { padding: 14px 22px 18px; border-top: 1px solid var(--선); }
.why summary { cursor: pointer; font-size: 13.5px; color: var(--옅은먹); }
/* 접기 안의 「누구 것인가」 — 카드 겉에서는 뺀 생일이 여기 있다(2026-09-07 대표님) */
.whoin { font-weight: 700; color: var(--먹) !important; }
.why p { margin: 9px 0 0; font-size: 13.5px; color: var(--흐린먹); line-height: 1.6; }
.why code { font-size: 13px; background: var(--바탕); padding: 2px 6px; border-radius: 6px; }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.act {
  padding: 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border-radius: 13px; border: 1px solid var(--선); background: var(--판); color: var(--먹);
}
.act.prime { background: var(--먹); color: var(--바탕); border-color: var(--먹); }
.act:hover { opacity: .9; }
/* 「나 더 알아보기」 — 실험실의 유입선이라 전폭으로 크게 세운다 */
.act.more { display: block; margin-top: 10px; padding: 16px; text-align: center;
            text-decoration: none; background: var(--먹); color: var(--바탕);
            border-color: var(--먹); font-size: 16px; }
/* 「다른 사주 봐보기」 — 「나 더 알아보기」 바로 아래.
   ★ 그 단추(먹빛 면)보다 **조용해야 한다.** 둘 다 진하면 어디로 가라는 건지 안 읽힌다.
     이건 실험실 안에서 도는 길이고, 위 단추는 사주왕으로 나가는 길이다. */
.act.again { display: block; width: 100%; margin-top: 8px; padding: 14px;
             text-align: center; font-size: 15px; cursor: pointer;
             background: var(--판); color: var(--옅은먹); border-color: var(--선); }
.act.again:hover { color: var(--먹); border-color: var(--금); }
/* 성별 — 달력 단추와 같은 꼴을 쓰되 칸 안이라 아래 여백을 지운다 */
.field .cal.sex { margin-bottom: 0; }
.moredd { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--흐린먹); }

/* ── 의견 (#의견) ─────────────────────────────────────── */
/* 결과 아래에 서는 입구 (허브는 아래 .vbox 가 통째로 선다) */
.voice {
  display: block; width: 100%; margin-top: 12px; padding: 16px 18px;
  text-align: left; cursor: pointer; font-family: inherit; color: inherit;
  background: var(--판); border: 1px dashed var(--선); border-radius: var(--둥글);
}
.voice:hover { border-color: var(--금); }
.voice b { display: block; font-size: 15.5px; letter-spacing: -.3px; }
.voice span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--옅은먹); }

/* ★ 첫 화면의 한 줄 티커 (2026-09-06 대표님 —「작게 실험추천 : 하고 오른쪽에 흐르게」)
   크게 펼치면 실험 목록이 밀려 내려가 첫 화면이 게시판이 된다. 그래서 한 줄이다. */
.tick {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 0 0 16px; padding: 11px 13px; cursor: pointer;
  font-family: inherit; color: inherit; text-align: left;
  background: var(--판); border: 1px solid var(--선); border-radius: 14px;
}
.tick:hover { border-color: var(--금); }
.tickla {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: -.2px;
  background: color-mix(in srgb, var(--금) 16%, transparent); color: var(--금);
}
/* 한 줄만 보이는 창 — 안의 띠가 위로 올라가며 다음 글이 나온다 */
.tickwin { flex: 1; min-width: 0; height: 21px; overflow: hidden; }
.tickroll { display: block; }
.tickline {
  display: flex; align-items: center; gap: 6px; height: 21px;
  font-size: 14px; white-space: nowrap;
}
.tickline b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tickline i { flex: 0 0 auto; font-style: normal; font-size: 12px; color: var(--화); }
.tickline.dim { color: var(--흐린먹); }
.tickgo { flex: 0 0 auto; color: var(--흐린먹); font-size: 18px; line-height: 1; }

/* 게시판 */
.vbox { margin-bottom: 26px; }
.vtabs { display: flex; gap: 6px; margin: 16px 0 4px; flex-wrap: wrap; }
/* ★ 목록 머리 — 분야 탭 + 차례 (2026-10-21). 내려도 위 띠 밑에 붙어 있어 언제든 분야를 바꾼다.
   --위띠 는 lab.js 허브() 가 위 띠의 실제 높이로 심는다 */
.listanchor { height: 0; }
.listhead {
  position: sticky; top: var(--위띠, 57px); z-index: 15;
  margin: 20px -18px 0; padding: 10px 0;
  background: color-mix(in srgb, var(--바탕) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--선);
}
.ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 18px;
  scroll-padding: 0 18px; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 4px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--선); background: var(--판); color: var(--옅은먹);
  font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; }
.ftab i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--흐린먹); }
.ftab.on { background: var(--먹); border-color: var(--먹); color: var(--바탕); }
.ftab.on i { color: color-mix(in srgb, var(--바탕) 68%, transparent); }
/* 둘째 줄 — 몇 개인지 · 인기순/최신순(붙어 따라오지는 않는다) */
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 14px; }
.lcount { font-size: 13px; font-weight: 600; color: var(--흐린먹); }
.lcount b { color: var(--먹); font-weight: 800; }
.listbar .stabs { flex: 0 0 auto; margin: 0; gap: 0; padding: 2px; border-radius: 999px;
  background: color-mix(in srgb, var(--먹) 7%, transparent); }
.listbar .stab { padding: 4px 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 12px; font-weight: 700; color: var(--흐린먹); }
.listbar .stab.on { background: var(--판); color: var(--먹); border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
/* 넓은 화면 — 목록만 넓혀 한 줄에 여섯(웹툰 목록처럼). 위쪽 칸들은 가운데 한 기둥 그대로 */
@media (min-width: 900px) {
  .view.hubview { max-width: 980px; }
  .view.hubview > :not(.listanchor):not(.listhead):not(.listbar):not(.cards) {
    max-width: 560px; margin-left: auto; margin-right: auto; }
  .view.hubview .listhead { margin-left: 0; margin-right: 0; }
  .view.hubview .ftabs { justify-content: center; }
  .view.hubview .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 14px; }
}
/* 실험 목록을 세우는 차례 — 티커 아래, 카드 위 */
.stabs { display: flex; gap: 6px; margin: 0 0 12px; }
.vtab, .stab {
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--옅은먹); background: transparent;
  border: 1px solid var(--선); border-radius: 999px;
}
.vtab.on, .stab.on { background: var(--먹); color: var(--바탕); border-color: var(--먹); }
.vbox h2, .voices h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.6px; }
.voicesub { margin: 4px 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--옅은먹); }
.vform { display: flex; gap: 8px; }
.vform input {
  flex: 1; min-width: 0; padding: 13px 14px; font: inherit; font-size: 16px;
  color: var(--먹); background: var(--판);
  border: 1px solid var(--선); border-radius: 12px;
}
.vform input:focus { outline: 2px solid var(--금); outline-offset: 1px; }
.vform .act { flex: 0 0 auto; padding: 13px 18px; }
.vnote { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--흐린먹); }
/* 못 하는 날이 있을 수 있다는 걸 미리 밝힌다 — 「왜 안 나왔지」를 안 만든다 */
.vrest2 { color: var(--흐린먹); font-size: 12.5px; }
/* 제작자 별명 — 의견을 낼 때 함께 받는다(2026-09-08 대표님). 안 써도 된다.
   ★ 본문 칸보다 조용하게 둔다 — 이름 칸이 커지면 「꼭 써야 하나」로 읽힌다. */
/* ★★ 라벨을 **눈에 보이게** 단다 — 그 전에는 aria-label 뿐이라 화면에 아무 설명이
   없었고, 대표님이 「저 칸은 왜 아무런 설명이 없어」라고 하셨다(2026-09-08). */
.vnick { display: grid; grid-template-columns: 128px 1fr; gap: 3px 9px;
  align-items: center; margin-top: 10px; }
.vnick-l { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--먹); }
.vnick input {
  padding: 9px 11px; font: inherit; font-size: 13px; min-width: 0;
  background: var(--바탕); color: var(--먹);
  border: 1px solid var(--선); border-radius: 11px;
}
.vnick span { min-width: 0; font-size: 12px; line-height: 1.5; color: var(--흐린먹); }
/* 의견 줄에 붙는 별명 */
.vnk { margin-left: 7px; font-size: 12px; font-weight: 600; color: var(--흐린먹); }
.vcount { margin: 6px 2px 0; font-size: 12px; color: var(--흐린먹); text-align: right; }
.vcount.near { color: var(--화); }

.vweekly { margin: 14px 2px 0; font-size: 13px; color: var(--옅은먹); }

/* 게시판 아래에서 전당으로 가는 줄 */
.hallgo {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 18px; padding: 14px 15px; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
  background: color-mix(in srgb, var(--금) 8%, var(--판));
  border: 1px solid color-mix(in srgb, var(--금) 32%, transparent); border-radius: 14px;
}
.hallgo:hover { border-color: var(--금); }
.hallgo b { display: block; font-size: 15px; letter-spacing: -.3px; }
.hallgo .hbody span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--옅은먹); }

/* ★ 명예의 전당 — 한 번 뽑혀 만들어진 의견이 오는 자리 (2026-09-06 대표님) */
.hall h2 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -.6px; }
.halldd { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--옅은먹); }
.hitem {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 8px;
  color: inherit;
  background: color-mix(in srgb, var(--금) 7%, var(--판));
  border: 1px solid color-mix(in srgb, var(--금) 30%, transparent); border-radius: 14px;
}
.hitem:hover { border-color: var(--금); }
.hitem .hbody { text-decoration: none; color: inherit; }
.hicon { flex: 0 0 auto; font-size: 22px; }
.hbody { flex: 1; min-width: 0; }
.hweek { display: block; font-size: 11.5px; font-weight: 700; color: var(--금); }
.hbody b { display: block; margin-top: 1px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.hbody span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--옅은먹); }
.hgo { flex: 0 0 auto; color: var(--흐린먹); font-size: 18px; }

.vmore {
  flex: 0 0 auto; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer;
  color: var(--옅은먹); background: transparent;
  border: 1px solid var(--선); border-radius: 999px;
}
.vmore:hover { color: var(--먹); border-color: var(--금); }
.vrest {
  display: block; width: 100%; padding: 11px; font: inherit; font-size: 13.5px;
  cursor: pointer; color: var(--옅은먹); background: transparent;
  border: 1px dashed var(--선); border-radius: 12px;
}
.vrest:hover { color: var(--먹); border-color: var(--금); }
.vlist { margin-top: 14px; }
.vempty { padding: 30px 0; text-align: center; font-size: 14px; color: var(--흐린먹); }
.vitem {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; margin-bottom: 9px;
  background: var(--판); border: 1px solid var(--선); border-radius: 14px;
}
.vitem.done { border-color: color-mix(in srgb, var(--목) 45%, transparent); }
.vheart {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 46px; padding: 7px 6px; cursor: pointer; font-family: inherit;
  background: var(--바탕); color: var(--흐린먹);
  border: 1px solid var(--선); border-radius: 11px; font-size: 15px; line-height: 1;
}
.vheart b { font-size: 12px; font-weight: 700; }
.vheart.on { background: color-mix(in srgb, var(--화) 12%, transparent);
             border-color: color-mix(in srgb, var(--화) 40%, transparent); color: var(--화); }
.vbody { flex: 1; min-width: 0; }
.vbody p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }
/* 의견 한 줄을 친구에게 — 하트를 눌러 달라는 부탁이다.
   ★ 글 아래가 아니라 **줄 오른쪽 끝**에 선다(2026-09-06 대표님) —
     아래에 두면 줄마다 키가 들쭉날쭉해져 목록이 어수선해진다. */
.vshare {
  flex: 0 0 auto; align-self: center;
  width: 34px; height: 34px; display: grid; place-items: center;
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
  color: var(--흐린먹); background: transparent;
  border: 1px solid var(--선); border-radius: 11px;
}
.vshare:hover { color: var(--먹); border-color: var(--금); }
/* 공유 링크로 들어온 그 의견 — 맨 위로 올라오고 도드라진다 */
.vitem.asked {
  border-color: var(--금);
  background: color-mix(in srgb, var(--금) 9%, var(--판));
}
.vstate { display: inline-block; margin-top: 5px; font-size: 12px; color: var(--목); font-weight: 600; }
.vstate a { color: var(--목); }
/* 사라지기까지 남은 시간 — 뽑힌 것(노란 칸)에는 안 붙는다 */
.vleft { margin-left: 6px; font-weight: 500; color: var(--흐린먹); }
.vstate:empty { display: none; }

/* ★★ 곧 만들어질 아이디어 — **네모난 노란 칸**(2026-09-06 대표님).
   목록에 섞여 있으면 「곧 나온다」가 안 읽히고 하트 순위처럼 보인다.
   ★ 색은 `--금` 에서만 온다 — 고정색을 박으면 다크에서 글자가 묻힌다. */
.soon {
  margin: 14px 0 4px; padding: 13px 13px 5px;
  background: color-mix(in srgb, var(--금) 13%, var(--판));
  border: 2px solid color-mix(in srgb, var(--금) 62%, transparent);
  border-radius: 14px;
}
.soon h3 {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 0 9px; font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--금) 72%, var(--먹));
}
/* 「내일 저녁 10시에 나옵니다」 — 다시 오게 만드는 한 줄이다 */
.soon h3 span { font-size: 12px; font-weight: 600; color: var(--흐린먹); }
.soon .vitem { background: var(--판); border-color: color-mix(in srgb, var(--금) 34%, transparent); }

/* ── 사주왕 고르기 화면 (#사주왕) ─────────────────────── */
.pick h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.6px; }
.picksub { margin: 0 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--옅은먹); }
.pickbox {
  position: relative; margin-bottom: 12px; padding: 18px;
  background: var(--판); border: 1px solid var(--선);
  border-radius: var(--둥글); box-shadow: var(--그늘);
}
/* 지금 그 기기 칸만 도드라지게 — 나머지는 있되 물러선다 */
.pickbox.now { border-color: var(--먹); border-width: 2px; padding: 22px 17px 18px; }
.picknow {
  position: absolute; top: -10px; left: 16px; padding: 2px 10px;
  font-size: 11.5px; font-weight: 700; border-radius: 999px;
  background: var(--먹); color: var(--바탕);
}
.pickhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pickhead b { font-size: 17px; letter-spacing: -.3px; }
.pickicon { font-size: 20px; }
.pickflag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  background: color-mix(in srgb, var(--토) 15%, transparent); color: var(--토);
}
.pickdd { margin: 6px 0 14px; font-size: 14px; line-height: 1.6; color: var(--옅은먹); }
.pickgo { display: block; text-align: center; text-decoration: none; padding: 13px; }

/* ── 사주왕으로 ───────────────────────────────────────── */
.cta { margin: 26px 0 0; padding: 20px; border-radius: var(--둥글);
       background: var(--진판); color: var(--진글); }
.cta h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.3px; color: #fff; }
.cta p { margin: 0 0 15px; font-size: 14px; line-height: 1.65; color: #cfc9bd; }
.ctabtns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ctabtn { display: block; padding: 12px; text-align: center; text-decoration: none;
          border-radius: 11px; font-size: 14.5px; font-weight: 600;
          background: var(--금); color: #1b1b1b; }
.ctabtn.ghost { background: transparent; color: var(--진글); border: 1px solid rgba(244,239,228,.3); }
.ctadd { margin: 12px 0 0; font-size: 12.5px; color: var(--진흐림); }

.more { margin: 26px 0 0; }
.more h3 { margin: 0 0 11px; font-size: 15px; color: var(--옅은먹); font-weight: 600; }

/* ── 발 ───────────────────────────────────────────────── */
.foot { max-width: 560px; margin: 0 auto;
         padding: 0 18px calc(96px + env(safe-area-inset-bottom, 0px));
         text-align: center; }   /* 아래 띠가 마지막 줄을 가리지 않게 */
.fdis { margin: 0 0 8px; font-size: 12.5px; color: var(--흐린먹); }
.flink { margin: 0; font-size: 12.5px; color: var(--흐린먹); }
.flink a { color: var(--흐린먹); }

/* ── 알림 ─────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  padding: 11px 20px; border-radius: 999px; font-size: 14px;
  background: var(--먹); color: var(--바탕);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .rtitle { font-size: 27px; }
  .dates { grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   유료 아이디어 신청 (#신청) — 2026-09-07
   ★ 색은 전부 위쪽 변수에서 온다. 새 색을 만들지 않는다 —
     여기서만 쓰는 색을 박으면 다크모드에서 혼자 어긋난다.
   ═══════════════════════════════════════════════════════════ */
.ord { max-width: 620px; margin: 0 auto; padding: 4px 0 40px; }
.ord h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.ordsub { color: var(--옅은먹); font-size: 14.5px; margin: 0 0 16px; }

/* 무료 하트 레인으로 가는 길 — 「돈 내야만 되는 거냐」를 여기서 미리 막는다 */
.ordfree {
  background: var(--판); border: 1px solid var(--선); border-radius: 12px;
  padding: 11px 14px; font-size: 13.5px; color: var(--옅은먹); margin: 0 0 22px;
}
.lnk {
  background: none; border: 0; padding: 0; margin-left: 4px;
  color: var(--금); font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.ordlab { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 7px; }
.ord textarea, .ord input[type="text"] {
  width: 100%; background: var(--판); color: var(--먹);
  border: 1px solid var(--선); border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 15px; line-height: 1.6;
}
.ord textarea { min-height: 108px; resize: vertical; }
.ord textarea:focus, .ord input:focus { outline: 2px solid var(--금); outline-offset: 1px; }
.ordcnt { text-align: right; font-size: 12px; color: var(--흐린먹); margin: 5px 0 18px; }
.ordhint { font-size: 12.5px; color: var(--흐린먹); margin: 6px 0 0; }
/* 채택되면 실험에 박히는 줄 — **이게 사람들이 사는 것**이라 눈에 띄게 둔다 */
.ordwho {
  margin: 9px 0 22px; font-size: 14px; font-weight: 700; color: var(--금);
  min-height: 22px;
}

.ordh {
  font-size: 15px; font-weight: 800; margin: 26px 0 10px;
  padding-top: 18px; border-top: 1px solid var(--선);
}
/* 신청할 수 없는 것 — 결제 전에 **미리** 보여 준다. 나중에 거절하면 화가 난다 */
.ordno { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ordno li {
  display: flex; gap: 9px; align-items: baseline;
  background: var(--판); border: 1px solid var(--선); border-radius: 10px;
  padding: 8px 12px; font-size: 13px;
}
.ordno b { flex: none; min-width: 74px; font-weight: 700; }
.ordno span { color: var(--옅은먹); }
.ordnote { font-size: 13px; color: var(--옅은먹); margin: 11px 0 0; }

/* 동의 — 셋으로 갈라야 「읽었다」가 성립한다. 하나로 묶지 말 것 */
.ordag { display: grid; gap: 9px; }
.ag {
  display: grid; grid-template-columns: auto auto 1fr; gap: 9px; align-items: start;
  background: var(--판); border: 1px solid var(--선); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
}
.ag input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--금); }
.agq {
  flex: none; font-size: 11px; font-weight: 800; color: var(--화);
  border: 1px solid currentColor; border-radius: 5px; padding: 1px 5px; margin-top: 2px;
}
.agt { font-size: 13.5px; line-height: 1.6; color: var(--옅은먹); }
.agt b { color: var(--먹); }

.obtn, .obtn2 {
  display: block; width: 100%; margin: 18px 0 0; padding: 15px;
  border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer; border: 0;
}
.obtn { background: var(--진판); color: var(--진글); }
.obtn:disabled { opacity: .4; cursor: not-allowed; }
.obtn2 { background: var(--판); color: var(--먹); border: 1px solid var(--선); }
.ordsoon {
  margin: 18px 0 0; padding: 15px; text-align: center; font-size: 14px;
  color: var(--옅은먹); background: var(--판);
  border: 1px dashed var(--선); border-radius: 14px;
}
.orderr { margin: 11px 0 0; font-size: 13.5px; color: var(--화); font-weight: 600; }

.ordfind { margin-top: 34px; }
.ordfrow { display: flex; gap: 8px; }
.ordfrow input { flex: 1; letter-spacing: .12em; font-weight: 700; }
.ordfrow .obtn2 { width: auto; margin: 0; padding: 12px 20px; flex: none; }

/* 접수·조회 결과 */
.ordok { text-align: center; }
.ordcode {
  font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--금);
  margin: 0 0 8px;
}
.ordok h2 { margin-bottom: 14px; }
.ordq {
  margin: 16px 0; padding: 14px 16px; text-align: left;
  background: var(--판); border: 1px solid var(--선); border-radius: 12px;
  font-size: 14.5px; color: var(--옅은먹);
}
.ordwhy { font-size: 13.5px; color: var(--화); margin: 0 0 10px; }

/* 약관 전문 */
.ordmodal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end;
  background: rgba(35, 40, 47, .5); padding: 0;
}
@media (min-width: 620px) { .ordmodal { align-items: center; padding: 24px; } }
.ordmbox {
  background: var(--바탕); width: 100%; max-width: 620px; margin: 0 auto;
  border-radius: 18px 18px 0 0; padding: 20px; max-height: 86vh;
  display: flex; flex-direction: column;
}
@media (min-width: 620px) { .ordmbox { border-radius: 18px; } }
.ordmbody { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ordmbody h4 { font-size: 14.5px; font-weight: 800; margin: 20px 0 7px; }
.ordmbody h4:first-child { margin-top: 0; }
.ordmbody p { font-size: 13.5px; color: var(--옅은먹); margin: 0 0 7px; line-height: 1.7; }
.ordmbody p b { color: var(--먹); }
/* 전자상거래법 제10조 표시의무 — 상호·대표자·번호·주소·연락처 */
.ordbiz {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--선);
  font-size: 12px; color: var(--흐린먹); line-height: 1.8;
}

/* 별도 페이지에서 넘겨 읽는 만화 체험 */
.comic-pilot{text-decoration:none}.comic-pilot .cone{display:block}.comic-pilot:focus-visible{outline:3px solid var(--금);outline-offset:3px}

/* ── 인생 그래프 — 다섯 힘이 열두 해 동안 그리는 선 (2026-09-15) ──────────
   ★ 선 색은 실험 파일이 들고 있다(원색 hex). 어두운 화면에서는 그대로 두면 묻히므로
     **선과 점만** 밝기를 올린다 — 글자는 화면 색 변수를 그대로 쓴다. */
.lgraph { margin: 0; padding: 6px 14px 2px; }
.lgraph svg { width: 100%; height: auto; display: block; overflow: visible; }
.lgline { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.lgrid line { stroke: var(--선); stroke-width: 1; }
.lgbase { stroke: var(--선); stroke-width: 1.4; }
.lgnow { stroke: var(--흐린먹); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.lgnowt { fill: var(--흐린먹); font-size: 8px; font-weight: 700; text-anchor: start; }
.lgax { fill: var(--흐린먹); font-size: 7.5px; opacity: .85; }
.lgyr { fill: var(--흐린먹); font-size: 8px; text-anchor: middle; }
.lgyr.on { fill: var(--옅은먹); font-weight: 700; }

.lgkey { list-style: none; margin: 12px 0 0; padding: 0; }
.lgkey li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--선); }
.lgkey li:first-child { border-top: 0; }
.lgkey i { position: absolute; left: 0; top: 15px; width: 11px; height: 3px; border-radius: 2px; }
.lgkey b { font-size: 14.5px; font-weight: 800; }
.lgtag { font-size: 11px; color: var(--흐린먹); margin-left: 5px; }
.lgkey em { display: block; font-style: normal; font-size: 13px; font-weight: 700;
            color: var(--액센트); margin-top: 2px; }
.lgkey p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; color: var(--옅은먹); }
.lgsame { color: var(--흐린먹); font-size: 12px; }
.lgnote { margin: 12px 0 2px; padding: 11px 13px; border-radius: 12px;
          background: var(--바탕); border: 1px solid var(--선);
          font-size: 12.8px; line-height: 1.6; color: var(--옅은먹); }

@media (prefers-color-scheme: dark) {
  html:not(.nt-tone) .lgline, html:not(.nt-tone) .lgraph circle, html:not(.nt-tone) .lgkey i { filter: brightness(1.38) saturate(1.05); }
}
html.nt-tone:not(.day) .lgline, html.nt-tone:not(.day) .lgraph circle, html.nt-tone:not(.day) .lgkey i { filter: brightness(1.38) saturate(1.05); }

/* ── 연예인 사주와 오가기 (2026-09-22) ── */
.celeb { margin: 16px 0 4px; padding: 14px 14px 10px; border-radius: 16px; background: var(--판);
  border: 1px solid var(--선); }
.celeb h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
/* ㊿⑦ 옛 책 《신상전편》 목판 눈 — 종이빛 바탕에 작게(2026-10-22) */
.oldeye { margin: 12px auto 4px; padding: 10px 14px 8px; max-width: 260px; text-align: center; background: #e9dcc0; border-radius: 12px; }
.oldeye img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.oldeye figcaption { margin-top: 4px; font-size: 12px; color: #5b4a2e; }
/* ㊿⑦ 이 상의 연예인 — 남 · 여 두 줄, 출처는 접어 둔다(2026-10-22) */
.starcel { margin: 14px 0 6px; }
.starcel .starg { margin: 12px 0 8px; font-size: 13px; font-weight: 800; color: var(--흐린먹); }
.starcel .starsrc { margin-top: 12px; font-size: 11.5px; color: var(--흐린먹); }
.starcel .starsrc summary { cursor: pointer; }
.starcel .starsrc p { margin: 6px 0 0; line-height: 1.6; word-break: keep-all; }
.celebs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.celebs a { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
  text-decoration: none; color: inherit; }
.celebs img, .celebs .c0 { width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  object-position: 50% 20%; background: #e8e6e1; }
.celebs .c0 { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.celebs b { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.celebmore { display: block; margin: 12px 0 2px; text-align: center; font-size: 14px; font-weight: 700;
  color: var(--옅은먹); }
.celebband { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 12px 14px;
  border-radius: 16px; background: var(--판); border: 1px solid var(--선); }
.celebband > a:first-child { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit; }
.celebband > a:first-child > span:first-child { font-size: 24px; }
.celebband b { display: block; font-size: 15px; }
.celebband small { display: block; font-size: 12.5px; color: var(--흐린먹); word-break: keep-all; }
.celebband .cbg { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--옅은먹); white-space: nowrap; }

/* ── ㉕ 과거의 나 — 결과 앞 시간여행 장면 (시간여행.js) · 결과 머리의 초상 ──
   ★ 장면은 테마와 상관없이 밤 → 한지로 간다(겹판이라 결과 화면 색을 안 탄다) */
body.tt중 { overflow: hidden; }
.tt { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center;
  justify-content: center; overflow: hidden; color: #e9e4d8; transition: opacity .25s;
  background: radial-gradient(ellipse at 50% 42%, #161d30 0%, #0b1020 70%); }
.tt.tt닫힘 { opacity: 0; }
.tt건너 { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 5; cursor: pointer;
  background: rgba(255,255,255,.08); color: #cfc8b8; border: 1px solid rgba(255,255,255,.18); border-radius: 99px;
  padding: 6px 12px; font: inherit; font-size: 13px; }
.tt.tt종이 .tt건너 { color: #4a4238; border-color: #cbbd9f; background: rgba(0,0,0,.04); }
.tt시계 { width: min(82vw, 340px); aspect-ratio: 1; }
.tt시계 svg { width: 100%; height: 100%; overflow: visible; }
.tt고리글 { font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-size: 8.6px; fill: #a79f8f; }
.tt고리글.tt빛 { fill: #d6b25e; font-weight: 900; font-size: 10px; filter: drop-shadow(0 0 4px rgba(214,178,94,.9)); }
.tt지지글 { font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-size: 15px; font-weight: 700; fill: #d9d2c3; }
.tt바늘 { stroke: #efe6d2; stroke-linecap: round; }
.tt연도 { margin-top: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tt해 { display: block; font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 900;
  font-size: 56px; letter-spacing: 2px; line-height: 1; }
.tt시대 { display: inline-block; margin-top: 8px; font-size: 14px; color: #bdb5a4; letter-spacing: 3px; }
.tt시대.tt쿵 { animation: tt쿵 .35s ease-out; }
@keyframes tt쿵 { 0% { transform: scale(1.25); color: #d6b25e; } 100% { transform: scale(1); } }
.tt내날 { margin-top: 10px; min-height: 22px; font-size: 14px; color: #d6b25e; opacity: 0; transition: opacity .4s; }
.tt내날.tt보임 { opacity: 1; }
.tt먹물 { position: absolute; left: 50%; top: 42%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax;
  border-radius: 50%; pointer-events: none; z-index: 3; transform: scale(0);
  background: radial-gradient(circle, #f3ead8 0 58%, rgba(243,234,216,.85) 64%, rgba(243,234,216,0) 71%); }
.tt먹물.tt번짐 { transition: transform 1s cubic-bezier(.55,.05,.35,1); transform: scale(2.2); }
.tt.tt종이 { background: #f3ead8; }
.tt도착 { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 0 24px; text-align: center; color: #231f1a; word-break: keep-all; }
.tt도착 p { margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.tt도착 p.tt보임 { opacity: 1; transform: none; }
.tt날 { font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 900; font-size: 26px; }
.tt곳 { margin-top: 10px !important; font-size: 15px; color: #4a4238; }
.tt같은 { margin-top: 18px !important; font-size: 16px; }
.tt같은 b { color: #b3261e; }
.tt과거 { margin-top: 44px !important; font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 700; font-size: 24px; }
.tt점 { opacity: 0; transition: opacity .25s; }
.tt점.tt보임 { opacity: 1; }
/* ⑤ 그 사람이 나온다 — AI 초상과 이름 (2026-09-22 「당신의 과거는... 이러다가 이순신 하고 이미지랑」) */
.tt얼굴 { width: min(40vw, 160px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-top: 16px;
  box-shadow: 0 8px 26px rgba(60,40,20,.35); opacity: 0; transform: scale(.94); transition: opacity .7s, transform .9s; }
.tt얼굴.tt보임 { opacity: 1; transform: none; }
.tt누구 { margin-top: 10px !important; font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 900;
  font-size: 30px; color: #231f1a; }
.tt도착 p.tt물러남 { opacity: .25; }
@media (prefers-reduced-motion: reduce) { .tt, .tt * { transition: none !important; animation: none !important; } }

/* 결과 머리의 초상 — 그림이 아직 없으면 한자 이름이 세로로 선다. 한지 바탕이라 다크에서도 안 묻힌다 */
.과거초상 { position: relative; width: min(58vw, 220px); aspect-ratio: 3 / 4; margin: 10px auto 4px; border-radius: 12px;
  overflow: hidden; background: #f3ead8; border: 1px solid #cbbd9f; display: flex; align-items: center; justify-content: center; }
.과거초상 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.과거세로 { writing-mode: vertical-rl; font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 900;
  font-size: 52px; letter-spacing: 8px; color: #231f1a; line-height: 1; }
.과거세로.길다 { font-size: 36px; letter-spacing: 4px; }
.과거초상글 { margin: 0 0 6px; text-align: center; font-size: 11px; color: var(--흐린먹); }
.과거낙관 { position: absolute; left: 10px; bottom: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 4px;
  background: #b3261e; color: #fbeee0; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-weight: 900; font-size: 15px; transform: rotate(-4deg); }

/* ㉚ 귀인 없음(셀프 귀인) — 시를 모를 때만 뜨는 한 줄 「축시·미시면 천을귀인」 */
.salwhen { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; text-align: left;
  background: color-mix(in srgb, var(--먹) 5%, var(--판)); font-size: 14px; line-height: 1.55; color: var(--먹); }

/* ── 한 줄 — 결과 아래 한 줄 · 한 줄 게시판 · 첫 화면 입구 (2026-10-21) ──
   칭호([SSG 랜더스가 운명인 사람])는 내 결과로 채워 붙고 고칠 수 없다. 10줄씩 넘긴다. */
.talk { margin: 18px 0 6px; padding: 16px 14px 12px; border-radius: 16px; background: var(--판); border: 1px solid var(--선); }
.talk h3, .talk h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.talk.board h2 { font-size: 22px; letter-spacing: -.6px; margin-bottom: 4px; }
.talk h3 i, .talk h2 i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--흐린먹); margin-left: 4px; }
/* 2차(2026-10-21) — 별명 칸 없음(생일 넣을 때 쓴 이름) · 댓글처럼 「이름 [칭호] 시간」 아래 글 · 빈 목록엔 글 없음 */
.tkform { margin: 0 0 4px; }
/* 실험 공지 — 한 줄 칸 맨 위(2026-10-21) */
.tknotice { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--금) 55%, transparent);
  background: color-mix(in srgb, var(--금) 9%, transparent); }
.tknotice .tkbody { margin-top: 4px; font-size: 14px; }
.tknotice .tkbody + .tkbody { margin-top: 8px; }
.tkpin { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #2b2217; background: var(--금); }
.tkme { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 7px; font-size: 13px; }
.tkname { font-weight: 800; color: var(--먹); }
/* 4차 — 별명: 처음엔 작은 칸, 한 번 남기면 글자로 굳는다(누르면 바꾸기) */
.tknm { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--먹); cursor: pointer; }
.tknm svg { width: 11px; height: 11px; color: var(--흐린먹); }
.tknick { width: 7.5em; padding: 3px 8px; font: inherit; font-size: 13px; font-weight: 800; color: var(--먹);
  background: var(--바탕); border: 1px solid var(--선); border-radius: 7px; }
.tknick:focus { outline: none; border-color: var(--금); }
.tktag { font-weight: 800; color: var(--금); }
a.tktag { text-decoration: none; }   /* 오늘의 일간 순위 한 줄의 칭호 — 누르면 /daily/ (2026-10-24) */
.tkrow { display: flex; gap: 6px; }
.tkrow input { min-width: 0; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--먹);
  background: var(--바탕); border: 1px solid var(--선); border-radius: 11px; }
.tkrow input:focus { outline: none; border-color: var(--금); }
.tktext { flex: 1; }
.tksend { flex: 0 0 auto; padding: 0 14px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--먹); color: var(--바탕); font: inherit; font-size: 14px; font-weight: 800; }
.tksend:disabled { opacity: .5; }
.tkerr { margin: 6px 2px 0; font-size: 12.5px; color: var(--화); }
.tklist { list-style: none; margin: 12px 0 0; padding: 0; }
.tklist:empty { display: none; }
.tkline { padding: 10px 2px 4px; border-top: 1px solid var(--선); animation: tkin .25s ease-out; }
@keyframes tkin { from { opacity: 0; transform: translateY(-4px); } }
.tkhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12.5px; line-height: 1.45; }
.tkhead .tkname { font-size: 13px; }
.tktime { margin-left: auto; padding-left: 6px; font-size: 11.5px; color: var(--흐린먹); white-space: nowrap; }
.tkbody { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.tkfrom { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 800;
  text-decoration: none; color: var(--목); background: color-mix(in srgb, var(--목) 13%, transparent); }
.tkfrom.board { color: var(--옅은먹); background: color-mix(in srgb, var(--먹) 8%, transparent); }
/* 3차 — 👍 👎 댓글을 글 밑 한 줄에 작게(「너무 뚱뚱해보이면 안돼」) · 댓글은 들여 쓰고 더 작게 */
.tkact { display: flex; align-items: center; gap: 2px; margin: 1px 0 0 -7px; }
.tkv, .tkre { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border: 0; border-radius: 13px;
  background: transparent; color: var(--흐린먹); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; }
.tkv svg { width: 15px; height: 15px; display: block; }
.tkv.down svg { transform: scaleY(-1); }
.tkv.up.on { color: var(--금); }
.tkv.down.on { color: var(--화); }
.tkv.on svg path { fill: currentColor; fill-opacity: .22; }
.tkre { margin-left: 2px; }
.tkre span:empty { display: none; }
@media (hover: hover) { .tkv:hover, .tkre:hover { background: color-mix(in srgb, var(--먹) 7%, transparent); } }
.tkreplies { margin: 2px 0 6px 6px; padding-left: 10px; border-left: 2px solid var(--선); }
.tkrelist { list-style: none; margin: 0; padding: 0; }
.tkrelist:empty { display: none; }
.tkline.re { padding: 5px 0 0; border-top: 0; }
.tkline.re .tkact { margin-top: -1px; }
.tkline.re .tkv { height: 20px; font-size: 11.5px; }
.tkline.re .tkv svg { width: 13px; height: 13px; }
.tkline.re .tkbody { font-size: 13.5px; margin-top: 1px; }
.tkline.re .tkhead { font-size: 12px; }
.tkreform { display: flex; gap: 6px; margin: 6px 0 2px; }
.tkreform input { flex: 1; min-width: 0; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--먹);
  background: var(--바탕); border: 1px solid var(--선); border-radius: 9px; }
.tkreform input:focus { outline: none; border-color: var(--금); }
.tkreform .tksend { padding: 0 11px; border-radius: 9px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tkline { animation: none; } }
.tkpager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 2px; }
.tkpg { padding: 6px 12px; border: 1px solid var(--선); border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--옅은먹); }
.tkpg:disabled { opacity: .35; cursor: default; }
.tkpn { font-size: 13px; font-weight: 700; color: var(--흐린먹); font-variant-numeric: tabular-nums; }
.tkall { display: block; margin: 10px 0 2px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--옅은먹); }
/* 공지(2026-10-21 밤) — 의견 머리 얇은 한 줄 · #공지 모음. 첫 화면 흐르던 띠는 2026-10-27 한 줄 게시판 안으로 옮겼다 */
.rpar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rpar button { border: 1px solid var(--선); background: transparent; color: var(--흐린먹); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; cursor: pointer; }
.rpar button.on { color: var(--액센트); border-color: var(--액센트); font-weight: 700; }
.rpar .rparedit { border-style: dashed; }
.noticeline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--금) 45%, transparent); color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 700; }
.noticeline span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noticeline i { font-style: normal; color: var(--흐린먹); }
.noticeboard h3 { margin: 18px 0 8px; font-size: 15px; }
.noticeboard .tktitle { font-weight: 800; }

/* ★★ 2026-10-27 — 첫 화면 위쪽 정리(대표님 「다 중요하긴 한데 너무 난잡하고 정보량이 많아」 → 「공지를 한줄 게시판 안으로 넣자」).
   위에서부터 사주왕이 하는 말(한 마디씩) → 그림 두 칸(추천 실험 · 새로운 실험) → 「당신의 아이디어가 테스트가 됩니다」 + 바로 아래 실험 추천
   → 오늘의 인기 실험 → 한 줄 게시판(맨 위 최근 공지 한 줄 + 글 세 줄 창).
   이름표는 금빛 글씨 하나로 맞췄다(실험 추천 · 칭호). 상자를 여럿 세우지 않는다 — 상자는 말풍선 · 실험 추천 한 줄뿐이다. */

/* 사주왕 말풍선 — 마디(부제 한두 줄)가 한 칸에 겹쳐 서고, 한 번에 한 마디만 창 안에 있다(lab.js 머리말돌리기) */
.hero-talk { margin: 8px 0 0; }
.hero-sazuwang { height: 112px; }
.hero-say {
  position: relative; flex: 1; min-width: 0; margin: 0; padding: 12px 14px 17px;
  background: var(--판); border: 1px solid var(--선); border-radius: 16px;
  color: var(--먹); font-size: clamp(12.5px, 3.6vw, 14px); line-height: 1.55; letter-spacing: -.02em; text-align: left;
}
.hero-say::before, .hero-say::after {
  content: ''; position: absolute; top: 50%; margin-top: -7px; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hero-say::before { left: -9px; border-right: 9px solid var(--선); }
.hero-say::after { left: -7px; border-right: 8px solid var(--판); }
.hsw { display: grid; overflow: hidden; }
.hsw > .hst { grid-area: 1 / 1; display: flex; align-items: center; min-width: 0;
  transform: translateY(100%); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hsw > .hst.on { transform: none; }
.hsw > .hst.out { transform: translateY(-100%); }
.hstx { display: block; word-break: keep-all; text-wrap: pretty; }
.hsdots { position: absolute; right: 12px; bottom: 7px; display: flex; gap: 4px; }
.hsdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--선); }
.hsdots i.on { background: var(--금); }
@media (prefers-reduced-motion: reduce) {
  /* 움직이지 않으면 마디를 모두 차례로 펼쳐 둔다 — 셋째 줄이 영영 안 보이면 안 된다 */
  .hsw { display: block; }
  .hsw > .hst { display: block; transform: none; transition: none; }
  .hsw > .hst + .hst { margin-top: 5px; }
  .hsdots { display: none; }
  .hero-say { padding-bottom: 12px; }
}

/* 그림 두 칸 — 추천 실험 · 새로운 실험(인기 셋과 같은 그림 · 이름표는 그림 왼쪽 위 딱지) */
.hubpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 22px; }
.pickday.hubtile, .newday.hubtile { position: relative; min-width: 0; margin: 0; }
.hubtile .pickla { position: absolute; left: 8px; top: 8px; z-index: 1; margin: 0; padding: 3px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; line-height: 1.4; letter-spacing: -.2px; white-space: nowrap; pointer-events: none;
  color: #1b1406; background: var(--금); }
.newday.hubtile .pickla { color: #fff; background: var(--화); }
.hubtile .pickwhy { margin: 6px 2px 0; }
.hubtile .hot3c, .hubtile .hot3c.pickone { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.hubtile .hot3c:hover .hot3pic { transform: translateY(-2px); }
.hubtile .hot3pic { aspect-ratio: 16 / 11; border-radius: 14px; }
.hubtile .hot3pic .hot3i { width: auto; height: auto; flex: none; border-radius: 0; background: none; font-size: 34px; }
.hubtile .hot3t b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.3px; word-break: keep-all; }

/* 「당신의 아이디어가 테스트가 됩니다」 — 바로 아래 실험 추천을 가리키는 머리. 말풍선 꼬리 · 흔들림은 걷었다(상자를 줄였다) */
.hcall { display: block; margin: 0 0 9px !important; padding: 0; text-align: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.3px; line-height: 1.4; color: var(--먹);
  background: none; border: 0; border-radius: 0; animation: none !important; }
.hcall::before, .hcall::after { content: none; display: none; }
.hcall span { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--흐린먹); }

/* 실험 추천 한 줄 — 이름표를 알약에서 금빛 글씨로(칭호와 같은 꼴) */
.tick { margin: 0 0 4px; padding: 13px 14px; }
.tickla { padding: 0; background: none; font-size: 12.5px; font-weight: 800; }

/* 한 줄 게시판 — 인기 실험 밑, 게시판 꼴. 맨 위 공지 한 줄(가장 최근 하나) · 그 아래 글 세 줄 창(위로 한 줄씩 흐른다) */
.hubboard { margin: 26px 0 6px; }
.hubboard h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px 2px;
  font-size: 15px; font-weight: 800; letter-spacing: -.3px; color: var(--먹); }
.hubboard h3 a { color: inherit; text-decoration: none; }
.hubboard h3 .hbmore { flex: none; font-size: 12.5px; font-weight: 600; color: var(--흐린먹); }
.hbnotice { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 2px; box-sizing: border-box;
  border-top: 1px solid var(--선); color: inherit; text-decoration: none; font-size: 14px; }
.hbnotice .tkpin { flex: none; }
.hbwin { display: block; height: 120px; overflow: hidden; border-top: 1px solid var(--선); color: inherit; text-decoration: none; }
.hbroll { display: block; will-change: transform; }
.hbrow { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 2px; box-sizing: border-box;
  border-bottom: 1px solid var(--선); font-size: 14px; white-space: nowrap; overflow: hidden; }
.hbrow s { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
  font-size: 12.5px; font-weight: 700; color: var(--금); }
.hbrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hbrow.dim { color: var(--흐린먹); }
/* #한줄 맨 위 공지는 의견 머리와 같은 .noticeline 작은 한 줄(대표님 「한줄 게시판에 들어가도 공지 작게 한줄로만」) — 누르면 #공지 전문 */
/* 공지 한 줄 가로 흐름(첫 화면 게시판 머리 · #한줄 맨 위) — 옛 첫 화면 공지띠와 같은 움직임
   (대표님 「한줄게시판 안에서 지금 실험실 홈 공지 보이듯이 계속 흘러가면 됨」). 같은 글 두 벌을 -50% 까지 밀어 끊김 없이 돈다 */
.nbwin { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.nbroll { display: inline-flex; will-change: transform; animation: nbmove var(--nb, 20s) linear infinite; }
.nbitem { flex: none; padding-right: 48px; }
.hbnotice .nbwin { font-weight: 700; }
.hbnotice:hover .nbroll, .nbline:hover .nbroll { animation-play-state: paused; }
@keyframes nbmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .nbroll { display: block; animation: none; }
  .nbitem { display: block; padding: 0; overflow: hidden; text-overflow: ellipsis; }
  .nbitem + .nbitem { display: none; }
  .nbwin { -webkit-mask-image: none; mask-image: none; }
}
