@font-face {
  font-family: "Lilita One";
  src: url("https://play.3x3eggs.com/fonts/lilita-one-latin.woff2?v=embed") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("https://play.3x3eggs.com/fonts/nunito-latin-variable.woff2?v=embed") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff9e9;
  --white: #fffdf6;
  --ink: #163a36;
  --muted: #365b55;
  --line: #b9cec0;
  --coral: #a73528;
  font-family: system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  scroll-behavior: smooth;
  --game-ink: #1f3540;
  --game-sky: #a8e3f5;
  --game-mint: #e0f7ee;
  --game-gold: #ffe27a;
  --game-sand: #ffeccc;
  --game-display: "Lilita One", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Nunito, system-ui, sans-serif;
  --game-body: Nunito, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --game-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--muted); outline-offset: 5px; }
.shell { max-width: 1160px; width: calc(100% - 64px); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, nav { display: flex; align-items: center; gap: 22px; }
.header-inner { min-height: 70px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; }
.brand img { flex: none; }
nav { font-size: .9rem; font-weight: 650; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  width: fit-content;
  border-radius: .5rem;
  padding: .58rem .9rem;
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { text-decoration: none; filter: brightness(1.16); }
.button.primary { background: var(--coral); padding: .8rem 1.15rem; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); letter-spacing: -.062em; font-weight: 850; }
p { margin: .8rem 0 1.15rem; }
.game-screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: var(--game-sky);
}
.game-frame { display: block; width: 100%; height: 100%; border: 0; }
.game-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 6px;
  padding: 7px 13px;
  border: 3px solid var(--game-ink);
  border-radius: 14px;
  background: linear-gradient(var(--game-gold), #ffa52e);
  box-shadow: var(--game-shadow);
  color: var(--game-ink);
  font: 1rem var(--game-display);
  text-decoration: none;
  white-space: nowrap;
}
.game-chip:hover { filter: brightness(1.08); }
.guide-jump {
  position: absolute;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(7px, env(safe-area-inset-bottom));
  z-index: 1;
}
.guide {
  background: linear-gradient(180deg, var(--game-sky) 0%, var(--game-mint) 46%, var(--paper) 100%);
  padding-block: clamp(20px, 5vw, 64px);
}
.guide .shell { width: min(1140px, calc(100% - 40px)); }
.guide-panel {
  max-width: 1140px;
  overflow: hidden;
  border: 4px solid var(--game-ink);
  border-radius: 26px;
  background: linear-gradient(var(--paper), var(--game-sand));
  box-shadow: 0 8px 0 rgba(0, 0, 0, .3);
  color: var(--game-ink);
  font-family: var(--game-body);
}
.guide-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px clamp(12px, 3vw, 24px);
  background: linear-gradient(#ff9a6b, #ff5d3a);
  border-bottom: 4px solid var(--game-ink);
}
.guide-heading h1, .guide-heading h2 {
  color: white;
  letter-spacing: normal;
  font: clamp(1.4rem, 4vw, 2rem) var(--game-display);
  text-shadow: 0 2px var(--game-ink), 2px 0 var(--game-ink), -2px 0 var(--game-ink), 0 -2px var(--game-ink);
}
.guide-body { padding: clamp(12px, 3vw, 24px); }
.guide-body h2 { font: clamp(1.5rem, 4.5vw, 2.35rem) var(--game-display); }
.guide-body h3 { font: 1.18rem var(--game-display); }
.guide-body p { max-width: 72ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin: 12px 0 30px; }
.faq details {
  background: white;
  border: 3px solid var(--game-ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--game-shadow);
}
.faq details p { margin-bottom: 0; font-size: .94rem; }
.zone-guide table { width: 100%; border: 3px solid var(--game-ink); border-spacing: 0; border-radius: 14px; overflow: hidden; background: white; font-size: .92rem; }
.zone-guide th, .zone-guide td { text-align: start; padding: .58em .82em; border-bottom: 2px solid var(--line); }
.zone-guide thead { background: var(--game-sand); font-family: var(--game-display); }
.zone-guide tr:last-child td, .zone-guide tbody tr:last-child th { border-bottom: 0; }
.faq { margin-block: clamp(24px, 5vw, 54px); }
.faq details { margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 900; }
.standalone-link { display: inline-block; margin: .75rem; font-size: .9rem; }
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.35rem, 5vw, 3.8rem); }
.legal h2 { font-size: 1.52rem; margin-top: 1.6em; }
.legal img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; padding-block: 1.2rem; font-size: .86rem; color: var(--muted); }
.footer-inner span { margin-right: auto; }
.guide-intro {
  display: grid;
  justify-items: start;
  padding: clamp(6px, 1.5vw, 16px) 0;
}
.guide-intro p { margin: .55rem 0 0; max-width: 60ch; font-weight: 750; }
.page-attribution { margin-block: .65rem; color: var(--muted); font-size: .86rem; }
.geo-notes { display: grid; gap: 1.1rem; margin-block: 1.5rem; }
.geo-notes h2 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
.geo-notes p { max-width: 66ch; margin: .35rem 0 0; }
.step {
  overflow: hidden;
  border: 3px solid var(--game-ink);
  border-radius: 16px;
  box-shadow: var(--game-shadow);
  background: var(--white);
}
.step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--game-sky);
  border-bottom: 3px solid var(--game-ink);
}
.step-content { padding: 14px 15px 17px; }
.step-content h3 { display: flex; align-items: center; gap: .46em; text-wrap: wrap; }
.step-content p { margin-top: .55rem; line-height: 1.5; }
.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border: 2px solid currentColor;
  border-radius: .55em;
  background: var(--game-gold);
  font-size: .87em;
}
.guide-controls {
  border: 3px solid var(--game-ink);
  border-radius: 16px;
  background: var(--game-mint);
  box-shadow: var(--game-shadow);
  padding: 14px 16px;
  margin: 0 0 30px;
}
.guide-controls dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: .65rem 0 0; }
.guide-controls dt { font-weight: 900; }
.guide-controls dd { margin-inline: 0; font-size: .94rem; }
.zone-guide .train-note { margin-bottom: 0; }
.game-chip svg { flex: none; }
.game-chip:active { transform: translateY(2px); box-shadow: none; }
@media (max-width: 850px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 10px; }
  nav { justify-content: flex-start; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .guide .shell { width: calc(100% - 24px); }
  .guide .guide-heading { padding: 11px; }
  .guide .guide-heading h1 { font-size: clamp(1.15rem, 5.3vw, 1.4rem); }
  .guide-controls dl { grid-template-columns: 1fr; gap: 10px; }
  h1 { letter-spacing: -.048em; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
