:root {
  --ink: #20372f;
  --muted: #65736c;
  --forest: #284a3e;
  --forest-deep: #18342b;
  --ivory: #f4efe5;
  --paper: #fffdf8;
  --gold: #b7954a;
  --gold-light: #e7d79d;
  --border: rgba(92, 76, 44, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Shippori Mincho", serif;
  line-height: 1.9;
  letter-spacing: 0;
}
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--forest-deep);
}
.site-header a {
  color: var(--gold-light);
  font-family: "Zen Old Mincho", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.oracle-page {
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 74px 0 90px;
}
.oracle-intro { text-align: center; }
.kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Noto Sans JP", sans-serif;
  font-size: .86rem;
}
h1, h2, .oracle-choice span {
  font-family: "Zen Old Mincho", serif;
}
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.42;
}
.daily-date {
  margin: 22px 0 16px;
  color: #81755f;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .9rem;
}
.lead {
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 1.08rem;
}

.oracle-panel {
  padding: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 54px rgba(31, 49, 42, .12);
}
.oracle-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.oracle-choice {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(203, 176, 102, .66);
  border-radius: 7px;
  background: var(--forest);
  color: #f5e7b7;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(29, 54, 45, .18);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.oracle-choice::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 213, 153, .5);
  border-radius: 4px;
}
.oracle-choice::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(232, 213, 153, .4);
  transform: rotate(45deg);
}
.oracle-choice span {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 700;
}
.oracle-choice:hover,
.oracle-choice:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 34px rgba(29, 54, 45, .24);
  outline: none;
}
.oracle-choice.is-selected {
  border-color: #dbbd65;
  background: #365e50;
  transform: translateY(-6px);
}
.oracle-choice:disabled:not(.is-selected) {
  cursor: default;
  opacity: .4;
  transform: none;
}

.oracle-result {
  margin-top: 54px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.oracle-result[hidden] { display: none; }
.oracle-result:focus { outline: none; }
.result-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .86rem;
}
.oracle-result h2 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.5;
}
.result-message {
  width: min(720px, 100%);
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.18rem;
}
.oracle-action {
  width: min(720px, 100%);
  margin: 0 auto 30px;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(183,149,74,.1);
  text-align: left;
}
.oracle-action span {
  color: #856a30;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .76rem;
}
.oracle-action p {
  margin: 6px 0 0;
  font-size: 1.05rem;
}
.oracle-note {
  width: min(650px, 100%);
  margin: 0 auto 36px;
  color: #7e8782;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .7rem;
}
.paid-reading-cta {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 30px;
  background: var(--forest-deep);
  color: white;
}
.paid-reading-cta p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.paid-reading-cta a {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--gold-light);
  border-radius: 5px;
  background: var(--gold);
  color: white;
  font-family: "Zen Old Mincho", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.back-link {
  display: block;
  width: max-content;
  margin: 34px auto 0;
  color: #726951;
  font-size: .88rem;
  text-underline-offset: 5px;
}
footer {
  padding: 36px 20px;
  background: #10251e;
  color: rgba(255,255,255,.78);
  text-align: center;
}
footer p { margin: 0; }
footer p + p { margin-top: 7px; color: rgba(255,255,255,.5); font-size: .72rem; }

@media (max-width: 720px) {
  .site-header { min-height: 62px; }
  .oracle-page { width: min(100% - 28px, 520px); padding: 48px 0 64px; }
  .kicker { margin-bottom: 12px; font-size: .8rem; }
  h1 { font-size: 2.25rem; line-height: 1.48; }
  .daily-date { margin-top: 16px; }
  .lead { margin-bottom: 30px; font-size: .96rem; }
  .oracle-panel { padding: 22px 16px 28px; }
  .oracle-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .oracle-choice { min-height: 190px; }
  .oracle-choice span { font-size: 1.85rem; }
  .oracle-result { margin-top: 34px; padding-top: 32px; }
  .oracle-result h2 { font-size: 2rem; }
  .result-message { font-size: 1.05rem; }
  .oracle-action { padding: 18px; }
  .paid-reading-cta { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .oracle-choice { transition: none; }
}
