:root {
  color-scheme: dark;
  --cream: #fae8ce;
  --sand: #ccb19a;
  --edge: #715348;
  --ember: #e8a377;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 22% 45%, #49291f, transparent 55%), #231815;
  font: 1rem/1.8 var(--serif);
}
.wrap { width: min(1160px, 100%); margin: auto; padding: 0 clamp(22px, 5vw, 72px); }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header {
  min-height: 78px;
  border-bottom: 1px solid var(--edge);
  font: 600 .76rem/1.3 Georgia, serif;
  letter-spacing: .16em;
}
header > span { color: var(--sand); font-size: .72rem; }
a { color: inherit; text-underline-offset: .28em; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.eyes { display: inline-flex; align-items: center; }
.eyes::before, .eyes::after {
  content: ""; width: 15px; height: 10px; border: 2px solid var(--ember);
  border-radius: 50%; background: linear-gradient(transparent 43%, var(--ember) 44% 56%, transparent 57%);
}
.eyes::before { transform: rotate(10deg); margin-right: -1px; }
.eyes::after { transform: rotate(-10deg); }
main { min-height: min(720px, calc(100svh - 144px)); display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(24px, 5vw, 76px); padding: 48px 0; }
.artifact { margin: 0; text-align: center; min-width: 0; }
.image-field { position: relative; isolation: isolate; display: grid; place-items: center; }
.rings {
  position: absolute; z-index: -1; width: 88%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #c0845b55;
  box-shadow: 0 0 0 9px #b7745109, 0 0 0 10px #ad6e4b39;
  background: radial-gradient(circle at 38% 40%, #99563e 0, #66382b 52%, #452b25 74%);
}
.rings::before { content: ""; position: absolute; inset: 7px; border: 2px dotted #dfad8160; border-radius: 50%; }
.image-field img { width: 96%; height: auto; display: block; filter: drop-shadow(1px 13px 12px #10090780); }
figcaption { color: var(--sand); font-size: .8rem; letter-spacing: .12em; margin-top: 10px; }
figcaption b { display: inline-block; vertical-align: middle; margin: 0 6px; width: 16px; height: 1px; background: var(--edge); }
.panel { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ember); font-size: .94rem; letter-spacing: .14em; margin: 0; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); letter-spacing: .045em; font-weight: 600; line-height: 1.35; margin: .18em 0 .32em; }
.intro { line-height: 2.1; letter-spacing: .055em; margin: 0 0 28px; color: #ebd7bf; }
.narrow { display: none; }
button {
  cursor: pointer; min-height: 52px; border: 1px solid #efb789; border-radius: 4px;
  padding: 12px 30px; font: 600 1rem/1.5 var(--serif); letter-spacing: .12em;
  width: min(300px,100%); color: #382019; background: #edb689;
}
button:hover { background: #f6c99d; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ember); outline-offset: 5px; }
.result {
  color-scheme: light; background: #f2e3c9; color: #39281f; padding: clamp(20px, 3.1vw, 40px);
  border-top: 4px solid #c87c50; box-shadow: 0 12px 32px #170e0966;
  outline: none; scroll-margin-top: 16px;
}
.slip-head { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #b69980; padding-bottom: 11px; color: #724b36; font-size: .85rem; letter-spacing: .12em; }
.result h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); margin: .72em 0 .36em; line-height: 1.4; overflow-wrap: anywhere; }
.result-text, .action-box p { margin: 0; }
.action-box { margin: 21px 0; border-left: 2px solid #a35d3e; padding-left: 14px; }
.action-box h3 { color: #79462d; font-size: .86rem; margin: 0 0 3px; letter-spacing: .1em; }
.again-button { background: transparent; color: #583d2a; border-color: #a1856e; width: 100%; }
.again-button:hover { background: #e6d2b6; }
footer { color: var(--sand); border-top: 1px solid var(--edge); font-size: .8rem; min-height: 62px; }
@media (max-width: 720px) {
  header { min-height: 54px; }
  main { grid-template-columns: 1fr; gap: 22px; padding: 18px 0 32px; min-height: auto; }
  .artifact { width: min(82%, 360px); margin: auto; }
  figcaption { margin-top: 0; }
  .panel { width: min(100%, 470px); margin: auto; }
  #draw-area { text-align: center; }
  .eyebrow { justify-content: center; font-size: .85rem; }
  .eyebrow::before { display: none; }
  h1 { font-size: clamp(2.8rem, 11vw, 3.65rem); }
  .intro { line-height: 1.9; margin-bottom: 18px; }
  .narrow { display: inline; }
  footer { min-height: 54px; }
}
@media (max-width: 380px) {
  .brand { gap: 6px; }
  header, header > span { font-size: .66rem; }
  .wrap { padding-inline: 16px; }
}
