/* Interactive Singtel Group Sustainability Report — web shell (Milestone 2) */

:root {
  --singtel-red: #f20d3a;
  --singtel-red-dark: #b80a2c;
  --navy: #101218;
  --navy-2: #1a1d26;
  --ink: #f4f5f7;
  --ink-dim: #b7bbc6;
  --focus-ring: #ffd166;
  /* report "paper" layer */
  --paper: #f7f7f2;
  --paper-2: #ffffff;
  --paper-ink: #171a22;
  --paper-dim: #4a4f5c;
  --paper-line: #dcdcd2;
  --cyan: #41e7d7;
  --gold: #ffcf57;
  /* status badge colors (text pairs all meet 4.5:1) */
  --badge-reported-bg: #0e6b37;
  --badge-current-bg: #0b6d74;
  --badge-policy-bg: #5147b8;
  --badge-forward-bg: #ffcf57;
  --badge-forward-ink: #3a2c00;
  --badge-illustrative-ink: #5b5f6a;
  --shell-header-height: 74px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

button { min-height: 44px; font: inherit; cursor: pointer; }
select, input[type="search"], input[type="text"] { font: inherit; min-height: 44px; }

.shell-skip-link {
  position: fixed;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 8px;
}
.shell-skip-link:focus { top: 0; }

/* ---- landscape-only mobile and tablet play ---- */
.landscape-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(65, 231, 215, 0.3), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(242, 13, 58, 0.28), transparent 38%),
    #070a11;
  isolation: isolate;
}
.landscape-gate::before,
.landscape-gate::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}
.landscape-gate::before {
  background: url("../public/assets/generated/global/landing-island-world-hero-v1.webp") center / cover;
  opacity: 0.19;
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.03);
}
.landscape-gate::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 10, 17, 0.58), rgba(5, 8, 14, 0.82)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5.5rem
    );
}
.landscape-gate[hidden] { display: none; }
.landscape-gate-card {
  display: grid;
  grid-template-columns: minmax(19rem, 1.08fr) minmax(19rem, 0.92fr);
  width: min(64rem, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(10, 13, 21, 0.91);
  box-shadow:
    0 2rem 7rem rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
}
.landscape-gate-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 36rem;
  overflow: hidden;
  padding: clamp(1.25rem, 3.4vw, 2.25rem);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(4, 16, 29, 0.12), rgba(4, 11, 20, 0.7)),
    url("../public/assets/generated/global/landing-island-world-hero-v1.webp") center / cover;
}
.landscape-gate-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.16), rgba(8, 12, 20, 0.82)),
    radial-gradient(circle at 50% 46%, transparent 20%, rgba(3, 9, 17, 0.32) 72%);
  pointer-events: none;
}
.landscape-gate-visual > * {
  position: relative;
  z-index: 1;
}
.landscape-gate-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.62);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.landscape-brand-mark {
  display: flex;
  align-items: end;
  gap: 2px;
  width: 1.15rem;
  height: 0.9rem;
}
.landscape-brand-mark i {
  width: 4px;
  height: 45%;
  border-radius: 4px 4px 1px 1px;
  background: var(--cyan);
  box-shadow: 0 0 0.55rem rgba(65, 231, 215, 0.62);
}
.landscape-brand-mark i:nth-child(2) { height: 72%; }
.landscape-brand-mark i:nth-child(3) {
  height: 100%;
  background: #ff3158;
  box-shadow: 0 0 0.55rem rgba(242, 13, 58, 0.58);
}
.landscape-device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 23rem;
}
.landscape-device {
  display: grid;
  place-items: center;
  width: 100%;
}
.landscape-device-screen {
  position: relative;
  display: block;
  width: min(25rem, 82%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: clamp(8px, 1.2vw, 11px) solid #eef1f4;
  border-radius: clamp(21px, 3.2vw, 30px);
  background: #07121e;
  box-shadow:
    0 0 0 2px #565e6d,
    0 1.5rem 3.7rem rgba(0, 0, 0, 0.62),
    0 0 4rem rgba(65, 231, 215, 0.18);
  animation: landscape-device-arrive 820ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
}
.landscape-device-screen::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.45rem;
  width: 5px;
  height: 1.8rem;
  border-radius: 99px;
  background: rgba(3, 8, 14, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}
.landscape-device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.landscape-screen-signal {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 0.6rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--singtel-red);
  box-shadow:
    0 0 0 0.35rem rgba(242, 13, 58, 0.22),
    0 0 1.6rem 0.55rem rgba(242, 13, 58, 0.7);
  animation: landscape-signal-pulse 2.1s ease-out infinite;
}
.landscape-rotation-guide {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 4%;
  display: grid;
  place-items: center;
  width: 5.5rem;
  aspect-ratio: 1;
  color: #fff;
}
.landscape-rotation-guide i {
  position: absolute;
  inset: 0.55rem;
  border: 2px solid rgba(65, 231, 215, 0.75);
  border-left-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 0.55rem rgba(65, 231, 215, 0.35));
  animation: landscape-guide-turn 3.4s ease-in-out infinite;
}
.landscape-rotation-guide i::after {
  content: "";
  position: absolute;
  right: -0.15rem;
  bottom: 0.2rem;
  width: 0;
  height: 0;
  border-top: 0.35rem solid transparent;
  border-bottom: 0.35rem solid transparent;
  border-left: 0.55rem solid var(--cyan);
  transform: rotate(24deg);
}
.landscape-rotation-guide b {
  margin-top: 0.1rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.landscape-visual-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.landscape-visual-caption strong {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
}
.landscape-visual-caption > span {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.landscape-visual-caption i {
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
}
.landscape-gate-copy {
  align-self: center;
  padding: clamp(1.6rem, 4.7vw, 3.35rem);
}
.landscape-gate-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.landscape-gate-copy .eyebrow span {
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.3rem rgba(65, 231, 215, 0.13);
}
.landscape-gate-copy h1 {
  max-width: 10.5ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.062em;
  text-wrap: balance;
}
.landscape-gate-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--ink-dim);
  line-height: 1.58;
}
.landscape-gate-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.05rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.landscape-gate-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.05rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe4ec;
  font-size: 0.72rem;
  font-weight: 700;
}
.landscape-gate-benefits li span {
  color: var(--cyan);
  font-size: 0.9rem;
}
.landscape-gate-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.8rem;
  margin: 0 0 0.75rem;
  padding: 0.62rem 0.75rem;
  border-left: 2px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  background: linear-gradient(90deg, rgba(65, 231, 215, 0.11), transparent);
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.82rem;
}
.landscape-gate-status::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  aspect-ratio: 1;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(65, 231, 215, 0.11);
}
.landscape-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.landscape-gate-actions button,
.landscape-gate-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.landscape-gate-actions button:hover,
.landscape-gate-actions a:hover {
  transform: translateY(-2px);
}
.landscape-gate-actions button span,
.landscape-gate-actions a span {
  margin-left: 0.5rem;
}
.landscape-gate-actions button {
  border: 1px solid var(--singtel-red);
  color: #fff;
  background: linear-gradient(135deg, #ff3158, var(--singtel-red));
  box-shadow: 0 0.9rem 2.4rem rgba(242, 13, 58, 0.22);
}
.landscape-gate-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.landscape-gate-actions a {
  border: 1px solid #4d5668;
  color: var(--ink);
  background: rgba(25, 30, 41, 0.88);
}
.landscape-gate-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-size: 0.72rem;
}
.landscape-gate-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.15rem;
  aspect-ratio: 1;
  margin-top: 0.12rem;
  border: 1px solid #5a6373;
  border-radius: 50%;
  color: #dfe4ec;
  font-size: 0.66rem;
  font-weight: 700;
}
body.landscape-blocked {
  overscroll-behavior: none;
}

@keyframes landscape-device-arrive {
  from { opacity: 0; transform: rotate(-90deg) scale(0.68); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes landscape-guide-turn {
  0%, 22% { opacity: 0.45; transform: rotate(-32deg); }
  58%, 100% { opacity: 1; transform: rotate(34deg); }
}

@keyframes landscape-signal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 13, 58, 0.55), 0 0 1rem rgba(242, 13, 58, 0.5); }
  70%, 100% { box-shadow: 0 0 0 0.8rem rgba(242, 13, 58, 0), 0 0 1.6rem rgba(242, 13, 58, 0.65); }
}

@media (max-width: 680px), (max-height: 560px) {
  .landscape-gate {
    place-items: start center;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      max(0.85rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-left));
  }
  .landscape-gate-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .landscape-gate-visual {
    min-height: clamp(17.5rem, 55vw, 22rem);
    padding: 1rem 1rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background-position: center 47%;
  }
  .landscape-gate-brand {
    padding: 0.4rem 0.6rem;
    font-size: 0.66rem;
  }
  .landscape-device-stage {
    min-height: 11.5rem;
  }
  .landscape-device-screen {
    width: min(23rem, 82%);
  }
  .landscape-rotation-guide {
    top: -2%;
    right: 1%;
    width: 4.4rem;
  }
  .landscape-visual-caption {
    align-items: center;
    padding-top: 0.75rem;
  }
  .landscape-visual-caption strong {
    font-size: 0.96rem;
  }
  .landscape-visual-caption > span {
    font-size: 0.54rem;
  }
  .landscape-gate-copy {
    padding: 1.45rem 1.3rem 1.35rem;
  }
  .landscape-gate-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 11.5vw, 4rem);
  }
  .landscape-gate-copy > p:not(.eyebrow) {
    font-size: 0.92rem;
  }
  .landscape-gate-benefits {
    margin: 0.85rem 0 1rem;
  }
  .landscape-gate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .landscape-gate-actions button,
  .landscape-gate-actions a {
    width: 100%;
  }
}

@media (max-width: 400px), (max-height: 700px) {
  .landscape-gate-visual { min-height: 14.25rem; }
  .landscape-device-stage { min-height: 8.8rem; }
  .landscape-visual-caption > span { display: none; }
  .landscape-gate-copy { padding: 1.1rem; }
  .landscape-gate-copy h1 { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .landscape-gate-copy > p:not(.eyebrow) { margin: 0.7rem 0; }
  .landscape-gate-benefits { display: none; }
  .landscape-gate-status { min-height: 2.45rem; font-size: 0.75rem; }
  .landscape-gate-note { margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .landscape-device-screen,
  .landscape-rotation-guide i,
  .landscape-screen-signal {
    animation: none;
  }
  .landscape-gate-actions button,
  .landscape-gate-actions a {
    transition: none;
  }
}

/* ---- unified report navigation ---- */
#topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(11.5rem, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  min-height: 74px;
  padding: 0 clamp(0.85rem, 1.7vw, 1.65rem);
  border-bottom: 1px solid rgba(190, 234, 236, 0.16);
  background: rgba(6, 12, 19, 0.94);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

#wordmark {
  display: grid;
  gap: 0.15rem;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}
#wordmark > span {
  color: var(--ink-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#wordmark strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}
#wordmark strong span { color: var(--singtel-red); }

#mobile-menu {
  display: none;
  min-height: 44px;
  border: 1px solid #414759;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  background: var(--navy-2);
  color: var(--ink);
}

#topbar-actions {
  display: grid;
  grid-template-columns: minmax(30rem, 1fr) auto;
  align-self: stretch;
  align-items: center;
  min-width: 0;
  gap: clamp(0.7rem, 1.25vw, 1.25rem);
}

#shell-destinations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-self: stretch;
  min-width: 0;
}
#shell-destinations::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6%;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 231, 231, 0.2) 12% 88%, transparent);
  pointer-events: none;
}
#shell-destinations button {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.24rem;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0.55rem 0.3rem 0.48rem;
  color: #9eafb7;
  background: transparent;
  text-align: center;
  transition: color 160ms ease, background 160ms ease;
}
#shell-destinations button::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--singtel-red);
  box-shadow: 0 0 1rem rgba(242, 13, 58, 0.8);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}
#shell-destinations button:hover,
#shell-destinations button[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04));
}
#shell-destinations button[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}
#shell-destinations button > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid rgba(235, 248, 247, 0.22);
  border-radius: 50%;
  color: #91a5ac;
  background: #071722;
  font: 700 0.5rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}
#shell-destinations button[aria-current="page"] > span {
  border-color: var(--singtel-red);
  color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(242, 13, 58, 0.13);
}
#shell-destinations strong {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(0.54rem, 0.66vw, 0.68rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#report-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
#report-tools > button,
#report-tools > a,
#more-tools > summary,
.more-tools-panel > button,
.more-tools-panel > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #333849;
  border-radius: 999px;
  padding: 0.4rem 0.68rem;
  color: var(--ink);
  background: rgba(26, 29, 38, 0.84);
  font-size: 0.74rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
#report-tools > button:hover,
#report-tools > a:hover,
#more-tools > summary:hover,
.more-tools-panel > button:hover,
.more-tools-panel > a:hover {
  border-color: var(--singtel-red);
}
#btn-codex {
  border-color: rgba(65, 231, 215, 0.42) !important;
  background: rgba(65, 231, 215, 0.09) !important;
}

#more-tools {
  position: relative;
}
#more-tools > summary {
  list-style: none;
  cursor: pointer;
}
#more-tools > summary::-webkit-details-marker { display: none; }
#more-tools > summary::after {
  content: "⌄";
  margin-left: 0.35rem;
  color: var(--cyan);
}
#more-tools[open] > summary {
  border-color: var(--cyan);
}
.more-tools-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  width: 21rem;
  gap: 0.45rem;
  border: 1px solid #3a4051;
  border-radius: 13px;
  padding: 0.65rem;
  background: rgba(10, 14, 21, 0.98);
  box-shadow: 0 1.2rem 3.4rem rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}
.more-tools-panel > button,
.more-tools-panel > a {
  border-radius: 8px;
}
#topbar-actions .runtime-switch {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #333849;
  border-radius: 8px;
}
#topbar-actions .runtime-switch button {
  min-height: 44px;
  border: 0;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  background: var(--navy-2);
  font-size: 0.74rem;
}
#topbar-actions .runtime-switch button + button { border-left: 1px solid #333849; }
#topbar-actions .runtime-switch button[aria-pressed="true"] {
  color: #08131a;
  background: var(--cyan);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
#btn-mute[aria-pressed="true"] { color: var(--ink-dim); border-color: var(--singtel-red); }
#link-pdf::before {
  content: "↗";
  margin-right: 0.35rem;
  color: var(--gold);
}

/* ---- contextual help ---- */
.help-hint {
  position: fixed;
  z-index: 42;
  right: 1rem;
  bottom: 1rem;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1rem 1.05rem;
  border: 1px solid rgba(65, 231, 215, 0.54);
  border-left: 4px solid var(--cyan);
  border-radius: 13px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(65, 231, 215, 0.12), transparent 44%),
    rgba(13, 17, 25, 0.96);
  box-shadow: 0 1.2rem 3.6rem rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
  animation: help-hint-in 260ms ease-out both;
}
.help-hint[hidden] { display: none; }
.help-hint .eyebrow { margin-bottom: 0.28rem; color: var(--cyan); }
.help-hint > strong { display: block; font-size: 1.02rem; }
.help-hint > p:not(.eyebrow) {
  margin: 0.45rem 0 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.48;
}
.help-hint-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.72rem;
}
.help-hint-actions button {
  min-height: 38px;
  border: 1px solid #465064;
  border-radius: 7px;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: #171d28;
  font-size: 0.78rem;
}
.help-hint-actions .btn-ghost {
  margin-left: auto;
  border: 0;
  background: transparent;
}
@keyframes help-hint-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- route banner ---- */
#route-banner {
  position: fixed;
  top: calc(var(--shell-header-height) + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(92vw, 720px);
  padding: 0.4rem 0.9rem;
  background: rgba(23, 26, 34, 0.94);
  border: 1px solid #333849;
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  font-size: 0.85rem;
}
#route-banner[hidden] { display: none; }
#route-banner-actions { display: flex; gap: 0.5rem; }
.banner-btn {
  background: var(--singtel-red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  min-height: 44px;
}
.banner-btn-ghost { background: transparent; border: 1px solid #4a5064; color: var(--ink-dim); }
.banner-btn:disabled { opacity: 0.45; cursor: default; }

/* ---- stage ---- */
#stage {
  position: fixed;
  inset: var(--shell-header-height) 0 0;
  width: 100%;
}

#godot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- loading ---- */
#loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1c2030 0%, var(--navy) 70%);
  transition: opacity 0.5s ease;
}
#loading::before,
#loading::after {
  content: "";
  position: absolute;
  inset: 0;
}
#loading::before {
  background:
    url("../public/assets/generated/global/landing-island-world-hero-v1.webp")
    center / cover no-repeat;
  opacity: 0.24;
  filter: saturate(0.75) contrast(1.08);
  transform: scale(1.02);
}
#loading::after {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(16, 18, 24, 0.48), rgba(16, 18, 24, 0.92) 72%),
    linear-gradient(180deg, rgba(16, 18, 24, 0.08), rgba(16, 18, 24, 0.58));
}
#loading[hidden] { display: none; }
#loading.done { opacity: 0; pointer-events: none; }

.loading-card {
  position: relative;
  z-index: 1;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.72);
}
.loading-card h1 { font-weight: 300; letter-spacing: 0.04em; margin: 1.2rem 0 0.4rem; }
.loading-card h1 span { color: var(--singtel-red); font-weight: 700; }
.loading-card p { color: var(--ink-dim); font-size: 0.9rem; }
#loading-recovery {
  max-width: 34rem;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  border: 1px solid #4a5064;
  border-radius: 10px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0.5rem;
  text-decoration: none;
}

.loading-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  border: 6px solid rgba(242, 13, 58, 0.25);
  border-top-color: var(--singtel-red);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- complete no-WebGL route ---- */
.static-fallback {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: auto;
  background:
    radial-gradient(circle at 80% 15%, rgba(65, 231, 215, 0.12), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(242, 13, 58, 0.14), transparent 34%),
    var(--navy);
}
.static-fallback[hidden] { display: none; }
.fallback-card {
  width: min(42rem, 100%);
  border: 1px solid #34394a;
  border-top: 5px solid var(--singtel-red);
  border-radius: 16px;
  background: rgba(26, 29, 38, 0.96);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}
.fallback-card h1 { margin: 0.25rem 0 0.8rem; }
.fallback-card p { color: var(--ink-dim); line-height: 1.6; }
.fallback-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- overlays ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 13, 0.72);
  padding: 1rem;
}
.overlay[hidden] { display: none; }

.overlay-card {
  background: var(--navy-2);
  border: 1px solid #2c3142;
  border-top: 4px solid var(--singtel-red);
  border-radius: 12px;
  padding: 1.6rem 2rem;
  max-width: 560px;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.overlay-wide { max-width: 820px; width: min(94vw, 820px); }
.overlay-xl { max-width: 1020px; width: min(96vw, 1020px); }

/* paper variant — the report layer reads like the report */
.overlay-card.paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper-line);
  border-top-color: var(--singtel-red);
}
.paper p { color: var(--paper-dim); }
.paper h2, .paper h3, .paper h4, .paper h5 { color: var(--paper-ink); }

.overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.overlay-head h2 { margin: 0 0 0.8rem; font-size: 1.5rem; }
.overlay-close {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  min-width: 44px;
  color: inherit;
  font-size: 1rem;
}

.eyebrow {
  color: var(--ink-dim);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.paper .eyebrow { color: var(--singtel-red-dark); }

.overlay-card h2 { margin: 0 0 0.8rem; font-size: 1.5rem; }
.overlay-card p { line-height: 1.55; }
.overlay-card p { color: var(--ink-dim); }
.paper.overlay-card p, .paper p { color: var(--paper-dim); }

/* ---- 2.5D indoor / outdoor threshold crossing ---- */
.interior-transition {
  position: fixed;
  z-index: 90;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #020a12;
  color: #fff;
  opacity: 0;
  pointer-events: all;
}

.interior-transition[hidden] { display: none; }

.interior-transition.is-active {
  animation: interior-transition-cover 900ms linear both;
}

.interior-transition-scene,
.interior-transition-scene::before,
.interior-transition-scene::after {
  position: absolute;
  inset: 0;
}

.interior-transition-scene {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(65, 231, 215, 0.2), transparent 25%),
    linear-gradient(180deg, #061724, #02070c);
}

.interior-transition-scene::before {
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(1, 8, 14, 0.82), transparent 24% 76%, rgba(1, 8, 14, 0.82)),
    linear-gradient(0deg, rgba(1, 6, 11, 0.84), transparent 53%),
    radial-gradient(ellipse at 50% 52%, transparent 0 19%, rgba(1, 7, 12, 0.66) 52%, rgba(1, 5, 9, 0.95));
  pointer-events: none;
}

.interior-transition-scene::after {
  z-index: 8;
  content: "";
  border: clamp(0.45rem, 1.3vw, 1.1rem) solid rgba(5, 16, 25, 0.96);
  box-shadow:
    inset 0 0 5rem rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(117, 238, 230, 0.22);
  pointer-events: none;
}

#interior-transition-art {
  position: absolute;
  z-index: 1;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.62) contrast(1.08);
  transform: scale(1.05);
}

.interior-transition.is-active[data-direction="enter"] #interior-transition-art {
  animation: interior-transition-art-enter 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.interior-transition.is-active[data-direction="exit"] #interior-transition-art {
  animation: interior-transition-art-exit 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.interior-transition-light {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: -15%;
  width: 16%;
  opacity: 0.34;
  filter: blur(1.2rem);
  transform-origin: 50% 0;
  pointer-events: none;
}

.interior-transition-light-one {
  left: 31%;
  background: linear-gradient(180deg, rgba(65, 231, 215, 0.78), transparent 76%);
  transform: skewX(-13deg);
}

.interior-transition-light-two {
  right: 29%;
  background: linear-gradient(180deg, rgba(242, 13, 58, 0.62), transparent 74%);
  transform: skewX(14deg);
}

.interior-transition-floor {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -25%;
  width: min(80rem, 110vw);
  height: 65%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 50% 0, transparent 0 2.7rem, rgba(93, 230, 220, 0.12) 2.8rem 2.9rem),
    linear-gradient(90deg, transparent 49.8%, rgba(255, 204, 92, 0.58) 50%, transparent 50.2%);
  transform: translateX(-50%) perspective(32rem) rotateX(54deg);
  transform-origin: 50% 0;
  opacity: 0.7;
}

.interior-transition-door {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(90deg, rgba(2, 10, 17, 0.98), rgba(9, 28, 38, 0.99)),
    #06141f;
  box-shadow: 0 0 2.2rem rgba(0, 0, 0, 0.88);
}

.interior-transition-door-left {
  left: 0;
  border-right: 2px solid rgba(65, 231, 215, 0.88);
}

.interior-transition-door-right {
  right: 0;
  border-left: 2px solid rgba(242, 13, 58, 0.88);
}

.interior-transition.is-active[data-direction="enter"] .interior-transition-door-left {
  animation: interior-door-enter-left 900ms cubic-bezier(0.72, 0, 0.2, 1) both;
}

.interior-transition.is-active[data-direction="enter"] .interior-transition-door-right {
  animation: interior-door-enter-right 900ms cubic-bezier(0.72, 0, 0.2, 1) both;
}

.interior-transition.is-active[data-direction="exit"] .interior-transition-door-left {
  animation: interior-door-exit-left 900ms cubic-bezier(0.72, 0, 0.2, 1) both;
}

.interior-transition.is-active[data-direction="exit"] .interior-transition-door-right {
  animation: interior-door-exit-right 900ms cubic-bezier(0.72, 0, 0.2, 1) both;
}

.interior-transition-player {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 2%;
  width: clamp(5.5rem, 12vw, 10.5rem);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 1.25rem 0.65rem rgba(0, 0, 0, 0.46));
}

.interior-transition-player img {
  display: block;
  width: 100%;
  height: auto;
}

.interior-transition.is-active[data-direction="enter"] .interior-transition-player {
  animation: interior-player-cross-enter 900ms cubic-bezier(0.35, 0.02, 0.2, 1) both;
}

.interior-transition.is-active[data-direction="exit"] .interior-transition-player {
  animation: interior-player-cross-exit 900ms cubic-bezier(0.35, 0.02, 0.2, 1) both;
}

.interior-transition-copy {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: max(1.4rem, 7vh);
  display: grid;
  width: min(42rem, calc(100vw - 2rem));
  gap: 0.3rem;
  text-align: center;
  text-shadow: 0 0.3rem 1.6rem #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.interior-transition-copy p,
.interior-transition-copy strong,
.interior-transition-copy span {
  margin: 0;
  color: #fff;
}

.interior-transition-copy p {
  color: #78eee4;
  font: 800 0.68rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.interior-transition-copy strong {
  font-size: clamp(1.35rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.interior-transition-copy span {
  color: #d6e5e6;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
}

.interior-transition.is-active .interior-transition-copy {
  animation: interior-transition-copy 900ms ease both;
}

body.is-crossing-interior-threshold { cursor: progress; }

@keyframes interior-transition-cover {
  0% { opacity: 0; }
  10%, 84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes interior-transition-art-enter {
  0% { transform: scale(1.12); filter: saturate(0.65) brightness(0.36) blur(3px); }
  48% { transform: scale(1.045); filter: saturate(0.88) brightness(0.65) blur(0); }
  100% { transform: scale(1); filter: saturate(1.04) brightness(0.78) blur(0); }
}

@keyframes interior-transition-art-exit {
  0% { transform: scale(1); filter: saturate(1.04) brightness(0.78) blur(0); }
  56% { transform: scale(1.045); filter: saturate(0.86) brightness(0.62) blur(0); }
  100% { transform: scale(1.1); filter: saturate(0.66) brightness(0.35) blur(3px); }
}

@keyframes interior-door-enter-left {
  0%, 14% { transform: translateX(0); }
  52%, 100% { transform: translateX(-101%); }
}

@keyframes interior-door-enter-right {
  0%, 14% { transform: translateX(0); }
  52%, 100% { transform: translateX(101%); }
}

@keyframes interior-door-exit-left {
  0%, 12% { transform: translateX(-101%); }
  54%, 100% { transform: translateX(0); }
}

@keyframes interior-door-exit-right {
  0%, 12% { transform: translateX(101%); }
  54%, 100% { transform: translateX(0); }
}

@keyframes interior-player-cross-enter {
  0% { opacity: 0; transform: translate(-50%, 16%) scale(1.18); }
  12% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, -32vh) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -38vh) scale(0.4); }
}

@keyframes interior-player-cross-exit {
  0% { opacity: 0; transform: translate(-50%, -38vh) scale(0.4); }
  18% { opacity: 1; }
  76% { opacity: 1; transform: translate(-50%, 8%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, 18%) scale(1.2); }
}

@keyframes interior-transition-copy {
  0%, 8% { opacity: 0; transform: translate(-50%, -0.45rem); }
  18%, 72% { opacity: 1; transform: translate(-50%, 0); }
  92%, 100% { opacity: 0; transform: translate(-50%, 0.25rem); }
}

.btn-primary {
  background: var(--singtel-red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  margin-top: 0.5rem;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid #8a8fa0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}
.paper .btn-secondary { border-color: #9aa0ae; color: var(--paper-ink); }
.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  text-decoration: underline;
  padding: 0.4rem 0.6rem;
}
.muted { color: var(--ink-dim); }
.paper .muted { color: var(--paper-dim); }
.draft-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-dim);
  border-top: 1px dashed #4a5064;
  padding-top: 0.6rem;
  margin-top: 1.2rem;
}
.paper .draft-note { color: var(--paper-dim); border-top-color: var(--paper-line); }

/* ---- simplified intro and tutorial ---- */
.onboarding-overlay {
  z-index: 60;
  padding: clamp(0.35rem, 1.7vw, 1.15rem);
  background:
    radial-gradient(circle at 84% 10%, rgba(65, 231, 215, 0.13), transparent 27%),
    radial-gradient(circle at 14% 88%, rgba(242, 13, 58, 0.17), transparent 32%),
    rgba(4, 8, 13, 0.96);
}
.onboarding-overlay.is-intro-active {
  align-items: stretch;
  padding: 0;
  background: #02060b;
}
.onboarding-card {
  position: relative;
  width: min(96vw, 1120px);
  max-width: 1120px;
  max-height: min(94vh, 780px);
  overflow: auto;
  border: 1px solid #343b4d;
  border-top: 0;
  border-radius: 20px;
  padding: 0;
  background: #090d14;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.72);
}
.onboarding-overlay.is-intro-active .onboarding-card {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.onboarding-close {
  position: absolute;
  z-index: 8;
  top: 0.8rem;
  right: 0.8rem;
  color: #fff;
  background: rgba(3, 8, 13, 0.7);
  backdrop-filter: blur(8px);
}
.onboarding-overlay.is-intro-active .onboarding-close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}
.onboarding-step { min-height: 0; }
.entry-purpose-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  min-height: min(76vh, 680px);
  overflow: hidden;
}
.entry-purpose-step[hidden] { display: none; }
.entry-purpose-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.entry-purpose-copy h1 {
  max-width: 13ch;
  margin: 0.35rem 0 1rem;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.entry-purpose-copy > p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--ink-dim);
  line-height: 1.65;
}
.entry-purpose-step > img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.72);
}
.entry-purpose-actions {
  display: grid;
  gap: 0.65rem;
  max-width: 29rem;
  margin: 1.6rem 0 1rem;
}
.entry-purpose-actions button { margin: 0; text-align: left; }
.entry-purpose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
}
.entry-purpose-links a,
.entry-purpose-links .text-button {
  border: 0;
  padding: 0;
  color: var(--cyan);
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.entry-purpose-copy .entry-trust-note {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid #343b4d;
  font-size: 0.8rem;
}
.onboarding-overlay.is-intro-active .intro-step,
.onboarding-overlay.is-intro-active .intro-media {
  height: 100%;
  min-height: 100%;
}
.intro-media {
  position: relative;
  min-height: min(70vh, 620px);
  overflow: hidden;
  background: #06131e;
}
.intro-media::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 13, 0.08) 38%, rgba(3, 8, 13, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 8, 13, 0.5), transparent 55%);
  pointer-events: none;
}
#intro-video,
.intro-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#intro-video {
  z-index: 2;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
}
.intro-media[data-state="playing"] #intro-video,
.intro-media[data-state="complete"] #intro-video { opacity: 1; }
.intro-media[data-state="playing"] .intro-preview,
.intro-media[data-state="complete"] .intro-preview { opacity: 0; }
.intro-preview {
  z-index: 1;
  overflow: hidden;
  opacity: 1;
  transition: opacity 300ms ease;
}
.intro-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 63% 47%, rgba(65, 231, 215, 0.22), transparent 12%),
    linear-gradient(115deg, transparent 22%, rgba(65, 231, 215, 0.12) 48%, transparent 68%);
  animation: intro-scan 4.8s ease-in-out both;
}
.intro-preview-world,
.intro-preview-hero {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
}
.intro-preview-world {
  filter: saturate(0.78) brightness(0.7);
  animation: intro-world 5.2s ease-out both;
}
.intro-preview-hero {
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.1) contrast(1.08);
  animation: intro-hero 5.2s ease-in-out both;
}
.intro-signal {
  position: absolute;
  z-index: 2;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(65, 231, 215, 0.55), 0 0 1.4rem var(--cyan);
  animation: intro-pulse 1.7s ease-out infinite;
}
.intro-signal-one { left: 61%; top: 39%; }
.intro-signal-two { left: 73%; top: 58%; animation-delay: 0.45s; }
.intro-signal-three { left: 48%; top: 68%; animation-delay: 0.9s; }
.intro-brand {
  position: absolute;
  z-index: 4;
  left: clamp(1.25rem, 4.5vw, 3.6rem);
  bottom: clamp(1.4rem, 5vw, 3.8rem);
  max-width: min(40rem, 76%);
  color: #fff;
}
.onboarding-overlay.is-intro-active .intro-brand {
  bottom: clamp(7.25rem, 14vh, 10rem);
}
.intro-brand p {
  margin: 0 0 0.45rem;
  color: var(--singtel-red);
  font: 700 clamp(0.62rem, 1.4vw, 0.76rem)/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.intro-brand h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-shadow: 0 0.2rem 1.4rem rgba(0, 0, 0, 0.7);
}
.intro-brand h1:focus-visible {
  outline: none;
}
.intro-skip {
  position: absolute;
  z-index: 7;
  right: 1rem;
  bottom: 1rem;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #fff;
  background: rgba(3, 8, 13, 0.62);
  backdrop-filter: blur(8px);
}
.onboarding-overlay.is-intro-active .intro-skip {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(3.1rem, calc(env(safe-area-inset-bottom) + 3.1rem));
}
.intro-finish {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 74px;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  border-top: 1px solid #2d3443;
  background: #0d121b;
}
.onboarding-overlay.is-intro-active .intro-finish {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 7rem;
  padding:
    0.9rem
    max(1.25rem, env(safe-area-inset-right))
    max(2.35rem, calc(env(safe-area-inset-bottom) + 2.35rem))
    max(1.25rem, env(safe-area-inset-left));
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 13, 0.9));
}
.onboarding-overlay.is-intro-active .intro-finish p {
  color: rgba(255, 255, 255, 0.78);
}
.intro-finish p {
  margin: 0 auto 0 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
}
.intro-replay {
  margin: 0;
  border-radius: 999px;
}
.intro-replay[hidden] { display: none; }
.onboarding-start {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 9rem;
  justify-content: space-between;
  margin: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 800;
  animation: start-ready 380ms ease-out both;
}
.onboarding-start[hidden] { display: none; }
.onboarding-card.is-transitioning .intro-step {
  animation: intro-depart 580ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
.onboarding-governance {
  margin: 0;
  padding: 0.55rem 1rem;
  border-top: 1px dashed #343b4d;
  background: #0a0e15;
  text-align: center;
}
.onboarding-overlay.is-intro-active .onboarding-governance {
  position: absolute;
  z-index: 6;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(0.4rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  pointer-events: none;
}

@media (max-width: 760px) {
  .entry-purpose-step { grid-template-columns: 1fr; }
  .entry-purpose-step > img { min-height: 12rem; max-height: 14rem; order: -1; }
  .entry-purpose-copy { padding: 1.35rem; }
  .entry-purpose-copy h1 { font-size: clamp(2rem, 11vw, 3.3rem); }
}

.tutorial-step { padding: clamp(1.2rem, 3vw, 2.2rem); }
.tutorial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.tutorial-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
.tutorial-count {
  flex: 0 0 auto;
  color: var(--cyan);
  font: 700 0.74rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(1.1rem, 3vw, 2.1rem);
  align-items: stretch;
}
.tutorial-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #333b4c;
  border-radius: 16px;
  background: #071724;
}
.tutorial-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(3, 9, 15, 0.86));
}
.tutorial-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: object-position 360ms ease, transform 360ms ease;
}
.tutorial-signals {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.tutorial-signal {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.38rem 0.55rem;
  color: #fff;
  background: rgba(4, 12, 20, 0.82);
  font: 800 0.69rem/1 ui-monospace, "SF Mono", Menlo, monospace;
}
.tutorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tutorial-guide {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tutorial-guide-portrait {
  display: grid;
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(65, 231, 215, 0.38);
  border-radius: 50%;
  color: var(--cyan);
  background:
    radial-gradient(circle at 50% 30%, rgba(65, 231, 215, 0.16), transparent 60%),
    #07131d;
  font: 800 0.78rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}
.tutorial-guide-copy { display: grid; gap: 0.15rem; }
.tutorial-guide strong { color: #fff; font-size: 0.94rem; }
.tutorial-guide small { color: var(--ink-dim); font-size: 0.76rem; }
.tutorial-copy > p {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}
.tutorial-detail {
  margin-top: 1.2rem;
  border-left: 3px solid var(--cyan);
  padding: 0.8rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #dce2e9;
  background: rgba(65, 231, 215, 0.07);
  font-size: 0.9rem;
  line-height: 1.55;
}
.tutorial-detail strong { display: block; margin-bottom: 0.25rem; color: var(--cyan); }
.tutorial-destination-picker {
  min-width: 0;
  margin: 1rem 0 0;
  border: 0;
  padding: 0;
}
.tutorial-destination-picker[hidden] { display: none; }
.tutorial-destination-picker legend {
  margin-bottom: 0.55rem;
  padding: 0;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}
.tutorial-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.tutorial-destination-grid button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  border: 1px solid #3c4658;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  color: #fff;
  background: #111824;
  text-align: left;
}
.tutorial-destination-grid button:hover,
.tutorial-destination-grid button:focus-visible {
  border-color: var(--cyan);
  background: #172431;
}
.tutorial-destination-grid button:first-child { grid-column: 1 / -1; }
.tutorial-destination-grid span {
  color: var(--cyan);
  font: 800 0.64rem/1 ui-monospace, "SF Mono", Menlo, monospace;
}
.tutorial-destination-grid strong {
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.2;
}
.pillar-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
.pillar-highlights-grid[hidden] { display: none; }
.pillar-highlight {
  --pillar-accent: var(--cyan);
  min-width: 0;
  border: 1px solid #3c4658;
  border-top: 4px solid var(--pillar-accent);
  border-radius: 11px;
  padding: 0.78rem;
  color: #fff;
  background: #111824;
}
.pillar-highlight-label {
  margin: 0 0 0.45rem;
  color: var(--pillar-accent);
  font: 800 0.66rem/1.25 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pillar-highlight-value {
  display: block;
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.15;
}
.pillar-highlight h3 {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.pillar-highlight-source {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--pillar-accent);
  font-size: 0.69rem;
  font-weight: 750;
}
.pillar-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
.pillar-choice-grid[hidden] { display: none; }
.pillar-choice {
  --pillar-accent: var(--cyan);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 5rem;
  border: 1px solid #3c4658;
  border-left: 4px solid var(--pillar-accent);
  border-radius: 11px;
  padding: 0.7rem 0.75rem;
  color: #fff;
  background: #111824;
  text-align: left;
}
.pillar-choice:hover,
.pillar-choice:focus-visible {
  border-color: var(--pillar-accent);
  background: #172130;
  transform: translateY(-1px);
}
.pillar-choice:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pillar-accent) 48%, transparent);
  outline-offset: 2px;
}
.pillar-choice-number {
  color: var(--pillar-accent);
  font: 800 0.66rem/1 ui-monospace, "SF Mono", Menlo, monospace;
}
.pillar-choice > span:nth-child(2) { display: grid; gap: 0.2rem; }
.pillar-choice strong { font-size: 0.82rem; line-height: 1.25; }
.pillar-choice small { color: var(--ink-dim); font-size: 0.68rem; line-height: 1.3; }
.pillar-choice-arrow { color: var(--pillar-accent); font-size: 1.1rem; }
.pillar-environment { --pillar-accent: #61e49b; }
.pillar-customers { --pillar-accent: #62e8e2; }
.pillar-people { --pillar-accent: #b99cff; }
.pillar-community { --pillar-accent: #ffc95b; }
.tutorial-step[data-page-kind="start"] .tutorial-layout {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}
.tutorial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}
.tutorial-progress {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tutorial-progress span {
  display: block;
  width: 1.8rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #343b4a;
}
.tutorial-progress span.is-current { background: var(--singtel-red); }
.tutorial-progress span.is-complete { background: var(--cyan); }
.tutorial-actions {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}
.tutorial-actions .btn-primary,
.tutorial-actions .btn-secondary { margin: 0; }

#tutorial-title:focus-visible {
  outline: none;
}

.journey-transition {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(65, 231, 215, 0.18), transparent 28%),
    #050b12;
  animation: journey-curtain 1.25s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.journey-transition[hidden] { display: none; }
.journey-transition p {
  margin: 1rem 0 0.35rem;
  color: var(--cyan);
  font: 700 0.72rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.journey-transition h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.8rem); }
.journey-transition-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.journey-transition-mark span {
  width: 0.72rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--singtel-red);
  animation: journey-signal 720ms ease-in-out infinite alternate;
}
.journey-transition-mark span:nth-child(2) { height: 3.5rem; animation-delay: 100ms; }
.journey-transition-mark span:nth-child(3) { height: 1.7rem; animation-delay: 200ms; }

@keyframes intro-world {
  from { transform: scale(1.12); filter: saturate(0.55) brightness(0.42); }
  to { transform: scale(1); filter: saturate(0.9) brightness(0.78); }
}
@keyframes intro-hero {
  0%, 35% { opacity: 0; transform: scale(1.08); }
  70%, 100% { opacity: 0.72; transform: scale(1); }
}
@keyframes intro-scan {
  from { opacity: 0; transform: translateX(-20%); }
  40%, 100% { opacity: 1; transform: translateX(0); }
}
@keyframes intro-pulse {
  0% { box-shadow: 0 0 0 0 rgba(65, 231, 215, 0.58), 0 0 1.4rem var(--cyan); }
  100% { box-shadow: 0 0 0 1.4rem rgba(65, 231, 215, 0), 0 0 1.4rem var(--cyan); }
}
@keyframes start-ready {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-depart {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.05); filter: blur(8px); }
}
@keyframes journey-curtain {
  0% { opacity: 0; clip-path: circle(0 at 50% 50%); }
  28%, 72% { opacity: 1; clip-path: circle(80% at 50% 50%); }
  100% { opacity: 0; clip-path: circle(80% at 50% 50%); }
}
@keyframes journey-signal { to { transform: scaleY(0.5); background: var(--cyan); } }

/* ---- landing ---- */
.landing-card { max-width: 1040px; width: min(96vw, 1040px); }
.landing-intro { max-width: 78ch; margin-bottom: 1rem; }
.entry-head h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
.entry-hero {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  margin: 0.8rem 0 1rem;
  border: 1px solid #353a4c;
  border-radius: 15px;
  background: #081521;
}
.entry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.9) 0%, rgba(5, 12, 20, 0.68) 44%, rgba(5, 12, 20, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 12, 20, 0.34), transparent);
}
.entry-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.92) contrast(1.04);
}
.entry-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: min(58%, 34rem);
  min-height: 116px;
  padding: 1rem 1.25rem;
}
.entry-hero-copy span {
  color: var(--cyan);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry-hero-copy strong {
  max-width: 28ch;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.entry-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}
.entry-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 190px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #353a4c;
  border-radius: 14px;
  background: #141822;
  color: var(--ink);
  text-align: left;
}
.entry-start-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.96) 0%, rgba(7, 12, 20, 0.78) 49%, rgba(7, 12, 20, 0.2) 86%),
    linear-gradient(0deg, rgba(7, 12, 20, 0.52), transparent 60%);
}
.entry-start-art,
.entry-start-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.entry-start-art img {
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 0.3s ease, filter 0.3s ease;
}
#start-highlights .entry-start-art img { object-position: 68% center; }
.entry-start-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.42rem;
  width: min(78%, 25rem);
  min-height: 188px;
  padding: 1.15rem 1.25rem;
}
.entry-start-card:hover {
  border-color: var(--cyan);
  background: #191e2a;
}
.entry-start-card:hover .entry-start-art img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}
.entry-start-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}
.entry-start-copy > span:last-child {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}
.entry-start-primary {
  border-color: var(--singtel-red);
  background: linear-gradient(145deg, rgba(242, 13, 58, 0.2), #171a24 72%);
  box-shadow: 0 0 0 1px rgba(242, 13, 58, 0.24);
}
.entry-start-primary:hover {
  border-color: #ff5879;
  background: linear-gradient(145deg, rgba(242, 13, 58, 0.28), #1b1e29 72%);
}
.entry-step[hidden] { display: none; }
.entry-step h3 {
  margin: 0.1rem 0 0.4rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.entry-step > p { max-width: 72ch; margin-top: 0.35rem; }
.runtime-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.runtime-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  min-height: 318px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: #10131b;
  border: 1px solid #353a4c;
  border-radius: 16px;
}
.runtime-card:hover { border-color: var(--cyan); background: #151924; }
.runtime-card.choice-selected {
  border-color: var(--singtel-red);
  box-shadow: 0 0 0 2px rgba(242, 13, 58, 0.28);
}
.runtime-card-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071724;
}
.runtime-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(4, 10, 17, 0.78));
  pointer-events: none;
}
.runtime-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}
.runtime-card:hover .runtime-card-visual img,
.runtime-card.choice-selected .runtime-card-visual img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}
.runtime-input-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: #fff;
  background: rgba(7, 16, 27, 0.8);
  font: 700 0.62rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.runtime-card-visual > .runtime-input-label {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  bottom: 0.7rem;
}
.runtime-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 1.15rem 1.1rem;
}
.runtime-card-copy strong { font-size: 1.24rem; }
.runtime-card-copy > span:last-child { color: var(--ink-dim); line-height: 1.45; font-size: 0.9rem; }
.choice-eyebrow {
  color: var(--cyan);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.choice-check {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: none;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: #fff;
  background: var(--singtel-red);
  font-weight: 800;
}
.choice-selected .choice-check { display: grid; }
.runtime-guide { margin-top: 1rem; }
.runtime-guide-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid #353a4c;
  border-radius: 18px;
  background: #0d1119;
}
.runtime-guide-preview {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071724;
}
.runtime-guide-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 10, 17, 0.92));
  pointer-events: none;
}
.runtime-guide-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}
.runtime-guide-preview figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: #fff;
}
.runtime-guide-preview figcaption strong {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}
.runtime-tip-list {
  display: grid;
  align-content: center;
  gap: 0;
  list-style: none;
  padding: 0.45rem 1.15rem;
  margin: 0;
}
.runtime-tip-list li {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #2e3443;
}
.runtime-tip-list li:last-child { border-bottom: 0; }
.runtime-tip-number {
  color: var(--singtel-red);
  font: 700 0.68rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
}
.runtime-tip-copy {
  display: grid;
  gap: 0.3rem;
}
.runtime-tip-copy > strong { font-size: 0.98rem; }
.runtime-tip-copy > span {
  color: var(--ink-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}
.runtime-tip-copy kbd {
  width: max-content;
  margin-top: 0.18rem;
  border: 1px solid #465064;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.25rem 0.45rem;
  color: var(--cyan);
  background: #171d28;
  font: 700 0.66rem/1 ui-monospace, "SF Mono", Menlo, monospace;
}
.runtime-guide-common {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #353a4c;
  color: var(--ink-dim);
  background: rgba(65, 231, 215, 0.06);
  font-size: 0.82rem;
  line-height: 1.45;
}
.runtime-guide-common strong { color: var(--cyan); }
.runtime-guide-empty {
  border: 1px dashed #4a5064;
  border-radius: 12px;
  padding: 1rem;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 0.72rem;
  margin-top: 1rem;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.75rem 0.45rem 0.7rem;
  color: var(--ink);
  background: #10131b;
  border: 1px solid #353a4c;
  border-radius: 14px;
}
.avatar-option:hover { border-color: var(--avatar-accent); background: #151924; }
.avatar-option.choice-selected {
  border-color: var(--avatar-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--avatar-accent) 38%, transparent);
}
.avatar-portrait {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--avatar-accent) 65%, #fff 10%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--avatar-accent) 32%, transparent), transparent 68%),
    #202431;
}
.avatar-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-option > strong { font-size: 0.88rem; text-align: center; }
.avatar-choice-state { color: var(--ink-dim); font-size: 0.7rem; text-align: center; }
.avatar-option.choice-selected .avatar-choice-state { color: var(--avatar-accent); }
.choice-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: var(--cyan) !important;
  font-size: 0.85rem;
}
.entry-route-section {
  margin-top: 1.2rem;
}
.entry-route-section > .eyebrow {
  margin-bottom: 0;
}
.entry-settings {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #353a4c;
  border-radius: 12px;
  background: #10131b;
}
.entry-settings summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
}
.entry-settings > p {
  max-width: 72ch;
  margin: 0.2rem 0 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.entry-footer {
  display: block;
  margin-top: 1rem;
}
.entry-accessible-card {
  position: relative;
  display: block;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid #35483e;
  border-radius: 12px;
  color: var(--ink);
  background: #10161a;
  text-decoration: none;
}
.entry-accessible-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 15, 16, 0.97) 0%, rgba(7, 15, 16, 0.8) 48%, rgba(7, 15, 16, 0.2) 86%);
}
.entry-accessible-card:hover { border-color: #64ce8e; }
.entry-accessible-art,
.entry-accessible-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.entry-accessible-art img {
  object-fit: cover;
  object-position: 66% center;
  filter: saturate(0.82) contrast(1.04);
}
.entry-accessible-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  width: min(68%, 34rem);
  min-height: 116px;
  padding: 0.85rem 1rem;
}
.entry-accessible-copy strong { font-size: 1.04rem; }
.entry-accessible-copy > span:last-child {
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}
.landing-resume { margin: 0.4rem 0 0.8rem; }
.landing-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 180px;
  overflow: hidden;
  text-align: left;
  background: #12141c;
  border: 1px solid #2c3142;
  border-top: 4px solid var(--singtel-red);
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
}
.mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.97) 0%, rgba(7, 12, 20, 0.8) 49%, rgba(7, 12, 20, 0.2) 88%),
    linear-gradient(0deg, rgba(7, 12, 20, 0.5), transparent 64%);
}
.mode-art,
.mode-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mode-art img {
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.mode-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  width: min(78%, 26rem);
  min-height: 176px;
  padding: 1rem 1.1rem;
}
.mode-card:hover { border-color: var(--singtel-red); background: #161927; }
.mode-card:hover .mode-art img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}
.mode-investor { border-top-color: var(--gold); }
.mode-employee { border-top-color: #7d6cf0; }
.mode-open { border-top-color: var(--cyan); }
.mode-accessible { border-top-color: #2fae63; }
.mode-name { font-weight: 700; font-size: 1.02rem; }
.mode-eta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mode-blurb { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.45; }

/* ---- tour ---- */
.tour-card { max-width: 640px; width: min(94vw, 640px); }
.tour-art {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  margin: -0.35rem -0.7rem 1rem;
  border: 1px solid #353a4c;
  border-radius: 12px;
  background: #081521;
}
.tour-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 13, 21, 0.32), transparent 52%);
}
.tour-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.tour-art-interior img { object-position: center 58%; }
.tour-progress { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tour-stage h3 { margin-top: 0.2rem; }
.tour-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.tour-done-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---- badges ---- */
.badge {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}
.badge-reported { background: var(--badge-reported-bg); color: #fff; }
.badge-current_disclosure { background: var(--badge-current-bg); color: #fff; }
.badge-policy { background: var(--badge-policy-bg); color: #fff; }
.badge-forward_looking { background: var(--badge-forward-bg); color: var(--badge-forward-ink); }
.badge-illustrative {
  background: transparent;
  color: var(--badge-illustrative-ink);
  border: 1px dashed var(--badge-illustrative-ink);
}

/*
 * A one-line desktop toolbar does not fit reliably at iPad landscape widths.
 * Keep the world canvas stable by switching only the toolbar to its compact
 * menu; content overlays retain their roomier tablet layouts.
 */
@media (min-width: 821px) and (max-width: 1200px),
  (pointer: coarse) and (min-width: 821px) and (max-width: 1366px) {
  #topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50px;
    padding:
      max(0.34rem, env(safe-area-inset-top))
      max(0.8rem, env(safe-area-inset-right))
      0.34rem
      max(0.9rem, env(safe-area-inset-left));
  }
  #wordmark {
    min-width: 0;
    white-space: nowrap;
  }
  #wordmark > span { font-size: 0.52rem; }
  #wordmark strong { font-size: 0.78rem; }
  #mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.32rem 0.68rem;
  }
  #topbar-actions {
    position: absolute;
    top: calc(100% + 2px);
    right: max(0.65rem, env(safe-area-inset-right));
    display: none;
    width: min(28rem, calc(100vw - 1.3rem));
    max-height: calc(100dvh - var(--shell-header-height) - 0.75rem);
    overflow-y: auto;
    justify-content: stretch;
    gap: 0.5rem;
    border: 1px solid #3a4051;
    border-radius: 12px;
    padding: 0.7rem;
    background: rgba(16, 18, 24, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
  }
  #topbar.mobile-menu-open #topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #shell-destinations {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 4.4rem;
  }
  #shell-destinations::before { display: none; }
  #shell-destinations button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.52rem 0.18rem;
  }
  #shell-destinations strong {
    font-size: 0.54rem;
  }
  #report-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #report-tools > button,
  #report-tools > a,
  #more-tools > summary {
    width: 100%;
    min-width: 0;
    padding: 0.68rem 0.6rem;
    text-align: center;
  }
  #more-tools { grid-column: 1 / -1; }
  .more-tools-panel {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    box-shadow: none;
  }
}

@media (pointer: coarse) and (min-width: 821px) and (orientation: landscape) {
  .help-hint {
    top: calc(var(--shell-header-height) + 0.65rem);
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    width: min(19rem, calc(100vw - 1.5rem));
    padding: 0.72rem 0.78rem;
  }
  .help-hint .eyebrow {
    display: none;
  }
  .help-hint > strong {
    font-size: 0.9rem;
  }
  .help-hint > p:not(.eyebrow) {
    margin-top: 0.32rem;
    font-size: 0.76rem;
    line-height: 1.38;
  }
}

@media (max-width: 820px) {
  #topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50px;
    align-items: center;
    padding:
      max(0.34rem, env(safe-area-inset-top))
      max(0.65rem, env(safe-area-inset-right))
      0.34rem
      max(0.75rem, env(safe-area-inset-left));
  }
  #wordmark {
    min-width: 0;
    white-space: nowrap;
  }
  #wordmark > span { font-size: 0.48rem; }
  #wordmark strong { font-size: 0.72rem; }
  #mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.32rem 0.62rem;
  }
  #topbar-actions {
    position: absolute;
    top: calc(100% + 2px);
    right: max(0.5rem, env(safe-area-inset-right));
    display: none;
    width: min(20rem, calc(100vw - 1rem));
    max-height: calc(100dvh - var(--shell-header-height) - 0.75rem);
    overflow-y: auto;
    justify-content: stretch;
    gap: 0.45rem;
    border: 1px solid #3a4051;
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(16, 18, 24, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
  }
  #topbar.mobile-menu-open #topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #shell-destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  #shell-destinations::before { display: none; }
  #shell-destinations button {
    min-height: 3.7rem;
    grid-template-columns: auto minmax(0, 1fr);
    place-content: center start;
    justify-items: start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    text-align: left;
  }
  #shell-destinations button:last-child {
    grid-column: 1 / -1;
  }
  #shell-destinations button::after {
    top: 18%;
    right: auto;
    bottom: 18%;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0.45);
  }
  #shell-destinations button[aria-current="page"]::after {
    transform: scaleY(1);
  }
  #shell-destinations strong {
    font-size: 0.62rem;
  }
  #report-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #report-tools > button,
  #report-tools > a,
  #more-tools > summary {
    width: 100%;
    min-width: 0;
    padding: 0.62rem 0.55rem;
    text-align: center;
  }
  #more-tools { grid-column: 1 / -1; }
  .more-tools-panel {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0.45rem;
    box-shadow: none;
  }
  .help-hint {
    top: calc(var(--shell-header-height) + 0.5rem);
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: auto;
    width: min(18rem, calc(100vw - 1rem));
    padding: 0.68rem 0.72rem;
  }
  .help-hint .eyebrow {
    display: none;
  }
  .help-hint > strong {
    font-size: 0.88rem;
  }
  .help-hint > p:not(.eyebrow) {
    margin-top: 0.3rem;
    font-size: 0.74rem;
    line-height: 1.36;
  }
  .overlay {
    align-items: stretch;
    padding:
      max(0.35rem, env(safe-area-inset-top))
      max(0.35rem, env(safe-area-inset-right))
      max(0.35rem, env(safe-area-inset-bottom))
      max(0.35rem, env(safe-area-inset-left));
  }
  .overlay-card {
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 1.1rem;
  }
  .onboarding-card { padding: 0; border-radius: 14px; }
  .intro-media { min-height: 68dvh; }
  .intro-brand { max-width: 88%; }
  .tutorial-step { padding: 1.1rem; }
  .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-step[data-page-kind="start"] .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-visual,
  .tutorial-visual img { min-height: 230px; }
  .tutorial-copy > p { line-height: 1.5; }
  .tutorial-footer { align-items: flex-end; }
  .overlay-head {
    position: sticky;
    z-index: 12;
    top: -1.1rem;
    margin: -1.1rem -1.1rem 0;
    padding: 1.1rem 1.1rem 0.55rem;
    background: var(--navy-2);
  }
  .paper > .overlay-head {
    background: rgba(247, 247, 242, 0.96);
    backdrop-filter: blur(12px);
  }
  .field-row { grid-template-columns: 1fr; }
  .entry-primary-actions { grid-template-columns: 1fr; }
  .entry-start-card { min-height: 170px; }
  .entry-start-copy { min-height: 168px; width: min(82%, 27rem); }
  .runtime-options { grid-template-columns: 1fr; }
  .runtime-card { grid-template-columns: 112px 1fr; min-height: 152px; }
  .runtime-card-visual { min-height: 150px; }
  .tour-art { min-height: 155px; }
  #route-banner {
    top: calc(var(--shell-header-height) + 0.45rem);
    width: calc(100vw - 0.8rem);
    max-width: none;
    align-items: stretch;
    flex-direction: column;
  }
  #route-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .intro-media { min-height: 64dvh; }
  .onboarding-overlay.is-intro-active .intro-media {
    background: #03080d;
  }
  .onboarding-overlay.is-intro-active #intro-video {
    object-fit: cover;
  }
  .onboarding-overlay.is-intro-active .intro-media[data-state="complete"] #intro-video {
    opacity: 0;
  }
  .onboarding-overlay.is-intro-active .intro-media[data-state="complete"] .intro-preview {
    opacity: 1;
  }
  .onboarding-overlay.is-intro-active .intro-brand {
    right: max(1.1rem, env(safe-area-inset-right));
    bottom: 13.25rem;
    left: max(1.1rem, env(safe-area-inset-left));
    max-width: none;
  }
  .onboarding-overlay.is-intro-active .intro-brand h1 {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
  }
  .onboarding-overlay.is-intro-active .intro-skip {
    right: max(1.1rem, env(safe-area-inset-right));
    bottom: max(7.5rem, calc(env(safe-area-inset-bottom) + 7.5rem));
  }
  .intro-finish {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }
  .onboarding-overlay.is-intro-active .intro-finish {
    justify-content: flex-end;
    min-height: 12.25rem;
    padding:
      0.9rem
      max(1.1rem, env(safe-area-inset-right))
      max(2.55rem, calc(env(safe-area-inset-bottom) + 2.55rem))
      max(1.1rem, env(safe-area-inset-left));
  }
  .intro-finish p {
    margin: 0;
    line-height: 1.35;
  }
  .intro-replay,
  .onboarding-start { width: 100%; }
  .onboarding-overlay.is-intro-active .onboarding-governance {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    font-size: 0.65rem;
    line-height: 1.25;
  }
  .tutorial-head { margin-bottom: 0.8rem; }
  .tutorial-visual,
  .tutorial-visual img { min-height: 190px; }
  .tutorial-footer { align-items: stretch; flex-direction: column; }
  .tutorial-actions { width: 100%; margin-left: 0; }
  .tutorial-actions button { flex: 1; }
  .pillar-choice-grid { grid-template-columns: 1fr; }
  .pillar-highlights-grid { grid-template-columns: 1fr; }
  .runtime-card { grid-template-columns: 92px 1fr; }
  .runtime-card-copy { padding-right: 0.85rem; }
  .entry-hero-copy { width: 82%; }
  .entry-start-copy,
  .mode-copy,
  .entry-accessible-copy { width: 88%; }
  .loading-card { width: calc(100% - 2rem); }
  #loading-recovery .btn-link,
  #loading-recovery button { width: 100%; margin-inline: 0; }
}

/*
 * Phone landscape onboarding.
 *
 * Keep the page title, Moon's introduction, the primary visual, progress and
 * navigation inside one viewport. Longer supporting detail remains available
 * by scrolling only the copy column, rather than the whole dialog.
 */
@media (orientation: landscape) and (max-width: 1180px) and (max-height: 620px) {
  .onboarding-overlay:not(.is-intro-active) {
    align-items: stretch;
    padding:
      max(0.25rem, env(safe-area-inset-top))
      max(0.35rem, env(safe-area-inset-right))
      max(0.25rem, env(safe-area-inset-bottom))
      max(0.35rem, env(safe-area-inset-left));
  }
  .onboarding-overlay:not(.is-intro-active) .onboarding-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    overflow: hidden;
    border-radius: 12px;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-step {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    padding: 0.6rem 0.75rem 0.5rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-head {
    align-items: start;
    margin-bottom: 0.5rem;
    padding-right: 0.1rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-head .eyebrow {
    margin-bottom: 0.2rem;
    font-size: 0.55rem;
    line-height: 1.2;
    letter-spacing: 0.09em;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-head h2 {
    max-width: 28ch;
    margin: 0;
    font-size: clamp(1.2rem, 3.2vw, 1.65rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-count {
    padding-top: 0.15rem;
    font-size: 0.62rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-layout,
  .onboarding-overlay:not(.is-intro-active) .tutorial-step[data-page-kind="start"] .tutorial-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 0;
    overflow: hidden;
    gap: 0.7rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-visual,
  .onboarding-overlay:not(.is-intro-active) .tutorial-visual img {
    min-height: 0;
    height: 100%;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-visual {
    border-radius: 10px;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-signals {
    left: 0.5rem;
    bottom: 0.5rem;
    gap: 0.25rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-signal {
    padding: 0.25rem 0.35rem;
    font-size: 0.5rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-copy {
    display: block;
    min-height: 0;
    overflow-y: auto;
    padding: 0.05rem 0.25rem 0.2rem 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-guide {
    gap: 0.55rem;
    margin-bottom: 0.45rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-guide-portrait {
    width: 2.8rem;
    height: 2.8rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-guide strong {
    font-size: 0.78rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-guide small {
    font-size: 0.64rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-copy > p {
    font-size: clamp(0.74rem, 1.75vw, 0.9rem);
    line-height: 1.38;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-detail {
    margin-top: 0.55rem;
    padding: 0.48rem 0.6rem;
    font-size: clamp(0.66rem, 1.55vw, 0.78rem);
    line-height: 1.38;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-detail strong {
    margin-bottom: 0.15rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlights-grid,
  .onboarding-overlay:not(.is-intro-active) .pillar-choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.55rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight {
    border-top-width: 3px;
    padding: 0.48rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight-label {
    margin-bottom: 0.25rem;
    font-size: 0.52rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight-value {
    margin-bottom: 0.18rem;
    font-size: 0.82rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight h3,
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight-source {
    font-size: 0.58rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-highlight-source {
    margin-top: 0.3rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-choice {
    min-height: 3.55rem;
    gap: 0.45rem;
    padding: 0.42rem 0.48rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-choice strong {
    font-size: 0.68rem;
  }
  .onboarding-overlay:not(.is-intro-active) .pillar-choice small {
    font-size: 0.57rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-footer {
    min-height: 44px;
    align-items: center;
    flex-direction: row;
    margin-top: 0.45rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-progress {
    gap: 0.3rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-progress span {
    width: 1.25rem;
    height: 0.25rem;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-actions {
    width: auto;
    margin-left: auto;
  }
  .onboarding-overlay:not(.is-intro-active) .tutorial-actions button {
    flex: 0 0 auto;
    min-width: 5.4rem;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
  }
  .onboarding-overlay:not(.is-intro-active) .onboarding-governance {
    overflow: hidden;
    margin: 0;
    padding: 0.22rem 0.65rem;
    font-size: 0.55rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loading-ring { animation: none; border-top-color: var(--cyan); }
  .interior-transition-player,
  .interior-transition-light,
  .interior-transition-floor {
    display: none;
  }
}

/* ---- claim cards (paper layer) ---- */
.claim-card, .case-study-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0.8rem 0;
}

.evidence-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.7rem;
}
.evidence-context-item {
  border: 1px solid rgba(21, 35, 56, 0.2);
  border-radius: 999px;
  background: #f4f7fa;
  color: #17243a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.28rem 0.55rem;
}
.evidence-assurance.is-not-assured {
  border-color: #9f5b17;
  background: #fff4e5;
  color: #6b3500;
}
.evidence-assurance.is-assured {
  border-color: #2b6b55;
  background: #e9f7f1;
  color: #164a39;
}
.evidence-caveats {
  border-left: 3px solid #9f5b17;
  margin: 0.7rem 0;
  padding: 0.15rem 0 0.15rem 0.7rem;
}
.evidence-caveat-primary {
  color: #533114;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.45rem 0;
}
.evidence-caveats summary {
  color: #533114;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.claim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.claim-title { margin: 0; font-size: 1rem; color: var(--paper-ink); }
.claim-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--singtel-red-dark);
  margin: 0.5rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
}
.claim-value-small { font-size: 1.05rem; margin: 0.3rem 0; }
.claim-oneliner { margin: 0.2rem 0 0; }
.claim-body { margin-top: 0.7rem; }
.claim-highlight-label {
  display: inline-flex;
  margin: 0.65rem 0 0;
  border: 1px solid #b9c8ca;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  color: #49626b;
  font: 750 0.68rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.claim-foot {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.depth-toggle {
  display: inline-flex;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.7rem;
}
.depth-btn {
  background: var(--paper-2);
  border: 0;
  padding: 0.35rem 0.95rem;
  min-height: 44px;
  font-size: 0.82rem;
  color: var(--paper-dim);
}
.depth-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.field-list { margin: 0.4rem 0 0; }
.field-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--paper-line);
}
.field-row dt {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  padding-top: 0.15rem;
}
.field-row dd { margin: 0; color: var(--paper-ink); }
.footnote-list { margin: 0.3rem 0; padding-left: 1.2rem; font-size: 0.85rem; color: var(--paper-dim); }
.verify-subhead { margin: 0.9rem 0 0.2rem; font-size: 0.85rem; }

.source-link {
  color: #8a6d00;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-link:hover { color: var(--singtel-red-dark); }
.source-links {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
  flex-wrap: wrap;
}
.source-prefix {
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 700;
}

.save-btn {
  background: transparent;
  border: 1px solid var(--singtel-red-dark);
  color: var(--singtel-red-dark);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  min-height: 44px;
  font-size: 0.8rem;
}
.save-btn[aria-pressed="true"] {
  border-color: var(--badge-reported-bg);
  background: var(--badge-reported-bg);
  color: #fff;
}

.related-row { margin-top: 0.7rem; font-size: 0.85rem; }
.related-label { color: var(--paper-dim); }
.related-chip {
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin: 0.15rem;
  min-height: 36px;
  font-size: 0.78rem;
  color: var(--singtel-red-dark);
}

.case-quote {
  border-left: 4px solid var(--gold);
  margin: 0.6rem 0;
  padding: 0.3rem 0 0.3rem 1rem;
  color: var(--paper-ink);
  font-style: italic;
}
.case-quote p { margin: 0; }
.case-quote cite {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

/* ---- interior layout ---- */
.interior-card { display: flex; flex-direction: column; }
#interior-body { overflow: auto; }
.interior-foot { border-top: 1px solid var(--paper-line); padding-top: 0.8rem; margin-top: 0.8rem; }
.interior-header .interior-name { margin: 0.1rem 0 0.2rem; font-size: 1.35rem; }
.interior-tagline { font-size: 1rem; }
.interior-section { margin-top: 1.4rem; }
.interior-section > h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--singtel-red);
  display: inline-block;
}

.interior-threshold {
  display: grid;
  gap: 1.2rem;
}
.interior-threshold-art {
  position: relative;
  isolation: isolate;
  min-height: clamp(15rem, 36vh, 24rem);
  overflow: hidden;
  border: 1px solid #263947;
  border-radius: 24px;
  background: #071724;
  box-shadow: 0 28px 70px rgba(7, 20, 31, 0.3);
  color: #fff;
}
.interior-threshold-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 13, 23, 0.94), rgba(3, 13, 23, 0.16) 58%, transparent),
    linear-gradient(0deg, rgba(3, 13, 23, 0.74), transparent 45%);
  pointer-events: none;
}
.interior-threshold-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.interior-threshold-copy {
  position: absolute;
  z-index: 2;
  left: clamp(1.1rem, 4vw, 3rem);
  bottom: clamp(1.2rem, 4vw, 2.7rem);
  width: min(31rem, calc(100% - 2.2rem));
  padding-left: 1rem;
  border-left: 4px solid var(--singtel-red);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.64);
}
.interior-threshold-copy h3 {
  max-width: 14ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.interior-threshold-copy p:last-child {
  max-width: 47ch;
  margin: 0.8rem 0 0;
  color: #e2edee;
  font-size: clamp(0.86rem, 1.4vw, 1.05rem);
  line-height: 1.5;
}
.interior-threshold-guide {
  border: 1px solid #cfd9dc;
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.7rem);
  background:
    linear-gradient(120deg, rgba(100, 244, 231, 0.08), transparent 42%),
    #f7f9f8;
}
.interior-threshold-guide > h3 {
  margin: 0.15rem 0 0.45rem;
  color: #0a2131;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}
.interior-threshold-guide > p:not(.eyebrow):not(.interior-key-hint):not(.interior-board-live) {
  max-width: 66ch;
  color: #47606b;
}
.knowledge-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.knowledge-board {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid #c8d4d7;
  border-top: 4px solid #9badb3;
  border-radius: 16px;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 241, 0.92)),
    #fff;
  color: #0b2130;
  box-shadow: 0 12px 30px rgba(15, 42, 54, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.knowledge-board::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  aspect-ratio: 1;
  border: 1px solid rgba(19, 95, 108, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 1rem rgba(19, 95, 108, 0.04),
    0 0 0 2.2rem rgba(19, 95, 108, 0.03);
}
.knowledge-board:hover,
.knowledge-board.is-selected {
  transform: translateY(-4px);
  border-color: #0f6a70;
  border-top-color: var(--singtel-red);
  box-shadow: 0 20px 44px rgba(15, 42, 54, 0.16);
}
.knowledge-board-index,
.knowledge-board-label {
  position: relative;
  z-index: 1;
  font: 700 0.62rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.knowledge-board-index { color: var(--singtel-red); }
.knowledge-board-label {
  margin-top: 0.55rem;
  color: #55717a;
}
.knowledge-board strong {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.knowledge-board-cue {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  color: #49636d;
  font-size: 0.78rem;
  line-height: 1.45;
}
.knowledge-board-action {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 1rem;
  color: #0f6a70;
  font: 700 0.65rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.interior-board-live {
  min-height: 1.35rem;
  margin: 0.8rem 0 0;
  color: #0f6a70;
  font-weight: 700;
}
.interior-board-open { margin-top: 0.2rem; }
.interior-key-hint {
  margin: 0.8rem 0 0;
  color: #5d7179;
  font: 650 0.7rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (max-width: 760px) {
  .knowledge-board-grid { grid-template-columns: 1fr; }
  .knowledge-board { min-height: 10.5rem; }
}

/* Full-room interior + interactive notice-board fact deck */
.paper.interior-card {
  width: min(98vw, 1600px);
  max-width: none;
  height: min(94dvh, 980px);
  max-height: 94dvh;
  overflow: hidden;
  border-color: #293a45;
  border-radius: 18px;
  padding: 0;
  background: #06131e;
  color: #fff;
}
.interior-card > .overlay-head {
  z-index: 20;
  flex: 0 0 auto;
  align-items: center;
  min-height: 3.4rem;
  border-bottom: 1px solid rgba(125, 239, 229, 0.2);
  padding: 0.55rem 0.8rem 0.55rem 1rem;
  background: linear-gradient(90deg, #071724, #0b1d29);
}
.interior-card > .overlay-head h2 {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
#interior-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.interior-card .interior-foot {
  z-index: 20;
  flex: 0 0 auto;
  min-height: 3.5rem;
  margin: 0;
  border-top: 1px solid rgba(125, 239, 229, 0.2);
  padding: 0.45rem 0.8rem;
  background: #071724;
}
.interior-card .interior-foot .btn-primary { margin: 0; }

.interior-threshold {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.interior-threshold-art {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.interior-threshold-art::after {
  background:
    linear-gradient(90deg, rgba(2, 10, 18, 0.78), transparent 58%),
    linear-gradient(0deg, rgba(2, 10, 18, 0.9), transparent 66%),
    linear-gradient(180deg, rgba(2, 10, 18, 0.4), transparent 32%);
}
.interior-threshold-art img {
  filter: saturate(1.05) contrast(1.04);
  object-position: center;
}
.interior-threshold-copy {
  top: clamp(1rem, 3vh, 2.2rem);
  bottom: auto;
  width: min(35rem, calc(100% - 2rem));
}
.interior-threshold-copy h3 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 4.8vw, 4.2rem);
}
.interior-threshold-copy p:last-child {
  max-width: 50ch;
  color: #edf7f6;
}
.interior-threshold-guide {
  position: absolute;
  z-index: 5;
  right: clamp(0.7rem, 2vw, 1.5rem);
  bottom: clamp(0.7rem, 2vw, 1.5rem);
  width: min(72%, 1020px);
  border-color: rgba(124, 241, 232, 0.34);
  border-radius: 18px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
  background:
    linear-gradient(120deg, rgba(76, 229, 216, 0.1), transparent 38%),
    rgba(4, 17, 28, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  color: #fff;
  backdrop-filter: blur(16px) saturate(130%);
}
.interior-threshold-guide > h3 {
  margin: 0.1rem 0 0.25rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
}
.interior-threshold-guide > .eyebrow { color: #73eee3; }
.interior-threshold-guide > p:not(.eyebrow):not(.interior-key-hint):not(.interior-board-live) {
  max-width: 76ch;
  margin: 0;
  color: #c5d8dc;
  font-size: 0.82rem;
}
.interior-threshold-guide .knowledge-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 1vw, 0.8rem);
  margin-top: 0.8rem;
}
.interior-threshold-guide .knowledge-board {
  min-height: clamp(8rem, 18vh, 10.4rem);
  border-color: rgba(158, 202, 205, 0.32);
  border-top-color: #54757b;
  border-radius: 10px;
  padding: clamp(0.65rem, 1.3vw, 0.9rem);
  background:
    linear-gradient(160deg, rgba(19, 45, 54, 0.96), rgba(8, 27, 39, 0.97)),
    #0b2330;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.interior-threshold-guide .knowledge-board::after {
  top: 0.55rem;
  right: 0.55rem;
  bottom: auto;
  width: 0.52rem;
  height: 0.52rem;
  border: 0;
  border-radius: 50%;
  background: #ef3558;
  box-shadow: 0 0 0 0.2rem rgba(239, 53, 88, 0.16), 0 0 1rem rgba(239, 53, 88, 0.55);
}
.interior-threshold-guide .knowledge-board:hover,
.interior-threshold-guide .knowledge-board:focus-visible,
.interior-threshold-guide .knowledge-board.is-selected {
  border-color: #72e9df;
  border-top-color: var(--singtel-red);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(114, 233, 223, 0.18);
}
.interior-threshold-guide .knowledge-board-index { color: #ff6b86; }
.interior-threshold-guide .knowledge-board-label { color: #8fded9; }
.interior-threshold-guide .knowledge-board strong { color: #fff; }
.interior-threshold-guide .knowledge-board-cue {
  margin-top: 0.4rem;
  color: #bfd0d4;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
}
.knowledge-board-count {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  color: #ffc95b;
  font: 700 0.62rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.interior-threshold-guide .knowledge-board-action {
  margin-top: 0.5rem;
  color: #72e9df;
}
.interior-threshold-guide .interior-board-live {
  min-height: 0;
  margin: 0.45rem 0 0;
  color: #aeeae5;
  font-size: 0.72rem;
}
.interior-threshold-guide .interior-key-hint {
  margin: 0.2rem 0 0;
  color: #98b0b6;
  font-size: 0.62rem;
}

.interior-room {
  outline: none;
  cursor: crosshair;
}

.interior-room:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(117, 238, 230, 0.92);
}

.interior-room .interior-threshold-art::after {
  background:
    linear-gradient(90deg, rgba(2, 10, 18, 0.78), transparent 38%),
    linear-gradient(0deg, rgba(2, 10, 18, 0.62), transparent 44%),
    linear-gradient(180deg, rgba(2, 10, 18, 0.3), transparent 34%);
}

.interior-room .interior-threshold-copy {
  z-index: 7;
  width: min(28rem, calc(100% - 2rem));
  pointer-events: none;
}

.interior-room .interior-threshold-copy h3 {
  font-size: clamp(1.55rem, 3.8vw, 3.35rem);
}

.interior-room.is-entering::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(117, 238, 230, 0.28), transparent 31%),
    linear-gradient(180deg, rgba(2, 9, 16, 0.72), rgba(2, 9, 16, 0.06) 58%, transparent);
  pointer-events: none;
  animation: interior-room-threshold 480ms ease-out both;
}

.interior-room.is-entering .interior-threshold-art img {
  animation: interior-room-arrive 480ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.interior-room.is-entering .interior-room-board-layer,
.interior-room.is-entering .interior-room-hud,
.interior-room.is-entering .interior-threshold-copy {
  animation: interior-room-ui-arrive 480ms ease-out both;
}

.interior-room-board-layer {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

.interior-room-board-layer .room-board {
  --room-board-x: 50%;
  --room-board-y: 50%;
  position: absolute;
  left: var(--room-board-x);
  top: var(--room-board-y);
  display: grid;
  width: clamp(8.8rem, 14vw, 12.5rem);
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(146, 235, 228, 0.5);
  border-top: 3px solid #ef3558;
  border-radius: 0.6rem;
  padding: clamp(0.48rem, 0.8vw, 0.7rem);
  transform: translate(-50%, -50%) perspective(28rem) rotateX(-3deg);
  background:
    linear-gradient(150deg, rgba(21, 54, 64, 0.94), rgba(5, 25, 37, 0.94)),
    #0a2532;
  box-shadow:
    0 1.1rem 2.5rem rgba(0, 0, 0, 0.38),
    0 0 1.5rem rgba(117, 238, 230, 0.12);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  backdrop-filter: blur(8px);
}

.interior-room-board-layer .room-board::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 50%;
  width: 2px;
  height: clamp(1.7rem, 4.5vh, 2.65rem);
  transform: translateX(-50%);
  background: linear-gradient(#72e9df, transparent);
  box-shadow: 0 0 0.7rem rgba(114, 233, 223, 0.75);
}

.interior-room-board-layer .room-board::after {
  top: 0.42rem;
  right: 0.42rem;
  bottom: auto;
}

.room-board-beacon {
  position: absolute;
  left: 50%;
  bottom: -2.8rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ef3558;
  box-shadow:
    0 0 0 0.32rem rgba(239, 53, 88, 0.18),
    0 0 1.1rem rgba(239, 53, 88, 0.85);
  animation: room-board-pulse 1.3s ease-in-out infinite alternate;
}

.interior-room-board-layer .room-board:hover,
.interior-room-board-layer .room-board:focus-visible,
.interior-room-board-layer .room-board.is-selected {
  border-color: #72e9df;
  border-top-color: #ef3558;
  transform: translate(-50%, calc(-50% - 0.25rem)) perspective(28rem) rotateX(-3deg);
  background: linear-gradient(150deg, rgba(23, 66, 75, 0.98), rgba(6, 30, 43, 0.98));
}

.interior-room-board-layer .room-board.is-near {
  border-color: #ffc95b;
  box-shadow:
    0 1.1rem 2.5rem rgba(0, 0, 0, 0.38),
    0 0 2rem rgba(255, 201, 91, 0.36);
}

.interior-room-board-layer .room-board.is-near .room-board-beacon {
  background: #ffc95b;
  box-shadow:
    0 0 0 0.42rem rgba(255, 201, 91, 0.22),
    0 0 1.5rem rgba(255, 201, 91, 0.95);
}

.interior-room-board-layer .knowledge-board-cue {
  display: none;
}

.interior-room-board-layer .knowledge-board-label {
  padding-right: 0.8rem;
  font-size: clamp(0.48rem, 0.65vw, 0.62rem);
}

.interior-room-board-layer .room-board > strong {
  margin-top: 0.18rem;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
}

.interior-room-board-layer .knowledge-board-count {
  margin-top: 0.35rem;
  font-size: clamp(0.48rem, 0.58vw, 0.56rem);
}

.interior-room-board-layer .knowledge-board-action {
  margin-top: 0.28rem;
  color: #72e9df;
  font-size: clamp(0.48rem, 0.62vw, 0.58rem);
}

.interior-room-player,
.noticeboard-room-player {
  --room-player-x: 51%;
  --room-player-y: 86%;
  position: absolute;
  z-index: 6;
  left: var(--room-player-x);
  top: var(--room-player-y);
  width: clamp(2.5rem, 4.1vw, 4.4rem);
  transform: translate(-50%, -91%);
  pointer-events: none;
  transition: filter 160ms ease;
  will-change: left, top;
}

.interior-room-move-target {
  --room-target-x: 51%;
  --room-target-y: 86%;
  position: absolute;
  z-index: 5;
  left: var(--room-target-x);
  top: var(--room-target-y);
  width: clamp(1.1rem, 2vw, 1.75rem);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(58deg);
  background: rgba(114, 233, 223, 0.16);
  box-shadow:
    0 0 0 0.35rem rgba(114, 233, 223, 0.12),
    0 0 1rem rgba(114, 233, 223, 0.76);
  pointer-events: none;
  animation: interior-room-target-pulse 760ms ease-in-out infinite alternate;
}

.interior-room-move-target[hidden] {
  display: none;
}

.interior-player-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: 8%;
  border-radius: 50%;
  transform: translate(-50%, 25%);
  background: rgba(0, 0, 0, 0.48);
  filter: blur(2px);
}

.interior-player-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 220 / 440;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 0.28rem 0.22rem rgba(0, 0, 0, 0.44));
}

.interior-player-idle,
.interior-player-walk {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.interior-player-idle {
  object-fit: contain;
}

.interior-player-walk {
  opacity: 0;
  visibility: hidden;
  object-fit: contain;
}

.interior-room-player.is-moving.has-walk-animation .interior-player-idle {
  opacity: 0;
  visibility: hidden;
}

.interior-room-player.is-moving.has-walk-animation .interior-player-walk {
  opacity: 1;
  visibility: visible;
}

.interior-room-player.is-facing-left .interior-player-art {
  transform: scaleX(-1);
}

.interior-room-gate {
  position: absolute;
  z-index: 5;
  left: var(--room-gate-x, 88%);
  top: var(--room-gate-y, 88%);
  display: grid;
  justify-items: center;
  width: clamp(7.5rem, 13vw, 11rem);
  border: 1px solid rgba(117, 238, 230, 0.5);
  border-bottom: 0;
  border-radius: 5rem 5rem 0 0;
  padding: 0.42rem 0.65rem 1.1rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(7, 34, 45, 0.94), rgba(2, 14, 23, 0.86));
  color: #dff7f5;
  box-shadow: 0 0 1.3rem rgba(117, 238, 230, 0.18);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.interior-room-gate strong {
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.interior-room-gate > span:last-child {
  margin-top: 0.08rem;
  color: #93c3c2;
  font-size: clamp(0.48rem, 0.6vw, 0.56rem);
}

.interior-gate-signal {
  position: absolute;
  top: -0.36rem;
  width: 0.66rem;
  height: 0.66rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #72e9df;
  box-shadow: 0 0 1rem rgba(114, 233, 223, 0.9);
}

.interior-room-gate.is-near {
  border-color: #ffc95b;
  box-shadow: 0 0 2rem rgba(255, 201, 91, 0.4);
}

.interior-room-gate.is-near .interior-gate-signal {
  background: #ffc95b;
  box-shadow: 0 0 0 0.42rem rgba(255, 201, 91, 0.22), 0 0 1.2rem #ffc95b;
}

.interior-player-beacon {
  position: absolute;
  left: 50%;
  top: -0.35rem;
  width: 0.34rem;
  height: 0.34rem;
  transform: translateX(-50%);
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ef3558;
  box-shadow: 0 0 0.8rem #ef3558;
}

.interior-room-player.is-at-board .interior-player-beacon {
  background: #ffc95b;
  box-shadow: 0 0 0 0.42rem rgba(255, 201, 91, 0.22), 0 0 1rem #ffc95b;
}

.interior-room-hud {
  position: absolute;
  z-index: 8;
  right: clamp(0.6rem, 1.5vw, 1rem);
  top: clamp(0.6rem, 1.5vw, 1rem);
  width: min(20rem, 38%);
  border: 1px solid rgba(117, 238, 230, 0.28);
  border-radius: 0.7rem;
  padding: 0.55rem 0.68rem;
  background: rgba(2, 15, 25, 0.82);
  color: #fff;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.interior-room-hud .eyebrow {
  margin: 0;
  color: #72e9df;
}

.interior-room-hud > strong {
  display: block;
  margin-top: 0.1rem;
  font-size: clamp(0.7rem, 1vw, 0.88rem);
}

.interior-room-hud > p:not(.eyebrow),
.interior-room-hud .interior-board-live {
  margin: 0.16rem 0 0;
  color: #b8cdd1;
  font-size: clamp(0.5rem, 0.66vw, 0.62rem);
  line-height: 1.35;
}

.interior-room-hud .interior-board-live {
  min-height: 0;
  color: #9de7e1;
}

.interior-room-prompt {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: clamp(0.65rem, 1.5vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: min(17rem, calc(100% - 1rem));
  border: 1px solid #ffc95b;
  border-radius: 0.7rem;
  padding: 0.5rem 0.65rem;
  transform: translateX(-50%);
  background: rgba(2, 13, 23, 0.94);
  color: #fff;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.35), 0 0 1.2rem rgba(255, 201, 91, 0.22);
  cursor: pointer;
  font: inherit;
  text-align: left;
  pointer-events: auto;
}

.interior-room-prompt[hidden] {
  display: none;
}

.interior-room-prompt:hover {
  border-color: #ffe09a;
  background: rgba(8, 28, 40, 0.98);
}

.interior-room-prompt:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.interior-prompt-key {
  display: grid;
  min-width: 5.3rem;
  min-height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom-width: 3px;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  font: 800 0.62rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.interior-room-prompt > span:last-child {
  display: grid;
}

.interior-room-prompt small {
  color: #ffc95b;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.interior-room-prompt strong {
  font-size: 0.75rem;
}

.noticeboard-room-player {
  --room-player-x: 4.3%;
  --room-player-y: 91%;
  z-index: 4;
  width: clamp(2.1rem, 3.5vw, 3.6rem);
}

@keyframes room-board-pulse {
  to { transform: translateX(-50%) scale(1.22); }
}

@keyframes interior-room-target-pulse {
  to {
    opacity: 0.58;
    transform: translate(-50%, -50%) rotateX(58deg) scale(0.72);
  }
}

@keyframes interior-room-threshold {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes interior-room-arrive {
  from { transform: scale(1.05); filter: saturate(0.78) brightness(0.68) blur(2px); }
  to { transform: scale(1); filter: saturate(1.05) contrast(1.04); }
}

@keyframes interior-room-ui-arrive {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

.noticeboard-view {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #fff;
}
.noticeboard-room-backdrop,
.noticeboard-room-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.noticeboard-room-backdrop {
  z-index: -3;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.66);
}
.noticeboard-room-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 12, 20, 0.5), rgba(3, 12, 20, 0.92)),
    radial-gradient(circle at 50% 10%, transparent, rgba(3, 12, 20, 0.5) 72%);
}
.noticeboard-room-head {
  position: absolute;
  z-index: 3;
  top: clamp(0.65rem, 1.5vw, 1rem);
  left: clamp(0.65rem, 1.5vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.noticeboard-room-head h3,
.noticeboard-room-head p { margin: 0; }
.noticeboard-room-head h3 {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
}
.noticeboard-room-head .eyebrow { color: #7cf1e8; }
.noticeboard-fact-explorer {
  position: absolute;
  z-index: 2;
  inset: clamp(4.4rem, 10vh, 5.8rem) clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) clamp(5.4rem, 8vw, 7rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(124, 241, 232, 0.34);
  border-radius: 18px;
  background: rgba(243, 246, 244, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  color: var(--paper-ink);
  outline: none;
  backdrop-filter: blur(18px) saturate(120%);
}
.noticeboard-fact-explorer:focus-visible {
  box-shadow: 0 0 0 3px #72e9df, 0 28px 70px rgba(0, 0, 0, 0.5);
}
.noticeboard-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #cbd7d9;
  padding: 0.65rem clamp(0.8rem, 1.5vw, 1.2rem);
  background: rgba(255, 255, 255, 0.88);
}
.noticeboard-explorer-head h3,
.noticeboard-explorer-head p { margin: 0; }
.noticeboard-explorer-head h3 {
  color: var(--paper-ink);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}
.noticeboard-explorer-head > div:first-child > p:last-child {
  margin-top: 0.1rem;
  color: var(--paper-dim);
  font-size: 0.76rem;
}
.noticeboard-count-block {
  display: grid;
  justify-items: end;
  color: var(--paper-dim);
  font: 650 0.62rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
}
.noticeboard-counter {
  color: var(--singtel-red-dark);
  font-size: 1rem;
}
.noticeboard-fact-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  min-height: 0;
  overflow: hidden;
}
.noticeboard-fact-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  background: #071724;
}
.noticeboard-fact-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 21, 0.72), transparent 68%),
    linear-gradient(0deg, rgba(3, 12, 21, 0.7), transparent 54%);
  pointer-events: none;
}
.noticeboard-fact-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.noticeboard-fact-art-copy {
  position: absolute;
  z-index: 2;
  left: clamp(0.85rem, 2vw, 1.4rem);
  bottom: clamp(2.3rem, 5vw, 3.2rem);
  display: grid;
  gap: 0.35rem;
  max-width: min(84%, 24rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.76);
}
.noticeboard-fact-art-copy span {
  color: #7cf1e8;
  font: 700 0.68rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.noticeboard-fact-art-copy strong {
  font-size: clamp(1.45rem, 3.7vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.noticeboard-fact-art figcaption {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.55rem;
  left: 0.75rem;
  color: rgba(232, 243, 243, 0.8);
  font-size: 0.58rem;
}
.noticeboard-live-claim {
  min-width: 0;
  height: 100%;
  overflow: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: clamp(0.85rem, 1.7vw, 1.35rem);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 1px 0 #cbd7d9;
}
.noticeboard-live-claim .claim-title {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}
.noticeboard-live-claim .claim-value {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}
.report-fact-visual {
  overflow: hidden;
  margin: 1rem 0 0;
  border: 1px solid #ccd8da;
  border-radius: 12px;
  background: #f5f1e9;
}
.report-fact-visual img {
  display: block;
  width: 100%;
  max-height: clamp(13rem, 36vh, 22rem);
  object-fit: contain;
  background: #f5f1e9;
}
.report-fact-visual figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  border-top: 1px solid #d6dfe0;
  padding: 0.48rem 0.6rem;
  background: #fff;
  color: var(--paper-dim);
  font-size: 0.68rem;
}
.report-fact-visual figcaption .source-link {
  flex: 0 0 auto;
}
.noticeboard-controls {
  display: grid;
  grid-template-columns: auto minmax(7rem, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid #cbd7d9;
  padding: 0.5rem 0.65rem;
  background: #edf2f1;
}
.noticeboard-nav-button,
.noticeboard-surprise,
.noticeboard-fact-selector {
  min-height: 42px;
  border: 1px solid #8ba0a6;
  background: #fff;
  color: #0b2935;
}
.noticeboard-nav-button,
.noticeboard-surprise {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 750;
}
.noticeboard-surprise {
  border-color: #b48321;
  color: #70480a;
}
.noticeboard-fact-rail {
  display: flex;
  gap: 0.32rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.12rem;
  scrollbar-width: thin;
}
.noticeboard-fact-selector {
  flex: 0 0 2.25rem;
  border-radius: 8px;
  font: 700 0.62rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.noticeboard-fact-selector.is-current {
  border-color: var(--singtel-red);
  background: var(--singtel-red);
  color: #fff;
}
.noticeboard-nav-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.noticeboard-empty {
  align-self: center;
  justify-self: center;
  color: var(--paper-dim);
}

@media (max-width: 760px) {
  .paper.interior-card {
    width: calc(100vw - 0.8rem);
    height: calc(100dvh - 0.8rem);
    max-height: calc(100dvh - 0.8rem);
  }
  .interior-threshold-copy {
    top: 0.8rem;
    left: 0.8rem;
  }
  .interior-threshold-copy h3 { font-size: clamp(1.5rem, 8vw, 2.4rem); }
  .interior-threshold-copy p:last-child {
    max-width: 42ch;
    margin-top: 0.35rem;
    font-size: 0.72rem;
  }
  .interior-room .interior-threshold-copy {
    width: 44%;
  }
  .interior-room .interior-threshold-copy h3 {
    font-size: clamp(1.1rem, 6vw, 1.8rem);
  }
  .interior-room .interior-threshold-copy p:last-child {
    display: none;
  }
  .interior-room-board-layer .room-board {
    width: clamp(5.7rem, 27vw, 8.2rem);
    padding: 0.4rem;
  }
  .interior-room[data-board-count="4"] .room-board {
    width: clamp(4.6rem, 19vw, 6.8rem);
    padding-inline: 0.32rem;
  }
  .interior-room[data-board-count="4"] .room-board:nth-child(1) {
    --room-board-x: 17% !important;
    --room-board-y: 50% !important;
  }
  .interior-room[data-board-count="4"] .room-board:nth-child(2) {
    --room-board-x: 39% !important;
    --room-board-y: 44% !important;
  }
  .interior-room[data-board-count="4"] .room-board:nth-child(3) {
    --room-board-x: 61% !important;
    --room-board-y: 44% !important;
  }
  .interior-room[data-board-count="4"] .room-board:nth-child(4) {
    --room-board-x: 83% !important;
    --room-board-y: 50% !important;
  }
  .interior-room[data-board-count="1"] .room-board:nth-child(1) {
    --room-board-x: 50% !important;
    --room-board-y: 49% !important;
  }
  .interior-room[data-board-count="2"] .room-board:nth-child(1) {
    --room-board-x: 35% !important;
    --room-board-y: 51% !important;
  }
  .interior-room[data-board-count="2"] .room-board:nth-child(2) {
    --room-board-x: 65% !important;
    --room-board-y: 51% !important;
  }
  .interior-room[data-board-count="3"] .room-board:nth-child(1) {
    --room-board-x: 22% !important;
    --room-board-y: 53% !important;
  }
  .interior-room[data-board-count="3"] .room-board:nth-child(2) {
    --room-board-x: 50% !important;
    --room-board-y: 46% !important;
  }
  .interior-room[data-board-count="3"] .room-board:nth-child(3) {
    --room-board-x: 78% !important;
    --room-board-y: 53% !important;
  }
  .interior-room-board-layer .knowledge-board-label,
  .interior-room-board-layer .knowledge-board-action {
    display: none;
  }
  .interior-room-board-layer .room-board > strong {
    font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  }
  .interior-room-board-layer .knowledge-board-count {
    font-size: 0.46rem;
  }
  .interior-room-hud {
    right: 0.45rem;
    top: 0.45rem;
    width: 48%;
    padding: 0.42rem 0.5rem;
  }
  .interior-room-hud > p:not(.eyebrow),
  .interior-room-hud .interior-board-live {
    display: none;
  }
  .interior-room-player {
    width: clamp(1.75rem, 7vw, 2.6rem);
  }
  .interior-room-prompt {
    bottom: 0.4rem;
    min-width: min(14rem, calc(100% - 0.8rem));
    padding: 0.38rem 0.5rem;
  }
  .noticeboard-room-player {
    --room-player-x: 4%;
    --room-player-y: 93%;
    width: 1.8rem;
  }
  .interior-threshold-guide {
    right: 0.45rem;
    bottom: 0.45rem;
    left: 0.45rem;
    width: auto;
    max-height: 62%;
    padding: 0.7rem;
  }
  .interior-threshold-guide > p:not(.eyebrow):not(.interior-key-hint):not(.interior-board-live) {
    display: none;
  }
  .interior-threshold-guide .knowledge-board-grid {
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(68vw, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .interior-threshold-guide .knowledge-board {
    min-height: 8.8rem;
    scroll-snap-align: center;
  }
  .interior-threshold-guide .interior-board-live { display: none; }
  .noticeboard-room-head {
    right: 0.55rem;
    gap: 0.55rem;
  }
  .noticeboard-room-head h3 { font-size: 0.95rem; }
  .noticeboard-room-head .eyebrow { display: none; }
  .noticeboard-fact-explorer {
    inset: 4.2rem 0.45rem 0.45rem;
  }
  .noticeboard-explorer-head { padding: 0.48rem 0.65rem; }
  .noticeboard-explorer-head > div:first-child > p:last-child { display: none; }
  .noticeboard-fact-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(8rem, 35%) minmax(0, 65%);
  }
  .noticeboard-fact-art-copy {
    bottom: 1.8rem;
  }
  .noticeboard-fact-art-copy strong {
    font-size: clamp(1.2rem, 7vw, 2.1rem);
  }
  .noticeboard-fact-art figcaption { font-size: 0.5rem; }
  .noticeboard-live-claim {
    box-shadow: inset 0 1px #cbd7d9;
  }
  .report-fact-visual img {
    max-height: 12rem;
  }
  .report-fact-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.6rem;
  }
  .noticeboard-controls {
    grid-template-columns: auto minmax(4rem, 1fr) auto;
    gap: 0.35rem;
    padding: 0.4rem;
  }
  .noticeboard-surprise { display: none; }
  .noticeboard-nav-button {
    min-height: 40px;
    padding-inline: 0.55rem;
    font-size: 0.7rem;
  }
  .noticeboard-fact-selector {
    flex-basis: 2rem;
    min-height: 38px;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .interior-threshold-guide {
    width: min(78%, 1080px);
  }
  .interior-threshold-guide > p:not(.eyebrow):not(.interior-key-hint):not(.interior-board-live),
  .interior-threshold-guide .interior-board-live,
  .interior-threshold-guide .interior-key-hint {
    display: none;
  }
  .interior-threshold-guide .knowledge-board {
    min-height: 7rem;
  }
  .noticeboard-fact-explorer { top: 4.35rem; }
}

.interior-visual-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  border: 1px solid #263947;
  border-radius: 22px;
  background: #071724;
  box-shadow: 0 24px 60px rgba(8, 22, 32, 0.24);
  color: #fff;
}
.interior-visual-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 46%, rgba(4, 14, 24, 0.18) 62%, rgba(4, 14, 24, 0.78) 100%),
    linear-gradient(0deg, rgba(4, 14, 24, 0.74), transparent 42%);
}
.interior-visual-frame > img {
  display: block;
  width: 100%;
  height: clamp(20rem, 46vh, 30rem);
  object-fit: cover;
}
.interior-visual-overlay {
  position: absolute;
  z-index: 2;
  right: clamp(0.7rem, 3vw, 1.6rem);
  bottom: clamp(2.4rem, 5vw, 3.8rem);
  width: min(22rem, 43%);
  border: 1px solid rgba(124, 241, 232, 0.35);
  border-left: 4px solid var(--singtel-red);
  border-radius: 0 16px 16px 0;
  padding: clamp(0.7rem, 2vw, 1.1rem);
  background: rgba(5, 18, 29, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(125%);
}
.interior-visual-overlay .eyebrow {
  margin: 0 0 0.35rem;
  color: #7cf1e8;
}
.interior-visual-overlay h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2.3vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.interior-visual-signals {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.interior-visual-signals li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe7e8;
  font-size: 0.72rem;
}
.interior-visual-signals span {
  color: #ffc95b;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.6rem;
}
.interior-visual-frame figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 0.65rem;
  max-width: calc(100% - 2rem);
  color: rgba(236, 245, 245, 0.82);
  font-size: 0.65rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .interior-visual-frame::after {
    background: linear-gradient(0deg, rgba(4, 14, 24, 0.96), rgba(4, 14, 24, 0.06) 70%);
  }
  .interior-visual-frame > img { min-height: 22rem; }
  .interior-visual-overlay {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 3.2rem;
    width: auto;
  }
}

.signal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 0.8rem 0;
}
.signal-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 50px 12px 12px 12px;
  padding: 1rem 1.1rem;
}
.signal-card h4 { margin: 0.1rem 0 0.3rem; color: var(--singtel-red-dark); font-size: 1.05rem; }
.signal-index {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  margin: 0;
}
.signal-cue { font-size: 0.85rem; min-height: 2.6em; }
.signal-reveal {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  width: 100%;
}
.signal-body .claim-card { box-shadow: 0 6px 18px rgba(16, 18, 24, 0.08); }

/* metric tiles */
.tile-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}
.metric-tile {
  background: radial-gradient(circle at 50% 0%, #fff 0%, var(--paper) 75%);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}
.tile-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--singtel-red-dark);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.tile-title { margin: 0; font-size: 0.82rem; color: var(--paper-ink); }
.tile-period { margin: 0; font-size: 0.72rem; font-family: ui-monospace, Menlo, monospace; color: var(--paper-dim); }
.tile-open {
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  min-height: 44px;
  color: var(--singtel-red-dark);
}

/* charts */
.chart-block {
  margin: 0.6rem 0;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.chart-caption strong { font-size: 1rem; color: var(--paper-ink); }
.chart-caption p { margin: 0.3rem 0 0.6rem; font-size: 0.88rem; }
.bar-chart { width: 100%; max-width: 640px; height: auto; display: block; }
.chart-bar-a { fill: #2fae63; }
.chart-bar-b { fill: #41e7d7; stroke: #0b6d74; stroke-width: 1; }
.chart-label { font-size: 13px; fill: #171a22; }
.chart-value { font-size: 15px; font-weight: 700; fill: #b80a2c; font-variant-numeric: tabular-nums; }
.chart-details { margin-top: 0.6rem; }
.chart-details summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--singtel-red-dark); text-decoration: underline; }
.chart-table { border-collapse: collapse; width: 100%; margin-top: 0.5rem; font-size: 0.88rem; }
.chart-table caption { text-align: left; font-weight: 700; padding: 0.3rem 0; }
.chart-table th, .chart-table td { border: 1px solid var(--paper-line); padding: 0.4rem 0.6rem; text-align: left; }
.chart-table thead th { background: var(--navy); color: #fff; }
.chart-context { font-size: 0.85rem; }

/* 4D lab */
.quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 0.8rem 0;
}
.quad {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-top: 5px solid var(--cyan);
}
.quad h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.quad-defend { border-top-color: #2f6fb8; }
.quad-decarbonise { border-top-color: #2fae63; }
.quad-dematerialise { border-top-color: #7d6cf0; }
.quad-deliver { border-top-color: var(--gold); }
.quad-flip {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
}
.quad-back { margin-top: 0.7rem; }
.quad-meaning { font-size: 0.88rem; }
.quad-examples-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: ui-monospace, Menlo, monospace; margin-bottom: 0.2rem; }
.quad-examples { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; }
.quad-examples li { margin: 0.25rem 0; }
.lab-synthesis {
  border: 2px solid var(--gold);
  background: #fff8e3;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.8rem;
}
.lab-synthesis h4 { margin: 0 0 0.3rem; }
.lab-overview { font-size: 0.9rem; }

/* reusable island pathway */
.pathway-progress {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
}
.pathway-progress-meter {
  width: 100%;
  height: 0.8rem;
  accent-color: var(--singtel-red);
}
.pathway-stations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.pathway-station {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-top: 5px solid var(--cyan);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.pathway-station-index {
  margin: 0 0 0.2rem;
  color: var(--singtel-red-dark);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pathway-station h4 { margin: 0 0 0.4rem; }
.pathway-station-summary { min-height: 3.2rem; font-size: 0.88rem; }
.pathway-station-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
}
.pathway-station-panel { margin-top: 0.8rem; }
.pathway-station-prompt { font-size: 0.85rem; color: var(--paper-dim); }
.pathway-station-panel .claim-card { margin: 0.6rem 0 0; }
.pathway-synthesis {
  margin-top: 1rem;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fff8e3;
  padding: 0.9rem 1.1rem;
}
.pathway-synthesis h4 { margin: 0 0 0.3rem; }

@media (max-width: 620px) {
  .pathway-progress { grid-template-columns: 1fr; }
  .pathway-station-summary { min-height: 0; }
}

/* Environment Island action yard */
.environment-disclosure {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border: 1px solid #8a6b00;
  border-radius: 10px;
  background: #fff8e3;
  padding: 0.65rem 0.8rem;
  color: #3a2c00;
}
.environment-stations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.environment-station {
  border: 1px solid var(--paper-line);
  border-top: 6px solid var(--cyan);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 1rem;
  min-width: 0;
}
.environment-tree-station { border-top-color: #2fae63; }
.environment-ewaste-station { border-top-color: #7d6cf0; }
.environment-ev-station { border-top-color: #2f6fb8; }
.environment-station h4 { margin: 0.65rem 0 0.35rem; }
.environment-counter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 0.7rem 0.8rem;
  margin: 0.7rem 0;
}
.environment-counter-label { font-size: 0.82rem; color: var(--paper-dim); }
.environment-counter-value {
  grid-row: span 2;
  font-size: 1.7rem;
  color: var(--singtel-red-dark);
  font-variant-numeric: tabular-nums;
}
.environment-counter-scope { font-size: 0.7rem; color: var(--paper-dim); }
.environment-action-status { min-height: 2.6rem; font-size: 0.86rem; }
.environment-action-button { width: 100%; }
.environment-action-controls {
  display: grid;
  gap: 0.6rem;
}
.environment-device-select {
  min-height: 44px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: var(--paper-ink);
}
.environment-process {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.3rem;
  font-size: 0.82rem;
}
.environment-process li { border-left: 3px solid var(--paper-line); padding-left: 0.45rem; }
.environment-process-active li { border-left-color: #7d6cf0; }
.environment-ev-track {
  position: relative;
  height: 7rem;
  overflow: hidden;
  border: 2px solid #8394ad;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #e8f6ee 0 42%, transparent 43%),
    #dce8ef;
  margin: 0.8rem 0;
}
.environment-ev {
  position: absolute;
  left: -3rem;
  top: calc(50% - 0.9rem);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 1.8rem;
  border-radius: 0.45rem;
  background: var(--singtel-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  animation: environment-ev-drive 8s linear infinite;
}
.environment-ev-2 { animation-delay: -2s; background: #0a8f79; }
.environment-ev-3 { animation-delay: -4s; background: #2f6fb8; }
.environment-ev-4 { animation-delay: -6s; background: #a66d00; }
.environment-ev-paused .environment-ev { animation-play-state: paused; }
@keyframes environment-ev-drive {
  from { transform: translateX(0); }
  to { transform: translateX(24rem); }
}

@media (prefers-reduced-motion: reduce) {
  .environment-ev { animation: none; left: calc(20% * var(--ev-position, 1)); }
  .environment-ev-1 { --ev-position: 1; }
  .environment-ev-2 { --ev-position: 2; }
  .environment-ev-3 { --ev-position: 3; }
  .environment-ev-4 { --ev-position: 4; }
}

/* Customers and Suppliers service journey */
.service-journey-disclosure {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #8a6b00;
  border-radius: 10px;
  background: #fff8e3;
  padding: 0.65rem 0.8rem;
  color: #3a2c00;
}
.service-journey-progress-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--paper-dim);
  font-size: 0.85rem;
}
.service-journey-progress {
  width: 100%;
  accent-color: var(--singtel-red);
}
.service-stages {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-stages::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--singtel-red), var(--cyan));
}
.service-stage {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.7rem;
}
.service-stage-node {
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.service-stage-card {
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 0.9rem 1rem;
}
.service-stage-card h4 { margin: 0 0 0.3rem; }
.service-stage-button {
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
}
.service-stage-panel { margin-top: 0.8rem; }
.service-stage-prompt { color: var(--paper-dim); font-size: 0.86rem; }
.partner-approval-slot {
  border: 2px dashed #8394ad;
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.8rem;
  margin: 0.7rem 0;
}
.partner-role { margin: 0; font-weight: 800; }
.partner-approval-state {
  color: #7a4e00;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.service-journey-completion {
  margin-top: 1rem;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fff8e3;
  padding: 0.9rem 1.1rem;
}
.service-journey-completion h4 { margin: 0 0 0.3rem; }

@media (max-width: 620px) {
  .service-journey-progress-row { grid-template-columns: 1fr; }
}

/* Community Island commons */
.community-safeguard {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border: 1px solid #8a6b00;
  border-radius: 10px;
  background: #fff8e3;
  padding: 0.65rem 0.8rem;
  color: #3a2c00;
}
.community-attractions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.community-attraction {
  min-width: 0;
  border: 1px solid var(--paper-line);
  border-top: 6px solid var(--singtel-red);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 1rem;
}
.community-attraction h4 { margin: 0.65rem 0 0.35rem; }
.community-attraction-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.community-experience-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.carnival-lights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.carnival-light {
  min-height: 4rem;
  border: 2px solid #8394ad;
  border-radius: 14px 14px 5px 5px;
  background: #fff;
  color: var(--paper-ink);
  font-weight: 800;
}
.carnival-light[aria-pressed="true"] {
  border-color: var(--gold);
  background: #fff1aa;
  box-shadow: 0 0 0 3px rgba(255, 205, 65, 0.24);
}
.community-game-result { min-height: 2.7rem; color: var(--paper-dim); font-size: 0.86rem; }
.inclusive-choices {
  display: grid;
  gap: 0.5rem;
}
.inclusive-choice {
  min-height: 44px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: #fff;
  color: var(--paper-ink);
  padding: 0.45rem 0.8rem;
}
.inclusive-choice[aria-pressed="true"] {
  border-color: #0a8f79;
  background: #e0f7ef;
  color: #075d50;
  font-weight: 700;
}
.community-ride-panorama {
  position: relative;
  height: 8rem;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(#8dd7ef 0 55%, #8bcf76 56%);
  margin: 0.8rem 0;
}
.ride-landmark {
  position: absolute;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 3rem;
  border-radius: 1rem 1rem 0.3rem 0.3rem;
  background: #fff;
  border: 2px solid rgba(13, 22, 38, 0.25);
  font-size: 0.7rem;
  font-weight: 800;
}
.ride-tent { left: 5%; background: #ffd2dc; }
.ride-gallery { left: 30%; background: #d6cffc; }
.ride-golf { left: 55%; background: #dff4cf; }
.ride-tower { left: 80%; background: #ccebf7; }
.community-ride-running .ride-landmark {
  animation: community-panorama 6s ease-in-out infinite alternate;
}
@keyframes community-panorama {
  from { transform: translateX(-0.6rem) translateY(0); }
  to { transform: translateX(0.6rem) translateY(-0.5rem); }
}
.golf-portal-dialog {
  width: min(96vw, 1200px);
  height: min(92vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #071a18;
  color: #fff;
  overflow: hidden;
}
.golf-portal-dialog::backdrop { background: rgba(5, 8, 14, 0.82); }
.golf-portal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #101b25;
}
.golf-portal-bar h4 { margin: 0; color: #fff; }
.golf-portal-close { margin: 0; }
.golf-portal-frame {
  width: 100%;
  height: calc(100% - 4rem);
  border: 0;
  background: #071a18;
}

@media (prefers-reduced-motion: reduce) {
  .community-ride-running .ride-landmark { animation: none; }
}

/* Nexus Group disclosure boundary + associate observatory */
.group-structure-lens {
  color: var(--ink);
  border: 1px solid rgba(65, 231, 215, 0.45);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(65, 231, 215, 0.15), transparent 38%),
    linear-gradient(145deg, #09202a, #161a2a);
}
.group-structure-head,
.associate-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.group-structure-head h3 { margin-top: 0; color: var(--ink); }
.draft-chip,
.entity-class-marker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 207, 87, 0.62);
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  color: #ffe9ad;
  background: rgba(121, 71, 7, 0.3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.entity-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 1rem 0;
}
.entity-class-card {
  min-height: 7.3rem;
  border: 1px solid rgba(183, 187, 198, 0.26);
  border-radius: 0.9rem;
  padding: 0.88rem;
  background: rgba(5, 16, 27, 0.66);
}
.entity-class-card.entity-class-active {
  border-color: rgba(255, 78, 116, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 78, 116, 0.26), 0 0 24px rgba(255, 42, 88, 0.12);
  background: linear-gradient(150deg, rgba(100, 16, 41, 0.48), rgba(8, 24, 35, 0.9));
}
.entity-class-label { margin: 0; color: var(--ink); font-weight: 800; }
.entity-class-members { margin: 0.44rem 0 0.7rem; color: var(--ink-dim); line-height: 1.45; }
.structure-rule {
  border-left: 3px solid var(--singtel-red);
  padding-left: 0.8rem;
  color: var(--ink-dim);
}
.structure-source { margin-bottom: 0; color: var(--ink-dim); font-size: 0.88rem; }
.structure-source a { color: var(--gold); }

.associate-observatory {
  overflow: hidden;
  border: 1px solid #edbd61;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(circle at 50% 38%, #fff6dd, var(--paper-2) 45%);
}
.associate-progress { margin: 1rem 0; color: var(--paper-dim); font-size: 0.86rem; }
.associate-progress progress { flex: 1; accent-color: #d88706; }
.associate-orbit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.associate-orbit-card {
  position: relative;
  border: 1px solid #e2c27c;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
}
.associate-orbit-card h4 { margin-top: 0; }
.associate-orbit-node {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #e79b19;
  box-shadow: 0 0 0 0.3rem rgba(231, 155, 25, 0.13), 0 0 1.1rem rgba(231, 155, 25, 0.5);
}
.associate-profile-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: #fff;
  background: var(--navy);
}
.associate-profile-panel { margin-top: 0.8rem; }
.availability-note {
  margin-top: 1rem;
  border: 1px dashed #c88618;
  border-radius: 0.82rem;
  padding: 0.82rem 0.9rem;
  color: #5d3e08;
  background: #fff7e6;
}
@media (max-width: 760px) {
  .entity-class-grid,
  .associate-orbit-grid { grid-template-columns: 1fr; }
  .group-structure-head,
  .associate-progress { align-items: flex-start; flex-direction: column; }
}

/* evidence core */
.evidence-core {
  background: #171a22;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.6rem;
  color: var(--ink);
}
.evidence-core h3 { color: var(--gold); border-bottom-color: var(--gold); }
.evidence-core .muted { color: var(--ink-dim); }
.evidence-list { margin: 0.6rem 0 0; padding-left: 1.3rem; }
.evidence-item {
  margin: 0.9rem 0;
  padding: 0.9rem 1.1rem;
  background: #10131b;
  border: 1px solid #2c3142;
  border-radius: 10px;
}
.evidence-item .claim-title { color: var(--ink); }
.evidence-item .field-row { border-bottom-color: #2c3142; }
.evidence-item .field-row dt { color: var(--ink-dim); }
.evidence-item .field-row dd { color: var(--ink); }
.evidence-item .footnote-list { color: var(--ink-dim); }
.evidence-core .source-link { color: var(--gold); }
.evidence-core .source-link:hover { color: var(--cyan); }

.preview-banner {
  background: #fff8e3;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  color: #3a2c00 !important;
  font-size: 0.9rem;
}
.placeholder-panel {
  border: 2px dashed #4a5064;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
}

/* ---- codex ---- */
.codex-hero {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #071521;
}
.codex-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 14, 22, 0.96), rgba(7, 14, 22, 0.68) 53%, rgba(7, 14, 22, 0.08) 88%);
}
.codex-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.codex-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: min(62%, 29rem);
  min-height: 130px;
  padding: 1rem 1.2rem;
  color: #fff;
}
.codex-hero-copy small {
  color: var(--cyan);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codex-hero-copy strong { font-size: 1.06rem; line-height: 1.35; }
.codex-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.codex-tab {
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
}
.codex-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
}
.codex-search {
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  background: var(--paper-2);
  color: var(--paper-ink);
  margin-bottom: 0.6rem;
}
.codex-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.codex-filter {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: var(--paper-2);
  color: var(--paper-ink);
  max-width: 220px;
}
.codex-count { font-size: 0.82rem; margin: 0.2rem 0 0.5rem; }
.codex-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 46vh;
  overflow: auto;
}
.codex-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--singtel-red);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.codex-where { font-size: 0.78rem; margin: 0.3rem 0 0; }
.linklike {
  background: none;
  border: 0;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  color: var(--singtel-red-dark);
  text-decoration: underline;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
}
.glossary-list { margin: 0.5rem 0; }
.glossary-term { font-weight: 700; color: var(--paper-ink); margin-top: 0.9rem; }
.glossary-def { margin: 0.2rem 0 0 0; padding-bottom: 0.7rem; border-bottom: 1px dotted var(--paper-line); }
.glossary-def p { margin: 0.2rem 0; }
.assure-list { padding-left: 1.2rem; font-size: 0.9rem; }
.assure-list li { margin: 0.4rem 0; }
.codex-complete-list { padding-left: 1.3rem; }
.codex-complete-list li { margin: 0.55rem 0; }
.complete-title { font-size: 0.92rem; }
.codex-panel h4 { margin: 1.1rem 0 0.4rem; }

/* ---- map ---- */
.map-svg { width: 100%; height: auto; display: block; }
.map-sea { fill: #0d1626; }
.map-island-action[role="button"] { cursor: pointer; }
.map-island { fill: #2a3040; stroke: #4a5064; stroke-width: 2; }
.map-island-visited { fill: #1d3f2e; stroke: #2fae63; }
.map-island-action[role="button"]:hover .map-island,
.map-island-action[role="button"]:focus .map-island {
  stroke: var(--focus-ring);
  stroke-width: 4;
}
.map-island-action[role="button"]:focus { outline: none; }
.map-island-action.is-current .map-island { stroke-width: 4; }
.map-island-name { fill: #f4f5f7; font-size: 17px; font-weight: 700; text-anchor: middle; }
.map-island-state { fill: #b7bbc6; font-size: 12px; text-anchor: middle; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.1em; }
.map-arc { fill: none; stroke: #4a5064; stroke-width: 2; stroke-dasharray: 6 6; }
.map-arc-lit { stroke: var(--gold); stroke-dasharray: none; stroke-width: 3; }
.map-next-ring { fill: none; stroke: var(--singtel-red); stroke-width: 3; }
.map-next-label { fill: var(--singtel-red); font-size: 12px; font-weight: 700; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.1em; }
.map-controls { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.map-control-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.map-control-name { min-width: 10rem; font-weight: 700; }
.map-control-row .btn-secondary { margin-top: 0; color: var(--ink); border-color: #4a5064; }

/* ---- briefing ---- */
.briefing-group h4 {
  margin: 1rem 0 0.3rem;
  border-bottom: 2px solid var(--singtel-red);
  display: inline-block;
  padding-bottom: 0.15rem;
}
.briefing-group ul { list-style: none; margin: 0; padding: 0; }
.briefing-item {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0;
}
.briefing-note {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  min-height: 44px;
  min-width: 12rem;
  background: #fff;
  color: var(--paper-ink);
}
.briefing-actions { display: flex; gap: 0.7rem; margin-top: 1rem; flex-wrap: wrap; }
.briefing-empty { padding: 1rem 0; }
.briefing-advanced {
  align-self: center;
  color: var(--paper-dim);
}
.briefing-advanced summary {
  min-height: 44px;
  padding: 0.68rem 0.2rem;
  cursor: pointer;
  font-weight: 700;
}
.briefing-advanced .btn-secondary { display: block; margin-top: 0.35rem; }
.briefing-note-print { display: none; }

/* ---- trophy space ---- */
#btn-trophies {
  position: relative;
}
#btn-trophies.has-trophies::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.38rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid #11151d;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0.65rem rgba(255, 201, 91, 0.75);
}
.trophy-space {
  color: #f7f5f0;
  border: 1px solid rgba(255, 207, 87, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 207, 87, 0.12), transparent 28rem),
    radial-gradient(circle at 94% 16%, rgba(65, 231, 215, 0.09), transparent 25rem),
    #0a1420;
}
.trophy-space .overlay-head {
  align-items: flex-start;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.trophy-space .overlay-head h2 { margin-bottom: 0; }
.trophy-space .eyebrow {
  margin: 0 0 0.25rem;
  color: #7cf1e8;
}
.trophy-space .trophy-intro {
  max-width: 48rem;
  margin: 0 0 1.25rem;
  color: #bac7cf;
}
.trophy-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.trophy-summary > div {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.trophy-summary strong {
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.06em;
}
.trophy-summary span,
.trophy-summary p {
  margin: 0;
  color: #aebdc6;
  font-size: 0.78rem;
}
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.trophy-card {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-height: 7rem;
  padding: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  filter: saturate(0.25);
  opacity: 0.7;
}
.trophy-card.is-earned {
  border-color: rgba(255, 207, 87, 0.28);
  background: linear-gradient(145deg, rgba(255, 207, 87, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  filter: none;
  opacity: 1;
}
.trophy-card.is-special.is-earned {
  border-color: rgba(124, 241, 232, 0.38);
  background: linear-gradient(145deg, rgba(65, 231, 215, 0.12), rgba(185, 156, 255, 0.06));
}
.trophy-art {
  position: relative;
  display: grid;
  width: 5.25rem;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #d4dde2;
  background: radial-gradient(circle, #243b4c, #101d28 70%);
  box-shadow: inset 0 0 1rem rgba(255, 255, 255, 0.08);
}
.trophy-art > span {
  font: 600 2.15rem/1 Georgia, serif;
}
.trophy-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.trophy-earned-mark {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 2px solid #0a1420;
  border-radius: 50%;
  color: #092c25;
  background: #7cf1e8;
  font: 900 0.72rem/1 system-ui, sans-serif;
}
.trophy-copy { min-width: 0; }
.trophy-copy p {
  margin: 0 0 0.16rem;
  color: #7cf1e8;
  font: 800 0.58rem/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.trophy-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
}
.trophy-copy > span {
  display: block;
  min-height: 2.4em;
  margin-top: 0.25rem;
  color: #aebdc6;
  font-size: 0.69rem;
  line-height: 1.25;
}
.trophy-progress {
  height: 0.25rem;
  margin-top: 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.trophy-progress i {
  display: block;
  width: var(--trophy-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #41e7d7, #ffcf57);
}
.trophy-copy small {
  display: block;
  margin-top: 0.25rem;
  color: #8fa2ae;
  font-size: 0.62rem;
}
.trophy-card.is-earned .trophy-copy small { color: #ffda76; }

.trophy-toast {
  position: fixed;
  z-index: 130;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid rgba(255, 207, 87, 0.4);
  border-radius: 16px;
  color: #fff;
  background: rgba(8, 19, 29, 0.97);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.48);
  animation: trophy-toast-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.trophy-toast[hidden] { display: none; }
.trophy-toast > img,
.trophy-toast-emblem {
  width: 3.8rem;
  height: 3.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.trophy-toast-emblem {
  display: grid;
  place-items: center;
  color: #ffda76;
  background: #1b3445;
  font: 600 1.65rem/1 Georgia, serif;
}
.trophy-toast p,
.trophy-toast strong { display: block; margin: 0; }
.trophy-toast p {
  color: #7cf1e8;
  font: 800 0.6rem/1.4 ui-monospace, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.trophy-toast button {
  min-width: 3.2rem;
  min-height: 2.75rem;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: #253746;
}
.trophy-toast-ultimate {
  inset: 50% auto auto 50%;
  right: auto;
  bottom: auto;
  display: grid;
  width: min(39rem, calc(100vw - 2rem));
  padding: clamp(1rem, 4vw, 2rem);
  justify-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 207, 87, 0.7);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 207, 87, 0.21), transparent 42%),
    #08131d;
  box-shadow: 0 0 0 100vmax rgba(2, 7, 12, 0.82), 0 2rem 7rem rgba(0, 0, 0, 0.75);
  animation: trophy-ultimate-in 780ms cubic-bezier(0.18, 0.9, 0.25, 1.2) both;
}
.trophy-toast-ultimate > img {
  width: min(17rem, 45vw);
  height: auto;
  box-shadow: 0 0 3rem rgba(255, 207, 87, 0.22);
}
.trophy-toast-ultimate > p { margin-top: 0.5rem; }
.trophy-toast-ultimate > strong {
  color: #fff4c7;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}
.trophy-toast-ultimate > span { color: #b9c8cf; }
.trophy-toast-ultimate > button {
  margin: 0.8rem 0 0;
  padding: 0 1.25rem;
  color: #211800;
  background: #ffcf57;
  font-weight: 800;
}
.trophy-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.trophy-confetti i {
  position: absolute;
  top: -8%;
  left: calc(var(--i) * 3.57%);
  width: 0.42rem;
  height: 0.75rem;
  background: hsl(calc(var(--i) * 43deg), 82%, 62%);
  animation: trophy-confetti 2.6s calc(var(--i) * -70ms) ease-in infinite;
}
@keyframes trophy-toast-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes trophy-ultimate-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes trophy-confetti {
  to { transform: translate(3rem, 34rem) rotate(620deg); opacity: 0; }
}
@media (max-width: 1020px) {
  .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .trophy-grid { grid-template-columns: 1fr; }
  .trophy-summary { align-items: flex-start; flex-direction: column; }
  .trophy-card { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .trophy-art { width: 4.4rem; }
}

@media print {
  html,
  body {
    height: auto;
    overflow: visible;
    background: #fff;
  }
  body > :not(#briefing-overlay) { display: none !important; }
  #briefing-overlay {
    position: static;
    display: block !important;
    padding: 0;
    background: #fff;
  }
  #briefing-overlay .overlay-card {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  #briefing-overlay .overlay-close,
  #briefing-overlay .briefing-actions,
  #briefing-overlay .briefing-note {
    display: none !important;
  }
  #briefing-overlay .briefing-item { break-inside: avoid; }
  #briefing-overlay .briefing-note-print:not([hidden]) { display: block; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .loading-ring { animation: none; border-top-color: rgba(242, 13, 58, 0.25); }
  .interior-room-move-target { animation: none; }
  #loading { transition: none; }
  * { scroll-behavior: auto !important; }
  .trophy-toast,
  .trophy-toast-ultimate,
  .trophy-confetti i { animation: none; }
  .trophy-confetti { display: none; }
}
