@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f0e4;
  --ink: #142b25;
  --green: #123b30;
  --gold: #ffce72;
  --red: #a93729;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #d9603f; outline-offset: 4px; }
.wrap { width: min(920px, calc(100% - 36px)); margin-inline: auto; }
.masthead { background: var(--green); color: #fff4d9; border-bottom: 4px solid #c28e48; }
.masthead .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
main { padding: 36px 0 50px; }
.intro { text-align: center; margin-bottom: 26px; }
h1 { margin: 0; font-size: clamp(1.85rem, 6.5vw, 4.5rem); font-weight: 900; line-height: 1.18; letter-spacing: -.055em; }
.intro h1 span:first-child { display: block; margin-bottom: 5px; font-size: .45em; letter-spacing: .14em; }
.accent { color: var(--red); }
.intro p { margin: 13px 0 0; font-size: clamp(.75rem, 2.7vw, 1rem); font-weight: 500; }
.board { max-width: 740px; margin: auto; border: 1px solid var(--green); border-radius: 13px; overflow: hidden; box-shadow: 0 9px 0 #dcd2bc; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px clamp(12px, 4vw, 26px); background: #fff8e8; border-bottom: 1px solid #c9b994; }
.board-head h2, .board-head p { margin: 0; font-size: .91rem; font-weight: 700; }
.board-head p { font-variant-numeric: tabular-nums; color: var(--red); }
.board-inner { background: repeating-linear-gradient(120deg, #ffffff04 0 14px, transparent 14px 28px), var(--green); color: #fff4d9; padding: 14px clamp(10px, 4vw, 28px) 12px; }
.entries { width: min(100%, 410px); margin: 0 auto 13px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.entry { position: relative; min-height: 44px; border: 1px solid #dbc49b; border-radius: 6px; background: #f8ead0; color: #19352a; box-shadow: 0 2px 0 #0b2a22; font: 700 1.45rem/1 "Barlow Condensed", sans-serif; }
.entry:hover:not([aria-disabled="true"]), .entry.active { background: var(--gold); border-color: var(--gold); }
.entry[aria-disabled="true"] { cursor: wait; }
.entry.seen::after { content: "✓"; position: absolute; top: 4px; right: 5px; color: #316747; font: 700 .68rem/1 sans-serif; }
.lanes, .goals { display: grid; grid-template-columns: repeat(10, 1fr); text-align: center; }
.lanes span { color: #e9d8b1; font: 600 .83rem/1 "Barlow Condensed", sans-serif; }
.lanes .active { color: var(--gold); }
#track { display: block; width: 100%; height: clamp(198px, 36vw, 258px); }
.goal { width: 9px; height: 9px; margin: auto; border-radius: 50%; border: 1px solid #d7c9a6; }
.goal.active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.status { margin: 11px 0 0; text-align: center; color: #f4e7c9; font-size: .74rem; min-height: 1.5em; }
.back { background: #fff8e8; color: var(--green); border: 1px solid #958666; border-radius: 5px; padding: 10px 16px; font-weight: 700; min-height: 44px; }
.back:hover { background: #ffebbf; }
#story h1 { margin: 20px 0; font-size: clamp(1.7rem, 5.6vw, 3.3rem); line-height: 1.3; letter-spacing: -.04em; }
#story-image { display: block; width: 100%; height: auto; border-radius: 8px; }
.reading { width: min(100%, 680px); margin: 24px auto 0; font-size: 1rem; line-height: 1.95; }
.reading p { margin: 0 0 1.2em; }
#story-body p { white-space: pre-line; }
.video { border-top: 3px solid #b98c53; margin: 30px 0 24px; padding: 19px clamp(13px, 4vw, 24px); background: #e8dfca; }
.video h2 { margin: 0 0 8px; font-size: 1.1rem; }
#video-links { display: grid; gap: 9px; }
#video-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; background: var(--green); color: #fff6e2; border-radius: 5px; font-weight: 700; font-size: .87rem; line-height: 1.5; }
#video-links a:hover { background: #23584a; }
@media (max-width: 480px) {
  main { padding-top: 25px; }
  .wrap { width: calc(100% - 26px); }
  .intro { margin-bottom: 20px; }
  .entry.seen::after { right: 4px; }
}
