@charset "UTF-8";
/* OGOPOGO 官网 — 暖色玩具岛。品牌蓝与 3D 字母同色，界面用暖白纸色承托。 */
:root {
  --ink: #1c2238;
  --ink-2: #4c5369;
  --ink-3: #80869a;
  --brand: #2350f0;
  --brand-deep: #1739c9;
  --sun: #ffc94a;
  --paper: #fffdf8;
  --cream: #f7f1e6;
  --line: rgba(28, 34, 56, .09);
  --glass: rgba(255, 253, 248, .82);
  --shadow-sm: 0 1px 2px rgba(41, 40, 74, .06), 0 4px 14px -4px rgba(41, 40, 74, .12);
  --shadow: 0 2px 6px rgba(41, 40, 74, .05), 0 16px 40px -12px rgba(41, 40, 74, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 60% at 62% 60%, rgba(255, 244, 222, .95) 0%, rgba(255, 244, 222, 0) 70%),
    linear-gradient(180deg, #c9e4f6 0%, #dcedf4 34%, #f1efe4 72%, #f7ecd9 100%);
  background-attachment: fixed;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
kbd {
  font: inherit; font-size: .85em; font-weight: 600;
  display: inline-block; min-width: 1.8em; text-align: center;
  padding: 1px 6px; border-radius: 6px;
  background: #fff; color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(28, 34, 56, .12), 0 0 0 1px rgba(28, 34, 56, .1);
}

/* ---------- scene ---------- */
#scene { position: fixed; inset: 0; z-index: 0; }
#scene canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#scene canvas.is-dragging { cursor: grabbing; }
body[data-view="roam"] #scene canvas { cursor: crosshair; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 650; white-space: nowrap;
  transition: transform .25s var(--spring), background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--spring); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(35, 80, 240, .75); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-primary:hover span, .btn-primary:hover svg { transform: translateX(3px); }
.btn-primary span { display: inline-block; transition: transform .25s var(--spring); }
.btn-quiet { background: rgba(255, 255, 255, .78); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); backdrop-filter: blur(10px); }
.btn-quiet:hover { background: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 4; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 44px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; border-radius: 14px; }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(35, 80, 240, .7); transition: transform .35s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text strong { display: block; font-size: 21px; line-height: 1; font-weight: 900; letter-spacing: -.02em; color: var(--brand); }
.brand-text small { display: block; margin-top: 5px; font-size: 11px; line-height: 1; letter-spacing: .42em; color: var(--ink-3); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-nav {
  display: flex; gap: 2px; padding: 5px;
  background: var(--glass); border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(1.3);
}
.site-nav button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.site-nav button svg { width: 18px; height: 18px; }
.site-nav button:hover { background: rgba(35, 80, 240, .08); color: var(--ink); }
body[data-panel="works"] .site-nav [data-open="works"],
body[data-panel="about"] .site-nav [data-open="about"],
body[data-panel="contact"] .site-nav [data-open="contact"] { background: #fff; color: var(--brand); }
.explore-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 650;
  box-shadow: 0 10px 24px -10px rgba(35, 80, 240, .8);
  transition: transform .25s var(--spring), background-color .2s;
}
.explore-toggle:hover { background: var(--brand-deep); transform: translateY(-2px); }
.explore-toggle .icon-overview, body[data-view="roam"] .explore-toggle .icon-roam { display: none; }
body[data-view="roam"] .explore-toggle .icon-overview { display: block; }
body[data-view="roam"] .explore-toggle { background: var(--ink); box-shadow: 0 10px 24px -10px rgba(28, 34, 56, .8); }

/* ---------- hero ---------- */
.hero {
  position: fixed; z-index: 3;
  left: clamp(24px, 4.2vw, 72px); top: 50%;
  max-width: 460px;
  transform: translateY(-56%);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero button { pointer-events: auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.hero-eyebrow span { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero-eyebrow span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 3.9vw, 62px); line-height: 1.16; letter-spacing: -.02em; font-weight: 850;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 63%, rgba(255, 201, 74, .8) 63%, rgba(255, 201, 74, .8) 90%, transparent 90%);
}
.hero-text { margin: 0 0 30px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body[data-view="roam"] .hero, body[data-panel] .hero { opacity: 0; transform: translate(-16px, -56%); pointer-events: none; }
body[data-view="roam"] .hero button, body[data-panel] .hero button { pointer-events: none; }

/* ---------- building labels ---------- */
#building-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.building-label { position: absolute; left: 0; top: 0; padding-bottom: 11px; pointer-events: auto; will-change: transform; border-radius: 999px; }
.building-label::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 2px; height: 11px; margin-left: -1px; border-radius: 2px;
  background: rgba(28, 34, 56, .28);
}
.label-body {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 0 0 1px rgba(28, 34, 56, .06), var(--shadow-sm);
  transform-origin: 50% 100%;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .2s;
}
.label-body .pin { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .42); transition: box-shadow .2s; }
.label-body strong { font-size: 14px; font-weight: 700; }
/* The place type (竞技场, 会客厅…) slides out on hover, so idle labels stay compact. */
.label-body small {
  max-width: 0; margin-left: -8px; overflow: hidden; opacity: 0;
  font-size: 12px; color: rgba(255, 255, 255, .85);
  transition: max-width .35s var(--ease), margin .35s var(--ease), opacity .25s;
}
.building-label.is-active { z-index: 1; }
.building-label.is-active .label-body small { max-width: 6em; margin-left: 0; opacity: 1; }
.building-label.is-active .label-body { background: var(--accent); color: #fff; transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 26px -10px var(--accent); }
.building-label.is-active .pin { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .9); }

/* ---------- in-world prompts ---------- */
.nearby {
  position: fixed; z-index: 4; left: 50%; bottom: 104px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 650;
  box-shadow: 0 14px 30px -12px rgba(28, 34, 56, .7);
  transform: translateX(-50%);
  animation: rise .4s var(--spring);
}
.nearby kbd { min-width: 30px; padding: 4px 8px; border-radius: 999px; }
.nearby:hover { background: #2b3352; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px) scale(.94); } }
.hint {
  position: fixed; z-index: 3; left: 50%; bottom: 52px;
  margin: 0; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
  background: rgba(255, 253, 248, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hint b { font-weight: 650; color: var(--ink); }
.hint kbd { margin: 0 2px 0 6px; }
.hint-roam, body[data-view="roam"] .hint-overview { display: none; }
body[data-view="roam"] .hint-roam { display: inline; }
.hint-coarse { display: none !important; }
body.hint-hidden .hint, body[data-panel] .hint { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

/* ---------- tools ---------- */
.world-tools {
  position: fixed; z-index: 4; right: clamp(16px, 2.4vw, 36px); bottom: 26px;
  display: flex; flex-direction: column; gap: 2px; padding: 5px;
  background: var(--glass); border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.world-tools button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); transition: background-color .2s, color .2s; }
.world-tools button:hover { background: rgba(35, 80, 240, .09); color: var(--brand); }
#motion-toggle .icon-play, #motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
#motion-toggle[aria-pressed="true"] .icon-play { display: block; }

/* ---------- footer ---------- */
.site-footer {
  position: fixed; z-index: 2; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px;
  font-size: 12px; color: var(--ink-3);
  pointer-events: none;
}
.site-footer a { pointer-events: auto; border-radius: 4px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- touch controls ---------- */
.touch-controls { position: fixed; z-index: 4; left: 18px; right: 18px; bottom: calc(126px + var(--safe-bottom)); display: none; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.touch-controls button {
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
  width: 52px; height: 52px; border-radius: 18px;
  background: rgba(255, 253, 248, .9); color: var(--ink);
  font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-sm);
}
.touch-controls button:active { background: #fff; transform: scale(.94); }
.direction-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); gap: 6px; }
.direction-pad button:first-child { grid-column: 2; }
.direction-pad button:nth-child(2) { grid-row: 2; grid-column: 1; }
.direction-pad button:nth-child(3) { grid-row: 2; grid-column: 2; }
.direction-pad button:nth-child(4) { grid-row: 2; grid-column: 3; }
#touch-jump { width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; box-shadow: 0 12px 24px -10px rgba(35, 80, 240, .8); }

/* ---------- loading / fallback ---------- */
.loading {
  position: fixed; z-index: 20; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: inherit; background-color: #f1efe4;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loading.out { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-mark { display: flex; gap: 10px; height: 40px; align-items: flex-end; }
.loading-mark span { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); animation: hop 1s var(--ease) infinite; }
.loading-mark span:nth-child(2) { background: var(--sun); animation-delay: .12s; }
.loading-mark span:nth-child(3) { background: #e46f55; animation-delay: .24s; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-20px) scale(.9, 1.1); } 55% { transform: translateY(0) scale(1.15, .85); } }
.loading-brand { margin: 22px 0 6px; font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--brand); }
.loading-text { margin: 0; font-size: 14px; color: var(--ink-2); }
#scene-fallback {
  position: fixed; z-index: 6; left: 50%; top: 50%;
  width: min(440px, calc(100% - 40px)); padding: 26px 28px;
  transform: translate(-50%, -50%);
  border-radius: 24px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.8; color: var(--ink-2);
}
#scene-fallback strong { color: var(--ink); }
#scene-fallback p { margin: 0 0 16px; }
body.no-scene .world-tools, body.no-scene .hint { display: none; }
body.no-scene .hero { top: 22%; transform: none; }
.skip-link { position: fixed; z-index: 30; top: -80px; left: 20px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }
.no-script { position: fixed; z-index: 40; inset: 15%; padding: 30px; border-radius: 24px; background: #fff; line-height: 1.8; }

/* ---------- detail panel ---------- */
dialog {
  position: fixed; inset: 16px 16px 16px auto; margin: 0; padding: 0; border: 0;
  width: min(500px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-width: none; max-height: none;
  border-radius: 28px; color: var(--ink); background: var(--paper);
  box-shadow: 0 0 0 1px rgba(28, 34, 56, .05), 0 30px 80px -24px rgba(28, 34, 56, .45);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(28, 34, 56, .2) transparent;
}
dialog[open] { animation: panel-in .5s var(--ease); }
dialog.is-closing { animation: panel-out .22s ease-in forwards; }
dialog::backdrop { background: linear-gradient(90deg, rgba(28, 34, 56, 0) 35%, rgba(28, 34, 56, .14)); animation: fade .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes panel-out { to { opacity: 0; transform: translateX(36px); } }
@keyframes fade { from { opacity: 0; } }
.dialog-close {
  position: sticky; top: 14px; float: right; z-index: 3;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin: 14px 14px -58px 0; border-radius: 50%;
  background: rgba(255, 253, 248, .94); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring), background-color .2s;
}
.dialog-close:hover { transform: rotate(90deg); background: #fff; }
.panel-hero {
  position: relative; overflow: hidden;
  margin: 10px 10px 0; border-radius: 20px;
  aspect-ratio: 460 / 215;
  background: var(--accent);
}
.panel-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel-hero.is-abstract {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 26px 28px; color: #fff; aspect-ratio: 460 / 200;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%),
    var(--accent);
}
.panel-hero.is-abstract strong { position: relative; font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.panel-hero.is-abstract small { position: relative; font-size: 14px; font-weight: 600; opacity: .88; }
.art-shape { position: absolute; border: 22px solid rgba(255, 255, 255, .16); animation: drift 9s ease-in-out infinite alternate; }
.art-shape.a { width: 150px; height: 150px; right: -36px; top: -46px; border-radius: 50%; }
.art-shape.b { width: 92px; height: 92px; right: 110px; top: 26px; border-radius: 28px; border-width: 16px; transform: rotate(18deg); animation-delay: -3s; }
.art-shape.c { width: 60px; height: 60px; right: 40px; bottom: -18px; border-radius: 50%; border: 0; background: rgba(255, 201, 74, .9); animation-delay: -6s; }
@keyframes drift { to { translate: -10px 8px; rotate: 8deg; } }
.panel-body { padding: 24px 32px 30px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -4px 0 14px -8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  transition: background-color .2s, color .2s;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { background: var(--cream); color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.panel-body h2 { margin: 10px 0 10px; font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.lede { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  color: color-mix(in srgb, var(--accent) 78%, #000);
}
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.panel-actions .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.prose p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.shot { margin: 22px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--cream); }
.shot figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.channels { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.channels li { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 18px; background: var(--cream); }
.channel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.channel-text { flex: 1; min-width: 0; }
.channel-text small { display: block; font-size: 12px; color: var(--ink-3); }
.channel-text a { display: block; margin-top: 2px; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; border-radius: 4px; }
.channel-text a:hover { color: var(--accent); }
.copy { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); flex: none; transition: background-color .2s, color .2s; }
.copy svg { width: 18px; height: 18px; }
.copy:hover { background: #fff; color: var(--accent); }
.panel-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 32px calc(28px + var(--safe-bottom)); }
.panel-steps button {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: 18px; text-align: left;
  background: var(--cream);
  transition: background-color .2s, transform .25s var(--spring);
}
.panel-steps button:last-child { align-items: flex-end; text-align: right; }
.panel-steps small { font-size: 12px; color: var(--ink-3); }
.panel-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.panel-steps svg { width: 16px; height: 16px; color: var(--accent); }
.panel-steps button:hover { background: color-mix(in srgb, var(--accent) 12%, #fff); transform: translateY(-2px); }
.works-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.work-card {
  display: grid; grid-template-columns: 136px 1fr auto; align-items: center; gap: 16px;
  width: 100%; padding: 10px 14px 10px 10px; border-radius: 22px; text-align: left;
  background: var(--cream);
  transition: background-color .2s, box-shadow .25s, transform .3s var(--spring);
}
.work-card:hover, .work-card:focus-visible { background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.work-media { display: block; overflow: hidden; aspect-ratio: 460 / 215; border-radius: 14px; background: var(--accent); }
.work-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-art { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.work-art small { font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: .1em; }
.work-info { min-width: 0; }
.work-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.work-kicker .dot { width: 7px; height: 7px; }
.work-info strong { display: block; margin: 4px 0 3px; font-size: 16px; line-height: 1.35; }
.work-info small { display: block; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.work-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color .2s, color .2s, transform .3s var(--spring); }
.work-go svg { width: 18px; height: 18px; }
.work-card:hover .work-go { background: var(--accent); color: #fff; transform: translateX(3px); }
.toast {
  position: fixed; z-index: 10; left: 50%; top: 24px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, -10px); pointer-events: none;
  transition: opacity .25s, transform .3s var(--spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  .hint-fine { display: none !important; }
  .hint-coarse { display: inline !important; }
  body[data-view="roam"] .hint-overview, body:not([data-view="roam"]) .hint-roam { display: none !important; }
  .touch-controls:not([hidden]) { display: flex; }
  body[data-view="roam"] .nearby { bottom: calc(250px + var(--safe-bottom)); }
}
/* Touch tablets / sideways phones keep the tool column bottom-right: keep the jump button clear of it. */
@media (hover: none) and (pointer: coarse) and (min-width: 721px) {
  .touch-controls { right: 92px; bottom: 44px; }
  body[data-view="roam"] .nearby { bottom: 168px; }
}

/* ---------- medium screens ---------- */
@media (max-width: 1100px) {
  .site-nav button svg { display: none; }
  .site-nav button { padding: 0 14px; }
  .hero { max-width: 380px; }
  .hero-text br { display: none; }
}

/* ---------- tablets in portrait: copy on top, island below ---------- */
@media (max-aspect-ratio: 17/20) and (min-width: 721px) {
  .hero { top: 112px; transform: none; max-width: 560px; }
  body[data-view="roam"] .hero, body[data-panel] .hero { transform: translateY(-12px); }
}
/* ---------- short landscape screens (phones turned sideways) ---------- */
@media (max-height: 560px) and (min-width: 721px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .hero { top: 54%; max-width: 340px; }
  .hero-eyebrow, .hero-text { display: none; }
  .hero h1 { margin: 0 0 16px; font-size: 32px; }
  .hint { display: none; }
  .site-footer { bottom: 8px; }
  .label-body small { display: none; }
  .label-body { padding: 4px 11px 4px 4px; }
  .label-body .pin { width: 16px; height: 16px; }
  .label-body strong { font-size: 12.5px; }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .site-header { padding: 14px 16px; }
  .brand img { width: 34px; height: 34px; border-radius: 11px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 10px; }
  .header-actions {
    position: fixed; left: 10px; right: 10px; bottom: calc(40px + var(--safe-bottom));
    display: flex; gap: 4px; padding: 5px;
    background: var(--glass); border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), var(--shadow);
    backdrop-filter: blur(16px) saturate(1.3);
  }
  .site-nav { flex: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .site-nav button, .explore-toggle {
    flex-direction: column; justify-content: center; gap: 3px;
    height: 54px; padding: 0 4px; border-radius: 17px;
    font-size: 11.5px; font-weight: 650;
  }
  .site-nav button svg { display: block; width: 22px; height: 22px; }
  .explore-toggle { flex: 1; min-width: 0; box-shadow: none; }
  .explore-toggle svg { width: 22px; height: 22px; }
  .explore-toggle:hover, .btn-primary:hover, .btn-quiet:hover { transform: none; }
  .hero { top: 74px; left: 18px; right: 18px; max-width: none; transform: none; }
  body[data-view="roam"] .hero, body[data-panel] .hero { transform: translateY(-10px); }
  .hero-eyebrow { padding: 5px 11px 5px 9px; font-size: 12px; }
  .hero h1 { margin: 12px 0 8px; font-size: clamp(30px, 8.6vw, 38px); }
  .hero-text { margin: 0; font-size: 14px; line-height: 1.7; }
  .hero-actions { display: none; }
  .label-body { gap: 6px; padding: 4px 11px 4px 4px; }
  .label-body .pin { width: 16px; height: 16px; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .42); }
  .label-body strong { font-size: 12.5px; }
  .label-body small { display: none; }
  .building-label { padding-bottom: 8px; }
  .building-label::after { height: 8px; }
  .hint { bottom: calc(114px + var(--safe-bottom)); padding: 7px 13px; font-size: 12px; }
  body[data-view="roam"] .hint { top: 66px; bottom: auto; }
  .world-tools { right: 14px; bottom: auto; top: 16px; flex-direction: row; padding: 3px; }
  .world-tools button { width: 34px; height: 34px; }
  .world-tools #zoom-in, .world-tools #zoom-out { display: none; }
  .world-tools svg { width: 18px; height: 18px; }
  .site-footer { bottom: calc(8px + var(--safe-bottom)); gap: 0 10px; padding: 0 12px; font-size: 10.5px; line-height: 1.5; }
  .site-footer > span { flex-basis: 100%; text-align: center; }
  .nearby { bottom: calc(160px + var(--safe-bottom)); }
  dialog {
    inset: auto 0 0 0; width: 100%; height: min(70dvh, calc(100dvh - 120px));
    border-radius: 26px 26px 0 0;
  }
  dialog[open] { animation-name: sheet-in; }
  dialog.is-closing { animation-name: sheet-out; }
  dialog::backdrop { background: linear-gradient(180deg, rgba(28, 34, 56, 0) 10%, rgba(28, 34, 56, .2)); }
  @keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }
  @keyframes sheet-out { to { transform: translateY(50px); opacity: 0; } }
  .dialog-close { width: 40px; height: 40px; margin: 12px 12px -52px 0; top: 12px; }
  .panel-hero { margin: 8px 8px 0; border-radius: 18px; }
  .panel-hero.is-abstract { padding: 20px 22px; aspect-ratio: 460 / 170; }
  .panel-hero.is-abstract strong { font-size: 36px; }
  .panel-body { padding: 20px 20px 24px; }
  .panel-body h2 { font-size: 24px; }
  .lede { font-size: 16px; }
  .prose p { font-size: 14.5px; }
  .panel-steps { padding: 0 20px calc(22px + var(--safe-bottom)); }
  .work-card { grid-template-columns: 104px 1fr; gap: 12px; padding: 8px 12px 8px 8px; }
  .work-go { display: none; }
  .work-info strong { font-size: 15px; }
  .work-info small { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .hero-text { display: none; }
}

/* Reduced motion: no looping decoration, no bounces or slides; colour and
   opacity feedback stay so the interface still answers every action. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .15s !important; scroll-behavior: auto !important;
  }
  html:not(.force-motion) dialog[open] { animation: fade .2s ease-out !important; }
  html:not(.force-motion) .building-label.is-active .label-body,
  html:not(.force-motion) .btn:hover, html:not(.force-motion) .explore-toggle:hover,
  html:not(.force-motion) .work-card:hover, html:not(.force-motion) .panel-steps button:hover { transform: none; }
}
