@font-face {
  font-family: "Spectral";
  src: url("./fonts/spectral-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("./fonts/spectral-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hahmlet";
  src: url("./fonts/hahmlet-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho B1";
  src: url("./fonts/shippori-mincho-b1-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root { color-scheme: dark; --paper:#f0e6cf; --gold:#c7a478; --muted:#baaa91; --red:#ae422b; --dark:#181612; --line:#514536; --serif:"Spectral",Georgia,serif; --utility:system-ui,"Apple SD Gothic Neo","Yu Gothic","Malgun Gothic",sans-serif; }
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;color:var(--paper);background:radial-gradient(ellipse at top,#322a20 0,#1b1915 49%,#141411 100%);min-height:100vh;font:16px/1.55 var(--serif);font-synthesis:none}
button,select,input{font:inherit} button{cursor:pointer} button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #f6cf85;outline-offset:3px}button:disabled{cursor:default}h1,h2,h3,h4,p{margin:0} h1,h2,h3,h4,.wordmark,.reply{font-family:var(--serif);font-weight:500}h2:focus{outline:0}button,a{touch-action:manipulation}.mast,.wrap{width:min(1180px,calc(100% - 72px));margin:auto}.mast{height:82px;display:flex;align-items:center;justify-content:space-between;gap:15px}.wordmark,nav,.languages,.speaker,.journey,.journey ol,footer,footer>span,.send{display:flex;align-items:center}.wordmark{gap:11px;font-size:28px;letter-spacing:-1.1px}.seal{background:#a43a29;color:#f1d6ad;border:1px solid #ca6249;outline:1px solid #7b3426;outline-offset:2px;border-radius:2px;line-height:.96;font:12px/.98 var(--serif);padding:3px 4px;text-align:center;letter-spacing:0}nav{gap:24px}.about-button,.back,.text-button,.languages button{color:var(--muted);background:none;border:0}.about-button{font-size:13px}.languages{padding:3px;border:1px solid var(--line);border-radius:4px}.languages button{font-size:12px;padding:5px 10px;border-radius:2px}.languages button[aria-pressed=true]{background:#40392e;color:var(--paper)}
.scene{position:relative;isolation:isolate;overflow:hidden;min-height:520px;height:clamp(520px,72svh,760px);border:1px solid #79603c;background:#1f1c16;display:flex;align-items:flex-end;justify-content:center}.portrait,.shade,.frame{position:absolute}.portrait{z-index:-3;width:100%;height:100%;inset:0;object-fit:cover;object-position:50% 7%}.shade{inset:0;z-index:-2;background:linear-gradient(0deg,#14130ff7 0%,#14120fe8 9%,#181610ae 30%,transparent 58%),linear-gradient(92deg,#17140fa8 0%,transparent 41%,transparent 75%,#20180d34 100%)}.frame{inset:9px;border:1px solid #caa7794d;pointer-events:none}.frame i{position:absolute;width:14px;height:14px;border:solid #d2ac73;border-width:2px 0 0 2px;left:-1px;top:-1px}.frame i:nth-child(2){left:auto;right:-1px;transform:rotate(90deg)}.frame i:nth-child(3){top:auto;bottom:-1px;transform:rotate(-90deg)}.frame i:nth-child(4){inset:auto -1px -1px auto;transform:rotate(180deg)}
.scene-title{position:absolute;top:32px;left:34px;text-shadow:0 2px 14px #16110b}.kicker,.speaker b{font:500 11px/1.45 var(--serif);letter-spacing:.15em}.scene-title .kicker{color:#eed8af}.scene-title h1{font-size:clamp(31px,4vw,58px);letter-spacing:-.045em;line-height:1.14;margin:8px 0}.hanja{display:inline-block;color:#dcc292;font:13px var(--serif);border-top:1px solid #b78d5b9c;padding-top:8px;letter-spacing:2px}
.consultation{width:min(580px,calc(100% - 46px));text-align:center;padding:34px 0 43px;position:relative}.speaker{justify-content:center;gap:12px;color:#f5c893}.speaker span{width:33px;height:1px;background:#b19162}.speaker b{letter-spacing:2.5px}.consultation h2{color:#fff4dd;font-size:clamp(30px,3.4vw,48px);line-height:1.22;letter-spacing:-.027em;margin:10px 0 5px;text-wrap:balance;text-shadow:0 2px 16px #271a11}#hint{color:#e5d8bf;font-size:14px;text-shadow:0 1px 5px #20180f}#answer-form,.reply{margin:22px auto 0}.composer,.reply{position:relative;width:min(362px,100%);min-height:57px;border:1px solid #ecdabd;border-radius:6px 6px 2px 6px;background:var(--paper);color:#35271c;box-shadow:0 6px 22px #110f0e38}.composer{display:flex;align-items:center;padding:5px;margin:auto}.composer:after,.reply:after{content:"";position:absolute;right:24px;bottom:-10px;width:14px;height:11px;background:var(--paper);clip-path:polygon(0 0,100% 0,100% 100%)}#input-slot{flex:1;min-width:0}.composer input{width:100%;color:#30261e;color-scheme:light;border:0;background:transparent;font:24px var(--serif);padding:7px 45px 7px 13px;min-width:0}.composer input::placeholder{color:#786e60;opacity:1}.composer input:focus{outline:0}.composer:focus-within{box-shadow:0 0 0 2px #d6a96c}.composer .send{gap:8px;justify-content:center;background:#913c29;color:#fff1d8;border:1px solid #a45139;border-radius:3px;min-height:44px;padding:0 14px;font-size:13px;font-weight:650}.send:hover,.sample-button:hover{background:#ac4b34}.arrow{font-size:20px;font-weight:400}.composer .input-action{width:29px;height:30px;color:#72604d;background:#e6d9be;border-color:#c8b89a;border-radius:3px}.composer .input-action svg{width:16px;height:16px}.reply{display:grid;place-items:center;font-size:23px;line-height:1.2;padding:13px 16px;animation:reply-in .22s ease-out both}.text-button{padding:8px;text-decoration:underline;text-underline-offset:4px}.consultation .text-button{font-size:13px;color:#ebd9b9;margin-top:8px}.error{margin:14px auto 0;color:#ffbd9d;font-size:14px}#zone-row{width:min(362px,100%);display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 auto 10px;color:#f2e2cb;text-align:left}#zone-row label{font-size:12px}#zone{max-width:63%;min-height:35px;border:1px solid #847358;border-radius:3px;background:#2f291f;color:#f3e5ca;padding:4px 6px}
.journey{min-height:69px;border:solid var(--line);border-width:0 1px 1px;background:#26231c;justify-content:space-between;padding:0 23px;gap:8px}.journey ol{padding:0;margin:0;list-style:none;gap:15px}.journey li{display:flex;align-items:center;gap:7px;color:#b4a58b;font:14px var(--serif)}.journey li+li:before{content:"";height:1px;width:clamp(12px,3vw,43px);background:#514735;margin-right:5px}.journey li[aria-current=step]{color:#ffdbad}.journey li i{width:7px;height:7px;border:1px solid #877965;transform:rotate(45deg)}.journey li[aria-current=step] i{background:#d58957;border-color:#f0ac71}.journey .done i{background:#998462}.counter{font:12px var(--serif);color:#ad9b80;letter-spacing:2px}.back{display:flex;align-items:center;gap:6px;font-size:12px}.back span:first-child{font-size:22px}.back:disabled{opacity:.35}.wrap footer{justify-content:space-between;gap:12px;padding:18px 1px 24px;color:#aa9a82;font-size:12px;letter-spacing:.1px}.wrap footer>span{gap:8px}.wrap footer a,.dialog-content a{color:inherit;text-underline-offset:3px}.tiny-moon{width:11px;height:11px;border-radius:100%;box-shadow:inset 3px -1px 0 #ba9a70}
.reading{max-width:710px;margin:26px auto 0;background:#ece2ca;color:#332a20;border:1px solid #a48b67;padding:clamp(22px,4vw,46px);box-shadow:inset 0 0 0 5px #e6dac0,inset 0 0 0 6px #c2ae8b}.reading{font-size:17px}.reading .kicker{color:#873a28}.result-head h2,.dialog-content h2{font-size:clamp(32px,4vw,48px);letter-spacing:-1px;margin:8px 0}.result-quote{font:20px/1.5 var(--serif)}.date-line,.paid-box small,#sample-panel>p:first-of-type{color:#685744;font-size:13px}.date-line{margin-top:12px}.paid-box,#sample-panel{border-top:1px solid #bca988;margin-top:22px;padding-top:22px}.paid-box h3,#sample-panel h3{font-size:27px;margin:4px 0 8px}.paid-box p,#sample-panel p,.dialog-content p{line-height:1.75}.sample-button{padding:11px 17px;margin:14px 10px 0 0;border:0;border-radius:3px;background:#903d2b;color:#fff4df;font-size:14px}.paid-box small{display:inline-block;margin-top:10px}.restart{margin-top:16px;color:#6d3826;padding-left:0}.pillars{display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0;gap:5px}.pillar{border:1px solid #c7b392;padding:8px 2px;text-align:center}.pillar b,.pillar span{display:block}.pillar b{font:24px var(--serif);color:#633724}.pillar span{font-size:12px}.reading h4{font-size:20px;margin:14px 0 3px}.scene.finished{min-height:0;height:230px}.scene.finished .portrait{object-position:50% 18%}.scene.finished .shade{background:linear-gradient(90deg,#271a0eb3,transparent 59%)}.scene.finished .consultation{display:none}dialog{max-width:min(460px,92vw);background:#eee3cb;color:#382b20;border:1px solid #8d7050;padding:0}dialog::backdrop{background:#100e0bd6}.dialog-content{position:relative;padding:32px}.dialog-content .kicker{color:#90412b}.dialog-content p{margin:12px 0}.dialog-content a{font-size:13px}.close{position:absolute;right:12px;top:8px;font-size:29px;background:none;border:0;color:#594333}
.number-picker{--page:#f0e6cf;--ink:#392e20;--control:#e2d4b6;--surface:#f0e6cf;--line:#ab9877;--muted:#78684f;--accent:#953e2b;color-scheme:light}.number-picker button{color:var(--ink)}
@keyframes reply-in{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}}
@media(max-width:700px){.mast,.wrap{width:calc(100% - 28px)}.mast{height:62px}.wordmark{font-size:23px;gap:8px}nav{gap:8px}.about-button{font-size:12px}.languages button{padding:5px 7px}.scene{height:clamp(490px,72svh,655px);min-height:0}.portrait{object-position:50% 0}.scene-title{left:21px;top:20px}.scene-title h1{font-size:30px;letter-spacing:-1.3px;margin:4px 0}.scene-title .kicker{font-size:8px;letter-spacing:1.3px}.hanja{font-size:10px;padding-top:4px}.consultation{padding:23px 0 35px;width:calc(100% - 44px)}.consultation h2{font-size:34px}#hint{font-size:13px}.journey{padding:0 12px;min-height:59px}.journey ol{gap:8px}.journey li{font-size:12px;gap:4px}.journey li+li:before{width:9px;margin:0}.counter{display:none}.wrap footer{font-size:10px}.shade{background:linear-gradient(0deg,#13110ff7 0%,#17140fec 16%,#23191280 38%,transparent 62%),linear-gradient(125deg,#27190e82,transparent 33%)}}
@media(max-width:400px){.scene-title h1{font-size:24px}.scene-title{left:17px;top:16px}.journey li+li:before{width:4px}.mast,.wrap{width:calc(100% - 20px)}.consultation h2{font-size:29px}.consultation{width:calc(100% - 34px)}.composer input{font-size:20px}.wordmark{font-size:20px}.about-button{padding:4px}.scene.finished{height:200px}}
@media(max-height:600px) and (min-width:701px){.mast{height:54px}.scene{min-height:425px}.consultation{padding-bottom:27px}}

.shrine-layer-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-3;pointer-events:none;visibility:hidden}.shrine-layer-canvas.is-ready{visibility:visible}

/* Use each script's own letterforms in the conversation and reading. */
:root:lang(ko) { --serif: "Hahmlet", "AppleMyungjo", Batang, serif; }
:root:lang(ja) { --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif; }
#site-name { font-family: "Spectral", Georgia, serif; }
.languages, #zone { font-family: var(--utility); }
.scene-title h1:lang(ko), .consultation h2:lang(ko) { letter-spacing: -.025em; word-break: keep-all; }
.scene-title h1:lang(ja), .consultation h2:lang(ja) { letter-spacing: .015em; line-height: 1.4; }
.reading:lang(ko), .dialog-content:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
.reading:lang(ja), .consultation:lang(ja), .dialog-content:lang(ja) { line-break: strict; }
.reply, .composer input, .counter { font-variant-numeric: lining-nums tabular-nums; }
.reply:lang(ko), .reply:lang(ja) { line-height: 1.45; }
@media (max-width: 440px) {
  .mast { flex-wrap: wrap; height: auto; min-height: 62px; gap: 5px 8px; padding-block: 8px; }
  .mast nav { margin-inline-start: auto; gap: 5px; }
  .languages button { padding-inline: 6px; }
  .scene-title .kicker { font-size: 10px; }
}

#exchange.dissolving {
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--dust-front, -8%) - 6%), #000 calc(var(--dust-front, -8%) + 6%));
  mask-image: linear-gradient(to right, transparent calc(var(--dust-front, -8%) - 6%), #000 calc(var(--dust-front, -8%) + 6%));
  /* Keep the bubble's paper tail and shadow inside the mask. */
  padding: 0 0 22px;
  margin-bottom: -22px;
}
.reply-dust { position:absolute; left:-16px; pointer-events:none; }
.time-desk:has(.reply-dust) { overflow:clip; }

/* The registered poses share a single strip and a fixed seat in the shrine. */
.fan-player { position:absolute; inset:0; z-index:-2; display:none; align-items:flex-end; justify-content:center; container-type:size; pointer-events:none; }
.scene[data-finale].fan-art-ready .fan-player { display:flex; }
.fan-backdrop { position:absolute; inset:0; z-index:-3; display:none; width:100%; height:100%; object-fit:cover; }
.scene[data-finale].fan-art-ready .shrine-layer-canvas:not(.is-ready) ~ .fan-backdrop { display:block; }
.fan-frame { --pose-height:min(98cqw,97cqh); position:relative; flex:none; height:var(--pose-height); width:calc(var(--pose-height) * var(--fan-ratio)); overflow:hidden; isolation:isolate; }
/* The strip has extra room to the right of the pointing hand. Center the original seat on wide stages. */
@media (min-width:701px) { .fan-frame { transform:translateX(calc(var(--pose-height) * (var(--fan-ratio) - 1) / 2)); } }
.fan-pose { position:absolute; inset:0 auto auto 0; display:block; width:300%; max-width:none; height:100%; opacity:0; mix-blend-mode:plus-lighter; transition:opacity 150ms ease-in-out; }
.fan-pose.turning { transform:translateX(-33.333333%); }
.fan-pose.pointing { transform:translateX(-66.666667%); }
.scene[data-finale="thinking"] .fan-pose.thinking,
.scene[data-finale="turning"] .fan-pose.turning,
.scene[data-finale="pointing"] .fan-pose.pointing { opacity:1; }
.scene[data-finale] { min-height:0; height:clamp(245px,56svh,490px); }
.scene[data-finale] .consultation { display:none; }
.scene[data-finale].fan-art-ready .portrait { visibility:hidden; }
.scene[data-finale] .shade { background:linear-gradient(0deg,#18130f62,transparent 22%),linear-gradient(90deg,#20170d80,transparent 37%,transparent 78%,#20170d40); }
#finale-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.scene[data-finale]:not(.fan-art-ready) #finale-status { width:auto; height:auto; inset:auto 20px 26px; clip-path:none; padding:8px 12px; background:#201910e8; text-align:center; }
.reading.reading-arrives { animation:reading-arrives 600ms cubic-bezier(.16,.67,.26,1) both; }
.audience:has(.scene[data-finale]:not(.finished)) ~ footer { visibility:hidden; }
@keyframes reading-arrives { from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:translateY(0)} }
@media (max-width:700px) {
  .scene[data-finale] { height:clamp(205px,min(102vw,61svh),420px); }
  .scene[data-finale] .scene-title { visibility:hidden; }
  .scene[data-finale] .frame { inset-inline:4px; }
}
@media (prefers-reduced-motion:reduce) { .fan-pose { transition:none; } }

/* The twelve selectable inlays share a photographed walnut veneer (Poly Haven, CC0). */
.gender-options { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:0 auto 14px; }
.gender-options label { position:relative; cursor:pointer; }
.gender-options span { display:flex; align-items:center; justify-content:center; min-height:44px; border:1px solid #967857; border-radius:3px; padding:6px 15px; color:#f3e3c5; background:#282018ed; }
.gender-options input:checked + span { background:#efd9ae; color:#39261a; border-color:#fcd895; box-shadow:inset 0 -3px #aa6545; }
.gender-options input:focus-visible + span { outline:2px solid #ffde9f; outline-offset:3px; }
.gender-options input,.hour-sector input { position:absolute; width:1px; height:1px; margin:0; opacity:0; }
.composer.choice-submit { width:fit-content; min-height:0; padding:0; border:0; background:none; box-shadow:none; }
.composer.choice-submit:after,.composer.choice-submit .arrow { display:none; }
.choice-submit .send { padding:0 28px; font-size:15px; }
.audience.is-time { display:grid; grid-template-columns:minmax(0,1fr) minmax(365px,40%); align-items:stretch; }
.is-time .scene { min-height:0; height:auto; }
.time-desk { position:relative; display:grid; align-content:center; padding:20px clamp(16px,2.5vw,36px) 22px; min-width:0; color:#f1dfbf; border:1px solid #826748; border-left:0;
  background:radial-gradient(ellipse at center top,#49372a 0%,#2c231b 60%,#241c17); }
.time-desk .consultation { width:100%; margin:0; padding:0; }
.time-desk .consultation h2 { font-size:clamp(24px,2.5vw,34px); }
.time-desk #hint { max-width:38ch; margin-inline:auto; line-height:1.5; font-size:14px; }
.time-desk .speaker { margin-bottom:6px; }
.time-desk .speaker b,.time-desk .speaker span { color:#ddba88; }
.time-desk #answer-form { margin-top:14px; }
.time-desk #zone-row { width:min(330px,100%); border-top:1px solid #796345; padding-top:12px; margin:14px auto; }
.time-desk #zone { min-height:40px; font-size:13px; }
.time-desk #zone-row label { font-family:var(--utility); font-size:13px; }
.time-desk .composer.choice-submit { width:min(330px,100%); }
.time-desk .send { width:100%; background:#984832; border-color:#b06b4d; }
.time-desk .text-button { min-height:42px; padding:8px 12px; margin:3px 0 0; }
.time-desk .error { margin-top:4px; }
.time-desk .reply { margin-bottom:16px; }
.birth-table { filter:drop-shadow(0 5px 6px #120d0a85); }
.hour-board {
  --wood: url('./walnut_grain_01.webp');
  --edge: polygon(37.06% 1.70%,62.94% 1.70%,85.36% 14.64%,98.30% 37.06%,98.30% 62.94%,85.36% 85.36%,62.94% 98.30%,37.06% 98.30%,14.64% 85.36%,1.70% 62.94%,1.70% 37.06%,14.64% 14.64%);
  position:relative; width:min(348px,100%); aspect-ratio:1; margin-inline:auto; clip-path:var(--edge); overflow:hidden; contain:paint;
  background:linear-gradient(150deg,#f0c68d 0%,#9e703f 21%,#53371f 40%,#ad7944 71%,#e2b681);
}
.hour-board::before { content:''; position:absolute; inset:1%; clip-path:var(--edge); background:#513421; }
.hour-sectors { position:absolute; inset:0; }
.hour-sector { position:absolute; inset:0; overflow:hidden; color:#fff1cd; cursor:pointer; touch-action:manipulation;
  background-color:#a07049; background-image:linear-gradient(120deg,#dd9e5720,#31170f57),var(--wood);
  background-blend-mode:normal, soft-light; background-size:100%,83% 73%; text-shadow:0 1px 3px #392419; }
.hour-sector.dark { background-color:#885b3d; background-position:0 0,17% 26%; }
.hour-sector::before { content:''; position:absolute; inset:-20%; transform:rotate(var(--grain-angle)); pointer-events:none;
  background:var(--wood) center/65% 56%; filter:grayscale(1) contrast(3.2) brightness(1.2); mix-blend-mode:soft-light; opacity:.74; }
.hour-sector:hover { background-color:#b38254; }
.hour-sector:has(input:checked) { color:#3f2114; text-shadow:none; background-color:#e6b97b; background-image:linear-gradient(125deg,#fff0cd38,#b3713240),var(--wood); }
.hour-sector:has(input:focus-visible) .sector-label { outline:2px solid currentColor; outline-offset:2px; border-radius:3px; }
.sector-label { position:absolute; display:grid; justify-items:center; gap:2px; transform:translate(-50%,-50%); line-height:1; padding:1px 2px; white-space:nowrap; pointer-events:none; }
.sector-label b { font:500 clamp(14px,1.3vw,18px)/1.2 var(--serif); }
.sector-label small { font:500 12px/1.1 var(--utility); font-variant-numeric:tabular-nums; letter-spacing:.025em; }
.hour-center { position:absolute; inset:32.8%; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none;
  color:#ffe9c2; border:2px solid #c69b67; background:radial-gradient(ellipse at 38% 24%,#61432d,#38271d 70%); box-shadow:0 0 0 2px #503821,inset 0 0 0 3px #433021,inset 0 0 0 4px #99774d; }
.hour-center b { font:500 clamp(22px,2.6vw,34px)/1.15 var(--serif); color:#efc88c; }
.hour-center span { margin-top:3px; font:500 13px/1.25 var(--serif); text-align:center; }
.hour-center small { font:500 11px/1.5 var(--utility); font-variant-numeric:tabular-nums; }
.reading { max-width:770px; }
.result-head .kicker { font-size:13px; letter-spacing:.09em; }
.result-head h2 { line-height:1.25; margin-block:6px; }
.date-line { font:500 14px/1.65 var(--utility); margin-top:5px; }
.chart-intro { margin:18px 0 16px; line-height:1.65; }
.birth-chart { width:100%; table-layout:fixed; border-collapse:collapse; background:#f4ead5; text-align:center; }
.birth-chart thead td,.birth-chart tbody th { width:12%; }
.birth-chart thead { background:#594533; color:#fff0d2; }
.birth-chart thead th { padding:7px 2px; font-weight:500; font-size:16px; }
.birth-chart tbody th { color:#66543e; background:#e3d5b8; font:500 13px var(--utility); }
.birth-chart td,.birth-chart th { border:1px solid #c2ab85; }
.birth-chart tbody td { padding:10px 2px 9px; }
.chart-letter,.chart-sound,.chart-phase { display:block; }
.chart-letter { font:500 clamp(26px,4vw,37px)/1.18 "Shippori Mincho B1","Songti SC","AppleMyungjo",serif; color:var(--phase-color,#705e49); }
.chart-sound { font-size:15px; color:#422e21; line-height:1.35; margin:3px 0 1px; }
.chart-phase { font:500 12px/1.4 var(--utility); color:var(--phase-color,#685641); }
.ink-0 { --phase-color:#365a41; } .ink-1 { --phase-color:#913c2d; } .ink-2 { --phase-color:#785722; } .ink-3 { --phase-color:#55576a; } .ink-4 { --phase-color:#355673; }
.day-master { background:#f9e5ba; box-shadow:inset 0 0 0 2px #ad7840; }
.empty-pillar .chart-letter,.empty-pillar .chart-sound { color:#81715c; }
.chart-note,.term-choice { padding:10px 14px; background:#f5ecd9; border-inline-start:3px solid #a16b40; font:14px/1.65 var(--utility); color:#5d442f; }
.chart-note { margin-top:12px; }
.term-choice { margin:14px 0; }
.term-choice div { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.term-choice button { min-height:40px; background:#faf1de; color:#513622; padding:5px 12px; border:1px solid #a58a69; border-radius:3px; }
.term-choice button[aria-pressed=true] { background:#71452f; color:#fff1d4; }
.reading-section { margin-top:30px; border-top:2px solid #937151; }
.reading-links { display:flex; flex-wrap:wrap; align-items:center; gap:0 16px; margin:8px 0 0; }
.reading-links a { display:inline-flex; min-height:40px; align-items:center; font:500 14px/1.4 var(--utility); color:#704528; text-underline-offset:4px; }
.reading-links+.reading-section { margin-top:8px; }
.reading-topic h4,.reading-section h3 { scroll-margin-top:14px; }
.reading-section h3 { font-size:clamp(24px,3vw,33px); line-height:1.35; margin:18px 0 7px; color:#463120; }
.reading-section h4 { font-size:clamp(18px,2.1vw,23px); line-height:1.4; margin:0 0 7px; color:#563a2a; }
.reading-rule,.reading-topic { padding:15px 0 17px; line-height:1.78; }
.reading-rule+.reading-rule,.reading-topic+.reading-topic { border-top:1px solid #c7b491; }
.reading-rule p+p { margin-top:5px; }
.reading-topic p+p { margin-top:8px; }
.reading-topic .topic-basis,.rule-note { color:#704c36; font:500 14px/1.65 var(--utility); }
.rule-note { padding-top:5px; }
.reading-mode { display:flex; width:max-content; max-width:100%; margin:24px 0 18px; padding:3px; gap:3px;
  border:1px solid #9d8465; border-radius:5px; background:#deceb0; scroll-margin-top:12px; }
.reading-mode button { min-height:44px; padding:6px 17px; border:0; border-radius:3px; background:transparent; color:#503c2c; font:600 15px/1.4 var(--utility); }
.reading-mode button[aria-pressed=true] { background:#64402c; color:#fff4dc; }
.reading :is(button,select,a):focus-visible { outline:2px solid #78442c; outline-offset:3px; }
.reading-essay { padding:15px 0 20px; border-top:1px solid #bca887; }
.reading-essay h3 { margin:0 0 11px; font:500 clamp(23px,3vw,31px)/1.4 var(--serif); color:#493322; }
.reading-essay p,#overall-reading p,.period-row>p { line-height:1.8; }
.reading-essay p+p,#overall-reading p+p { margin-top:9px; }
.reading-choice strong { margin-inline-end:.35em; font:650 .86em/1.5 var(--utility); }
.reading-choice.favorable strong { color:#36583c; }
.reading-choice.cautious strong { color:#843c30; }
.read-on { margin:2px 0 14px; }
.period-guide,.period-basis { color:#634e39; font:500 14px/1.65 var(--utility); }
.period-list { margin:12px 0 0; padding:0; list-style:none; }
.period-row { padding:13px 0 15px; border-top:1px solid #c7b491; }
.period-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.period-heading b,.month-jump { color:#4b3422; font:600 17px/1.4 var(--utility); }
.month-jump { min-height:44px; padding:5px 6px 5px 0; border:0; background:transparent; text-decoration:underline; text-underline-offset:4px; }
.period-row .period-basis { margin:2px 0 5px; font-size:13px; }
.period-tone { flex-shrink:0; border:1px solid currentColor; border-radius:3px; padding:2px 7px; font:600 13px/1.5 var(--utility); }
.tone-open { color:#31583c; background:#e4ead9; }
.tone-care { color:#833b2e; background:#f4ded0; }
.tone-mixed { color:#74501e; background:#f1e4bf; }
.tone-steady { color:#625444; background:#ede5d4; }
.month-picker { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:11px 0; font:500 15px/1.5 var(--utility); }
.month-picker select { min-height:44px; padding:5px 10px; color:#4b3422; color-scheme:light; background:#f7eedb; border:1px solid #9d8465; border-radius:3px; }
#days-title,#months-title { scroll-margin-top:12px; }
.element-counts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; margin:9px 0; padding:0; gap:6px; }
.element-counts li { display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; gap:5px; padding:5px 2px; border-top:2px solid var(--phase-color); color:var(--phase-color); background:#f7edda; font:500 14px/1.3 var(--utility); }
.element-counts b { font:500 20px/1.25 var(--serif); }
.stem-roles { list-style:none; display:flex; flex-wrap:wrap; gap:4px 17px; margin:8px 0 0; padding:0; font:14px/1.65 var(--utility); }
.stem-roles li { display:flex; gap:6px; align-items:baseline; } .stem-roles span { color:#695740; } .stem-roles b { font-weight:600; color:#613d29; }
.dialog-content a { display:block; margin-top:6px; }
@media (max-width:700px) {
  .audience.is-time { display:block; }
  .is-time .scene { height:180px; }
  .is-time .scene-title { top:14px; left:16px; }
  .is-time .shade { background:linear-gradient(90deg,#1b140d99,transparent 65%); }
  .time-desk { border-left:1px solid #826748; border-top:0; padding:20px 14px 9px; }
  .time-desk .consultation h2 { font-size:26px; }
  .time-desk #answer-form { margin-top:10px; }
  .time-desk #zone-row { margin:10px auto; padding-top:9px; }
  .journey ol { gap:6px; } .journey li+li:before { width:5px; }
  .reading { padding:23px 15px; }
  .reading:lang(en) .chart-sound { font-size:13px; }
  .reading:lang(en) .chart-phase { font-size:11px; }
}
@media (max-width:380px) {
  .time-desk { padding-inline:6px; }
  .sector-label b { font-size:14px; } .sector-label small { font-size:11px; }
  .gender-options { gap:5px; } .gender-options span { padding-inline:9px; }
  .journey li { gap:3px; font-size:11px; } .journey li+li:before { display:none; }
  .reading { padding-inline:11px; } .birth-chart tbody th { font-size:11px; }
}
