@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #302f2a;
  --muted: #6e5c44;
  --clay: #a74627;
  --rust: #b95834;
  --paper: #fff8eb;
  --line: #dfd0b7;
  --focus: #684729;
  --gutter: clamp(20px, 8vw, 34px);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
  background: #eee2cc;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: 0; }
img { max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }

#report {
  width: 100%;
  background: #f7eedc;
}

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: max(600px, 100vh);
  min-height: max(600px, 100dvh);
  padding-block: max(25px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
  padding-inline: max(var(--gutter), (100% - 390px) / 2);
  overflow-wrap: anywhere;
}

.scene-shop::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #fff8ebed, #fff8ebd9 24%, #fff8eb1a 50%, transparent 64%, #fff8eb 94%),
    url("/assets/shop.webp") center / cover;
}

.logo { display: block; width: clamp(125px, 44%, 171px); height: auto; }
.cover-year {
  margin: 35px 0 6px -3px;
  color: var(--rust);
  font-size: clamp(64px, 21.5vw, 90px);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.06em;
}
.cover h1 { margin-top: 16px; font-size: clamp(27px, 7.7vw, 36px); line-height: 1.22; }
.waiting .cover-copy > p:last-child { margin-top: 12px; }
.entry { gap: 48px; }
.entry-form {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 6px;
  background: #fff9edee;
  box-shadow: 0 2px 10px #5f3b1519;
}
.entry-form h2 { font-size: 21px; }
.entry-form form { display: grid; gap: 8px; margin-top: 16px; }
.entry-form label { font-size: 13px; font-weight: 700; }
.entry-form input {
  width: 100%; min-height: 44px; border: 1px solid #a18560; border-radius: 8px;
  padding: 9px 12px; background: #fff; font-size: 16px;
}
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.role-link {
  min-height: 36px; padding: 6px 12px; border: 1px solid #b18e66; border-radius: 20px;
  background: #fff8eb; color: #624122; font-size: 13px; text-decoration: none;
}
.role-link[aria-current="page"] { color: white; background: #704d32; border-color: #704d32; }

.pill {
  min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 30px;
  background: var(--clay); color: white; font-size: 14px; font-weight: 720;
}
.pill:hover { background: #8f371d; }
.note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.rows { list-style: none; padding: 0; }
.rows > li { padding: 7px 0; }
.rows > li + li { border-top: 1px solid var(--line); }

dialog {
  position: fixed; width: min(100%, 450px); max-width: 100%; max-height: min(78dvh, 670px);
  margin: auto auto 0; padding: 0; border: 1px solid #b79b73; border-radius: 17px 17px 0 0;
  background: var(--paper); color: var(--ink);
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #30261791; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
dialog h2 { font-size: 19px; }
.close { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #f3e7d0; color: #593b21; font-size: 25px; }
#drawer-content { padding: 14px 18px max(24px, env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; }
.contents { display: grid; gap: 6px; }
.chapter-link { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 6px; background: #f3e7d0; color: #563e26; text-align: left; }
.chapter-link:hover { background: #ecd6b0; }
