/* Ink, antique gold and jade share one quiet reading surface. */
:root {
  --night: #191919;
  --obsidian: #191919;
  --panel: #242424;
  --panel2: #303030;
  --gold: #c7b582;
  --goldBright: #e7d5a1;
  --cream: #f1f0e9;
  --jade: #a9c2b3;
  --line: #454545;
  --dim: #bdbdb8;
  --action: #dbc58e;
  --action-ink: #191919;
  --serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --reading-title: "Gowun Batang", Georgia, serif;
  /* 2026-11-10: 각진 모서리(2~4px)를 둥근 모서리로 통일 */
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-thumb: 6px;
}
.surface-light {
  --night: #191919;
  --panel: #191919;
  --panel2: #292929;
  --cream: #f1f0e9;
  --gold: #dbc58e;
  --goldBright: #e7d5a1;
  --line: #454545;
  --dim: #bdbdb8;
  --jade: #a9c2b3;
}
body {
  font-family: var(--serif);
  line-height: 1.6;
}
button,
input,
select,
textarea {
  letter-spacing: 0;
  touch-action: manipulation;
}
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.btn:hover {
  transform: none;
}
.btn {
  min-height: 44px;
}
select {
  color-scheme: dark;
}
.surface-light select {
  color-scheme: dark;
}
select option {
  background: var(--panel);
  color: var(--cream);
}
.orb {
  background: url("/assets/prophecy-orb.webp") center / contain no-repeat;
  animation: none;
  box-shadow: none;
}
.orb-image {
  display: inline-block;
  object-fit: contain;
  flex: none;
  vertical-align: middle;
}
.ui-icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  flex: none;
  background: currentColor;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-header .orb-balance {
  border-color: var(--line) !important;
  background: var(--panel2) !important;
  border-radius: var(--radius-control) !important;
  gap: 5px !important;
  font-variant-numeric: tabular-nums;
}
.site-header .header-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  width: 44px;
}
.bottom-navigation button {
  position: relative;
  min-width: 76px;
  min-height: 52px;
  justify-content: center;
  gap: 6px !important;
}
.bottom-navigation button[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--gold);
}
.orb-shop-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.orb-shop-heading h2 {
  font: 700 28px var(--reading-title);
  margin: 4px 0 8px;
  color: var(--goldBright);
}
.orb-shop-heading p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  margin: 0;
}
.orb-shop-heading .orb-eyebrow {
  font-size: 9px;
  color: var(--gold);
}
.orb-plan {
  border-radius: var(--radius-control) !important;
  min-height: 80px;
  padding: 12px 10px !important;
  gap: 8px !important;
}
.orb-plan > .orb-image {
  width: 28px !important;
  height: 28px !important;
}
.orb-plan > div:nth-of-type(2) {
  font-size: 15px !important;
}
.orb-plan[aria-pressed="true"] {
  background: #383838 !important;
  box-shadow: inset 3px 0 var(--gold);
}
.reading-price {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
}
.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.reading-start {
  box-shadow: none;
  transition: background 0.2s !important;
}
.reading-start:hover {
  background: #e7d5a1;
}
.reading-start:active {
  background: #c7b582;
}
.deck-back {
  outline: 1px solid #aa996e40;
  outline-offset: -10px;
}
.reading-tabs button {
  transition:
    color 0.2s,
    border-color 0.2s;
}
@media (max-width: 600px) {
  .intro-heading .art-caption {
    display: none;
  }
  .intro-heading .intro-art {
    height: 200px;
  }
  .site-header .header-records {
    display: none;
  }
  .site-header .hdrbtns {
    gap: 4px !important;
  }
  .site-header .orb-balance {
    padding: 4px 8px !important;
  }
  .wordmark {
    font-size: 20px !important;
    gap: 6px;
  }
  .wordmark .orb-image {
    width: 28px !important;
    height: 28px !important;
  }
  .orb-shop-heading {
    gap: 12px;
  }
  .orb-shop-heading > .orb-image {
    width: 80px !important;
    height: 80px !important;
  }
}
.wrap-pad {
  /* viewport-fit=cover 대응: 상단 안전영역(노치·상태바)만큼 내려야 아이폰 PWA에서
     헤더의 구슬·기록·로그아웃 버튼이 노치 뒤에 깔리지 않는다 (2026-09-29 실사고). */
  padding: calc(20px + var(--safe-top, 0px)) 22px 110px !important;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  border: 0;
  background: none;
  color: var(--cream);
  font: 700 22px var(--reading-title);
  padding: 0;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}
.site-header .hdrbtns {
  position: static !important;
  align-items: center;
  gap: 6px !important;
  margin-left: auto;
  margin-top: 0 !important;
  justify-content: flex-end !important;
  max-width: 100%;
}
.site-header .hdrbtns button {
  font-size: 11px !important;
  padding: 6px 9px !important;
  min-height: 44px;
}
.home-stage .wrap-pad {
  max-width: none !important;
  padding-top: 0 !important;
}
.home-stage .site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
  border: 0;
}
.reading-home {
  margin: auto;
}
.intro-heading {
  background: #191919;
  color: #faf7f3;
  text-align: center;
  margin: 0 -22px;
  padding: 30px 22px 24px;
}
.intro-label {
  color: #cdb8aa;
  font-size: 10px;
  margin: 0 0 12px;
}
.intro-heading h1 {
  font: 700 34px/1.5 var(--reading-title);
  margin: 0;
}
.intro-description {
  font-size: 12px;
  line-height: 1.9;
  color: #c9bcc2;
  margin: 12px 0 0;
}
.intro-art {
  height: 235px;
  max-width: 520px;
  position: relative;
  margin: 24px auto 0;
}
.intro-art img {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 112px;
  height: 193px;
  object-fit: cover;
  border: 6px solid #e6ddc9;
  border-radius: 2px;
  box-shadow: 0 12px 25px #0005;
}
.intro-art img:first-child {
  transform: translateX(-133%) rotate(-14deg);
  top: 24px;
}
.intro-art img:nth-child(2) {
  transform: translateX(-50%);
  z-index: 2;
}
.intro-art img:last-child {
  transform: translateX(33%) rotate(14deg);
  top: 24px;
}
.art-caption {
  font-size: 10px;
  color: #cdb8aa;
  margin: 0;
}
.reading-menu {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 0 0;
}
.reading-menu h2 {
  font: 700 20px var(--reading-title);
  margin: 0 0 20px;
}
.reading-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.reading-tabs button {
  font: inherit;
  font-size: 12px;
  min-height: 48px;
  padding: 8px 2px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  cursor: pointer;
}
.reading-tabs button[aria-selected="true"] {
  color: var(--gold);
  font-weight: 700;
  border-bottom-color: var(--gold);
}
.reading-offer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 0 0;
}
.reading-offer h3 {
  font: 700 21px/1.6 var(--reading-title);
  margin: 0 0 10px;
}
.reading-offer p {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.9;
  min-height: 50px;
  margin: 0 0 12px;
}
.reading-price {
  font-size: 12px;
  color: var(--gold);
}
.reading-start {
  background: var(--action);
  color: var(--action-ink);
  padding: 16px 22px;
  border-radius: var(--radius-control);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 54px;
}
.intro-footnote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
}
.intro-footnote p {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.9;
  margin: 0;
}
.text-action {
  background: none;
  border: 0;
  color: var(--gold);
  padding: 10px 14px;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  text-align: left;
  min-height: 44px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.flow-heading {
  font: 700 26px/1.6 var(--reading-title);
  margin: 0 0 24px;
}
.birth-form {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.birth-form .btn {
  border-radius: var(--radius-control) !important;
}
.draw-surface .flow-heading {
  text-align: center;
  padding-right: 12px;
}
.draw-status > div:first-child {
  padding-right: 52px !important;
}
.draw-surface .slots {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
.card-deck {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 112px;
  grid-auto-columns: 44px;
  gap: 0;
  width: max-content !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 20px 30px 20px 8px;
}
.card-deck .fancard {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: auto !important;
  filter: none !important;
  min-width: 44px;
  width: 66px;
}
.deck-back {
  width: 66px;
  height: 112px;
  padding: 5px;
  background: #202e27;
  border: 1px solid #aa996e;
  border-radius: 3px;
  box-shadow: 0 3px 8px #0003;
}
.deck-back span {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 1px solid #aa996e;
  color: #efd8c0;
  font: 16px/2 var(--reading-title);
}
.fancard:focus-visible {
  outline: 2px solid #efd8c0;
  outline-offset: 4px;
}
.reading-report {
  max-width: 720px;
  margin: auto;
}
.report-eyebrow {
  font-size: 10px;
  color: var(--gold);
  margin: 0 0 16px;
}
.report-opening {
  font: 18px/1.9 var(--reading-title);
  margin: 0 0 28px;
}
.report-body {
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 24px 0 !important;
  max-width: none !important;
  background: none !important;
  line-height: 2;
}
.surface-light [data-scroll-lock],
.card-lightbox {
  --night: #191919;
  --panel: #242424;
  --panel2: #303030;
  --cream: #f1f0e9;
  --gold: #c7b582;
  --goldBright: #e7d5a1;
  --line: #454545;
  --dim: #bdbdb8;
  --jade: #a9c2b3;
}
@media (max-width: 360px) {
  .intro-art img {
    width: 96px;
    height: 166px;
  }
  .intro-art {
    height: 210px;
  }
  .reading-tabs button {
    font-size: 11px;
  }
  .reading-offer h3 {
    font-size: 19px;
  }
  .site-header .hdrbtns {
    flex-wrap: wrap;
  }
  .flow-heading {
    font-size: 23px;
  }
}
@media (min-width: 700px) {
  .wrap-pad {
    padding: 28px 30px 110px !important;
  }
  .home-stage .site-header {
    padding: 16px 0;
  }
  .intro-heading {
    margin: 0 -30px;
    padding: 38px 30px 30px;
  }
  .intro-heading h1 {
    font-size: 44px;
  }
  .intro-art {
    height: 280px;
  }
  .intro-art img {
    width: 142px;
    height: 244px;
  }
  .reading-menu {
    padding-top: 32px;
  }
  .reading-offer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .reading-offer > div {
    max-width: 580px;
  }
  .reading-offer p {
    min-height: 0;
  }
  .reading-start {
    min-width: 190px;
  }
  .intro-footnote {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .flow-heading {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 699px) {
  .intro-heading {
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .intro-heading h1 {
    font-size: 34px !important;
  }
  .intro-art {
    height: 212px;
    margin-top: 18px;
  }
  .intro-art img {
    width: 104px;
    height: 180px;
  }
  .reading-menu {
    padding-top: 22px;
  }
  .reading-menu h2 {
    margin-bottom: 14px;
  }
  .reading-offer {
    gap: 16px;
    padding-top: 20px;
  }
  .reading-offer p {
    min-height: 0;
  }
  .flow-heading {
    font-size: 26px !important;
  }
}
@media (max-width: 360px) {
  .intro-art img {
    width: 94px;
    height: 162px;
  }
  .intro-art {
    height: 195px;
  }
  .flow-heading {
    font-size: 23px !important;
  }
}
.intro-heading .combined-art {
  height: 258px;
  max-width: 560px;
  margin-top: 26px;
}
.saju-paper {
  position: absolute;
  left: calc(50% - 217px);
  top: 2px;
  width: 294px;
  padding: 18px 20px 14px;
  background: #f6f4ef;
  color: #302c2b;
  transform: rotate(-5deg);
  box-shadow: 0 10px 24px #0004;
  text-align: left;
}
.paper-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid #bcb3a7;
  font: 18px var(--reading-title);
}
.paper-seal {
  color: #8d3545;
  border: 1px solid #8d3545;
  padding: 1px 4px;
  font-size: 14px;
}
.paper-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 10px 0;
}
.paper-pillars > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #d6cfc6;
}
.paper-pillars > div:last-child {
  border: 0;
}
.paper-pillars small {
  font: 10px var(--serif);
  color: #68625e;
}
.paper-pillars strong {
  font: 400 30px/1.2 var(--reading-title);
}
.paper-pillars .stem-1 {
  color: #8b6551;
}
.paper-pillars .stem-2 {
  color: #446752;
}
.paper-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #bcb3a7;
  font-size: 9px;
  color: #68625e;
}
.combined-art .tarot-pair img {
  width: 112px;
  height: 193px;
  top: 46px;
  left: calc(50% + 80px);
  border-width: 5px;
  transform: rotate(8deg);
}
.combined-art .tarot-pair img:last-child {
  left: calc(50% + 150px);
  top: 62px;
  transform: rotate(18deg);
}
@media (max-width: 699px) {
  .intro-heading .combined-art {
    height: 212px;
    margin-top: 23px;
  }
  .saju-paper {
    left: calc(50% - 143px);
    width: 200px;
    padding: 13px 13px 10px;
    top: 0;
  }
  .paper-title {
    font-size: 15px;
    padding-bottom: 8px;
  }
  .paper-pillars {
    margin: 9px 0;
  }
  .paper-pillars strong {
    font-size: 25px;
  }
  .paper-pillars > div {
    gap: 5px;
  }
  .paper-footer {
    font-size: 8px;
    padding-top: 8px;
  }
  .combined-art .tarot-pair img {
    width: 80px;
    height: 138px;
    left: calc(50% + 46px);
    top: 56px;
    border-width: 4px;
  }
  .combined-art .tarot-pair img:last-child {
    left: calc(50% + 87px);
    top: 69px;
  }
}
/* The desktop experience keeps the same single-column reading rhythm. */
html, body { background: #111111; }
.reading-app { max-width: 600px; margin-inline: auto; }
.reading-app .wrap-pad { max-width: 600px !important; padding: calc(20px + var(--safe-top)) max(24px,var(--safe-right)) calc(110px + var(--safe-bottom)) max(24px,var(--safe-left)) !important; }
.home-stage .wrap-pad { padding-top: 0 !important; }
.home-stage .site-header { padding: 12px 0; }
.site-header .wordmark { font-size: 20px !important; }
.reading-home.fadeup { animation: none; }
.intro-heading { position: relative; isolation: isolate; margin: 0 -24px; padding: 0; height: min(560px, 66svh); min-height: 390px; overflow: hidden; background: #191919; }
.intro-heading .cinematic-table { position: absolute; inset: 0; height: 100%; width: 100%; max-width: none; margin: 0; }
.intro-heading .cinematic-table img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; border: 0; border-radius: 0; box-shadow: none; transform: none; animation: table-arrival 1.4s ease-out both; }
.intro-copy { position: relative; z-index: 3; padding: 24px 24px 0; text-align: center; }
.intro-heading .intro-copy h1 { color: #f4edda; font: 400 40px/1.3 var(--reading-title); margin: 0; letter-spacing: 0; }
.intro-copy .intro-description { font: 14px/1.8 var(--reading-title); color: #f1f0e9; margin: 12px 0 8px; }
.intro-copy .intro-label { color: #d7c8a2; font-size: 11px; margin: 0; }
.reading-menu { padding-top: 28px; }
.reading-menu h2 { font-weight: 400; font-size: 21px; margin-bottom: 16px; }
.reading-offer { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 24px; }
.reading-offer h3 { font-weight: 400; font-size: 22px; }
.reading-offer p { min-height: 0; font-size: 14px; }
.reading-start { width: 100%; border-radius: var(--radius-control); color: var(--action-ink); font-weight: 700; }
.reading-tabs button { font-size: 12px; min-height: 52px; }
.reading-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 12px; }
.theme-fields { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.theme-fields h2 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.theme-fields p { font-size: 14px; line-height: 1.8; }
.theme-field { display: grid; gap: 8px; min-width: 0; margin: 16px 0; font-size: 14px; }
.theme-field select,.theme-field input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--night); color: var(--cream); font: inherit; }
.theme-field select:disabled { opacity: .5; }
.theme-field select:focus-visible,.theme-field input:focus-visible { outline: 2px solid var(--goldBright); outline-offset: 3px; }
/* 테마(주거 등) 콤보박스: 기본 화살표가 테두리에 붙어 답답해 보여, 직접 그린 화살표를 안쪽으로 16px 띄운다(2026-11-20). */
.theme-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bdbdb8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; text-overflow: ellipsis; }
.theme-location { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.theme-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.theme-notice { border-left: 2px solid var(--jade); padding: 8px 0 8px 16px; font-size: 13px; line-height: 1.85; color: var(--dim); margin: 20px 0; }
.theme-fields small { color: var(--dim); font-size: 11px; line-height: 1.7; display: block; }
@media(max-width:480px) { .theme-location { grid-template-columns: 1fr; gap: 0; } .theme-options { grid-template-columns: 1fr; } .reading-tabs { gap: 4px; } }
.reading-tabs button[aria-selected="true"] { color: #e7d5a1; }
.intro-footnote { flex-direction: column; align-items: stretch; }
.reading-app .bottom-navigation { max-width: 600px; margin-inline: auto; }
.reading-app .scroll-top { right: max(16px, calc((100vw - 600px) / 2 + 16px)) !important; box-shadow: 0 4px 16px #0004 !important; }
.reading-app button { letter-spacing: 0 !important; }
.reading-app .btn { box-shadow: none; }
.reading-report { max-width: 100%; }
.flow-heading { font-weight: 400; }
@keyframes table-arrival { from { opacity: .6; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 360px) {
  .reading-app .wrap-pad { padding-left: max(20px,var(--safe-left)) !important; padding-right: max(20px,var(--safe-right)) !important; }
  .intro-heading { margin-inline: -20px; min-height: 370px; }
  .intro-heading .intro-copy h1 { font-size: 34px !important; }
  .intro-copy { padding-top: 20px; }
  .intro-copy .intro-description { font-size: 13px; }
  .reading-tabs button { font-size: 11px; }
}
@media (max-height: 650px) { .intro-heading { min-height: 300px; height: 64svh; } .intro-copy .intro-description { margin: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .intro-heading .cinematic-table img { animation: none; } }

/* Reading introduction artwork. */
.reading-app { overflow: clip !important; }
.ink-journey { height: auto; position: relative; margin-inline: -24px; }
.ink-stage { position: sticky; top: 0; height: min(740px, 88svh); min-height: 400px; isolation: isolate; overflow: hidden; background: #181818; }
.ink-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; will-change: transform; }
.ink-shade { position: absolute; inset: 0; background: #181818; z-index: -2; }
.ink-caption { text-align: center; padding: 30px 24px 0; position: relative; z-index: 2; }
.ink-caption h1 { font: 400 40px/1.35 var(--reading-title); margin: 0 0 12px; color: #eeeee7; letter-spacing: 0; }
.ink-caption h1.ink-brand-small { font-size: 16px; margin-bottom: 18px; color: #b1bfb5; }
.ink-caption h2 { font: 400 25px/1.5 var(--reading-title); margin: 0 0 12px; color: #eeeee7; }
.ink-caption p { font-size: 14px; line-height: 1.9; margin: 0 auto; color: #d4dbd4; max-width: 25em; word-break: keep-all; }
.ink-visuals { position: absolute; inset: 180px 28px 100px; }
.ink-scene { position: absolute; inset: 0; will-change: transform, opacity; pointer-events: none; }
.ink-chart, .ink-result { max-width: 360px; max-height: 430px; margin: auto; background: none; color: #eeeee7; padding: 28px 12px; text-align: center; }
.ink-paper-label { display: block; font: 15px var(--reading-title); color: #b7c4b8; padding-bottom: 18px; border-bottom: 1px solid #687469; }
.ink-pillars { display: grid; grid-template-columns: repeat(4,1fr); padding: 18px 0; }
.ink-pillars > div { display: flex; flex-direction: column; align-items: center; gap: 18px; border-right: 1px solid #687469; }
.ink-pillars > div:last-child { border-right: 0; }
.ink-pillars small { font: 12px var(--serif); color: #c0cbbf; }
.ink-pillars b { font: 400 42px/1.2 var(--reading-title); }
.ink-chart > p { margin: 8px 0; font: 14px/1.5 var(--reading-title); }
.ink-chart > small, .ink-result > small { font: 11px/1.8 var(--serif); color: #acb9ad; }
.ink-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 14px 18px; max-width: 340px; max-height: 400px; margin: auto; padding: 8px; }
.ink-cards img { width: 100%; height: 100%; object-fit: contain; opacity: var(--reveal, 1); transform: translateY(calc((1 - var(--reveal, 1)) * 40px)) rotate(var(--card-angle)); }
.ink-result { text-align: left; padding-inline: 24px; }
.ink-result h3 { font: 400 32px/1.6 var(--reading-title); margin: 22px 0 20px; }
.ink-result p { font: 13px/1.9 var(--serif); margin: 0; }
.ink-result-note { border-top: 1px solid #687469; margin-top: 22px; padding-top: 18px; font: 14px/1.8 var(--reading-title); }
.ink-result > small { display: block; margin-top: 16px; }
.ink-controls { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #181818f5; padding: 18px 24px; }
.ink-controls ol { display: flex; gap: 14px; padding: 0; margin: 0; list-style: none; font-size: 11px; color: #9ba99f; }
.ink-controls li[aria-current] { color: #f1f0e9; text-decoration: underline; text-underline-offset: 6px; }
.ink-controls button { display: inline-flex; align-items: center; gap: 10px; color: #f1f0e9; background: none; border: 1px solid #68756b; border-radius: 2px; padding: 10px 14px; min-height: 44px; font: 12px var(--serif); cursor: pointer; }
.ink-controls .ui-icon { transform: rotate(180deg); width: 16px; height: 16px; }
.ink-controls .ink-chapter-button { padding: 10px 0; border: 0; color: #adb9af; min-width: 36px; }
.ink-controls .ink-chapter-button[aria-current] { color: #f1f0e9; text-decoration: underline; text-underline-offset: 7px; }
.ink-progress { position: absolute; bottom: 0; height: 2px; width: 100%; background: #424c44; }
.ink-progress span { display: block; width: 100%; height: 100%; background: #bdcbbd; transform: scaleX(var(--journey)); transform-origin: left; }
#reading-menu-title { scroll-margin-top: 24px; }
@media(max-width:360px) {
  .ink-journey { margin-inline: -20px; }
  .ink-caption { padding: 24px 20px 0; }
  .ink-caption h2 { font-size: 22px; }
  .ink-visuals { inset: 170px 20px 90px; }
  .ink-chart, .ink-result { padding: 20px 16px; }
  .ink-controls { padding: 16px 20px; }
  .ink-controls ol { gap: 10px; }
}
@media(max-height:740px) {
  .ink-stage { min-height: 360px; }
  .ink-caption { padding-top: 20px; }
  .ink-caption h1 { font-size: 32px; }
  .ink-caption h1.ink-brand-small { margin-bottom: 8px; }
  .ink-caption h2 { font-size: 22px; margin-bottom: 6px; }
  .ink-visuals { top: 135px; bottom: 78px; }
  .ink-chart, .ink-result { padding: 12px 18px; }
  .ink-paper-label { padding-bottom: 8px; font-size: 12px; }
  .ink-pillars { padding: 8px 0; }
  .ink-pillars > div { gap: 6px; }
  .ink-pillars b { font-size: 25px; }
  .ink-result h3 { font-size: 23px; line-height: 1.4; margin: 10px 0; }
  .ink-result-note { margin-top: 8px; padding-top: 8px; font-size: 12px; }
  .ink-result > small { margin-top: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .ink-journey { height: auto; }
  .ink-stage { position: relative; height: min(560px,75svh); }
  .ink-scene, .ink-backdrop { will-change: auto; }
}

/* Installed-app safe areas and visible chrome determine the actual stage size. */
:root { --safe-top: env(safe-area-inset-top,0px); --safe-bottom: env(safe-area-inset-bottom,0px); --safe-left: env(safe-area-inset-left,0px); --safe-right: env(safe-area-inset-right,0px); }
.reading-app { --header-height: 68px; --bottom-height: 0px; }
/* Fixed overlays cannot inherit the page wrapper's safe-area spacing. */
.safe-overlay,.card-lightbox { box-sizing: border-box; padding: calc(16px + var(--safe-top)) max(16px,var(--safe-right)) calc(16px + var(--safe-bottom)) max(16px,var(--safe-left)) !important; }
.safe-overlay > div { box-sizing: border-box; max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (pointer: coarse) {
  .reading-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.reading-app textarea,.reading-app select { font-size: 16px !important; scroll-margin-block: 96px; }
}
.card-lightbox { overflow-y: auto; justify-content: safe center !important; }
.card-lightbox > * { flex-shrink: 0; }
.sample-report-shell { padding-top: var(--safe-top) !important; padding-bottom: calc(48px + var(--safe-bottom)) !important; }
.home-stage .site-header { position: sticky; top: 0; z-index: 50; max-width: none; margin-inline: -24px; padding: calc(10px + var(--safe-top)) 24px 10px; background: #191919; border-bottom: 1px solid #373737; }
.ink-stage { position: relative; top: 0; height: min(640px,calc(var(--view-height,100svh) - var(--header-height) - max(var(--bottom-height),var(--safe-bottom)) - 68px)); min-height: 340px; display: flex; flex-direction: column; container-type: size; touch-action: pan-y pinch-zoom; }
.ink-caption { flex: 0 0 auto; padding-bottom: 12px; }
.ink-visuals { position: relative; inset: auto; flex: 1 1 0; min-height: 0; margin: 8px 28px 18px; }
.ink-controls { position: relative; inset: auto; flex: 0 0 auto; }
.ink-chart,.ink-result { max-height: 100%; }
#reading-menu-title { scroll-margin-top: calc(var(--header-height) + 20px); }
@container(max-height:700px) {
  .ink-caption { padding: 16px 20px 8px; }
  .ink-caption h1.ink-brand-small { display: none; }
  .ink-caption h2 { font-size: 22px; margin-bottom: 8px; }
  .ink-caption p { font-size: 12px; }
  .ink-visuals { margin: 8px 24px 12px; }
  .ink-chart,.ink-result { padding: 8px 12px; }
  .ink-paper-label { padding-bottom: 8px; font-size: 12px; }
  .ink-pillars { padding: 10px 0; }
  .ink-pillars > div { gap: 8px; }
  .ink-pillars b { font-size: 28px; }
  .ink-result h3 { font-size: 25px; line-height: 1.4; margin: 12px 0; }
  .ink-result-note { margin-top: 12px; padding-top: 10px; font-size: 12px; }
  .ink-result > small { margin-top: 10px; }
  .ink-controls { padding: 12px 20px; }
}
@container(max-height:440px) {
  .ink-caption { padding-top: 10px; }
  .ink-caption h2 { font-size: 20px; margin-bottom: 4px; }
  .ink-visuals { margin-block: 4px; }
  .ink-paper-label { display: none; }
  .ink-result h3 { font-size: 21px; margin: 4px 0 8px; }
  .ink-result p,.ink-result-note { font-size: 11px; line-height: 1.65; }
  .ink-result > small { font-size: 9px; margin-top: 6px; }
  .ink-pillars { padding: 4px 0; }
  .ink-pillars > div { gap: 4px; }
  .ink-pillars b { font-size: 23px; }
  .ink-chart > p { font-size: 12px; margin: 4px 0; }
}
@media(max-width:360px) { .home-stage .site-header { margin-inline: -20px; padding-inline: 20px; } }
@media(prefers-reduced-motion:reduce) { .ink-stage { position: relative; top: 0; } }
.ink-scene { opacity: 0 !important; visibility: hidden; transform: translateX(12px); transition: opacity .25s ease, transform .25s ease; }
.ink-journey[data-chapter="0"] .ink-opening,
.ink-journey[data-chapter="1"] .ink-chart,
.ink-journey[data-chapter="2"] .ink-cards,
.ink-journey[data-chapter="3"] .ink-result,
.ink-journey[data-chapter="4"] .ink-property,
.ink-journey[data-chapter="5"] .ink-company { opacity: 1 !important; visibility: visible; transform: none; }
.ink-theme { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: #ece9df; }
.theme-fields { color: #ece9df; }
.ink-theme img { width: 72px; height: 124px; object-fit: cover; border-radius: 4px; }
.ink-theme h3 { font-size: 20px; line-height: 1.5; margin: 0; }
.ink-theme p { font-size: 12px; line-height: 1.7; color: #c8c8c2; margin: 0; }
@container(max-height:520px) { .ink-theme img { width: 42px; height: 72px; } .ink-theme { gap: 6px; } .ink-theme h3 { font-size: 16px; } }
.ink-shade { transition: opacity .25s ease; }
.ink-pagination { display: flex; align-items: center; gap: 6px; }
.ink-pagination span { min-width: 52px; text-align: center; color: #c8c8c2; font-size: 11px; font-variant-numeric: tabular-nums; }
.ink-side-nav { position: absolute; inset: 0 4px 68px; display: flex; align-items: center; justify-content: space-between; z-index: 3; pointer-events: none; }
.ink-side-nav button { display: inline-flex; align-items: center; width: 44px; height: 44px; justify-content: center; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #191919d9; color: #f1f0e9; cursor: pointer; pointer-events: auto; }
.ink-side-nav button:hover:not(:disabled) { background: #353535; border-color: #ffffff80; }
.ink-side-nav button:disabled { opacity: .25; cursor: default; }
.ink-side-nav .ui-icon { width: 20px; height: 20px; }
.ink-side-nav .ink-prev .ui-icon { transform: rotate(-90deg); }
.ink-side-nav .ink-next .ui-icon { transform: rotate(90deg); }
.ink-visuals { margin-inline: 50px; }
.ink-introduction { margin: 18px auto 0; }
/* Keep contrast over the white paper regardless of the image crop. */
.ink-journey[data-chapter="0"] .ink-caption { isolation: isolate; }
.ink-journey[data-chapter="0"] .ink-caption::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, #191919e6 0, #191919e6 calc(100% - 40px), #19191900 100%);
}
.ink-introduction h2 { font-size: 26px; line-height: 1.4; margin-bottom: 10px; }
.ink-introduction p { color: #e0e0d9; font-size: 13px; line-height: 1.9; }
.ink-intro-steps { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; color: #d8c798; font-size: 11px; }
@container(max-height:520px) {
  .ink-introduction { margin-top: 14px; }
  .ink-introduction h2 { font-size: 22px; margin-bottom: 8px; }
  .ink-introduction p { font-size: 12px; line-height: 1.7; }
  .ink-intro-steps { margin-top: 12px; }
}
.ink-controls > button { white-space: nowrap; padding-inline: 10px; gap: 6px; }
.ink-pagination { gap: 0; }
@media(prefers-reduced-motion:reduce) { .ink-scene,.ink-shade { transition: none; } }

/* ── 메인 장면 캡션: 글자들이 순서대로 떠오르는 연출(장면 전환 시 재생) ── */
.ink-caption > * { animation: none; }
.ink-caption > *:nth-child(2) { animation-delay: .22s; }
.ink-caption > *:nth-child(3) { animation-delay: .44s; }
.ink-caption > *:nth-child(4) { animation-delay: .66s; }
.ink-introduction > * { animation: none; }
.ink-introduction > *:nth-child(2) { animation-delay: .2s; }
.ink-introduction > *:nth-child(3) { animation-delay: .4s; }
@keyframes ink-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reading-menu-note{font-size:14px;line-height:1.8;color:var(--dim);margin:0 0 24px}
.sample-preview{display:grid;grid-template-columns:108px minmax(0,1fr);gap:24px;align-items:center;margin:24px 0 0;padding:24px 0;border-block:1px solid var(--line);color:var(--cream);text-decoration:none;transition:border-color .2s}
.sample-preview:hover{border-color:var(--gold)}.sample-preview:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.sample-preview-cards{position:relative;height:126px;display:block}.sample-preview-cards img{position:absolute;width:64px;height:108px;object-fit:cover;top:10px;border:1px solid #b6a67e;border-radius:3px;box-shadow:0 6px 14px #0006}
.sample-preview-cards img:nth-child(1){left:0;transform:rotate(-12deg)}.sample-preview-cards img:nth-child(2){left:22px;top:0;z-index:1}.sample-preview-cards img:nth-child(3){left:43px;transform:rotate(12deg)}
.sample-preview-copy{display:grid;gap:8px;text-align:left;min-width:0}.sample-preview-copy small{font-size:11px;color:var(--jade)}.sample-preview-copy strong{font:400 22px/1.6 var(--reading-title);color:var(--cream)}.sample-preview-copy>span{font-size:12px;line-height:1.8;color:var(--dim)}.sample-preview-copy b{font-size:13px;color:var(--goldBright);margin-top:4px}
.sample-report-shell{max-width:600px;margin:auto;padding:0 20px 48px;background:var(--night);color:var(--cream);font-family:var(--serif);min-height:100vh}
.sample-report-shell .site-header .header-records{display:inline-flex;align-items:center;justify-content:center}
.sample-report-nav{display:flex;justify-content:space-between;align-items:center;padding:24px 0;border-bottom:1px solid var(--line)}.sample-report-nav a{color:var(--cream);font-size:14px}
.sample-disclosure{font-size:12px;line-height:1.8;color:var(--dim);border-left:2px solid var(--jade);padding-left:12px;margin:24px 0 32px}
.sample-report-end{display:flex;flex-direction:column;align-items:center;gap:12px;margin:40px 0 32px;padding-top:28px;border-top:1px solid var(--line);text-align:center}
.sample-report-end a{text-decoration:none;letter-spacing:0}
.sample-start{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:60px;padding:16px 20px;border:1px solid #b5a171;border-radius:var(--radius-control);background:#292820;color:#eee0b7;font-size:16px;font-weight:600;line-height:1.6;transition:background .18s,border-color .18s}
.sample-start:hover{background:#343126;border-color:#e7d5a1}.sample-start .ui-icon{transform:rotate(90deg);width:20px;height:20px}
.sample-method{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:var(--radius-control);color:#cfcec7;font-size:13px;line-height:1.6}.sample-method .ui-icon{width:17px;height:17px}.sample-method:hover{background:#262626;color:#f1f0e9}
.sample-report-end p{margin:0;font-size:12px;color:var(--dim);line-height:1.9}
.reading-app .method-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-control);background:transparent;color:var(--dim);text-decoration:none;font-size:13px;line-height:1.6}
.method-action svg{width:18px;height:18px;flex-shrink:0}.method-action:hover{border-color:#dbc58e}.method-action:focus-visible,.sample-report-nav a:focus-visible{outline:2px solid #dbc58e;outline-offset:3px}
.sample-report-nav{flex-wrap:wrap;gap:12px}.sample-report-nav a{text-decoration:none}.sample-report-nav .sample-brand{font-weight:700;font-size:20px}.sample-report-nav nav{display:flex;flex-wrap:wrap;gap:8px}.sample-report-nav nav a{display:inline-flex;align-items:center;justify-content:center;border:1px solid #686d65;border-radius:6px;padding:9px 12px;min-height:44px;font-size:12px;background:#262b28;color:#f1f0e9}
.site-header .header-topup{color:#e7d5a1!important;border-color:#b6a67e!important}
.sample-report-nav nav a[href*="entry=shop"]{order:-1;background:rgba(200,162,74,.08);color:#e7d5a1;border-color:#454545;gap:7px}
.sample-report-nav nav a[href*="entry=shop"]:before{content:"";display:block;width:28px;height:28px;background:url('/assets/prophecy-orb.webp') center/contain no-repeat}
.sample-report-nav nav a[href*="entry=shop"]:after{content:"+";font-size:13px}
.sample-report-nav nav a[href*="entry=login"]{background:transparent;border-color:#dbc58e;color:#e7d5a1}
.reading-report .reading-question{margin:24px 0 28px;padding:20px 0 22px;border-top:1px solid #b8a571;border-bottom:1px solid #595448;text-align:left}
.reading-report .reading-question h2{margin:0 0 12px;font-size:12px;font-weight:700;color:#dbc58e;line-height:1.5;letter-spacing:0}
.reading-report .reading-question p{margin:0;color:#faf8f0;font-family:var(--serif);font-size:22px;font-weight:700;line-height:1.75;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
@media(max-width:480px){.reading-report .reading-question p{font-size:19px}.reading-report .reading-question{margin:20px 0 24px;padding:18px 0}}
@media(max-width:360px){.sample-preview{grid-template-columns:82px minmax(0,1fr);gap:16px;padding:20px 0}.sample-preview-cards img{width:50px;height:86px}.sample-preview-cards img:nth-child(2){left:15px}.sample-preview-cards img:nth-child(3){left:30px}.sample-preview-copy strong{font-size:20px}.sample-report-shell{padding-left:14px;padding-right:14px}}
@media (prefers-reduced-motion: reduce) {
  .ink-caption > *, .ink-introduction > * { animation: none; }
}

/* ── 버튼 괘선·도장 체계 (2026-10-03) — '금테 라운드 필 나열'이라는 생성형 기본값 제거.
   원칙: 모서리 2px(문서 디자인 .tag 와 동일 결), 평시 테두리는 괘선(--line),
   금색은 주행동(PB)과 hover 위계 전용. 헤더는 칩 나열 대신 타이포 버튼. ── */
.reading-app .btn { border-radius: var(--radius-control); }
.reading-app .btn:hover:not(:disabled) { filter: brightness(1.12); }

/* 헤더: 로그인·내 기록·로그아웃 → 밑줄형 텍스트 버튼(.document-home 과 같은 문법) */
.site-header .hdrbtns .header-login,
.site-header .hdrbtns .header-records,
.site-header .hdrbtns .header-logout {
  background: none !important;
  border: none !important;
  color: var(--dim) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em;
  text-underline-offset: 5px;
  padding: 6px 8px !important;
}
.site-header .hdrbtns .header-login:hover,
.site-header .hdrbtns .header-records:hover,
.site-header .hdrbtns .header-logout:hover {
  color: var(--goldBright) !important;
  text-decoration: underline;
  filter: none;
}
/* 구슬 잔액 칩은 기존 인라인 디자인(금테+은은한 금 배경) 유지 — 사용자 선호(2026-10-03) */

/* ── 버튼 체계 v2 (2026-11-09) — 화면마다 흩어져 있던 인라인 스타일(둥근 r8~14 필·개별 색)을 변형 클래스로 통일.
   기본(.btn)은 괘선 1px·모서리 2px·투명 바탕. 금색 채움은 주행동(.btn-primary) 한 종류뿐이다.
   특수 버튼(.reading-start·.orb-plan·헤더·.sound-toggle)은 자기 규칙을 유지한다(아래 재선언). ── */
.reading-app .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; color: var(--cream);
  font: 400 14px/1.4 var(--serif); letter-spacing: 0.02em; text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.reading-app .btn:hover:not(:disabled) { border-color: var(--gold); filter: none; }
.reading-app .btn:disabled { opacity: .45; cursor: not-allowed; }
.reading-app .btn-primary { background: var(--action); border-color: var(--action); color: var(--action-ink); font-weight: 600; font-size: 15px; padding: 13px 28px; }
.reading-app .btn-primary:hover:not(:disabled) { background: #e7d5a1; border-color: #e7d5a1; }
.reading-app .btn-primary:active:not(:disabled) { background: #c7b582; border-color: #c7b582; }
.reading-app .btn-quiet { color: var(--dim); }
.reading-app .btn-quiet:hover:not(:disabled) { color: var(--cream); }
.reading-app .btn-gold { color: var(--goldBright); border-color: var(--gold); background: rgba(200,162,74,.08); }
.reading-app .btn-danger { color: #e08a8a; border-color: var(--oxblood); }
.reading-app .btn-danger:hover:not(:disabled) { border-color: #e08a8a; }
.reading-app .btn-danger-solid { background: var(--oxblood); border-color: var(--oxblood); color: #fff; font-weight: 600; }
.reading-app .btn-danger-solid:hover:not(:disabled) { border-color: #e08a8a; }
.reading-app .btn-sm { min-height: 36px; padding: 7px 14px; font-size: 12.5px; }
.reading-app .btn-block { width: 100%; }
.reading-app .btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; }
.reading-app .btn-dashed { border-style: dashed; color: var(--goldBright); font-weight: 600; padding: 13px 14px; }
.reading-app .btn-link { border: 0; background: none; color: var(--dim); text-decoration: underline; text-underline-offset: 5px; padding: 6px 8px; min-height: 36px; }
.reading-app .btn-link:hover:not(:disabled) { color: var(--goldBright); }
/* 선택형(성별·양음력·목적·기간·관계·사람) — 눌린 상태는 aria-pressed 로만 표현 */
.reading-app .btn-choice { background: var(--night); }
.reading-app .btn-choice[aria-pressed="true"] { background: rgba(200,162,74,.14); border-color: var(--gold); color: var(--goldBright); }
/* 특수 버튼 재선언: 기본 .btn 이 (0,2,0) 특이도로 바탕·여백을 덮어쓰므로 같은 특이도 이상으로 되돌린다 */
.reading-app .btn.reading-start { background: var(--action); border-color: var(--action); color: var(--action-ink); font-weight: 700; font-size: 14px; padding: 16px 22px; min-height: 54px; justify-content: space-between; gap: 25px; width: 100%; }
.reading-app .btn.reading-start:hover:not(:disabled) { background: #e7d5a1; border-color: #e7d5a1; }
.reading-app .btn.reading-start:active { background: #c7b582; border-color: #c7b582; }
.reading-app .btn.sound-toggle { color: var(--dim); }

/* 내 기록 행 — 버튼 체계(.btn, inline-flex 가로 정렬)를 쓰면 날짜·질문이 옆으로 붙고
   한 줄 말줄임 질문이 박스를 밀어낸다(2026-11-09 회귀). 카드형 링크는 블록 레이아웃을 쓴다. */
/* 줄마다 상자는 바깥 하나뿐이다. 안쪽 누르는 영역에는 테두리·여백을 두지 않는다(2026-11-11). */
.reading-app .rec-open { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--cream); text-align: left; cursor: pointer; }
.reading-app .rec-open:hover > div:last-child, .reading-app .rec-open:focus-visible > div:last-child { color: var(--goldBright); }
.reading-app .rec-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── v3 구조 개편 (2026-11-10): 상단 바 · 전체 메뉴 · 하단 5칸 · 홈 · 리딩 목록/상세 · 내 명식 ──
   색·서체·모서리는 기존 토큰을 그대로 쓴다. 새 색을 만들지 않는다. */
.reading-app .wrap-pad { padding-top: 0 !important; }
.reading-app .site-header.app-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 2px; max-width: none; min-height: 0; margin: 0 -24px 24px; padding: calc(8px + var(--safe-top)) 24px 8px 14px; background: #191919; border: 0; border-bottom: 1px solid #373737; }
.reading-app.home-stage .site-header.app-bar { margin-bottom: 0; border-bottom-color: transparent; }
.app-bar-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer; }
.app-bar .hdrbtns { display: flex; margin-left: auto; }
.reading-app .app-bar .hdrbtns button { font-size: 13px !important; padding: 6px 12px !important; }
.app-bar .orb-balance { display: inline-flex; align-items: center; gap: 6px; color: var(--goldBright); }
.app-bar .orb-balance b { font-size: 14px; font-variant-numeric: tabular-nums; }
#reading-menu-title { scroll-margin-top: 76px; }

.reading-app .bottom-navigation { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; background: #191919; border-top: 1px solid #373737; padding: 6px var(--safe-right) calc(6px + var(--safe-bottom)) var(--safe-left); }
.reading-app .bottom-navigation button { min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px !important; padding: 4px 0; border: 0; background: none; color: var(--dim); font: 11.5px var(--serif); cursor: pointer; }
.reading-app .bottom-navigation button[aria-current="page"] { color: var(--goldBright); }
.reading-app .bottom-navigation button[aria-current="page"]::before { top: -6px; }
.bottom-navigation .nav-center-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-top: -24px; border: 1px solid var(--gold); border-radius: 50%; background: #191919; color: var(--goldBright); }
.reading-app .bottom-navigation .nav-center[aria-current="page"]::before { display: none; }
.bottom-navigation .nav-center[aria-current="page"] .nav-center-mark { background: var(--action); border-color: var(--action); color: var(--action-ink); }

.menu-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); }
.site-menu { position: absolute; top: 0; bottom: 0; left: max(0px, calc((100vw - 600px) / 2)); width: min(86vw, 360px); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: calc(8px + var(--safe-top)) 0 calc(24px + var(--safe-bottom)); background: #191919; border-right: 1px solid #373737; color: var(--cream); font-family: var(--serif); }
.site-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 8px 22px; }
.site-menu-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 20px var(--reading-title); }
.site-menu-account { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 22px; padding: 16px 0; border-block: 1px solid #373737; }
.site-menu-account p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.site-menu-account b { margin: 0 2px; font-size: 18px; color: var(--goldBright); font-variant-numeric: tabular-nums; }
.reading-app .site-menu-account .btn { flex: none; min-height: 44px; }
.site-menu nav h2 { margin: 24px 22px 4px; font: 400 12px var(--serif); color: var(--gold); }
.site-menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; box-sizing: border-box; padding: 11px 22px; border: 0; background: none; color: var(--cream); font: 15px var(--serif); text-align: left; text-decoration: none; cursor: pointer; }
.menu-row small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.menu-row:hover, .menu-row:focus-visible { background: #242424; }
.menu-row:focus-visible { outline-offset: -2px; }
.site-menu-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 22px 0; padding-top: 16px; border-top: 1px solid #373737; }

.topic-tabs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; border-bottom: 1px solid #373737; }
.topic-tabs::-webkit-scrollbar { display: none; }
.topic-tabs button { flex: none; min-width: 44px; min-height: 46px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--dim); font: 14px var(--serif); white-space: nowrap; cursor: pointer; }
.topic-tabs button[aria-pressed="true"] { color: var(--cream); border-bottom-color: var(--gold); font-weight: 700; }
.catalog3 .topic-tabs { margin-top: 18px; }

.hero3 { position: relative; isolation: isolate; margin: 0 -24px; padding: 40px 24px 30px; overflow: hidden; }
.hero3-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .42; }
.hero3::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(25, 25, 25, .25) 0, #191919 82%); }
.hero3-copy h1 { margin: 0 0 26px; font: 400 30px/1.45 var(--reading-title); color: #f4edda; }
.birth-quick { padding: 20px; background: #1d1d1d; border: 1px solid #454545; border-radius: var(--radius-card); }
.birth-quick h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 16px; font: 400 18px var(--reading-title); color: var(--cream); }
.birth-quick h2 small { font: 12px var(--serif); color: var(--gold); white-space: nowrap; }
.bq-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: end; }
.bq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: var(--dim); }
.reading-app .bq-field input, .reading-app .bq-field select { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 12px; border: 1px solid #454545; border-radius: var(--radius-control); background: #191919; color: var(--cream); font-size: 16px; }
.bq-field select:disabled { opacity: .45; }
.bq-gender { display: flex; gap: 8px; }
.reading-app .bq-gender .btn { min-width: 50px; min-height: 46px; padding: 0 12px; }
.bq-notime { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid #454545; border-radius: var(--radius-control); color: var(--cream); font-size: 14px; cursor: pointer; }
.bq-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.65; color: var(--dim); }
.bq-error { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #e0a3a3; }

.how3 { padding: 28px 0 4px; }
.home3 .how3 ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home3 .how3 li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 16px 14px; border-bottom: 1px solid #373737; border-left: 1px solid #373737; }
.home3 .how3 li:first-child { padding-left: 0; border-left: 0; }
.home3 .how3 li > span { padding-top: 0; }
.how3 h2, .chart3 h2, .detail3 h2 { margin: 0 0 14px; font: 400 21px var(--reading-title); color: var(--cream); }
.how3 ol, .numbered { list-style: none; margin: 0; padding: 0; border-top: 1px solid #373737; }
.how3 li, .numbered li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #373737; }
.how3 li > span, .numbered li > span { padding-top: 3px; font: 13px var(--reading-title); color: var(--gold); }
.how3 strong { display: block; font: 400 16px var(--reading-title); color: var(--cream); }
.numbered li p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--cream); overflow-wrap: anywhere; }

.reading-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid #373737; }
.reading-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid #373737; background: none; color: var(--cream); font-family: var(--serif); text-align: left; cursor: pointer; }
.reading-row img { width: 52px; height: 90px; object-fit: cover; border-radius: var(--radius-thumb); background: #242424; }
.reading-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reading-row-body small { font-size: 11.5px; color: var(--gold); }
.reading-row-body strong { font: 400 19px var(--reading-title); }
.reading-row-body > span { font-size: 13.5px; line-height: 1.6; color: var(--dim); overflow-wrap: anywhere; }
.reading-row-price { align-self: start; padding-top: 2px; font-size: 12.5px; color: var(--goldBright); white-space: nowrap; }
.reading-row:hover strong, .reading-row:focus-visible strong { color: var(--goldBright); }
.home3 .reading-menu .btn-link { margin-top: 10px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--dim); font: 14px var(--serif); cursor: pointer; }
.back-link .ui-icon { width: 16px; height: 16px; transform: rotate(180deg); }
.detail3-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; padding: 10px 0 24px; border-bottom: 1px solid #373737; }
.detail3-head img { width: 96px; height: 166px; object-fit: cover; border-radius: var(--radius-thumb); background: #242424; }
.detail3-head small { font-size: 12px; color: var(--gold); }
.detail3-head h1 { margin: 6px 0 10px; font: 400 28px/1.35 var(--reading-title); color: #f4edda; }
.detail3-lede { margin: 0; font: 15px/1.75 var(--reading-title); color: var(--cream); }
.detail3-desc { margin: 22px 0 20px; font-size: 15px; line-height: 1.85; color: var(--cream); }
.detail3 .numbered { margin-bottom: 32px; }
.detail3-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 14px; }
/* 하단 메뉴 높이 65px. 가운데 동그라미가 메뉴 위로 11px 올라오므로 버튼 아래를 24px 비워 간격을 둔다. */
.detail3-cta { position: sticky; bottom: calc(65px + var(--safe-bottom)); margin: 28px -24px 0; padding: 12px 24px 24px; background: #191919; border-top: 1px solid #373737; }
.detail3-price { margin: 0 0 34px; padding: 16px 0; border-block: 1px solid #373737; }
.detail3-price p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); }

.chart3-lede { margin: 6px 0 20px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.chart-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 34px; border-top: 1px solid #373737; }
.chart-facts dt, .chart-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #373737; font-size: 14.5px; line-height: 1.6; }
.chart-facts dt { padding-right: 24px; color: var(--dim); white-space: nowrap; }

@media (max-width: 360px) {
  .reading-app .site-header.app-bar { margin-inline: -20px; padding-right: 20px; padding-left: 10px; }
  .topic-tabs, .hero3 { margin-inline: -20px; padding-inline: 20px; }
  .detail3-cta { margin-inline: -20px; padding-inline: 20px; }
  .hero3-copy h1 { font-size: 27px; }
  .birth-quick { padding: 18px 16px; }
  .bq-grid { gap: 14px 8px; }
  .reading-app .bq-field input, .reading-app .bq-field select { padding: 0 10px; }
  .reading-app .bq-gender .btn { min-width: 44px; padding: 0 8px; }
  .bq-notime { padding: 0 10px; }
  .reading-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .reading-row img { width: 44px; height: 76px; }
}

/* 로그인: 카카오 가입 구슬 1개 강조 (2026-11-10) */
.kakao-offer { position: relative; max-width: 320px; margin: 30px auto 0; }
.reading-app .kakao-offer .btn { box-shadow: 0 0 0 2px #191919, 0 0 0 4px var(--gold); }
.kakao-offer-badge { position: absolute; z-index: 1; top: -16px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 6px; border: 2px solid #191919; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: 13px; font-weight: 700; line-height: 1.5; }

/* 예시 리딩 페이지: 전체 메뉴 없이 로고와 로그인·구슬만 둔다. 바깥 여백(20px)과 안전영역은 이 화면 기준으로 맞춘다. */
.reading-app.sample-report-shell .site-header.app-bar { margin: 0 -20px 24px; padding: 8px 20px; }

/* 클래스 없는 본문 링크: 기본 파란색은 먹색 바탕에서 대비가 낮다. :where 로 우선순위를 낮춰 기존 규칙을 덮지 않는다. */
.reading-app :where(a:not([class])) { color: var(--goldBright); }

/* ── v3 흐름 화면: 입력 · 카드 고르기 · 리딩 (2026-11-10) ── */
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 26px; padding: 0; }
.flow-steps li { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 2px solid #373737; color: var(--dim); }
.flow-steps li span { font: 12px var(--reading-title); }
.flow-steps li strong { font: 400 13.5px var(--serif); }
.flow-steps li[data-done] { border-top-color: var(--gold); }
.flow-steps li[aria-current="step"] { border-top-color: var(--goldBright); color: var(--cream); }
.flow-steps li[aria-current="step"] span { color: var(--goldBright); }
.flow-steps li[aria-current="step"] strong { font-weight: 700; }
.field-label { margin: 22px 0 8px; font-size: 13px; color: var(--gold); }
.flow-cta { position: sticky; bottom: calc(65px + var(--safe-bottom)); z-index: 5; margin: 28px -24px 0; padding: 12px 24px 24px; background: #191919; border-top: 1px solid #373737; }

.reading-app .draw-surface .flow-heading { padding-right: 52px; text-align: left; }
.draw-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }
.reading-app .draw-surface .slots3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; justify-items: center; padding: 20px 0 !important; }
.slot3 { min-width: 0; text-align: center; }
.slot3 small { display: block; margin-bottom: 6px; font: 12px var(--reading-title); color: var(--gold); }
.slot3-empty { border: 1.5px dashed #454545; border-radius: 10px; }
.slot3 b { display: block; margin-top: 8px; font-size: 14px; color: var(--goldBright); }
.slot3 em { font-style: normal; font-size: 11px; color: var(--dim); }

.reading-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; justify-items: center; padding: 14px 0 22px; }
.reading-cards > div { min-width: 0; text-align: center; }
.reading-cards small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--goldBright); }
.reading-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.reading-app .reading-actions .btn { justify-content: center; min-height: 50px; }
.rd-body { font-size: 15.5px; line-height: 1.95; }
.rd-body p { margin: 6px 0 0; color: var(--cream); }
.rd-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid #373737; }
.rd-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rd-title { margin: 0; font: 400 22px/1.4 var(--reading-title); color: #f4edda; }
.rd-body .rd-lead { margin: 12px 0 4px; font: 400 17px/1.7 var(--reading-title); color: var(--goldBright); }
.rd-sub { margin: 18px 0 0; font-size: 16.5px; font-weight: 700; color: var(--goldBright); }
.rd-sub-small { margin: 14px 0 2px; font-size: 15.5px; }
@media (max-width: 360px) {
  .flow-cta { margin-inline: -20px; padding-inline: 20px; }
}

/* 겹침·간격 점검 반영 (2026-11-10) */
.reading-app .scroll-top-inline { justify-content: center; gap: 8px; margin-top: 12px; min-height: 48px; }
.scroll-top-inline .ui-icon { width: 16px; height: 16px; }
.reading-app .birth-form .btn-choice { padding-inline: 8px; white-space: nowrap; }
.reading-app .birth-form .btn[aria-label="윤달이란?"] { width: 40px !important; height: 40px !important; min-height: 40px; flex: none; }
.catalog3 .reading-rows { margin-top: 10px; border-top: 0; }

/* ── 카드 고르기 테이블: 전체 화면 · CSS 3D (2026-11-10) ──
   원근은 .card-table-stage, 기울기는 .card-table-plane 이 맡는다. 가로 넘김은 바깥 .card-table-scroll 이 한다
   (overflow 가 걸린 요소는 3D 를 평평하게 만들기 때문에 분리한다). */
.card-table { position: fixed; top: 0; bottom: 0; left: max(0px, calc((100vw - 600px) / 2)); right: max(0px, calc((100vw - 600px) / 2)); z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; padding-top: var(--safe-top); background: #0d0d0d; color: var(--cream); font-family: var(--serif); --th: clamp(74px, 12.5vh, 98px); --tw: calc(var(--th) * .6); }
.card-table-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.card-table-title { flex: 1; min-width: 0; padding: 0 8px; text-align: center; }
/* 좁은 화면용 전역 h1 크기(!important)보다 우선해야 한 줄에 들어간다 */
.reading-app .card-table-title h1 { margin: 0; font: 400 18px/1.4 var(--reading-title); font-size: 18px !important; color: var(--cream); }
.card-table-title p { margin: 2px 0 0; font-size: 12px; color: var(--dim); }
.card-table-scroll { display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.card-table-scroll::-webkit-scrollbar { display: none; }
.card-table-stage { flex: none; padding: 0 28px; perspective: 900px; perspective-origin: 50% 30%; }
.card-table-plane { display: grid; grid-template-columns: repeat(var(--cols), var(--tw)); grid-auto-rows: var(--th); gap: 14px 12px; padding: 30px 30px 36px; border-radius: 20px; transform: rotateX(40deg); transform-style: preserve-3d; background: linear-gradient(rgba(16, 16, 16, .55), rgba(16, 16, 16, .78)), url("/assets/reading-table-v4.webp") 50% 0 / 180% auto, #151515; box-shadow: 0 50px 70px rgba(0, 0, 0, .7), inset 0 0 0 1px #2c2c2c; }
.tcard { width: var(--tw); height: var(--th); padding: 0; border: 0; background: none; cursor: pointer; transform: rotateZ(var(--tilt)) translateZ(1px); transition: transform .22s ease, opacity .32s ease; -webkit-tap-highlight-color: transparent; }
.tcard .deck-back { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 6px; outline-offset: -5px; box-shadow: 0 8px 12px rgba(0, 0, 0, .6); }
.tcard .deck-back span { border-radius: 4px; font-size: 11px; line-height: 1.7; }
.tcard:hover:not(:disabled), .tcard:focus-visible { transform: rotateZ(0deg) translateZ(28px) translateY(-6px); }
.tcard:active:not(:disabled) { transform: rotateZ(0deg) translateZ(44px) translateY(-10px); }
.tcard:focus-visible { outline: 2px solid #efd8c0; outline-offset: 3px; }
/* 고른 카드는 테이블에서 바로 사라지고, 같은 자리에서 출발한 복사본(.tcard-fly)이 번호 칸으로 날아간다 */
.tcard[data-picked] { opacity: 0; pointer-events: none; transition: none; }
.tcard-fly { position: fixed; z-index: 3; pointer-events: none; transform-origin: 0 0; animation: card-fly .55s cubic-bezier(.3, .7, .2, 1) forwards; }
.tcard-fly .deck-back { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 6px; outline-offset: -5px; box-shadow: 0 14px 24px rgba(0, 0, 0, .6); }
.tcard-fly .deck-back span { border-radius: 4px; font-size: 11px; line-height: 1.7; }
@keyframes card-fly {
  0% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .25 - 40px)) scale(1.14) rotate(-4deg); }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--sx), var(--sy)) rotate(0deg); }
}
.tcard:disabled:not([data-picked]) { opacity: .4; cursor: default; }
.card-table-hint { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 8px 12px 10px; }
.card-table-hint p { margin: 0; text-align: center; font-size: 12px; color: var(--dim); }
.card-table-prev .ui-icon { transform: rotate(180deg); }
.card-table-hint button { border: 1px solid #454545; border-radius: 50%; }
.card-table-hint button:disabled { opacity: .3; cursor: default; }
/* 마우스로 끌어서 넘길 수 있다는 표시. 끄는 동안에는 카드가 들리지 않게 한다. */
@media (hover: hover) and (pointer: fine) { .card-table-scroll { cursor: grab; } .card-table-scroll.is-dragging { cursor: grabbing; } }
.card-table-scroll.is-dragging .tcard { pointer-events: none; }
.card-table-tray { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; padding: 16px 20px calc(18px + var(--safe-bottom)); background: #191919; border-top: 1px solid #373737; }
.card-table-tray ol { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.card-table-tray li { display: flex; align-items: center; justify-content: center; justify-self: center; width: 100%; max-width: 46px; aspect-ratio: 3 / 5; border: 1.5px dashed #454545; border-radius: 6px; color: #77776f; font: 13px var(--reading-title); transition: background .25s, border-color .25s, color .25s; }
.card-table-tray li[data-on] { border: 1px solid #aa996e; background: #202e27; color: #efd8c0; }
.card-table-count { font-size: 14px; color: var(--dim); }
.card-table-count strong { margin-right: 4px; font: 400 28px/1 var(--reading-title); color: var(--goldBright); font-variant-numeric: tabular-nums; }
.reading-app .card-table-tray .btn { min-width: 128px; min-height: 50px; justify-content: center; }
.reading-app .draw-surface .draw-hint { margin: 2px 0 0; }
@media (max-width: 360px) { .reading-app .card-table-title h1 { font-size: 15.5px !important; } }
@media (prefers-reduced-motion: reduce) { .tcard, .card-table-tray li { transition: none; } }

/* 홈 '내 명식 먼저 보기': 입력칸·성별·모름·버튼 여섯 개를 한 격자에 넣고 높이를 하나로 맞춘다 (2026-11-11)
   세 줄이 같은 두 칸을 쓰므로 어떤 폭에서도 왼쪽·오른쪽 끝과 칸 경계가 일치한다. */
.birth-quick { --bq-h: 48px; }
.reading-app .bq-field input, .reading-app .bq-field select { height: var(--bq-h); min-height: var(--bq-h); }
.reading-app .bq-gender .btn { flex: 1 1 0; height: var(--bq-h); min-height: var(--bq-h); min-width: 46px; padding: 0 10px; justify-content: center; }
.bq-notime { box-sizing: border-box; height: var(--bq-h); min-height: var(--bq-h); }
.reading-app .bq-grid > .btn { height: var(--bq-h); min-height: var(--bq-h); margin-top: 4px; padding: 0 16px; justify-content: center; white-space: nowrap; text-decoration: none; }
.bq-grid > .bq-error { grid-column: 1 / -1; margin: 0; }

/* 로그아웃: 전체 메뉴 맨 위와 내 기록 화면 아래 (2026-11-11) */
.menu-logout { align-items: center; margin-top: 4px; color: var(--dim); border-bottom: 1px solid #373737; }
.menu-logout .ui-icon { width: 18px; height: 18px; }
.records-logout { margin-bottom: 14px; }
.reading-app .records-logout .btn { gap: 8px; min-width: 160px; justify-content: center; }
.records-logout .ui-icon { width: 17px; height: 17px; }

/* ── 오늘의 타로 · 오늘의 운세 (2026-11-11): 무료 · 로그인 없이 ── */
.today-home { padding: 28px 0 0; }
.reading-app .today-home h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font: 400 21px var(--reading-title); color: var(--cream); }
.today-home h2 small { font: 12px var(--serif); color: var(--gold); white-space: nowrap; }
.reading-app .today-rows { margin-top: 6px; border-top: 0; }
.catalog3 .today-rows { margin-top: 10px; }
.today-rows .reading-row-price { color: var(--gold); }
.today3 .today-guide { margin: 0 0 20px; font-size: 14.5px; line-height: 1.7; color: var(--dim); }
.today-picks { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px; margin: 0 0 32px; }
.today-pick { padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: transform .18s ease; -webkit-tap-highlight-color: transparent; }
.today-pick:hover, .today-pick:focus-visible { transform: translateY(-6px); }
.today-pick:focus-visible { outline: 2px solid #efd8c0; outline-offset: 3px; }
.today-card { display: flex; justify-content: center; margin: 8px 0 28px; }
.reading-app .today-result h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; font: 400 24px/1.4 var(--reading-title); color: var(--cream); }
.today-result h2 small { font: 13px var(--serif); color: var(--gold); }
.today-result .chart-facts { margin-bottom: 16px; }
.today-fine { margin: 0 0 24px; font-size: 12.5px; line-height: 1.7; color: var(--dim); }
.today-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.reading-app .today-actions .btn { justify-content: center; min-height: 48px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .today-pick { transition: none; } }
.bq-grid .btn[data-wide] { grid-column: 1 / -1; }
