:root {
  color-scheme: light;
  --hc-paper: #f5f4ef;
  --hc-ink: #262722;
  --hc-muted: #85857d;
  --hc-line: rgba(38, 39, 34, .12);
  --hc-pill: rgba(255, 255, 252, .84);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body.humanity-canvas-page { background: var(--hc-paper); color: var(--hc-ink); font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }

.hc-app { position: fixed; inset: 0; overflow: hidden; background: var(--hc-paper); }
.hc-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
.hc-viewport:active { cursor: grabbing; }
.hc-viewport:focus-visible { outline: 1px solid rgba(38,39,34,.3); outline-offset: -4px; }
.hc-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.hc-scene { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 408px; height: 300px; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.hc-scene img { display: block; max-width: 352px; max-height: 220px; width: auto; height: auto; object-fit: contain; background: #11151b; box-shadow: 0 10px 28px rgba(28, 31, 35, .08); outline: 1px solid rgba(16, 18, 20, .08); transition: box-shadow .24s ease, outline-color .24s ease; pointer-events: none; }
.hc-scene:hover img, .hc-scene:focus-visible img { box-shadow: 0 14px 36px rgba(28,31,35,.16); outline-color: rgba(16,18,20,.34); }
.hc-scene:focus-visible { outline: 1px solid rgba(38,39,34,.46); outline-offset: 3px; }
.hc-scene-label { align-self: center; padding-top: 9px; color: #8e8d84; font-size: 9px; line-height: 1; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

.hc-topbar, .hc-bottombar { position: absolute; z-index: 5; display: flex; align-items: center; pointer-events: none; }
.hc-topbar { top: max(19px, env(safe-area-inset-top)); left: 24px; right: 24px; gap: 24px; }
.hc-brand, .hc-heading, .hc-nav, .hc-bottombar > * { pointer-events: auto; }
.hc-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 74px; color: var(--hc-ink); text-decoration: none; font-family: Georgia, serif; font-size: 13px; letter-spacing: .12em; }
.hc-brand img { width: 26px; height: 26px; object-fit: contain; }
.hc-heading { position: absolute; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--hc-pill); text-align: center; white-space: nowrap; }
.hc-kicker { display: block; margin-bottom: 5px; color: #8e8d84; font-size: 8px; letter-spacing: .2em; }
.hc-heading h1 { margin: 0; color: #43443e; font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size: 13px; font-weight: 400; letter-spacing: .06em; }
.hc-nav { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.hc-back, .hc-locale { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-pill); color: #55564f; text-decoration: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hc-back { gap: 7px; padding: 0 13px; font-size: 10px; letter-spacing: .025em; }
.hc-back svg { width: 12px; height: 12px; fill: none; stroke: #888980; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hc-locale { min-width: 39px; padding: 0 10px; font-size: 10px; }
.hc-back:hover, .hc-locale:hover { background: #fff; border-color: rgba(38,39,34,.24); }

.hc-bottombar { right: 24px; bottom: max(20px, env(safe-area-inset-bottom)); left: 24px; justify-content: space-between; gap: 20px; }
.hc-instructions { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 15px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-pill); color: #77776f; font-size: 10px; letter-spacing: .015em; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hc-instructions-mobile { display: none; }
.hc-separator { color: #c4c2b9; }
.hc-count { color: #52534d; font-variant-numeric: tabular-nums; }
.hc-controls { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 3px 5px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-pill); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hc-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #4d4e48; cursor: pointer; }
.hc-controls button:hover { background: rgba(38,39,34,.07); }
.hc-controls [data-zoom-out], .hc-controls [data-zoom-in] { font-size: 19px; font-weight: 300; }
.hc-controls output { min-width: 42px; color: #77776f; text-align: center; font-size: 9px; font-variant-numeric: tabular-nums; }
.hc-control-divider { width: 1px; height: 17px; margin: 0 5px; background: var(--hc-line); }
.hc-controls .hc-reset { padding: 0 9px; border-radius: 999px; font-size: 9px; }
.hc-empty { position: absolute; inset: 50% auto auto 50%; z-index: 1; transform: translate(-50%,-50%); color: var(--hc-muted); font-family: Georgia, serif; font-size: 14px; white-space: nowrap; }

.hc-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: max(70px, 8vh) 8vw; border: 0; background: transparent; color: var(--hc-ink); }
.hc-lightbox::backdrop { background: transparent; }
.hc-lightbox[open] { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; justify-items: center; }
.hc-lightbox-overlay { position: fixed; z-index: 0; inset: 0; background: rgba(245,244,239,.97); opacity: 1; pointer-events: none; }
.hc-lightbox > figure, .hc-lightbox-prev, .hc-lightbox-next { position: relative; z-index: 1; }
.hc-lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-width: 0; max-width: min(100%, 1440px); max-height: 100%; margin: 0; }
.hc-lightbox figure img { display: block; max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: 0 12px 50px rgba(25,28,32,.1); background: #11151b; }
.hc-lightbox .hc-transition-clone { position: fixed; z-index: 2; display: block; margin: 0; padding: 0; border: 0; max-width: none; max-height: none; object-fit: fill; object-position: center; transform-origin: top left; pointer-events: none; box-shadow: 0 12px 50px rgba(25,28,32,.1); }
.hc-lightbox figcaption { padding-top: 17px; color: #77776f; font-size: 10px; letter-spacing: .14em; }
.hc-lightbox button { border: 0; background: transparent; color: #62635d; cursor: pointer; }
.hc-lightbox-close { position: absolute; z-index: 3; top: max(20px, env(safe-area-inset-top)); right: 25px; width: 42px; height: 42px; font-size: 30px; font-weight: 200; }
.hc-lightbox-prev, .hc-lightbox-next { width: 42px; height: 52px; border-radius: 50%; }
.hc-lightbox-prev svg, .hc-lightbox-next svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.hc-lightbox-prev:hover, .hc-lightbox-next:hover, .hc-lightbox-close:hover { background: rgba(38,39,34,.06); }
.hc-lightbox-prev { grid-column: 1; }.hc-lightbox figure { grid-column: 2; }.hc-lightbox-next { grid-column: 3; }
.hc-lightbox[data-transitioning] button:disabled { pointer-events: none; }

@media (max-width: 700px) {
  .hc-topbar { top: max(12px, env(safe-area-inset-top)); left: 13px; right: 13px; gap: 10px; }
  .hc-brand { min-width: 30px; gap: 0; }
  .hc-brand img { width: 28px; height: 28px; }
  .hc-brand span { display: none; }
  .hc-heading { position: static; flex: 1; min-width: 0; max-width: none; transform: none; padding: 8px 10px; text-align: left; }
  .hc-kicker { font-size: 7px; margin-bottom: 4px; letter-spacing: .12em; }
  .hc-heading h1 { overflow: hidden; max-width: 100%; font-size: 10px; text-overflow: ellipsis; }
  .hc-nav { gap: 6px; }
  .hc-back, .hc-locale { min-height: 32px; }
  .hc-back { gap: 4px; padding: 0 9px; font-size: 9px; }
  .hc-locale { min-width: 34px; padding: 0 8px; font-size: 9px; }
  .hc-bottombar { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; gap: 7px; }
  .hc-bottombar { flex-direction: column-reverse; align-items: stretch; }
  .hc-instructions { gap: 7px; padding: 11px 11px; font-size: 9px; white-space: nowrap; }
  .hc-instructions { align-self: flex-start; }
  .hc-instructions-desktop { display: none; }
  .hc-instructions-mobile { display: inline; }
  .hc-controls { min-height: 38px; padding: 3px; }
  .hc-controls { align-self: flex-end; }
  .hc-controls button { min-width: 28px; height: 29px; }
  .hc-controls output { min-width: 34px; font-size: 8px; }
  .hc-control-divider { margin: 0 2px; }
  .hc-controls .hc-reset { padding: 0 7px; font-size: 8px; }
  .hc-scene { width: 286px; height: 224px; }
  .hc-scene img { max-width: 250px; max-height: 163px; }
  .hc-scene-label { padding-top: 7px; font-size: 8px; }
  .hc-lightbox { padding: 70px 12px; }
  .hc-lightbox[open] { grid-template-columns: 28px minmax(0,1fr) 28px; }
  .hc-lightbox-prev, .hc-lightbox-next { width: 32px; }
  .hc-lightbox figure img { max-height: calc(100vh - 150px); }
}

@media (max-width: 360px) {
  .hc-instructions { gap: 5px; padding: 10px 8px; font-size: 8px; }
  .hc-controls { gap: 0; }
  .hc-controls button { min-width: 25px; }
  .hc-controls output { min-width: 30px; }
  .hc-controls .hc-reset { padding: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .hc-scene img { transition: none; }
}
