:root {
  --paper: #f3f4f6;
  --sheet: transparent;
  --ink: #16181d;
  --muted: #6b7280;
  --cinnabar: #e11d48;
  --line: #e7e8ec;
  --gold: #8d6239;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a { color: inherit; }

.sheet {
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 36px 40px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 140px),
    var(--sheet);
  border: 1px solid #eadfcb;
  box-shadow: 0 30px 70px rgba(70, 46, 22, 0.08);
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.lede {
  max-width: 36em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: end;
  margin: 22px 0 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

input[type="date"],
input[type="email"],
select {
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid #dccdb6;
  padding: 10px 12px;
  min-height: 46px;
}

input[type="date"] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* iOS Safari paints long locale strings (e.g. 2008年9月24日); keep them inside the box */
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  padding: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 4px;
  flex-shrink: 0;
}

select { min-width: 140px; }

button,
.daynav a {
  font: inherit;
  text-decoration: none;
}

button {
  background: var(--cinnabar);
  color: #fffaf2;
  border: 0;
  min-height: 46px;
  padding: 0 22px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

button:hover { background: #831f16; }

.daynav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  padding-bottom: 10px;
}

.daynav a {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.daynav a:hover { color: var(--cinnabar); }

.hero {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 8px 28px;
  align-items: center;
  margin-top: 28px;
}

.seal {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  border: 3px solid var(--cinnabar);
  color: var(--cinnabar);
  box-shadow: inset 0 0 0 1px var(--cinnabar);
  transform: rotate(-7deg);
  background: #fffaf2;
}

.seal.is-ji {
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.seal.is-ping {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.solar {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lunar {
  margin: 4px 0 0;
  font-size: 20px;
}

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.sentence {
  margin: 14px 0 0;
  font-size: 18px;
  max-width: 38em;
}

.edge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  letter-spacing: 0.16em;
  font-size: 13px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 12px 18px;
  text-align: center;
}

.pillar .role {
  display: block;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.pillar strong {
  display: block;
  margin-top: 6px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.pillar em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  margin-top: 22px;
  align-items: center;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.facts dd { margin: 0; }

.rose-wrap { text-align: center; }

.rose {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.rose-ring,
.rose-x {
  position: absolute;
  border: 1px solid var(--line);
}

.rose-ring {
  inset: 34px;
  border-radius: 50%;
}

.rose-x {
  inset: 48px;
  transform: rotate(45deg);
}

.rose::before,
.rose::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.rose::before {
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 1px;
}

.rose::after {
  top: 50%;
  left: 16px;
  right: 16px;
  height: 1px;
}

.pt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-96px) rotate(calc(var(--a) * -1));
  color: #b3a48e;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.pt.is-xi,
.pt.is-cai {
  color: var(--cinnabar);
  font-weight: 700;
}

.rose-key {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.col h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.col.yi h2 { color: var(--cinnabar); }

.chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  font-size: 16px;
}

a.chip:hover { border-color: var(--cinnabar); }

.yi a.chip.is-on,
.yi span.chip.is-on {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fffaf2;
}

.ji a.chip.is-on,
.ji span.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf2;
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 32px;
}

.strip-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.28em;
}

.strip-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 8px;
  scroll-snap-type: x mandatory;
}

.cell {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 132px;
  padding: 10px 4px 8px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.cell.is-pick {
  border-color: var(--cinnabar);
  box-shadow: inset 0 3px 0 var(--cinnabar);
}

.cell .wk,
.cell .luna {
  color: var(--muted);
  font-size: 12px;
}

.cell .num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.cell .jc {
  font-size: 18px;
}

.cell .vd { font-size: 14px; letter-spacing: 0.12em; }
.cell .vd.is-yi { color: var(--cinnabar); }
.cell .vd.is-ji { color: var(--ink); font-weight: 700; }
.cell .vd.is-ping { color: var(--gold); }

.basis {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
}
.basis p { margin: 0 0 6px; }
.site-foot {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.site-foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.site-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.site-foot-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}
.site-foot-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-foot-brand em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-foot-nav a {
  color: #2c6b42;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-foot-nav a:hover { text-decoration: underline; }
.site-foot-lead {
  margin: 16px 0 0;
  max-width: 36em;
  color: #3f4450;
  font-size: 15px;
  line-height: 1.75;
}
.site-foot-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.site-foot-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.is-home .site-foot {
  border-top-color: rgba(255, 248, 236, 0.22);
}
body.is-home .site-foot-brand,
body.is-home .site-foot-brand strong {
  color: #fffaf0;
  text-shadow: 0 1px 2px rgba(20, 17, 14, 0.45);
}
body.is-home .site-foot-brand em,
body.is-home .site-foot-lead,
body.is-home .site-foot .basis,
body.is-home .site-foot .basis p,
body.is-home .site-foot-copy,
body.is-home .site-foot-copy a {
  color: rgba(255, 250, 240, 0.9);
  text-shadow: 0 1px 2px rgba(20, 17, 14, 0.4);
}
body.is-home .site-foot-nav a {
  color: #f0d48a;
  text-shadow: 0 1px 2px rgba(20, 17, 14, 0.4);
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  margin-top: 8px;
}

.modes a {
  text-decoration: none;
  letter-spacing: 0.18em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--card);
}

.modes a.is-on {
  background: var(--ink);
  color: #fffaf2;
  border-color: var(--ink);
}

.hours {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 96px;
  padding: 12px 4px 10px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.hour.is-pick {
  border-color: var(--cinnabar);
  box-shadow: inset 0 3px 0 var(--cinnabar);
}

.hour .hn,
.hour .hr {
  color: var(--muted);
  font-size: 12px;
}

.hour strong {
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.pillars.is-four { grid-template-columns: repeat(4, 1fr); }

.basis p { margin: 0 0 6px; }

.hidden-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.wuxing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.wuxing div,
.flow article,
.luck a {
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}

.wuxing div { padding: 12px 4px 10px; }

.wuxing span,
.flow span,
.luck span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.wuxing strong { display: block; font-size: 28px; font-weight: 600; }

.block { margin-top: 28px; }

.block h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.bone {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0.12em;
}

.reading {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.focus {
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}

.focus li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 14px;
  line-height: 1.7;
}

.focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.verse {
  margin: 8px 0 0;
  color: #c44536;
  font-size: 18px;
  font-style: italic;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.guide {
  margin: 12px 0 0;
}

.guide dt {
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.guide dd {
  margin: 4px 0 0;
  line-height: 1.8;
}

.mark {
  letter-spacing: 0.12em;
}

.mark.is-吉 { color: #2f6b4f; }

.mark.is-凶 { color: var(--cinnabar); }

.mark.is-平 { color: var(--muted); }

.wave {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 8px;
  margin: 16px 0 8px;
}

.wave-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.wave-body {
  position: relative;
  height: 150px;
}

.wave-body svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wave-body line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }

.wave-body polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.wave-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 28px;
  font-size: 13px;
  text-decoration: none;
  color: #fffaf2;
}

.wave-dot.is-吉 { background: #2f6b4f; }

.wave-dot.is-凶 { background: var(--cinnabar); }

.wave-dot.is-平 { background: #8a7d6e; }

.wave-dot.is-on { outline: 2px solid var(--ink); outline-offset: 2px; }

.wave-caps {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 6px;
}

.wave-caps a {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.wave-caps a.is-on { color: var(--ink); }

.luck {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}

.luck a {
  min-width: 88px;
  padding: 8px 10px 10px;
  text-decoration: none;
}

.luck a.is-on {
  background: var(--ink);
  color: #fffaf2;
  border-color: var(--ink);
}

.luck a.is-on span { color: #f3e6d4; }

.luck strong,
.flow strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.flow article { padding: 10px 4px; }

.flow article.is-now { border-color: var(--cinnabar); }

.ziwei {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.ziwei-center,
.palace {
  background: var(--card);
  border: 1px solid var(--line);
}

.ziwei-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
}

.ziwei-center p { margin: 0; letter-spacing: 0.08em; }

.ziwei-center .kicker { font-size: 22px; color: var(--cinnabar); }

.palace {
  min-height: 128px;
  padding: 8px 8px 10px;
}

.palace.is-ming { border-color: var(--cinnabar); }

.palace h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.palace .about {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stars { margin: 0; line-height: 1.7; }

.star {
  display: inline-block;
  margin-right: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.star.is-major { color: var(--cinnabar); }

.star.is-sha { color: var(--muted); }

.star sup { margin-left: 1px; font-size: 11px; }

.limit {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

.is-el-0 { color: #2f7d46; }
.is-el-1 { color: #c44536; }
.is-el-2 { color: #8d6239; }
.is-el-3 { color: #a6842f; }
.is-el-4 { color: #2f6fad; }

.board {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.board-banner {
  margin: 0;
  padding: 10px 16px;
  background: #f3e6c8;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.board-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.date-stamp {
  border: 1px solid var(--line);
  text-align: center;
}

.date-stamp span {
  display: block;
  background: var(--cinnabar);
  color: #fffaf2;
  letter-spacing: 0.12em;
}

.date-stamp strong {
  display: block;
  padding: 8px 0 10px;
  font-size: 32px;
  line-height: 1;
}

.board-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.14em;
}

.board-title .is-day { color: var(--cinnabar); }

.pillar-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.pillar-table .role {
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.pillar-table strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.pillar-table b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pillar-table small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
}

.pillar-table article > span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.board-facts {
  margin: 0;
}

.board-facts div {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}

.board-facts dt { color: var(--muted); }

.board-facts dd { margin: 0; }

.mini-luck-wrap {
  overflow-x: auto;
  padding: 0 16px 14px;
}

.mini-luck {
  display: grid;
  grid-template-columns: 3em repeat(8, minmax(2.6em, 1fr));
  gap: 4px 0;
  min-width: 520px;
  text-align: center;
  font-size: 14px;
}

.mini-luck span,
.mini-luck a {
  padding: 4px 0;
  text-decoration: none;
}

.mini-luck a.is-on {
  color: var(--cinnabar);
  font-weight: 700;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.jumps a {
  padding: 7px 12px;
  background: var(--ink);
  color: #fffaf2;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.part {
  margin-top: 22px;
  scroll-margin-top: 12px;
}

.part h2 {
  margin: 0;
  padding: 10px 14px;
  background: #f6ecd6;
  border-bottom: 3px solid var(--cinnabar);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.part .body { padding-top: 12px; }

.bars { display: grid; gap: 10px; margin-top: 12px; }

.bar-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr) 3em;
  gap: 8px;
  align-items: center;
}

.bar-row.is-self span:first-child {
  color: var(--cinnabar);
  font-weight: 700;
}

.bar-track {
  display: block;
  height: 14px;
  background: #efe6d6;
}

.bar-fill {
  display: block;
  height: 100%;
  background: currentColor;
}

@media (max-width: 800px) {
  .sheet {
    width: 100%;
    margin: 0;
    padding: 22px 16px 28px;
    border: 0;
    box-shadow: none;
  }

  h1 { font-size: 46px; }

  .top { display: block; }

  .modes { margin-top: 18px; }

  .hours { grid-template-columns: repeat(3, 1fr); }

  .pillars.is-four { grid-template-columns: 1fr 1fr; }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .hero > div { width: 100%; }

  .sentence { margin-left: 0; margin-right: 0; }

  .pillars { grid-template-columns: 1fr; }

  .pillar strong { font-size: 36px; }

  .mid,
  .columns { grid-template-columns: 1fr; }

  .daynav {
    margin: 4px 0 0;
    padding: 0;
  }

  .modes a {
    padding: 8px 10px;
    letter-spacing: 0.08em;
  }

  .board-main { grid-template-columns: 1fr; gap: 14px; padding: 14px; }

  .board-facts { grid-column: auto; }

  .board-title { font-size: 22px; }

  .pillar-table b { font-size: 20px; }

  .bar-row { grid-template-columns: 7.2em minmax(0, 1fr) 2.6em; font-size: 14px; }

  .flow { grid-template-columns: 1fr 1fr; }

  .ziwei { gap: 4px; }

  .palace {
    min-height: 0;
    padding: 4px;
  }

  .palace h3 { font-size: 13px; }

  .bone { font-size: 28px; }

  .ziwei-center { padding: 8px; }
}

.sheet {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 64px;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.top {
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 0;
}

.picker,
.board,
.part {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}

.picker {
  margin-top: 18px;
  padding: 16px;
  align-items: end;
}

input[type="date"],
input[type="email"],
select {
  background: #f7f8fa;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 48px;
}

input[type="date"]:focus,
input[type="email"]:focus,
select:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
  background: #fff;
}

button {
  background: #16181d;
  color: #fff;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

button:hover { background: #000; }

.board {
  margin-top: 16px;
  overflow: hidden;
}

.board-banner {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.date-stamp {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f8fa;
}

.date-stamp span {
  background: #16181d;
  font-size: 12px;
  font-weight: 600;
}

.board-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.board-title .is-day { color: var(--ink); }

.pillar-table article {
  background: #f7f8fa;
  border-radius: 16px;
  padding: 12px 4px 14px;
}

.pillar-table strong {
  font-size: 18px;
  font-weight: 700;
}

.board-facts div {
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f4;
}

.mini-luck-wrap {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}

.jumps { gap: 8px; margin-top: 16px; }

.jumps a {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0;
}

.jumps a:hover { border-color: #16181d; }

.part { padding: 0; overflow: hidden; }

.part h2 {
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: #fff;
}

.sec .sec-icon { width: 20px; height: 20px; display: block; }

.sec.is-wu { background: #2f7d46; }
.sec.is-read { background: #4f46e5; }
.sec.is-luck { background: #c44536; }
.sec.is-flow { background: #2f6fad; }
.sec.is-avoid { background: #0f766e; }
.sec.is-guide { background: #a6842f; }
.sec.is-bone { background: #8d6239; }
.sec.is-zoo { background: #7c3aed; }
.sec.is-book { background: #16181d; }
.sec.is-off { background: #e5e7eb; color: #6b7280; }

.jumps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jumps .sec { width: 22px; height: 22px; border-radius: 7px; }
.jumps .sec .sec-icon { width: 14px; height: 14px; }

.voice-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.voice-list li { display: flex; gap: 10px; align-items: flex-start; }
.voice-list strong { display: block; font-size: 13px; letter-spacing: 0.08em; }
.voice-list p { margin: 2px 0 0; line-height: 1.75; }

.tone {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}

.flow .tone { display: inline-flex; margin: 6px auto; }

.tone i {
  width: 5px;
  border-radius: 2px;
  background: #e5e7eb;
}

.tone i:nth-child(1) { height: 6px; }
.tone i:nth-child(2) { height: 10px; }
.tone i:nth-child(3) { height: 14px; }
.tone.is-吉 i { background: #2f7d46; }
.tone.is-平 i:nth-child(-n+2) { background: #d4a017; }
.tone.is-凶 i:first-child { background: #e11d48; }

.books {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.books li { display: flex; gap: 10px; align-items: flex-start; }
.books strong { margin-right: 8px; }
.books span.on { color: #2f7d46; font-weight: 700; font-size: 12px; }
.books li > div > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.books p { margin: 2px 0 0; }
.classic {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-left: 3px solid #16181d;
  background: #f8f7f4;
  border-radius: 0 8px 8px 0;
}
.classic p { margin: 0; }
.classic .src { margin-top: 4px; color: var(--muted); font-size: 12px; }

.plain-now { color: #c44536; }

.part .body { padding: 14px 18px 18px; }

.kicker-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.kicker-note::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239ca3af' d='M9.2 5.2c1.7 0 3 1.4 3 3.1 0 2.5-1.8 4.6-4.6 5.6.5-1.9.1-3.2-1-3.2-1.2 0-2.1-1.2-2.1-2.7 0-1.8 1.3-2.8 2.8-2.8h1.9zm9.2 0c1.7 0 3 1.4 3 3.1 0 2.5-1.8 4.6-4.6 5.6.5-1.9.1-3.2-1-3.2-1.2 0-2.1-1.2-2.1-2.7 0-1.8 1.3-2.8 2.8-2.8h1.9z'/%3E%3C/svg%3E");
}

.easy,
.side-cards {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.side-cards { grid-template-columns: 1fr 1fr; }

.easy { grid-template-columns: 1fr 1fr; }

.easy li.is-score { grid-column: 1 / -1; }

.easy li,
.side-cards li {
  margin: 0;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 4px;
}

.direct {
  list-style: none;
  margin: 0 0 18px 47px;
  padding: 0;
}

.direct li {
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 16px;
  line-height: 1.75;
}

.direct strong {
  margin-right: 6px;
  color: #1e3a8a;
  font-weight: 700;
}

.direct strong::after { content: "："; }

.easy .ref-note,
.side-cards .ref-note {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.easy li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.grade { margin: 12px 0 6px; }

.grade-plot {
  position: relative;
  height: 36px;
  margin: 0 4px;
}

.grade-plot::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: #e3ddd2;
  transform: translateY(-50%);
}

.grade-pip {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfc6b8;
  transform: translate(-50%, -50%);
}

.grade-dot {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.grade-dot.is-極不好 { background: #c44536; }

.grade-dot.is-不好 { background: #b5654a; }

.grade-dot.is-中間 { background: #8a7d6e; }

.grade-dot.is-好 { background: #2f6b4f; }

.grade-dot.is-極好 { background: #1d5c45; }

.grade-caps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2px;
}

.grade-caps span {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.grade-caps .is-on {
  color: var(--ink);
  font-weight: 700;
}

.easy li em,
.side-cards em {
  display: block;
  margin-top: 4px;
  color: #3f4450;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
}

.side-cards > li > span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-cards p { margin: 0; line-height: 1.7; }

.tone-0 { border-left-color: #4f46e5; }
.tone-1 { border-left-color: #e11d48; }
.tone-2 { border-left-color: #2f7d46; }
.tone-3 { border-left-color: #a6842f; }
.tone-0 strong,
.tone-0 > span { color: #4f46e5; }
.tone-1 strong,
.tone-1 > span { color: #e11d48; }
.tone-2 strong,
.tone-2 > span { color: #2f7d46; }
.tone-3 strong,
.tone-3 > span { color: #8d6239; }
.easy > li { border-left-color: #1d4ed8; }

.easy > li.tone-0 > strong,
.easy > li.tone-1 > strong,
.easy > li.tone-2 > strong,
.easy > li.tone-3 > strong {
  color: #1d4ed8;
}
.tone-0 > span { background: #eef0ff; }
.tone-1 > span { background: #fdecee; }
.tone-2 > span { background: #eef6f0; }
.tone-3 > span { background: #fbf6e8; }

.voice-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.focus.is-quiet {
  display: block;
  width: auto;
  margin: 16px 0 22px 45px;
  padding: 0;
}

.focus.is-quiet li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 16px;
  color: #1d4ed8;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  background: none;
  border-radius: 0;
}

.focus.is-quiet li::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d4ed8;
}

.reading {
  margin-left: 47px;
  color: #3a3f4b;
  padding-left: 12px;
  border-left: 2px solid #eadfcb;
}

.voice {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f7f8fa;
}

.voice p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.voice p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #f0f1f4;
  overflow: hidden;
}

.bar-fill { border-radius: 999px; }

.flow article,
.luck a {
  border-radius: 14px;
  background: #fff;
}

.flow article.is-now { border-color: #16181d; }

.luck a.is-on {
  background: #16181d;
  color: #fff;
  border-color: #16181d;
}

.luck a.is-on span { color: #d1d5db; }

.bone { letter-spacing: -0.03em; }

svg.mark-icon {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: block;
  flex: none;
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.with-icon svg.mark-icon { width: 28px; height: 28px; max-width: 28px; max-height: 28px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}

.el-pips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.el-pips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.el-pips svg.mark-icon { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }

.el-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.el-tile {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 4px 10px;
  border-radius: 16px;
  background: #f7f8fa;
}

.el-tile svg.mark-icon { width: 36px; height: 36px; max-width: 36px; max-height: 36px; }

.el-tile strong { font-size: 15px; }

.el-tile span { font-size: 12px; color: inherit; opacity: 0.8; }

.el-tile.is-el-0 { color: #2f7d46; background: #eef6f0; }
.el-tile.is-el-1 { color: #c44536; background: #fdecee; }
.el-tile.is-el-2 { color: #8d6239; background: #f8f1e8; }
.el-tile.is-el-3 { color: #a6842f; background: #fbf6e8; }
.el-tile.is-el-4 { color: #2f6fad; background: #eef4fb; }

.el-tile.is-self { box-shadow: inset 0 0 0 2px currentColor; }

.bar-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.bar-name svg.mark-icon { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }

.bar-row.is-self .bar-name.is-el-0 { color: #2f7d46; }
.bar-row.is-self .bar-name.is-el-1 { color: #c44536; }
.bar-row.is-self .bar-name.is-el-2 { color: #8d6239; }
.bar-row.is-self .bar-name.is-el-3 { color: #a6842f; }
.bar-row.is-self .bar-name.is-el-4 { color: #2f6fad; }

.bar-row { grid-template-columns: 12em minmax(0, 1fr) 3em; }

.zoo {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.zoo div {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-radius: 14px;
  color: var(--muted);
  background: #f7f8fa;
}

.zoo svg.mark-icon { width: 44px; height: 44px; max-width: 44px; max-height: 44px; }

.zoo span { font-size: 13px; font-weight: 600; }

.zoo small {
  min-height: 1em;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.zoo .is-on {
  color: #16181d;
  background: #fff;
  box-shadow: inset 0 0 0 2px #16181d;
  font-weight: 700;
}

.zoo .is-he { color: #2f7d46; background: #eef6f0; }
.zoo .is-chong { color: #9a3412; background: #fff1e8; }
.zoo .is-hai { color: #92400e; background: #fbf3e4; }
.zoo .is-san.is-el-0 { color: #2f7d46; background: #eef6f0; }
.zoo .is-san.is-el-1 { color: #c44536; background: #fdecee; }
.zoo .is-san.is-el-3 { color: #a6842f; background: #fbf6e8; }
.zoo .is-san.is-el-4 { color: #2f6fad; background: #eef4fb; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chips svg.mark-icon { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }

.chip {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.16);
}

.home-guide { margin-top: 28px; }
.guide-block + .guide-block { margin-top: 40px; }
.guide-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.guide-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.guide-badge .sec-icon { width: 20px; height: 20px; display: block; }
.guide-badge.is-wood { background: #2f7d46; }
.guide-badge.is-fire { background: #c44536; }
.guide-badge.is-earth { background: #8d6239; }
.guide-badge.is-metal { background: #b08a3e; }
.guide-badge.is-water { background: #2f6fad; }
.home-guide p {
  margin: 0 0 14px;
  max-width: 38em;
  color: #3a3f48;
  font-size: 17px;
  line-height: 1.9;
}
.home-guide .guide-lead {
  max-width: 20em;
  color: #16181d;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.guide-tiles,
.guide-five {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.guide-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.guide-five { grid-template-columns: repeat(5, minmax(0, 88px)); margin-bottom: 14px; }
.guide-tiles li,
.guide-five li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 8px;
  border-radius: 18px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.guide-tiles li.is-wood { color: #2f7d46; }
.guide-tiles li.is-fire { color: #c44536; }
.guide-tiles li.is-earth { color: #8d6239; }
.guide-tiles li.is-metal { color: #a6842f; }
.guide-tiles li.is-water { color: #2f6fad; }
.guide-tiles .guide-badge { width: 46px; height: 46px; border-radius: 50%; color: #fff; }
.guide-five li { color: #3f4450; background: transparent; padding: 0; gap: 6px; }
.guide-five .mark-icon {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  color: #fff;
}
.guide-five .is-el-0 .mark-icon { background: #2f7d46; }
.guide-five .is-el-1 .mark-icon { background: #c44536; }
.guide-five .is-el-2 .mark-icon { background: #8d6239; }
.guide-five .is-el-3 .mark-icon { background: #b08a3e; }
.guide-five .is-el-4 .mark-icon { background: #2f6fad; }
.guide-five .is-el-0 span { color: #2f7d46; }
.guide-five .is-el-1 span { color: #c44536; }
.guide-five .is-el-2 span { color: #8d6239; }
.guide-five .is-el-3 span { color: #a6842f; }
.guide-five .is-el-4 span { color: #2f6fad; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card {
  margin: 0;
  padding: 22px 20px 20px;
  border-radius: 20px;
}
.guide-card.is-wood { background: #e7f4ec; }
.guide-card.is-fire { background: #fdecea; }
.guide-card.is-earth { background: #f6efe6; }
.guide-card.is-metal { background: #f8f1df; }
.guide-card.is-water { background: #e7f2fb; }
.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.guide-card .guide-badge { width: 28px; height: 28px; border-radius: 9px; }
.guide-card .guide-badge .sec-icon { width: 16px; height: 16px; }
.guide-card p {
  margin: 0;
  max-width: none;
  color: #3f4450;
  font-size: 15px;
  line-height: 1.8;
}
.home-hero,
.home-shot { margin: 8px 0 18px; }
.home-guide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #f7f8fa;
}
.home-shot img { max-width: 720px; }
.home-guide figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.home-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.home-faq > div {
  margin: 0;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: #fff;
  border-top: 4px solid #2f6fad;
}
.home-faq > div:nth-child(6n+2) { border-top-color: #2f7d46; }
.home-faq > div:nth-child(6n+3) { border-top-color: #c44536; }
.home-faq > div:nth-child(6n+4) { border-top-color: #b08a3e; }
.home-faq > div:nth-child(6n+5) { border-top-color: #8d6239; }
.home-faq > div:nth-child(6n+6) { border-top-color: #3d8eb5; }
.home-faq dt {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home-faq dd {
  margin: 8px 0 0;
  color: #4b5160;
  font-size: 15px;
  line-height: 1.8;
}

body.has-sky {
  position: relative;
  overflow-x: hidden;
  background: #efe6d6;
}
body.has-sky .sheet {
  position: relative;
  z-index: 1;
}
body.has-sky:not(.is-home) .sheet {
  width: min(1080px, calc(100% - 120px));
  margin: 48px auto 72px;
  padding: 48px 56px 56px;
  background: rgba(255, 250, 242, 0.94);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(70, 46, 22, 0.12);
}
body.has-sky:not(.is-home) .picker,
body.has-sky:not(.is-home) .board,
body.has-sky:not(.is-home) .part {
  margin-top: 24px;
}
body.has-sky:not(.is-home) .brand h1,
body.has-sky:not(.is-home) .brand-sub {
  text-shadow: 0 1px 0 rgba(255, 248, 236, 0.8);
}
body.is-home {
  position: relative;
  overflow-x: hidden;
  background: #efe6d6;
}
body.is-home .sheet {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 0;
}
body.is-home .top { border-bottom: 0; padding-bottom: 8px; }
body.is-home .lede { display: none; }
body.is-home .brand h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 248, 236, 0.8);
}
body.is-home .brand-sub {
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255, 248, 236, 0.8);
}

.home-sky {
  position: fixed;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  background: #cbb892 url("home-room.png") center 42% / cover no-repeat;
  pointer-events: none;
}
.home-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.28) 0%, rgba(255, 248, 236, 0.04) 42%, rgba(20, 17, 14, 0) 100%);
}
.home-sun {
  position: absolute;
  left: -8%;
  top: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 228, 160, 0.55), rgba(255, 228, 160, 0) 68%);
  filter: blur(8px);
  animation: sun-breathe 8s ease-in-out infinite;
}
.home-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 246, 214, 0.9);
  filter: blur(0.5px);
  animation: mote-rise 10s linear infinite;
}
.home-mote:nth-child(2) { left: 18%; top: 42%; animation-duration: 12s; }
.home-mote:nth-child(3) { left: 28%; top: 58%; animation-duration: 9s; animation-delay: -3s; }
.home-mote:nth-child(4) { left: 12%; top: 34%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -6s; }
@keyframes sun-breathe {
  0%, 100% { opacity: 0.45; transform: translate3d(0, 0, 0); }
  50% { opacity: 0.95; transform: translate3d(4%, 2%, 0); }
}
@keyframes mote-rise {
  0% { opacity: 0; transform: translateY(16px); }
  18% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-90px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-sun, .home-mote { animation: none; }
}

.home-intro {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 32px 30px 28px;
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 18px 40px rgba(70, 46, 22, 0.1);
  min-width: 0;
}
.home-kicker {
  margin: 0 0 10px !important;
  color: #8d6239 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.4 !important;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px);
  gap: 32px;
  align-items: start;
  margin: 24px 0 48px;
}
.home-mail-mid {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #5a4f42;
}
.home-stage > .home-intro {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.home-stage > .picker {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.home-intro h2 {
  margin: 0 0 16px;
  max-width: none;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.home-intro p {
  margin: 0 0 14px;
  max-width: 28em;
  color: #3f4450;
  font-size: 17px;
  line-height: 1.85;
}
.home-intro .home-mail-note {
  display: none;
}
.picker-mail-mid {
  flex: 1 1 100%;
  margin: 0 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #5a4f42;
}
.wu-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.wu-marks li {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  background: none;
  color: #3f4450;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.wu-marks svg {
  width: 72px;
  height: 72px;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(70, 46, 22, 0.16));
}
.wu-marks .is-el-0 span { color: #2f7d46; }
.wu-marks .is-el-1 span { color: #c44536; }
.wu-marks .is-el-2 span { color: #8d6239; }
.wu-marks .is-el-3 span { color: #a6842f; }
.wu-marks .is-el-4 span { color: #2f6fad; }

body.is-home .home-stage > form.picker {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  gap: 14px;
  margin: 0;
  padding: 28px 24px 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 252, 247, 0.96);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(22, 24, 29, 0.1);
}
body.is-home .home-stage > form.picker > .field,
body.is-home .home-stage > form.picker > .email-error,
body.is-home .home-stage > form.picker > .captcha-wrap,
body.is-home .home-stage > form.picker > button {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
}
body.is-home .home-stage .field { gap: 8px; }
body.is-home .home-stage .field > span:not(.field-hint) {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #7a7165;
}
body.is-home .home-stage input,
body.is-home .home-stage select {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  border-color: #e5d8c4;
  border-radius: 12px;
  background: #fff;
  min-height: 48px;
}
body.is-home .home-stage input[type="date"] {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  padding: 10px 12px;
  overflow: hidden;
}
body.is-home .home-stage input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}
body.is-home .home-stage button {
  width: 100%;
  margin-top: 4px;
  border-radius: 999px;
  background: #2c6b42;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
body.is-home .home-stage button:hover { background: #245c38; }
.email-error {
  margin: -4px 0 0;
  color: #c44536;
  font-size: 13px;
}
.captcha-wrap {
  margin: 4px 0 2px;
  min-height: 78px;
}
.captcha-wrap .g-recaptcha {
  transform-origin: left top;
}
.field-email {
  min-width: 0;
}
.field-hint {
  display: block;
  margin: 0;
  max-width: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: #7a7165;
}
body.is-home .home-stage .field-hint,
body.is-home .field-hint {
  color: #7a7165;
}
.mail-notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
}
.mail-notice.is-ok {
  color: #1f4d32;
  background: rgba(47, 125, 70, 0.12);
}
.mail-notice.is-wait {
  color: #5a4f42;
  background: rgba(176, 138, 62, 0.14);
}
.mail-notice.is-fail {
  color: #7a2e24;
  background: rgba(196, 69, 54, 0.12);
}
body.is-home .mail-notice.is-ok,
body.is-home .mail-notice.is-wait,
body.is-home .mail-notice.is-fail {
  color: #fff8ec;
  background: rgba(20, 17, 14, 0.45);
}
body.is-home .home-guide {
  margin-top: 56px;
  padding: 40px 40px 44px;
  background: rgba(255, 250, 242, 0.94);
  border-radius: 28px;
}
.home-dark {
  box-sizing: border-box;
  width: 100vw;
  margin: 8px 0 0 calc(50% - 50vw);
  min-height: 0;
  display: flex;
  align-items: center;
  background: rgba(20, 17, 14, 0.72);
  color: #f6f1e6;
  text-shadow: 0 1px 2px rgba(20, 17, 14, 0.45);
  padding: 56px 0;
}
.home-dark-inner {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.home-dark-lead p {
  margin: 0 0 18px;
  color: #e2b15a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.home-dark-lead h2 {
  margin: 0;
  max-width: 8.2em;
  color: #f7f3ea;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.home-dark ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-dark li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(243, 226, 176, 0.18);
}
.home-dark li:last-child { border-bottom: 1px solid rgba(243, 226, 176, 0.18); }
.home-dark li > span {
  color: #e2b15a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.home-dark h3 {
  margin: 0 0 8px;
  color: #f7f3ea;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-dark li p {
  margin: 0;
  color: rgba(247, 243, 234, 0.78);
  font-size: 16px;
  line-height: 1.75;
  text-shadow: none;
}

@media (max-width: 800px) {
  .sheet {
    width: auto;
    margin: 0;
    padding: 16px 16px 32px;
  }
  body.has-sky:not(.is-home) .sheet {
    width: auto;
    margin: 12px 12px 28px;
    padding: 18px 14px 24px;
    border-radius: 20px;
  }

  h1 { font-size: 32px; }
  .brand h1 { font-size: 22px; letter-spacing: 0.04em; }
  .logo { width: 40px; height: 40px; border-radius: 12px; }
  .lede {
    font-size: 14px;
    line-height: 1.65;
    margin: 8px 0 0;
  }

  /* Result-page form: never sit sex + submit side by side on phones */
  form.picker {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px 14px;
  }
  form.picker > .field,
  form.picker > .email-error,
  form.picker > .captcha-wrap,
  form.picker > .picker-mail-mid,
  form.picker > button {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
  form.picker input,
  form.picker select,
  form.picker button {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  form.picker input[type="date"] {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    padding: 10px 12px;
    overflow: hidden;
  }
  form.picker input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
  }
  .picker-mail-mid {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .picker { padding: 12px; }
  .home-stage { grid-template-columns: 1fr; gap: 28px; }
  /* Mobile: form first, then intro copy */
  .home-stage > .picker {
    grid-column: 1;
    grid-row: 1;
  }
  .home-stage > .home-intro {
    grid-column: 1;
    grid-row: 2;
  }
  .home-mail-mid {
    display: none;
  }
  .home-intro h2 { font-size: 32px; max-width: none; }
  .wu-marks {
    gap: 12px;
    justify-content: space-between;
  }
  .wu-marks svg { width: 48px; height: 48px; }
  .guide-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-cards,
  .guide-cards.is-two,
  .home-faq { grid-template-columns: 1fr; }
  .guide-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-dark { padding: 40px 0; }
  .home-dark-inner { width: min(1120px, calc(100% - 32px)); grid-template-columns: 1fr; gap: 28px; }
  .home-dark-lead h2 { font-size: 34px; max-width: none; }
  .guide-head { font-size: 24px; }
  .home-guide .guide-lead { font-size: 20px; max-width: none; }
  body.is-home .home-guide { padding: 28px 22px 32px; }

  /* Board: stack stamp → title/pillars → facts (full width) */
  .board-banner {
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.45;
  }
  .board-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .board-main > .date-stamp {
    width: 64px;
    flex: none;
    align-self: flex-start;
  }
  .board-main > div {
    width: 100%;
    min-width: 0;
  }
  .board-title {
    font-size: 22px;
    margin: 0 0 12px;
    letter-spacing: 0.06em;
  }
  .board-facts {
    width: 100%;
    margin: 0;
  }
  .pillar-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pillar-table article {
    padding: 12px 8px 14px;
    min-height: 100%;
  }
  .pillar-table .role {
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .pillar-table strong {
    font-size: 16px;
    margin: 4px 0 2px;
  }
  .pillar-table b {
    font-size: 22px;
    line-height: 1.25;
  }
  .pillar-table small {
    font-size: 11px;
  }
  .pillar-table article > span {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 2px;
    overflow-wrap: anywhere;
  }
  .board-facts div {
    grid-template-columns: 3.8em minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  .board-facts dd {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .part .body { padding: 12px 14px 16px; }
  .part h2 {
    font-size: 17px;
    letter-spacing: 0.06em;
    padding: 10px 12px;
  }

  .side-cards,
  .easy,
  .focus.is-quiet,
  .direct { grid-template-columns: 1fr; }

  .el-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bar-row {
    grid-template-columns: 5.5em minmax(0, 1fr) 2.4em;
    font-size: 13px;
    gap: 8px;
  }

  .zoo { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  .jumps {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-top: 14px;
    scrollbar-width: thin;
  }
  .jumps a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .mini-luck-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 12px;
  }
  .mini-luck {
    min-width: 480px;
  }

  .top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .top > div:first-child {
    width: 100%;
  }
  .top-tools {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    gap: 10px;
  }
  .mail-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.55;
    border-radius: 12px;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .wave {
    overflow-x: auto;
  }
}

.top-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  z-index: 2;
}
.visitor-count {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #e8890c;
  white-space: nowrap;
  text-align: right;
}
body.is-home .visitor-count {
  color: #f5a524;
  text-shadow: 0 1px 2px rgba(20, 17, 14, 0.35);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: #5c5348;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.lang-switch a:hover { background: rgba(60, 48, 36, 0.06); }
.lang-switch a[aria-current="page"] {
  color: #1f1a14;
  font-weight: 600;
  background: rgba(60, 48, 36, 0.08);
}
body.is-home .lang-switch a { color: #f4efe4; }
body.is-home .lang-switch a:hover { background: rgba(255, 248, 236, 0.12); }
body.is-home .lang-switch a[aria-current="page"] {
  color: #fff8ec;
  background: rgba(255, 248, 236, 0.16);
}
.lang-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a4f42;
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid rgba(90, 72, 48, 0.14);
}
body.is-guide .sheet {
  width: min(760px, calc(100% - 32px));
}
.guide-page {
  padding: 12px 0 28px;
}
.guide-page .home-kicker a {
  color: inherit;
  text-decoration: none;
}
.guide-page .home-kicker a:hover { text-decoration: underline; }
.guide-page h2 {
  margin: 8px 0 20px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1f1a14;
}
.guide-page section {
  margin: 0 0 22px;
}
.guide-page h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #2c241a;
}
.guide-page p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #3d3428;
}
.guide-page-cta {
  margin-top: 28px;
}
.guide-cta {
  display: inline-block;
  padding: 12px 18px;
  font-weight: 600;
  color: #fff8ec;
  background: #2c241a;
  text-decoration: none;
  border-radius: 8px;
}
.guide-cta:hover { background: #1f1a14; }

@media (max-width: 720px) {
  .top-tools {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 0;
  }
  .visitor-count {
    white-space: normal;
    text-align: left;
    font-size: 13px;
    line-height: 1.35;
    max-width: 55%;
  }
  body.is-home .visitor-count {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.25;
    max-width: min(58%, 12.5em);
    text-shadow: 0 1px 3px rgba(20, 17, 14, 0.45);
    overflow-wrap: anywhere;
    hyphens: none;
  }
  .pillar-table b { font-size: 24px; }
  .mail-notice {
    font-size: 14px;
    line-height: 1.55;
  }
  body.is-home .sheet {
    width: auto;
    margin: 0;
    padding: 12px 14px 28px;
  }
  body.is-home .top {
    padding-top: 8px;
  }
}
