@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5eddf;
  --ink: #513925;
  --muted: #8a7158;
  --red: #994f3d;
  --line: #d7c8b1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.home-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.home-brand { display: inline-flex; align-items: center; gap: 9px; }
.home-brand img { width: 25px; height: 38px; object-fit: contain; }
.brand-lines { display: grid; gap: 5px; white-space: nowrap; }
.brand-lines > span { font-size: 11px; line-height: 1.2; }
.brand-lines > strong { font-size: 12px; font-weight: 600; line-height: 1.2; }
.header-link { display: grid; gap: 4px; text-align: right; white-space: nowrap; }
.header-link > span { font-size: 10px; color: var(--muted); }
.header-link > strong { font-size: 12px; font-weight: 600; }
.return-home { font-size: 11px; white-space: nowrap; }
.festival-page {
  height: 100vh;
  height: 100svh;
  min-height: 360px;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow: hidden;
}
.festival-cover { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.cover-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(112%, 1000px);
  min-width: 440px;
  aspect-ratio: 1.35;
  transform: translateX(-50%);
  background: url("/assets/festival-art.png") center bottom / 100% auto no-repeat;
  mix-blend-mode: multiply;
  z-index: -2;
}
.festival-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, #f5eddf 5%, #f5eddfed 28%, #f5eddf88 57%, #f5eddf00 80%);
  pointer-events: none;
}
.cover-content { text-align: center; padding: 24px 16px; transform: translateY(-11svh); }
.cover-content h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 600;
  letter-spacing: .15em;
  text-indent: .15em;
  line-height: 1.3;
}
.festival-time { margin-top: 15px; font-size: 18px; letter-spacing: 1px; }
.adventure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 46px;
  margin-top: 30px;
  padding: 13px 22px;
  background: var(--ink);
  color: #fff5e7;
  border-radius: 2px;
  font-size: 13px;
}
.adventure-button span { font-size: 20px; line-height: 1; }
.adventure-button:hover { background: var(--red); }
.games-page { min-height: 100vh; min-height: 100svh; }
.game-directory { width: min(840px, 100%); margin: 0 auto; padding: clamp(30px, 8svh, 80px) 20px 30px; }
.game-directory > h1 {
  text-align: center;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: 30px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 28px;
}
.game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.game-option { background: #e6e8d9; border: 1px solid #c5c9b4; border-radius: 5px; padding: 20px 22px 24px; }
.chess-option { background: #eeded0; border-color: #d7bfa9; }
.merge-option { background: #f1e3d2; border-color: #d9c5a8; }
.turing-option { background: #e4e7e2; border-color: #c5cabe; }
.option-art { position: relative; height: 190px; overflow: hidden; }
.option-art svg { width: 100%; height: 100%; display: block; }
.sticker-art { display: grid; place-items: center; }
.sticker-art img { width: 145px; height: 175px; object-fit: contain; }
.turing-art { display: grid; place-items: center; }
.turing-art > span { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; border: 1px solid #a6b19d; background: #f8f2e6; color: #78856d; font: 96px/1 Georgia, serif; }
.option-copy h2 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-size: 28px; font-weight: 600; letter-spacing: 2px; }
.option-copy p { font-size: 12px; color: #7c6c54; margin-top: 10px; line-height: 1.7; }
.option-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; border-top: 1px solid #b8c0aa; padding-top: 15px; margin-top: 22px; }
.chess-option .option-copy > span { border-color: #d5bca5; }
.option-copy i { font-size: 22px; font-style: normal; }
.game-option:hover { border-color: #927b59; }
@media (max-width: 650px) {
  .home-header { width: calc(100% - 32px); }
  .festival-time { font-size: 16px; letter-spacing: .6px; margin-top: 12px; }
  .cover-content h1 { font-size: 52px; }
  .adventure-button { margin-top: 26px; }
  .game-directory { padding: 28px 18px; }
  .game-directory > h1 { font-size: 26px; margin-bottom: 22px; }
  .game-options { grid-template-columns: 1fr; gap: 16px; }
  .game-option { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 20px 14px 8px; }
  .option-art { height: 150px; }
  .sticker-art img { width: 105px; height: 135px; }
  .turing-art > span { width: 92px; height: 92px; font-size: 75px; }
  .option-art svg { position: absolute; width: 220px; max-width: none; height: 150px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .option-copy h2 { font-size: 25px; letter-spacing: 1px; }
  .option-copy p { font-size: 11px; margin-top: 8px; }
  .option-copy > span { font-size: 11px; padding-top: 12px; margin-top: 16px; }
}
@media (max-width: 360px) {
  .home-header { width: calc(100% - 24px); gap: 8px; }
  .home-brand { gap: 7px; }
  .brand-lines > strong { font-size: 11px; }
  .header-link > strong { font-size: 11px; }
  .festival-time { font-size: 15px; }
  .game-option { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding-right: 16px; }
  .option-art { height: 140px; }
  .option-copy h2 { font-size: 23px; }
}
@media (max-height: 550px) {
  .cover-content { transform: translateY(-5svh); }
  .cover-content h1 { font-size: 43px; }
  .adventure-button { margin-top: 20px; }
}
