/* The original Codex Moon Garden design, adopted by the owner on 2026-11-04. */
:root {
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
html { scroll-padding-top: 24px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; background: #f2efe8; color: #232d3a; padding: 12px 20px; }
.skip:focus { top: 16px; }
.header { max-width: 1440px; margin: auto; padding: 24px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; line-height: 1.35; letter-spacing: .12em; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .17em; color: var(--gold); margin-top: 6px; }
.brand-mark { font-size: 42px; color: var(--gold); line-height: 1; }
.header nav { display: flex; gap: 32px; color: #dedfdc; font-size: 14px; }
.header nav a:hover, .footer-links a:hover { color: var(--gold); }
.hero { position: relative; max-width: 1440px; margin: auto; display: grid; grid-template-columns: 1.02fr 1fr; align-items: start; padding: 18px 5% 0; min-height: 0; overflow: visible; background: none; }
.hero-copy { padding: 56px 20px 32px 0; z-index: 1; }
.eyebrow { color: var(--gold); font-family: Georgia, serif; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; line-height: 1.8; margin: 0 0 22px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.65vw, 52px); line-height: 1.7; letter-spacing: .045em; margin: 0; text-shadow: none; white-space: nowrap; }
.hero-description { margin: 24px 0 30px; max-width: 31em; color: #d0d5dc; font-size: 15px; line-height: 2.1; }
.hero-go { display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 52px; padding: 12px 34px; border: 1px solid #f2efe8; border-radius: 2px; background: #f2efe8; color: #232d3a; font-family: var(--sans); font-size: 15px; letter-spacing: .05em; }
.hero-go:hover { background: #fff; }
.hero-meta { display: block; margin: 17px 0 0; font-size: 12px; letter-spacing: .1em; color: #aeb9c7; }
.hero-meta::before { display: none; }
.hero-art { position: relative; height: 600px; overflow: hidden; border-radius: 180px 180px 3px 3px; margin-left: 24px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-art picture { display: contents; }
.hero-art source { display: none; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(8,17,30,.65)); }
.art-caption { position: absolute; bottom: 28px; left: 32px; right: 32px; display: flex; justify-content: space-between; align-items: center; z-index: 1; color: #ece6db; }
.art-caption span:first-child { font-family: var(--serif); font-size: 20px; letter-spacing: .18em; }
.art-caption span:last-child { font-size: 10px; letter-spacing: .12em; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); margin-top: 38px; padding: 22px 0; color: #a9b3c0; font-size: 13px; }
.hero-bottom span:first-child { font-family: Georgia, serif; letter-spacing: .15em; text-transform: uppercase; font-size: 11px; }
.garden-wrap { max-width: 1000px; padding: 0 40px 0; margin: auto; }
.chapter { margin-top: 76px; scroll-margin-top: 28px; }
.sec-head { gap: 20px; }
.sec-en { font-family: Georgia, serif; font-size: 10px; letter-spacing: .22em; }
.sec-no { font-family: Georgia, serif; font-weight: 400; color: var(--gold); }
.sec-title, .teller-mark, .result-head .cname, .flower-note .f-name { font-family: var(--serif); font-weight: 500; }
.teller { padding: 12px 0 0; gap: 32px; }
.teller-mark { background: transparent; overflow: hidden; box-shadow: 0 0 0 4px #b69b6417; }
.teller-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.teller-role { font-family: Georgia, serif; font-size: 10px; letter-spacing: .14em; line-height: 1.8; }
.teller-body p.text { font-family: var(--serif); font-size: 16px; color: #d0d5dc; line-height: 2.1; }
.lead { margin-top: 12px; max-width: 48em; line-height: 2; }
.chips { margin: 26px 0 24px; gap: 10px; }
.chip { font-family: var(--sans); font-size: 14px; padding: 10px 21px; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #101a2b; }
.chip:disabled { opacity: .65; }
.question-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 9px; }
textarea { min-height: 100px; border-radius: 3px; font-size: 16px; }
.hint { line-height: 1.8; }
.stage { border: 1px solid var(--line); border-radius: 3px; padding: 44px 24px 40px; background: #0b1423; scroll-margin-top: 24px; }
.stage .status { font-family: var(--serif); font-size: 16px; max-width: 32em; margin: 0 auto 32px; min-height: 60px; }
.cards { max-width: 520px; margin: auto; gap: clamp(10px, 2.5vw, 26px); }
.pick { flex: 1 1 0; min-width: 0; max-width: 148px; }
.face.back { border-color: var(--gold); color: var(--gold); }
.face.front { background: #f2efe8; color: #232d3a; }
.face.front .num { color: #846533; font-family: var(--serif); }
.face.front .glyph { color: #233047; font-family: "Apple Symbols", "Noto Sans Symbols 2", serif; }
.face.front .cname { font-family: var(--serif); }
.face.front .ename { display: block; font-family: Georgia, serif; color: #586677; font-size: 9px; line-height: 1.4; letter-spacing: .09em; margin-top: 6px; }
.result { margin-top: 32px; background: #f2efe8; color: #232d3a; padding: 32px clamp(20px, 4vw, 48px) 40px; --ink: #232d3a; --muted: #526173; --line: #caccbf; --gold: #846533; --gold-soft: #e8e1ce; --surface-2: #e6e7df; --accent: #91465e; }
.result .sec-en { color: #526173; }
.reading-message { font-family: var(--serif); font-size: 16px; line-height: 2.1; }
.reading-message p { margin: 24px 0; overflow-wrap: anywhere; }
.reading-message .qecho { padding: 2px 0 2px 16px; font-family: var(--sans); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.lucky { gap: 24px; }
.lucky dd { font-family: var(--serif); overflow-wrap: anywhere; }
.flower-note { padding: 28px 8px; }
.flower-note .f-label { font-size: 11px; letter-spacing: .1em; }
.flower-note .f-lang { line-height: 1.8; }
.result .btn.primary { background: #233047; border-color: #233047; color: #fff; }
.btn { min-height: 48px; font-family: var(--sans); font-size: 14px; }
.deep-item { padding: 25px 0; }
.deep-item .t { font-family: var(--serif); font-size: 17px; }
.deep-item .d { margin-top: 7px; line-height: 1.9; }
.deep .note { margin-top: 20px; line-height: 2; }
.step .n { font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.step h4 { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.steps { margin-top: 28px; gap: 32px; }
.gallery { margin-top: 28px; gap: 0 20px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.g-card { padding: 20px 4px; }
.g-card .g { color: var(--gold); font-family: "Apple Symbols", "Noto Sans Symbols 2", serif; font-size: 28px; }
.g-card .nm { font-family: var(--serif); font-weight: 500; }
.g-card[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.g-detail { background: transparent; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); border-radius: 0; padding: 26px 0; }
.g-detail h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.g-detail p { line-height: 2; margin-top: 15px; }
.g-detail .lbl { display: block; }
.toast { font-family: var(--sans); background: #f2efe8; color: #232d3a; box-shadow: none; max-width: calc(100vw - 32px); text-align: center; white-space: nowrap; }
.clipboard-fallback { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.footer { max-width: 1296px; margin: 90px auto 0; text-align: left; padding: 40px 5%; border-top: 1px solid var(--line); }
.footer .brand { color: #f2efe8; }
.footer p { max-width: none; margin: 0; }
.disclaimer { max-width: 700px; margin-top: 28px; }
.disclaimer p { line-height: 2; font-size: 12px; }
.disclaimer p + p { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; font-size: 13px; }
.footer .footer-en { font-family: Georgia, serif; font-size: 10px; letter-spacing: .13em; margin: 32px 0 12px; }
.footer small { font-size: 11px; }
.noscript { padding: 20px 6%; }
@media (max-width: 1000px) {
  .header nav { gap: 20px; }
  .hero-copy { padding-top: 36px; }
  .hero h1 { font-size: clamp(28px, 3.7vw, 38px); }
  .hero-art { height: 530px; margin-left: 16px; }
  .art-caption span:last-child { display: none; }
}
@media (max-width: 700px) {
  .header { padding: 20px 6%; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 21px; }
  .brand-mark { font-size: 35px; }
  .header nav { width: 100%; justify-content: space-between; font-size: 12px; gap: 10px; margin-top: 4px; }
  .hero { display: flex; flex-direction: column; padding: 0 6%; }
  .hero-copy { padding: 32px 0 30px; width: 100%; }
  .eyebrow { font-size: 10px; letter-spacing: .13em; max-width: 29em; }
  .hero h1 { font-size: clamp(28px, 6.7vw, 40px); white-space: normal; }
  .hero-description { font-size: 14px; margin: 20px 0 24px; }
  .hero-meta { font-size: 11px; letter-spacing: .07em; }
  .hero-art { height: 420px; width: 100%; margin: 0; border-radius: 140px 140px 3px 3px; }
  .hero-art img { object-position: 50% 57%; }
  .art-caption span:last-child { display: block; font-size: 9px; }
  .hero-bottom { width: 100%; margin-top: 16px; padding: 20px 0; font-size: 11px; gap: 12px; }
  .hero-bottom span:first-child { font-size: 9px; }
  .garden-wrap { width: 100%; padding: 0 6%; }
  .chapter { margin-top: 60px; }
  .sec-head { gap: 14px; }
  .sec-en { font-size: 9px; letter-spacing: .15em; }
  .sec-title { font-size: 27px; }
  .teller-role { max-width: 30em; }
  .teller-body p.text { font-size: 15px; }
  .chip { padding: 9px 18px; }
  .stage { padding: 32px 14px; }
  .stage .status { font-size: 14px; line-height: 1.9; }
  .face.front .num { font-size: 13px; }
  .face.front .glyph { font-size: clamp(34px, 9vw, 54px); }
  .face.front .cname { font-size: 12px; }
  .face.front .ename { font-size: 8px; letter-spacing: .02em; }
  .result { margin-top: 28px; }
  .result-head .cname { font-size: 30px; }
  .reading-message { font-size: 15px; }
  .actions .btn { flex: 1 1 180px; }
  .deep-item { gap: 12px; }
  .deep-item .t { font-size: 16px; }
  .deep-item .lock { padding: 3px 9px; font-size: 10px; }
  .deep-item .d { font-size: 12px; }
  .gallery { column-gap: 12px; }
  .footer { margin-top: 64px; padding: 32px 6%; }
}
@media (max-width: 520px) { .lucky dd { max-width: 62%; text-align: right; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pick:hover, .pick:focus-visible { transform: none; }
}
