* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden;
  font-family: "Noto Serif TC", "PingFang TC", serif; }
#viewport { position: relative; width: 100vw; height: 100vh; overflow: hidden;
  /* 潑墨 fallback：宣紙米白→遠山黛青→墨色 */
  background: linear-gradient(178deg, #f5efe2 0%, #d9d4c5 45%, #8a9088 72%, #3a3f3d 100%); }
#world { position: absolute; width: 2600px; height: 1600px; will-change: transform; }
#map-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; user-select: none; -webkit-user-drag: none; }
#mist { position: absolute; inset: -10%; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 60% 30% at 30% 25%, rgba(255,255,255,.55), transparent 70%),
              radial-gradient(ellipse 50% 25% at 75% 60%, rgba(255,255,255,.4), transparent 70%); }
.landmark { position: absolute; transform: translate(-50%, -85%); text-align: center;
  cursor: pointer; }
.landmark img { width: 220px; pointer-events: none; }
.landmark .lm-name { display: inline-block; margin-top: -14px; padding: 2px 12px;
  background: rgba(58,63,61,.82); color: #f5efe2; border-radius: 4px;
  font-size: 18px; letter-spacing: 4px; writing-mode: horizontal-tb; }
.landmark.visited::after { content: ""; position: absolute; right: -8px; top: -8px;
  width: 34px; height: 34px; background: url(../assets/img/seal.png) center/contain no-repeat; }
#player { position: absolute; width: 96px; transform: translate(-50%, -90%); z-index: 5; }
#player img { width: 100%; }
#player.face-left img { transform: scaleX(-1); }
#hud { position: fixed; top: 12px; left: 16px; right: 16px; display: flex;
  justify-content: space-between; align-items: center; z-index: 20; }
#hud h1 { font-size: 26px; letter-spacing: 8px; color: #2e2a24;
  text-shadow: 0 1px 0 rgba(255,255,255,.6); }
#atlas-btn { font: inherit; padding: 6px 16px; border: 1.5px solid #6b3226;
  background: rgba(245,239,226,.9); color: #6b3226; border-radius: 6px; cursor: pointer; }
#site-card { position: fixed; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 40px));
  background: #f7f1e3; border: 1px solid #c9bfa5; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(30,25,15,.35); padding: 18px 20px; z-index: 30; }
#site-card h2 { font-size: 22px; color: #2e2a24; }
#site-card .card-tagline { color: #6b3226; margin: 4px 0 8px; }
#site-card .card-stats, #site-card .card-aud { font-size: 14px; color: #4a463d; line-height: 1.6; }
#site-card .enter-btn { display: inline-block; margin-top: 12px; padding: 8px 22px;
  background: #6b3226; color: #f7f1e3; border-radius: 6px; text-decoration: none;
  letter-spacing: 3px; }
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(30,25,15,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto; }
.overlay[hidden] { display: none; }
.overlay .panel { background: #f7f1e3; border-radius: 10px; padding: 24px;
  max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto; }
#hint { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(46,42,36,.75); background: rgba(245,239,226,.7);
  padding: 3px 14px; border-radius: 999px; z-index: 20; white-space: nowrap; }
@media (max-width: 700px) { .landmark img { width: 150px; } #player { width: 72px; }
  #hud h1 { font-size: 20px; letter-spacing: 4px; } }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin: 16px 0; }
.exam-card { background: #fffdf6; border: 1px solid #d9cfae; border-radius: 8px;
  padding: 14px 16px; line-height: 1.7; font-size: 14px; }
.exam-card h3 { color: #6b3226; margin-bottom: 6px; }
.exam-card .exam-date { color: #8a5a2b; font-weight: 700; }
.exam-card a { color: #2c5545; }
#atlas-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.atlas-tab { font: inherit; font-size: 14px; padding: 4px 14px; cursor: pointer;
  border: 1px solid #c9bfa5; border-radius: 999px; background: #fffdf6; color: #4a463d; }
.atlas-tab.on { background: #6b3226; border-color: #6b3226; color: #f7f1e3; }
#atlas-body { min-height: 120px; }
.atlas-list { list-style: none; line-height: 2; columns: 2; }
.atlas-list .stamped { color: #a03a26; font-weight: 700; }
.egg { margin: 14px 0; padding: 12px 16px; border-left: 4px solid #a03a26; color: #4a463d; line-height: 1.9; }
