:root { --bg: #fff; --card: #fff; --ink: #111; --muted: #6b6b6b; --line: #e5e5e5; --accent: #d71920; --on-accent: #fff; --soft: #f5f5f5; --title: "Noto Sans KR", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 "Noto Sans KR", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.logo { font: 700 22px var(--title); color: var(--ink); text-decoration: none; }
.logo em { font: 400 12px "Noto Sans KR", sans-serif; color: var(--muted); margin-left: 4px; }
nav { display: flex; gap: 4px; }
nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a[aria-current] { background: var(--ink); color: var(--bg); }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 32px; }
.intro { padding: 18px 0 10px; }
h1 { font: 700 27px/1.35 var(--title); margin: 0 0 6px; }
.intro p { margin: 0; color: var(--muted); font-size: 15px; }
h2, h3 { font-family: var(--title); line-height: 1.4; }
h4 { margin: 18px 0 8px; font-size: 16px; }

.form, .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 14px; }
.form { display: grid; gap: 10px; }
.people { display: grid; gap: 12px; }
fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
legend { padding: 0 6px; font-weight: 700; }
label.wide { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
select, input.name { width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 16px "Noto Sans KR", sans-serif; }
select:disabled { opacity: .45; }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.rowt { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.mi:disabled { display: none; }
.place summary { color: var(--muted); font-size: 14px; cursor: pointer; min-height: 32px; }
.place select { margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.go { min-height: 52px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 700 18px "Noto Sans KR", sans-serif; cursor: pointer; }
.forget { justify-self: center; border: 0; background: none; color: var(--muted); font: 14px "Noto Sans KR", sans-serif; text-decoration: underline; cursor: pointer; min-height: 40px; }
.forget[hidden] { display: none; }

.result { scroll-margin-top: 12px; }
.hero { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hero img { flex: none; }
.hero h2 { margin: 0; font-size: 24px; }
.hero p { margin: 2px 0 0; color: var(--muted); }
.card > small { color: var(--muted); }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.score { display: flex; justify-content: center; align-items: baseline; gap: 2px; color: var(--accent); margin-top: 4px; }
.score b { font: 700 58px/1.1 var(--title); }
.score em { font-style: normal; font-size: 18px; }
.headline { text-align: center; margin: 2px 0 6px !important; font-size: 23px !important; }
.center { text-align: center; }
.radar { display: block; width: 100%; max-width: 300px; margin: 0 auto; }
.radar .grid { fill: none; stroke: var(--line); }
.radar .value { fill: var(--accent); fill-opacity: .22; stroke: var(--accent); stroke-width: 2; }
.radar text { fill: var(--ink); font-size: 13px; }
.note { padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 15px; }
.areas { margin-top: 12px; }
.area h4 { display: flex; justify-content: space-between; margin: 12px 0 4px; }
.area h4 span { color: var(--accent); }
.area p { margin: 4px 0 0; font-size: 15px; }
.meter { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.meter div { height: 100%; background: var(--accent); }
.luckies { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.lucky { display: grid; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 15px; }
.lucky small { color: var(--muted); font-size: 12px; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; border: 1px solid var(--line); }
.foot { display: grid; justify-items: center; gap: 6px; margin-top: 16px; }
.foot small, .small { color: var(--muted); font-size: 13px; }
.copy { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 15px "Noto Sans KR", sans-serif; cursor: pointer; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pillar { display: grid; justify-items: center; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; }
.pillar.me { border-color: var(--accent); background: var(--soft); }
.pillar b { font: 700 28px/1.25 "Gowun Batang", serif; }
.pillar small, .pillar span { color: var(--muted); font-size: 13px; }
.pillar.unknown b { color: var(--muted); }
.chip { display: inline-block; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 14px; }
.bar { display: grid; grid-template-columns: 76px 1fr 22px; align-items: center; gap: 8px; margin: 6px 0; font-size: 15px; }
.bar i { color: var(--muted); font-style: normal; font-size: 12px; }
.bar > div { height: 12px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.bar > div > div { height: 100%; }
.bar b { text-align: right; }
.stack { display: flex; }
.stack i { display: block; height: 100%; }
.stack i + i { opacity: .5; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.legend i.light { margin-left: 10px; opacity: .45; }
.gap { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 14px; }
.gap td { padding: 6px 0; border-top: 1px solid var(--line); }
.pair { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pair figure { margin: 0; text-align: center; font-size: 14px; color: var(--muted); min-width: 0; }
.pair figure b { display: block; color: var(--ink); font-size: 16px; }
.pair img { display: block; margin: 0 auto 4px; }
.more { text-align: center; margin: 18px 0 6px; font-weight: 500; }
.error { margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--soft); color: var(--accent); }
footer { max-width: 640px; margin: 0 auto; padding: 0 16px 28px; color: var(--muted); font-size: 12px; }
@media (min-width: 620px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .form { padding: 12px; } fieldset { padding: 10px 8px; } .row3 select, .rowt select { padding-left: 6px; padding-right: 0; } }

.prose h2 { margin: 22px 0 8px; font-size: 19px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose .gap td:first-child { white-space: nowrap; padding-right: 12px; vertical-align: top; }
a.card.link { display: block; color: var(--ink); text-decoration: none; }
a.card.link h2 { margin: 0 0 4px; font-size: 18px; }
a.card.link p { margin: 0; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
header { flex-wrap: wrap; }
nav { flex-wrap: wrap; }
@media (max-width: 380px) { nav { gap: 2px; } nav a { padding: 6px 6px; font-size: 13px; } }
.group { font-size: 19px; margin: 24px 0 8px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.chips a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.pick { display: grid; gap: 8px; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.months button { min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 15px "Noto Sans KR", sans-serif; cursor: pointer; }
.months button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 15px; }
.cal b { color: var(--muted); font-size: 13px; font-weight: 500; }
.cal span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 8px; }
.cal .good { background: var(--accent); color: var(--on-accent); }
.cal .care { border-color: var(--ink); }
.cal .today { font-weight: 700; text-decoration: underline; }
.calkey, .ykey { display: flex; justify-content: center; gap: 14px; margin: 10px 0; font-size: 14px; }
.calkey span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.calkey .good::before { background: var(--accent); }
.calkey .care::before { border: 1.5px solid var(--ink); }
.ybars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; height: 112px; margin-top: 12px; }
.ybars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; min-width: 0; }
.ybars i { display: block; width: 100%; max-width: 22px; border-radius: 3px 3px 0 0; }
.ybars .good { background: var(--accent); }
.ybars .fair { background: var(--ink); }
.ybars .care { background: var(--card); border: 1px solid var(--ink); }
.ybars small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.rate { padding: 0 8px; border: 1px solid var(--ink); border-radius: 6px; font-size: 13px; font-weight: 500; }
.rate.good { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rate.fair { background: var(--ink); color: var(--bg); }
.rate.care { background: var(--card); color: var(--ink); }
.ym h4 { margin: 16px 0 4px; }
.ym p { margin: 0; }
.area p + p { margin-top: 6px; }
.advice ul { margin: 0; padding-left: 20px; }
@media (min-width: 520px) { .advice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }

/* 상단: 오늘한상과 같은 구성 (로고+도장, 검색, 메뉴 줄, 사진 배너) */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header.top { display: block; max-width: none; padding: 0; margin: 0; background: var(--bg); }
header.top .head { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 10px; }
header.top .logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; flex: none; }
header.top .hand { font: 700 34px/1 "Gaegu", cursive; color: var(--ink); }
header.top .seal { display: inline-grid; grid-template-columns: 1fr 1fr; place-items: center; width: 38px; height: 38px; padding: 4px; margin-left: 4px; transform: rotate(-5deg); border-radius: 5px; background: var(--accent); color: #fff; font: 700 13px/1.05 "Gowun Batang", serif; }
header.top .seal i { font-style: normal; }
.search { display: flex; gap: 8px; flex: 1; max-width: 520px; margin: 0 auto; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 23px; background: var(--bg); color: var(--ink); font: 15px "Noto Sans KR", sans-serif; }
.search button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
/* the search box sits under the logo on every screen (the owner, 2026-11-13) */
header.top .head { flex-direction: column; align-items: center; gap: 10px; }
/* everything in the header centred (the owner, 2026-11-13). Auto margins, not justify-content: center, so a menu row
   wider than a small phone still scrolls from its first item instead of losing it off the left edge. */
.gnb .wrap { max-width: 640px; justify-content: space-between; }  /* the menu rows span the body column (C, 2026-11-13) */
.gnb .light .first { display: inline-flex; align-items: center; gap: 8px; flex: none; }  /* 무료 stays with 오늘 */
.gnb .light .first .free { margin-right: 0; }
/* as wide as the body column (608px on PC; C, 2026-11-13), and a little slimmer */
header.top .search { width: 100%; max-width: 608px; margin: 0; }
header.top .search input, header.top .search button { height: 40px; }
header.top .search button { width: 40px; }
@media (max-width: 640px) {
  header.top .search input, header.top .search button { height: 36px; }
  header.top .search button { width: 36px; }
  header.top .search input { padding: 0 16px; font-size: 14px; }
}
header.top nav.gnb { display: block; }
.gnb .wrap { display: flex; align-items: center; gap: 26px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.gnb .wrap::-webkit-scrollbar { display: none; }
.gnb .free { flex: none; margin-right: -18px; padding: 1px 10px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
header.top nav.gnb a { flex: none; padding: 12px 0; border-radius: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; }
header.top nav.gnb a[aria-current] { background: none; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.band { position: relative; height: 262px; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; visibility: hidden; transition: opacity .5s; color: #fff; text-decoration: none; }
.slide.on { opacity: 1; visibility: visible; }
.slide .in { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; max-width: 640px; height: 100%; margin: 0 auto; padding: 0 16px; }
.slide .tag { padding: 2px 10px; border-radius: 6px; background: var(--accent); font-size: 13px; font-weight: 700; }
.slide h2 { margin: 0; color: #fff; font: 800 36px/1.25 "Noto Sans KR", sans-serif; }
.slide h2 em { font-style: normal; color: #ffc94d; }
.slide .pill { padding: 8px 18px; border-radius: 20px; background: #111; font-size: 15px; font-weight: 700; }
.slide small { font-size: 13px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.65); cursor: pointer; }
.dots button.on { width: 24px; background: #fff; }
@media (max-width: 640px) {
  header.top .head { flex-wrap: wrap; gap: 8px; }
  header.top .hand { font-size: 30px; }
  header.top .seal { width: 34px; height: 34px; font-size: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input, .search button { height: 42px; }
  .search button { width: 42px; }
  .gnb .wrap { gap: 18px; min-height: 42px; }
  .gnb .free { margin-right: -10px; }
  header.top nav.gnb a { font-size: 14px; padding: 10px 0; }
  .band { height: 212px; }
  .slide h2 { font-size: 25px; }
  .slide .pill { padding: 6px 14px; font-size: 13px; }
}

/* 사진이 밝은 곳에서도 글자가 읽히게, 사진 전체에 색을 덮지 않고 제목에만 검은 판을 댄다 */
.slide h2 { width: fit-content; padding: 3px 12px; border-radius: 6px; background: #111; }
@media (max-width: 640px) { .slide small { display: none; } }
@media (max-width: 400px) { .gnb .free { display: none; } .gnb .wrap { gap: 11px; } }

/* 오늘/내일/날짜 고르기 (11/10, owner's request) */
.days { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 12px; }
.days button, .days .pick { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 15px "Noto Sans KR", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.days button[aria-pressed="true"], .days .pick.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.days input[type="date"] { font: inherit; border: 0; background: transparent; color: inherit; padding: 2px 0; max-width: 140px; color-scheme: light dark; }

/* 메뉴 정리 (11/10): 첫 화면 카드 메뉴, 신년·토정 하위 탭, 띠·별자리 타일, 준비 중 표시 */
.menu-cards { max-width: 640px; margin: 0 auto; padding: 18px 16px 0; }
.menu-cards h2 { font: 700 19px var(--title); margin: 0 0 10px; }
.mtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mtile { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; }
.mtile:hover { border-color: var(--ink); }
.mtile b { font-size: 14px; line-height: 1.3; }
.mtile small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.mtile.soon, .tile.soon { opacity: .55; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; }
.subtabs a, .subtabs .soon { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.subtabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subtabs .soon { color: var(--muted); }
.subtabs em, .badge { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.tile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; }
a.tile:hover { border-color: var(--ink); }
.tile small { color: var(--muted); font-size: 12px; }
.card.next h3 { margin: 0 0 4px; }
.card.next p { margin: 0; color: var(--muted); font-size: 15px; }
.card.soon { color: var(--muted); }
@media (max-width: 380px) { .mtiles { grid-template-columns: repeat(2, 1fr); } }

/* 메뉴 두 줄 (11/10, 오빠): 윗줄 가볍게, 아랫줄 깊게. 둘 다 좁은 화면에서는 옆으로 밀어서 본다. */
.gnb .deep { background: var(--soft); border-top: 1px solid var(--line); }
.gnb .deep .wrap { display: flex; align-items: center; gap: 22px; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.gnb .deep .wrap::-webkit-scrollbar { display: none; }
header.top nav.gnb .deep a { padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
header.top nav.gnb .deep a[aria-current] { color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.gnb .deep .soon { flex: none; font-size: 14px; color: var(--muted); opacity: .7; white-space: nowrap; }
.gnb .deep .soon em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
@media (max-width: 640px) { .gnb .deep .wrap { gap: 16px; min-height: 38px; } header.top nav.gnb .deep a, .gnb .deep .soon { font-size: 13px; } }

/* 띠별 운세 (11/10) */
.tti-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 8px 0; }
.tti-card summary { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "img nm sc" "img tt sc"; align-items: center; column-gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.tti-card summary::-webkit-details-marker { display: none; }
.tti-card summary img { grid-area: img; }
.tti-card .nm { grid-area: nm; font-weight: 700; }
.tti-card .tt { grid-area: tt; color: var(--muted); font-size: 14px; }
.tti-card .sc { grid-area: sc; color: var(--accent); font: 700 26px/1 var(--title); }
.tti-card .sc small { font-size: 13px; margin-left: 1px; }
.tti-card[open] summary { border-bottom: 1px solid var(--line); }
.tti-card > p, .tti-card > ul { margin: 10px 14px; }
.tti-card .years { padding-left: 0; list-style: none; font-size: 15px; }
.tti-card .years li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.tti-card .years li:last-child { border-bottom: 0; }
.tti-card .years b { display: inline-block; min-width: 56px; }
.center { text-align: center; }

/* 평생운세 (11/10) */
.form select.sex { width: 100%; }
.decades { list-style: none; padding: 0; margin: 6px 0 0; }
.decades li { display: grid; grid-template-columns: 56px 22px 22px 1fr auto; align-items: center; column-gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.decades li b { font: 700 19px var(--title); text-align: center; }
.decades li .age { color: var(--muted); font-size: 13px; }
.decades li .dt { font-weight: 700; font-size: 15px; }
.decades li .dt em { font-style: normal; font-size: 11px; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.decades li .ds { color: var(--accent); font-weight: 700; }
.decades li p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.decades li.now { background: #fff5f5; }
.lv { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
.lv-high { background: #fde7e5; color: var(--accent); } .lv-mid { background: var(--soft); color: var(--ink); } .lv-low { background: #eef1f4; color: var(--muted); }

/* 토정비결 원문 첫 구절 (11/10) */
.verse { margin: 10px 0 2px; text-align: center; font: 700 26px/1.4 "Gowun Batang", "Noto Serif KR", serif; letter-spacing: 2px; }
.grade { padding: 1px 8px; border-radius: 6px; font-size: 13px; }
.grade.g5, .grade.g4 { background: #fde7e5; color: var(--accent); } .grade.g3 { background: var(--soft); color: var(--ink); } .grade.g2, .grade.g1 { background: #eef1f4; color: var(--muted); }
/* 토정비결 원문 전체 (11/10) */
.fullverse { margin: 10px 0; }
.fullverse summary { cursor: pointer; font-weight: 700; }
.vlist { list-style: none; padding: 0; margin: 8px 0; }
.vlist li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 3px 0; }
.vlist .vh { font: 700 17px "Gowun Batang", "Noto Serif KR", serif; letter-spacing: 1px; }
.vlist .vk { color: var(--muted); font-size: 13px; }
.decades li .vlist.mv { grid-column: 1 / -1; margin: 4px 0 0; }
.decades li .vlist.mv .vh { font-size: 15px; }

/* 내일모레 지기의 신조 (2026-11-11): every result ends with it; hidden until there is a result. */
/* 2026-11-16 owner picked A: a framed hanji-coloured card, the two mottos side by side (stacked on phones). */
.creed { margin: 30px 0 8px; padding: 26px 18px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7;
  background: #fffaf3; border-radius: 16px; box-shadow: inset 0 0 0 1px #e9d6c2, inset 0 0 0 6px #fffaf3, inset 0 0 0 7px #efdcc8; }
.creed p { margin: 0; }
.creed .cr-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.creed .cr-m { position: relative; padding: 14px 8px 10px; }
.creed .cr-m + .cr-m { border-left: 1px dashed #e3cdb6; }
.creed .cr-hanja { font: 700 26px/1.25 "Noto Serif KR", "Gowun Batang", serif; color: var(--ink); letter-spacing: 4px; }
.creed .cr-read { margin: 4px 0 8px; font: 700 13px "Gowun Batang", serif; color: var(--accent); letter-spacing: 3px; }
.creed .cr-mean { font-size: 14px; line-height: 1.65; color: #4a4038; }
.creed .cr-by { margin-top: 6px; font-size: 12px; color: var(--muted); }
.creed .cr-by::before { content: "— "; }
.creed .cr-seal { position: absolute; top: 2px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px;
  background: var(--accent); color: #fff; font: 700 14px "Gowun Batang", serif; transform: rotate(-8deg); opacity: .9; }
.creed .cr-note { margin-top: 16px; padding-top: 12px; border-top: 1px dotted #e3cdb6; font-size: 13px; }
@media (max-width: 520px) { .creed .cr-row { grid-template-columns: 1fr; } .creed .cr-m + .cr-m { border-left: 0; border-top: 1px dashed #e3cdb6; padding-top: 18px; }
  .creed .cr-hanja { font-size: 24px; } }
.result:empty + .creed, .result:has(> .error:only-child) + .creed { display: none; }
/* 토정비결 (2026-11-12): 월별은 한자 없이 설명만, 한 해 풀이는 분야별로 길게 */
.decades.tojeong-months li { grid-template-columns: 56px 1fr auto; }
.decades.tojeong-months li p { color: var(--ink); font-size: 15px; line-height: 1.6; }
.tj-more h4 { margin: 16px 0 4px; font-size: 16px; }
.tj-more p { margin: 0 0 6px; line-height: 1.7; }
/* 결과 아래 두 버튼 (actions.js, 2026-11-14). print-btn has no .copy class: app.js copyLink takes every .copy click. */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.foot + .actions { margin-top: 8px; }
.print-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 15px "Noto Sans KR", sans-serif; cursor: pointer; }
.print-hint { text-align: center; }
.print-only { display: none; }
/* 인쇄 (토정비결 2026-11-12 → 모든 운세 11/14): 결과만 깔끔하게 */
@media print {
  header.top, footer, main > .intro, main .form, main > form, .creed, .actions, .foot, main .more, details.calc, .ttopics, .tdeck .tcard:not(.open), .tstep, .reshuffle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: auto; }
  .decades.tojeong-months li { break-inside: avoid; background: none !important; }
  .tj-more h4 { break-after: avoid; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block; font-size: 10pt; color: #555; margin: 0 0 8px; }
  .print-hint { display: none !important; }
}
/* 휴대폰 PDF 저장 중 (tojeong-ui.js savePdf): 인쇄와 같은 모습 */
html.pdf-mode .actions, html.pdf-mode .print-hint, html.pdf-mode .foot, html.pdf-mode details.calc, html.pdf-mode main .more, html.pdf-mode .ttopics, html.pdf-mode .tdeck .tcard:not(.open), html.pdf-mode .tstep, html.pdf-mode .reshuffle { display: none !important; }
html.pdf-mode .print-only { display: block; font-size: 13px; color: #555; margin: 8px 0 0; }
html.pdf-mode .decades.tojeong-months li { background: none !important; }
/* 토정비결 (2026-11-12, 오빠): 원문 전체 보기와 괘를 뽑은 방법 보기는 화면에서 숨김 (코드와 자료는 그대로) */
#tojeong details.fullverse, #tojeong details.calc { display: none !important; }

/* ── 시안 1단계 (the owner's mock, 2026-11-13): warm cream page, soft cards with an arrow, icons before the home
   headings, short dividers in the lower menu. Step 2 adds the blossom, cloud and mountain drawings. ── */
:root { --bg: #fcf6f1; --soft: #f7ede6; --line: #eadfd7; }
header.top .search input { background: #fff; }
.mtiles { gap: 10px; }
.mtile { position: relative; padding: 14px 6px 26px; border: 1px solid #f0e3da; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 14px rgba(150, 90, 60, .08); transition: transform .15s, box-shadow .15s; }
.mtile:hover { border-color: #f0e3da; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(150, 90, 60, .14); }
.mtile b { font-size: 15px; }
.mtile::after { content: "›"; position: absolute; right: 8px; bottom: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: #f3e9e3; color: #9a857a; font: 700 14px/17px "Noto Sans KR", sans-serif; text-align: center; }
.menu-cards h2, .menu-cards ~ main .intro h1 { display: flex; align-items: center; gap: 8px; }
.menu-cards h2::before, .menu-cards ~ main .intro h1::before { content: ""; flex: none; width: 26px; height: 26px; background: center / contain no-repeat; }
.menu-cards h2::before { background-image: url("https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/svg/1f338.svg"); }
.menu-cards ~ main .intro h1::before { background-image: url("https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/svg/1f319.svg"); }
.gnb .deep .wrap { gap: 0; }
header.top nav.gnb .deep a, .gnb .deep .soon { position: relative; flex: 1 1 auto; text-align: center; }
header.top nav.gnb .deep a + a::before, .gnb .deep .wrap > * + .soon::before { content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 12px; margin-top: -6px; background: #d9cbc2; }

/* ── 시안 2단계 (2026-11-13): our own drawings in img/deco (blossom branch, cloud, mountains with a hanok roof) ── */
header.top { background: url(img/deco/blossom.svg) left -14px top -8px / 150px auto no-repeat,
  url(img/deco/cloud.svg) right 10px top 12px / 120px auto no-repeat, var(--bg); }
.menu-cards h2::after { content: ""; flex: 1; align-self: center; height: 24px; margin-left: 6px;
  background: url(img/deco/cloud.svg) right center / auto 22px no-repeat,
  linear-gradient(#eadfd7, #eadfd7) left center / calc(100% - 74px) 1px no-repeat; }
body { background: url(img/deco/mountains.svg) center bottom / 1600px auto no-repeat, var(--bg); padding-bottom: 210px; }
@media (max-width: 640px) {
  header.top { background-size: 104px auto, 84px auto, auto; background-position: left -14px top -6px, right 6px top 10px, 0 0; }
  body { background-size: 900px auto, auto; background-position: 90% bottom, 0 0; padding-bottom: 150px; }  /* the palace and pagoda in view */
}
html { min-height: 100%; }  /* short pages: the mountains sit at the bottom of the window */

/* ── 시안 3단계 (2026-11-13): banner text like the mock. No colour over the photos (the owner's rule): text shadows only. ── */
.band { height: 320px; background: #1a1430; }  /* each slide brings its own picture now */
.slide { z-index: 1; background: none; }
/* the moon over the middle of "그 사람과 나" (measured: the line's middle is 97px into the column on PC, 74px on phones) */
.band::after { content: ""; position: absolute; z-index: 0; top: -9px; left: calc(max(16px, 50% - 304px) + 97px - 45px);
  width: 90px; height: 90px; background: url(img/deco/moon.svg) center / contain no-repeat; pointer-events: none; }
.band::before { content: ""; position: absolute; right: -12px; top: -10px; z-index: 2; width: 170px; height: 120px;
  background: url(img/deco/blossom.svg) left top / contain no-repeat; transform: scaleX(-1); pointer-events: none; }  /* on the right (the owner) */
.slide .in { gap: 8px; }
.slide .tag { padding: 3px 12px; border-radius: 8px; font-size: 14px; }
.slide h2 { width: auto; padding: 0; border-radius: 0; background: none; font: 800 38px/1.3 "Noto Sans KR", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 4px 18px rgba(0, 0, 0, .6); }
.slide h2 em { color: #ffd34d; font-size: 1.12em; padding-bottom: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7C30 2 70 2 98 5' stroke='%23ffd34d' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 8px no-repeat; }
.slide .pill { padding: 0; border-radius: 0; background: none; font-size: 16px; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.slide small { margin-top: -6px; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.slide .btn { margin-top: 6px; padding: 6px 18px; border: 1.5px solid #fff; border-radius: 20px; font-size: 14px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .15); }
@media (max-width: 640px) {
  .band { height: 280px; }
  .band::before { right: -14px; top: -12px; width: 110px; height: 80px; }
  .slide .in { padding-top: 26px; }
  .band::after { top: 4px; left: calc(16px + 74px - 32px); width: 64px; height: 64px; }
  .slide h2 { font-size: 27px; }
  .slide small { display: block; font-size: 13px; }
  .slide .pill { font-size: 14px; }
}

/* banner titles in 캘리폰트 샤우팅체 (Callifont Shouting, read from the file; the owner's pick E). Licence checked 2026-11-14 at
   callifont.com/product/shouting: commercial use, websites and web-font embedding allowed; editing, redistributing or selling the file not. */
@font-face { font-family: "Callifont"; src: url(fonts/Callifont-Medium.woff2) format("woff2"); font-display: swap; }
.slide h2 { font-family: "Callifont", "Noto Sans KR", sans-serif; font-weight: 400; font-size: 46px; line-height: 1.25; }
@media (max-width: 640px) { .slide h2 { font-size: 33px; } }

/* Wide screens look like the phone (the owner, 2026-11-13): a full-width banner cropped the photo to a strip of
   pillars. The banner becomes a rounded card as wide as the body column, tall enough for the pavilion and its
   reflection, and the header drawings sit next to the column instead of at the far edges. */
@media (min-width: 641px) {
  .band { max-width: 608px; height: 380px; margin: 14px auto 0; border-radius: 16px; }
  .slide .in { padding: 0 26px; }
  .band::after { top: 14px; left: calc(26px + 97px - 45px); }
  .band::before { right: -10px; top: -8px; width: 150px; height: 106px; }
  header.top { background: var(--bg); }  /* 시안 A (the owner): no header drawings on wide screens; phones keep the small ones */
}

/* 아쉬운 점 1 (2026-11-13): the thin brush title reads clearly on the photo: a hair of stroke in its own colour and
   a tighter dark halo. 4: on PC the lower menu is no longer spread edge to edge, it sits centred with even gaps. */
.slide h2 { -webkit-text-stroke: .7px currentColor; paint-order: stroke fill;
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .75), 0 4px 18px rgba(0, 0, 0, .65); }
@media (min-width: 641px) {
  .gnb .deep .wrap { justify-content: center; }
  header.top nav.gnb .deep a, .gnb .deep .soon { flex: none; padding-left: 26px; padding-right: 26px; }
}

/* The page-bottom scene is the owner's own picture (made with ChatGPT, 2026-11-13), replacing my drawing
   (img/deco/mountains.svg, kept). Top edge faded to transparent in the file itself; full width on PC. */
body { background: url(img/deco/footer-night.webp) center bottom / 800px auto no-repeat, var(--bg); padding-bottom: 215px; }  /* a soft vignette, not full width (the owner: too big) */
@media (max-width: 640px) {
  body { background-image: url(img/deco/footer-night-phone.webp);  /* new name: the app cache kept serving the old faded file */ background-size: 100% auto; background-position: center bottom; padding-bottom: 130px; }  /* whole scene, blossom included (the owner) */
}
.gap small.also { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Three banner pictures, one per slide (the owner's ChatGPT pictures, 2026-11-13). Each has its own moon and
   blossoms, so my drawn moon and blossom come off the banner. The subject is on the right; the left is dark for text. */
.slide { background-size: cover; background-position: right center; background-repeat: no-repeat; }
.slide:nth-of-type(1) { background-image: url(img/banner-newyear.webp); }
.slide:nth-of-type(2) { background-image: url(img/banner-gunghap.webp); }
.slide:nth-of-type(3) { background-image: url(img/banner-monthly.webp); }
.band::before, .band::after { content: none; }

.dots { z-index: 3; }  /* above the slide pictures (they had hidden the dots) */
.dots button.on { background: var(--accent); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }  /* the current slide in red (the owner) */

/* Lower menu: dark ink band with round chips, the current page a red chip (the owner's A+C mix, 2026-11-13).
   Replaces the short dividers and the centred-with-gaps layout above. */
.gnb .deep { background: #26201f; border-top: 0; }
.gnb .deep .wrap { gap: 8px; min-height: 48px; justify-content: center; }
header.top nav.gnb .deep a, .gnb .deep .soon { flex: none; padding: 4px 14px; border: 1px solid rgba(239, 227, 211, .28);
  border-radius: 16px; background: transparent; color: #efe3d3; font-weight: 500; box-shadow: none; }
header.top nav.gnb .deep a + a::before, .gnb .deep .wrap > * + .soon::before { content: none; }
header.top nav.gnb .deep a:hover { border-color: #efe3d3; }
header.top nav.gnb .deep a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; box-shadow: none; }
@media (max-width: 640px) {
  .gnb .deep .wrap { gap: 5px; min-height: 44px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { padding: 3px 9px; font-size: 12.5px; }
}
@media (max-width: 380px) {  /* small phones: all five chips on one line */
  .gnb .deep .wrap { gap: 4px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { padding: 3px 7px; font-size: 12px; }
}
.gnb .deep .new { margin-right: 4px; color: #ffd34d; font: 700 1.05em "Gowun Batang", serif; }  /* 新 before 2027 신년운세 (the owner) */
header.top nav.gnb .deep a[aria-current] .new { color: #ffd34d; text-shadow: 0 0 2px rgba(0, 0, 0, .35); }  /* stays gold on the red chip */
/* top menu: the red underline sat on the dark band's edge (the owner) — lifted 5px above it */
header.top nav.gnb .light a { position: relative; }
header.top nav.gnb .light a[aria-current] { box-shadow: none; }
header.top nav.gnb .light a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; border-radius: 1px; background: var(--accent); }

/* Home is the entrance now; the fortune form lives on today.html (the owner, 2026-11-13) */
main.home { padding-top: 6px; }
.quick { max-width: 640px; margin: 12px auto 0; padding: 0 16px; }
.quick a { display: block; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
#today .intro h1 { display: flex; align-items: center; gap: 8px; }
#today .intro h1::before { content: ""; flex: none; width: 26px; height: 26px; background: url("https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.1.0/assets/svg/1f319.svg") center / contain no-repeat; }
/* "날짜 고르기": only the words show; the date field lies invisibly over the button so a tap opens the calendar */
.days .pick { position: relative; }
.days .pick input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; opacity: 0; cursor: pointer; }

/* Polish 4 (2026-11-13, the owner: "다해"):
   1. an icon before each inner page's title, like the home headings */
.intro h1 { display: flex; align-items: center; gap: 8px; }
.intro h1 .h-ico { flex: none; width: 28px; height: 28px; }
/* 2. the "where am I" links above titles: quiet grey, not loud red underlines */
.intro p.small a { color: var(--muted); text-decoration: none; }
.intro p.small a:hover { color: var(--accent); text-decoration: underline; }
/* 3. the chosen 오늘/내일/날짜 button in red, like the menu chips */
.days button[aria-pressed="true"], .days .pick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 4. reading-list chips: five-element colour dots and little animals */
.chips a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; }
.chips .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chips .dot.mok { background: #3f9d5a; } .chips .dot.hwa { background: #d9453b; } .chips .dot.to { background: #d6a227; }
.chips .dot.geum { background: #a9a9b1; } .chips .dot.su { background: #2f6db5; }
.chips img { flex: none; }
.gnb .deep { background: #111; }  /* true black, like the search button (the owner) */

/* 오늘·내일·지정일 운세: one button for the one page (the owner, 2026-11-13), set apart from the other menu words.
   It always opens 오늘; 내일 and 날짜 고르기 are the buttons on that page. */
header.top nav.gnb .light a.daygroup { padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 18px; font-weight: 700; }
header.top nav.gnb .light a.daygroup i { margin: 0 4px; font-style: normal; color: var(--accent); }
header.top nav.gnb .light a.daygroup b { color: var(--accent); }
header.top nav.gnb .light a.daygroup[aria-current] { background: var(--ink); color: #fff; }
header.top nav.gnb .light a.daygroup[aria-current]::after { content: none; }
header.top nav.gnb .light a.daygroup[aria-current] b, header.top nav.gnb .light a.daygroup[aria-current] i { color: #ffd34d; }
@media (max-width: 640px) { header.top nav.gnb .light a.daygroup { padding: 3px 10px; } header.top nav.gnb .light a.daygroup i { margin: 0 2px; } }
@media (max-width: 640px) { .gnb .light .free { display: none; } }  /* phones: the merged button needs the room */
@media (max-width: 380px) {
  .gnb .light.wrap { gap: 6px; }
  header.top nav.gnb .light a { font-size: 13px; }
  header.top nav.gnb .light a.daygroup { padding: 2px 8px; }
  header.top nav.gnb .light a.daygroup i { margin: 0 1px; }
}

/* 시안 C (the owner's pick): the day button as a black pill with a red 運 seal and the banner's brush lettering */
header.top nav.gnb .light a.daygroup { display: inline-flex; align-items: center; gap: 8px; padding: 3px 16px 3px 4px; border: 0;
  border-radius: 20px; background: #111; color: #fff; font: 400 18px "Callifont", "Noto Sans KR", sans-serif; letter-spacing: .5px; }
header.top nav.gnb .light a.daygroup i, header.top nav.gnb .light a.daygroup b { color: #ffd34d; font-weight: 400; }
header.top nav.gnb .light a.daygroup .seal2 { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px;
  background: var(--accent); color: #fff; font: 700 15px "Gowun Batang", serif; transform: rotate(-6deg); }
header.top nav.gnb .light a.daygroup:hover .seal2 { transform: rotate(0deg); transition: transform .2s; }
header.top nav.gnb .light a.daygroup[aria-current] { background: #111; box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 640px) {
  header.top nav.gnb .light a.daygroup { gap: 5px; padding: 2px 11px 2px 3px; font-size: 16px; }
  header.top nav.gnb .light a.daygroup .seal2 { width: 22px; height: 22px; font-size: 13px; }
}
@media (max-width: 420px) { header.top nav.gnb .light a.daygroup .dg-pick { display: none; } }  /* small phones: 오늘·내일 운세 */
header.top nav.gnb .light a.daygroup .dg-pick { display: inline-flex; align-items: center; gap: 8px; }  /* same spacing around every dot */
@media (max-width: 640px) { header.top nav.gnb .light a.daygroup .dg-pick { gap: 5px; } }
@media (max-width: 420px) { header.top nav.gnb .light a.daygroup .dg-pick { display: none; } }
/* day button: the logo's lettering (Gaegu), and a big 運 seal that fills the button's height (the owner) */
header.top nav.gnb .light a.daygroup { font: 700 19px "Gaegu", cursive; letter-spacing: 0; padding: 0 16px 0 0; gap: 8px; overflow: visible; }
header.top nav.gnb .light a.daygroup .seal2 { width: 36px; height: 36px; margin: -2px 0 -2px -2px; border-radius: 7px; font-size: 24px; line-height: 1; }
@media (max-width: 640px) {
  header.top nav.gnb .light a.daygroup { font-size: 17px; padding: 0 11px 0 0; gap: 5px; }
  header.top nav.gnb .light a.daygroup .seal2 { width: 30px; height: 30px; font-size: 20px; border-radius: 6px; }
}
@media (max-width: 470px) { header.top nav.gnb .light a.daygroup .dg-pick { display: none; } }  /* Gaegu is wider: 오늘·내일 운세 up to 470px */
/* 무료 now leads the lower (black) menu line (the owner, 2026-11-13) */
.gnb .deep .free { flex: none; margin-right: 2px; padding: 2px 10px; }
@media (max-width: 640px) { .gnb .deep .free { padding: 1px 7px; font-size: 11px; } }
/* phones: 무료 shows in the lower line too (an old rule hid every .free under 400px); chips tighten to fit */
@media (max-width: 400px) {
  .gnb .deep .free { display: inline-block; margin-right: 0; padding: 1px 6px; font-size: 11px; }
  .gnb .deep .wrap { gap: 4px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { padding: 3px 7px; font-size: 12px; }
}
@media (max-width: 380px) {
  .gnb .deep .wrap { gap: 3px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { padding: 2px 5px; font-size: 11.5px; }
  .gnb .deep .new { margin-right: 2px; }
  header.top nav.gnb .light a.daygroup { font-size: 15px; padding-right: 9px; }
  header.top nav.gnb .light a.daygroup .seal2 { width: 27px; height: 27px; font-size: 18px; }
}
@media (max-width: 355px) { .gnb .deep .free { display: none; } header.top nav.gnb .deep a { padding: 2px 4px; font-size: 11px; } }  /* the narrowest phones */
/* day button: tighter (Gaegu runs wide; the dots had extra room) — the owner */
header.top nav.gnb .light a.daygroup { gap: 3px; letter-spacing: -1px; }
header.top nav.gnb .light a.daygroup i { margin: 0 1px; }
header.top nav.gnb .light a.daygroup .dg-pick { gap: 3px; }
header.top nav.gnb .light a.daygroup .seal2 { margin-right: 4px; letter-spacing: 0; }
header.top nav.gnb .light a.daygroup b { margin-left: 3px; }
@media (min-width: 641px) { .gnb .light.wrap { justify-content: center; gap: 34px; } }  /* PC: top menu gathered in the middle, not spread edge to edge (the owner) */
/* 읽을거리 moved up to the top line, in navy so it reads apart from the fortune words (the owner likes 곤색) */
header.top nav.gnb .light a.readlink { color: #1e3a6e; }
header.top nav.gnb .light a.readlink[aria-current] { color: #1e3a6e; }
header.top nav.gnb .light a.readlink[aria-current]::after { background: #1e3a6e; }
@media (max-width: 640px) { .gnb .light .sfx { display: none; } }  /* phones: 띠별 · 별자리, so 읽을거리 fits on the top line */
header.top nav.gnb .light a.readlink { font-weight: 900; -webkit-text-stroke: .35px currentColor; }  /* 읽을거리 extra bold (the owner); the stroke thickens it past the loaded 700 */
header.top nav.gnb .light a.readlink, header.top nav.gnb .light a.readlink[aria-current] { color: #b8860b; } header.top nav.gnb .light a.readlink[aria-current]::after { background: #b8860b; }  /* 읽을거리 in gold (the owner); a deep gold so it reads on the cream */
/* lower line: a little more room between chips (the owner) — 읽을거리 moved up, so phones have room too */
.gnb .deep .wrap { gap: 14px; }
@media (max-width: 640px) { .gnb .deep .wrap { gap: 9px; } }
@media (max-width: 380px) { .gnb .deep .wrap { gap: 6px; } }

/* Sub-page header as a picture card (the owner's ChatGPT pictures, 2026-11-13): the title sits on the dark left side.
   No colour laid over the picture (the owner's rule) — text shadows only. */
.intro.hero-band { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 220px; margin-top: 14px;
  padding: 26px 24px; border-radius: 16px; overflow: hidden; color: #fff; background: #1a1430 var(--img) right center / cover no-repeat; }
.intro.hero-band h1 { margin: 0 0 6px; color: #fff; font-size: 30px; text-shadow: 0 2px 4px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .6); }
.intro.hero-band p { max-width: 55%; margin: 0; color: #f6ece2; text-shadow: 0 1px 6px rgba(0, 0, 0, .85); }
.intro.hero-band p.small a { color: #eadccd; }
/* Light pictures (오늘·사주·띠, 11/14): ink-coloured text, a paper glow instead of a dark shadow (owner picked A). */
.intro.hero-band.light, .intro.hero-band.light h1 { color: #2b1d12; text-shadow: 0 0 6px rgba(255, 248, 236, .95), 0 0 14px rgba(255, 248, 236, .8); }
.intro.hero-band.light p { color: #3d2a1c; text-shadow: 0 0 5px rgba(255, 248, 236, .95), 0 0 12px rgba(255, 248, 236, .85); }
.intro.hero-band.light p.small a, .intro.hero-band.light a { color: #7a3418; }
@media (max-width: 640px) {
  .intro.hero-band { min-height: 180px; padding: 20px 18px; }
  .intro.hero-band h1 { font-size: 24px; }
  .intro.hero-band p { max-width: 62%; font-size: 14px; }
}

/* Lower menu as tabs (the owner's pick, 2026-11-13): no chip outlines; the current page is a cream tab that runs down
   into the page below, like a folder tab. Replaces the round chips above. */
.gnb .deep .wrap { align-items: stretch; min-height: 46px; gap: 14px; }
header.top nav.gnb .deep a, .gnb .deep .soon { display: flex; align-items: center; margin-top: 8px; padding: 0 16px; border: 0;
  border-radius: 10px 10px 0 0; background: transparent; color: #efe3d3; transition: background .15s; }
header.top nav.gnb .deep a:hover { background: rgba(255, 255, 255, .12); border: 0; }
header.top nav.gnb .deep a[aria-current] { background: var(--bg); color: var(--ink); font-weight: 700; }
header.top nav.gnb .deep a[aria-current] .new { color: var(--accent); text-shadow: none; }
.gnb .deep .free { align-self: center; }
@media (max-width: 640px) {
  .gnb .deep .wrap { gap: 6px; min-height: 42px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { margin-top: 7px; padding: 0 10px; }
}
@media (max-width: 400px) {
  .gnb .deep .wrap { gap: 3px; }
  header.top nav.gnb .deep a, .gnb .deep .soon { padding: 0 7px; font-size: 12px; }
}
@media (max-width: 360px) { header.top nav.gnb .deep a, .gnb .deep .soon { padding: 0 5px; font-size: 11.5px; } }
/* tab words sat 4px low (the tab starts 8px down): padding below the word re-centres it on the black band (the owner) */
header.top nav.gnb .deep a, .gnb .deep .soon { padding-bottom: 8px; }
@media (max-width: 640px) { header.top nav.gnb .deep a, .gnb .deep .soon { padding-bottom: 7px; } }
.quick a { font: 700 22px/1.3 "Gaegu", cursive; padding: 9px 14px; letter-spacing: -0.5px; }  /* the logo lettering, bigger (the owner) */
@media (max-width: 640px) { .quick a { font-size: 20px; } }
/* "저장된 생일로" marked like the banner's "몇 점": yellow with a brush underline (the owner) */
.quick a em { font-style: normal; color: #ffd34d; padding-bottom: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7C30 2 70 2 98 5' stroke='%23ffd34d' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 7px no-repeat; }
.quick a em { display: inline-block; line-height: 1.15; padding-bottom: 7px; background-position: left bottom; background-size: 100% 6px; }  /* underline below the letters, not through them (the owner) */
.quick a { font-size: 24px; -webkit-text-stroke: .5px currentColor; }  /* a touch bigger and bolder on the strong red (the owner: "굳이를 해 보자") */
.quick a em { -webkit-text-stroke: .5px #ffd34d; }
@media (max-width: 640px) { .quick a { font-size: 21px; } }

/* 타로 (2026-11-14): 카드 뒷면은 그림 없이 CSS로(검정 바탕, 금색 테, 붉은 運), 뒤집기는 3D 회전 */
.tarot-one h2, .tarot-three h2 { margin: 0 0 4px; font-size: 20px; }
.tcard { position: relative; display: block; width: 100%; aspect-ratio: 360 / 624; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; }
.tcard .face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; transition: transform .6s; overflow: hidden; }
.tcard .back { background: radial-gradient(circle at 50% 50%, #2a2a2a 0 30%, #111 70%); border: 2px solid #b8860b; box-shadow: inset 0 0 0 4px #111, inset 0 0 0 5px #b8860b; display: grid; place-items: center; }
.tcard .back::after { content: "運"; display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 8px; background: var(--accent); color: #fff; font: 700 clamp(16px, 6vw, 38px)/1 "Gowun Batang", serif; transform: rotate(-6deg); }
.tcard .front { transform: rotateY(180deg); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tcard .front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard.open .back { transform: rotateY(-180deg); }
.tcard.open .front { transform: rotateY(0); }
.tcard:disabled { cursor: default; }
.tcard:not(:disabled):hover .back { border-color: var(--accent); }
.tcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.tcard.big { width: min(220px, 60%); margin: 14px auto 0; }
.tcard.big .back::after { font-size: 48px; }
.tread { margin-top: 14px; }
.tread h3, .tslot h3 { margin: 0; font-size: 20px; }
.kw { margin: 2px 0 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
.tstep { margin: 10px 0; text-align: center; }
.tdeck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tdeck .back::after { font-size: clamp(13px, 3.4vw, 24px); }
.tpos { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; z-index: 2; }
.tdeck .tcard:disabled:not(.open) { opacity: .35; }
.tslots { display: grid; gap: 12px; margin-top: 18px; scroll-margin-top: 12px; }
.tslot { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.tslot img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tslot small { color: var(--muted); font-weight: 700; }
.tslot p { margin: 0; }
@media (max-width: 520px) { .tdeck { grid-template-columns: repeat(4, 1fr); } .tslot { grid-template-columns: 76px 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .tcard .face { transition: none; } }

.tonce { margin: 12px 0 0; line-height: 1.7; }  /* 하루 한 장 안내 (11/14 owner) */
.tguide { margin: 4px 0 0; font-size: 15px; line-height: 1.7; }  /* 3장 타로: 고민 예시 (11/14 owner) */
.tguide .nw { white-space: nowrap; }
/* 3장 타로 주제 고르기 (11/14 owner) */
.ttopics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 2px; }
.ttopics button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 15px "Noto Sans KR", sans-serif; cursor: pointer; }
.ttopics button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.ttopic { margin: 8px 0 0 !important; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 15px; }
.ttopic b { color: var(--accent); margin-right: 4px; }
@media (max-width: 420px) { .ttopics { gap: 5px; } .ttopics button { min-height: 36px; padding: 0 10px; font-size: 14px; } }
@media (max-width: 380px) { .ttopics { gap: 4px; } .ttopics button { padding: 0 8px; font-size: 13px; } }
/* 읽을거리 moved to the end of the lower (black) line, 11/14 (the owner); gold like 新 */
header.top nav.gnb .deep a.readlink { color: #ffd34d; }
header.top nav.gnb .deep a.readlink[aria-current] { color: #b8860b; }
/* lower line now carries 읽을거리 too (11/14): tabs a little narrower on phones so it stays one line */
@media (max-width: 470px) { .gnb .deep .wrap { gap: 5px; } header.top nav.gnb .deep a, .gnb .deep .soon { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 434px) { .gnb .deep .wrap { gap: 4px; } header.top nav.gnb .deep a, .gnb .deep .soon { padding-left: 5px; padding-right: 5px; } }
@media (max-width: 400px) { .gnb .deep .wrap { gap: 3px; } header.top nav.gnb .deep a, .gnb .deep .soon { padding-left: 5px; padding-right: 5px; } }
@media (max-width: 360px) { header.top nav.gnb .deep a, .gnb .deep .soon { padding-left: 4px; padding-right: 4px; } }
/* Both menu lines share the same two edges at every width (the owner, 11/14: 무료 stuck out left, 타로 stuck out right);
   each line spreads its own items evenly between those edges, so font width differences can't misalign them */
.gnb .light.wrap, .gnb .deep .wrap { justify-content: space-between; }
.gnb .light .first { margin-left: 4px; }  /* the 運 seal sits outside its pill */
header.top nav.gnb .deep .wrap > a:last-child { margin-right: -16px; }  /* edge = the word 읽을거리, not its tab padding */
@media (min-width: 641px) { .gnb .light.wrap, .gnb .deep .wrap { max-width: 580px; gap: 0; } }
@media (max-width: 640px) { header.top nav.gnb .deep .wrap > a:last-child { margin-right: -10px; } }
@media (max-width: 470px) { header.top nav.gnb .deep .wrap > a:last-child { margin-right: -8px; } }
@media (max-width: 434px) { header.top nav.gnb .deep .wrap > a:last-child { margin-right: -5px; } }
@media (max-width: 360px) { header.top nav.gnb .deep .wrap > a:last-child { margin-right: -4px; } }
@media (max-width: 355px) { header.top nav.gnb .deep .wrap > a:first-of-type { margin-left: -4px; } }  /* 무료 hidden: 월별's word starts the line */
