@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin.woff') format('woff');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #fbfaf7;
  --surface: #f1eee8;
  --ink: #303b36;
  --muted: #656b64;
  --accent: #bd522d;
  --soft: #f5e5d8;
  --line: #363f351c;
  --radius: 14px;
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; line-height: 1.65; -webkit-tap-highlight-color: #bd522d20; }
::selection { background: #edcfb7; color: #303b36; }
html { scrollbar-color: #c6beb2 var(--page); }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; }
h1 { font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
h3 { font-size: 18px; font-weight: 650; }
p { color: var(--muted); }
img { max-width: 100%; display: block; }
.icon { flex-shrink: 0; vertical-align: middle; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 20px; top: -100px; background: var(--ink); color: var(--page); padding: 10px 20px; z-index: 20; }
.skip:focus { top: 10px; }
.header { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 33px; height: 33px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy > span { font-size: 23px; font-weight: 750; letter-spacing: -.045em; }
.brand-copy small { color: var(--muted); margin-top: 3px; font-size: 10px; letter-spacing: .035em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 550; }
.nav > a { min-height: 44px; display: flex; align-items: center; position: relative; color: var(--muted); }
.nav > a[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; bottom: 1px; width: 17px; height: 2px; left: calc(50% - 8.5px); background: var(--accent); }
.nav a:hover { color: var(--accent); }
.language { display: flex; align-items: center; font-size: 12px; margin-left: 8px; }
.language a { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--muted); }
.language a + a { margin-left: 3px; }
.language [aria-current="page"] { color: var(--accent); font-weight: 750; }
.main { flex: 1; padding-bottom: 88px; }
.footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand > span:first-child { font-weight: 750; color: var(--ink); }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer a { min-height: 44px; display: flex; align-items: center; }
.footer a:hover { color: var(--accent); }
.crumb { display: inline-flex; align-items: center; min-height: 44px; margin: 13px 0 26px; color: var(--muted); font-size: 13px; gap: 9px; }
.crumb .icon { width: 17px; height: 17px; }
.crumb:hover { color: var(--accent); }
.details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: center; }
.detail-cover { border-radius: var(--radius); background: #e5ecdf; overflow: hidden; aspect-ratio: 1.15; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tags { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: 12px; color: var(--muted); }
.details h1 { font-size: clamp(29px, 3.2vw, 40px); }
.details .description { margin-top: 20px; font-size: 15px; line-height: 1.95; }
.primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 11px 25px; background: var(--accent); color: var(--page); border: 0; border-radius: 9px; font-weight: 650; cursor: pointer; transition: background .2s; }
.primary:hover { background: #9c3d1d; }
.details .primary { margin: 28px 0 12px; }
.small-note { font-size: 12px; }
.guide { margin: 52px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid var(--line); padding-top: 32px; }
.guide h2 { font-size: 20px; margin-bottom: 16px; }
.guide p { font-size: 14px; line-height: 1.95; }
.guide ul { padding-left: 19px; color: var(--muted); font-size: 14px; line-height: 2; margin: 0; }
.prose { max-width: 680px; margin: 8px auto 0; }
.prose h1 { margin-bottom: 25px; }
.prose h2 { font-size: 21px; margin-top: 34px; margin-bottom: 12px; }
.prose p { margin: 0 0 16px; line-height: 1.95; }
.prose a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-note { display: flex; align-items: center; gap: 18px; padding-top: 25px; border-top: 1px solid var(--line); margin-top: 30px; }
.cat-note img { width: 32px; height: 32px; }
.prose .cat-note p { margin: 0; font-size: 13px; }
.play-main { padding-bottom: 40px; }
.play-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.play-toolbar h1 { font-size: 21px; letter-spacing: -.02em; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); cursor: pointer; font-size: 12px; }
.quiet-button:hover { background: var(--surface); }
.game-frame { display: block; width: 100%; height: min(850px, calc(100dvh - 160px)); min-height: 568px; border: 0; border-radius: var(--radius); background: #e5ecdf; }
.game-frame:fullscreen { height: 100dvh; border-radius: 0; }
.play-note { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; font-size: 12px; margin-top: 16px; }
.play-note a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; }
.play-note a:hover { color: var(--accent); }
.status { color: var(--accent); font-size: 13px; margin-top: 12px; }
.status:empty { display: none; }
.redirect { max-width: 600px; margin: 80px auto; padding: 24px; }
.redirect a { color: var(--accent); text-decoration: underline; }
@media (max-width: 1100px) {
  .details, .guide { gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 82px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand-copy > span { font-size: 20px; }
  .brand-copy small { font-size: 9px; }
  .nav { gap: 15px; font-size: 12px; }
  .nav .about-nav { display: none; }
  .language { margin-left: 0; font-size: 11px; }
  .language a { min-width: 33px; }
  .language a + a { margin-left: 0; }
  .main { padding-bottom: 64px; }
  .footer { align-items: flex-start; flex-direction: column; padding-top: 25px; gap: 8px; font-size: 10px; }
  .footer-brand { gap: 13px; flex-wrap: wrap; }
  .footer nav { gap: 25px; }
  .crumb { margin: 10px 0 22px; }
  .details { grid-template-columns: 1fr; gap: 27px; }
  .detail-cover { aspect-ratio: 1.6; }
  .details h1 { font-size: 30px; }
  .details .description { font-size: 14px; margin-top: 16px; }
  .details .primary { width: 100%; margin-top: 22px; }
  .guide { grid-template-columns: 1fr; gap: 28px; margin-top: 35px; padding-top: 28px; }
  .guide h2 { font-size: 19px; }
  .prose { margin-top: 4px; }
  .prose h1 { font-size: 30px; }
  .prose p { font-size: 15px; }
  .play-main { padding-bottom: 28px; }
  .play-toolbar { gap: 10px; }
  .play-toolbar h1 { font-size: 16px; }
  .quiet-button { font-size: 11px; padding: 8px 10px; }
  .game-frame { width: calc(100% + 40px); margin-left: -20px; border-radius: 0; height: calc(100dvh - 184px); min-height: 568px; }
  .play-note { display: block; }
  .play-main .crumb { margin: 8px 0; }
  .play-page .header { height: 65px; }
  .play-page .footer { display: none; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .brand-copy > span { font-size: 18px; }
  .brand img { width: 24px; height: 24px; }
  .brand { gap: 6px; }
  .nav { gap: 10px; }
  .language a { min-width: 28px; }
  .game-frame { width: calc(100% + 32px); margin-left: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
