* { box-sizing: border-box; margin: 0; }
body {
  min-height: 100vh;
  padding-bottom: 72px;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(rgba(20, 11, 8, .82), rgba(20, 11, 8, .88)),
    url('/art/workshop-bg.webp') center / cover fixed no-repeat,
    #1b100b;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 18px;
  background: rgba(24, 14, 9, .72);
  border-bottom: 1px solid rgba(214, 155, 67, .28);
  backdrop-filter: blur(3px);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #f0dcbb; font-weight: 800; font-size: 15px;
  text-decoration: none; letter-spacing: .02em;
}
.brand .moon { color: #c9a2ff; font-size: 17px; }
.back {
  color: #d6b06a; font-size: 13.5px; font-weight: 700;
  text-decoration: none;
}
.back:hover { color: #ffd98f; }
.dec {
  position: absolute;
  background: center / contain no-repeat;
  pointer-events: none;
}
.d-lantern { top: 100px; left: -5.5px; transform: translateX(-50%); width: 92px; aspect-ratio: 129 / 214; background-image: url('/art/legal-lantern.webp'); }
.d-pendant { top: 200px; right: -5.5px; transform: translateX(50%); width: 54px; aspect-ratio: 83 / 229; background-image: url('/art/legal-pendant.webp'); }
@media (max-width: 700px) {
  .d-lantern, .d-pendant { display: none; }
}
.paper {
  position: relative;
  width: min(940px, calc(100% - 32px));
  margin: 44px auto 0;
  padding: 52px 60px 72px;
  background: linear-gradient(180deg, #fff2d4, #f3dfb8);
  border: 13px solid #8d562c;
  outline: 2px solid #d69b43;
  outline-offset: -8px;
  border-radius: 18px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .5),
    inset 0 0 40px rgba(130, 75, 25, .08);
  color: #412b1e;
  font-size: 16px;
  line-height: 1.9;
}
@media (max-width: 560px) { .paper { padding: 36px 22px 48px; margin-top: 24px; } }
.head { text-align: center; margin-bottom: 30px; }
.head .banner {
  width: min(320px, 78%);
  aspect-ratio: 415 / 123;
  margin: 0 auto;
  background: url('/art/title-banner.webp') center / contain no-repeat;
}
.head .game { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #ad7436; }
.head h1 { margin-top: 10px; font-size: 30px; font-weight: 900; color: #4a2918; letter-spacing: .06em; }
.head .sub { margin-top: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .3em; color: #ad7436; }
.rule {
  width: min(260px, 60%);
  aspect-ratio: 228 / 42;
  margin: 16px auto 0;
  background: url('/art/sep-mid.webp') center / contain no-repeat;
  font-size: 0;
}
.orn {
  width: 96px;
  aspect-ratio: 213 / 188;
  margin: 40px auto -4px;
  background: url('/art/ornament-books.webp') center / contain no-repeat;
}
.meta {
  margin: 26px 0 6px;
  padding: 14px 20px;
  background: rgba(111, 72, 35, .07);
  border: 1px solid rgba(111, 72, 35, .16);
  border-radius: 10px;
  font-size: 14px;
}
.meta div { display: flex; gap: 14px; padding: 3px 0; }
.meta dt { flex: 0 0 6.5em; color: #8a6135; font-weight: 700; }
.meta dd { color: #412b1e; min-width: 0; word-break: break-word; }
h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 44px 0 16px;
  color: #472817; font-size: 21px; font-weight: 900;
}
h2 .num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: #fff0c5; background: #684024;
  border: 2px solid #c98b3d; border-radius: 50%;
  font-size: 12.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
p { margin: 12px 0; }
ol { margin: 10px 0; padding-left: 24px; }
li { margin: 8px 0; }
a { color: #8a5413; font-weight: 700; }
b { color: #3b2110; }
.foot {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(111, 72, 35, .2);
  text-align: center; font-size: 14px; color: #8a6135;
}
