:root {
  --cm-navy: #05142b;
  --cm-navy2: #071d3b;
  --cm-gold: #f4bd36;
  --cm-gold2: #ffd96d;
  --cm-cream: #fff7d7;
  --cm-blue: #86d8ff;
  --cm-sky: #bcecff;
  --cm-ink: #06152d;
  --cm-panel: rgba(4, 20, 43, 0.88);
}
* {
  box-sizing: border-box;
}
.cm-hidden {
  display: none !important;
}
body.cm-gateway,
body.cm-hq {
  margin: 0;
  background: #06152d;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  overflow-x: hidden;
}
.cm-top {
  height: 72px;
  background: linear-gradient(180deg, #041126, #061933);
  border-bottom: 1px solid #edb830;
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 20;
  box-shadow: 0 10px 28px #00102688;
}
.cm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffe493;
  text-decoration: none;
}
.cm-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.cm-brand strong {
  font-family: Georgia, serif;
  letter-spacing: 0.09em;
  font-size: 1.05rem;
}
.cm-brand small {
  display: block;
  letter-spacing: 0.23em;
  font-size: 0.5rem;
  color: #d8e9f7;
  margin-top: 3px;
}
.cm-motto {
  text-align: center;
  font-family: Georgia, serif;
  color: #ffd15a;
  font-style: italic;
  font-size: 1.7rem;
}
.cm-motto small {
  display: block;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 0.47rem;
  letter-spacing: 0.35em;
  color: #d9e9f5;
  margin-top: 3px;
}
.cm-lock {
  justify-self: end;
  border: 1px solid #dca923;
  border-radius: 20px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  color: #ffd662;
  background: #091a34;
}
/* verification gateway */
.cm-gate {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(530px, 0.88fr);
  background:
    radial-gradient(
      circle at 54% 24%,
      #fff1a8 0 4%,
      #f7bb54 11%,
      transparent 29%
    ),
    linear-gradient(155deg, #b9edff 0%, #8fd2ee 35%, #ffcf6f 65%, #10234a 100%);
  overflow: hidden;
}
.cm-gate:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(
    180deg,
    transparent,
    #13547b55 15%,
    #0e5278 58%,
    #062a50 100%
  );
  clip-path: polygon(
    0 62%,
    8% 47%,
    16% 58%,
    24% 28%,
    31% 56%,
    39% 41%,
    47% 65%,
    55% 39%,
    65% 67%,
    74% 42%,
    83% 56%,
    91% 30%,
    100% 52%,
    100% 100%,
    0 100%
  );
}
.cm-gate:after {
  content: "";
  position: absolute;
  left: 36%;
  right: 37%;
  bottom: 13%;
  height: 40%;
  opacity: 0.55;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 38px,
    #0a4165 40px 62px,
    transparent 64px 96px
  );
  mask: linear-gradient(to top, #000, transparent 95%);
}
.cm-gate-left {
  position: relative;
  min-height: 760px;
  z-index: 2;
  padding: 48px 30px 32px 42px;
  overflow: hidden;
}
.cm-gate-copy {
  position: relative;
  z-index: 4;
  color: #082e6d;
}
.cm-gate-copy h1 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 3.9rem;
  line-height: 0.92;
  margin: 0;
}
.cm-gate-copy b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  margin-top: 8px;
}
.cm-gate-copy .beyond {
  margin-top: 34px;
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: 0.72rem;
}
.cm-gate-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}
.cm-gate-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-gate-list i {
  font-style: normal;
  width: 20px;
  color: #0a4d91;
}
.cm-phoenix-stage {
  position: absolute;
  left: 11%;
  bottom: 0;
  width: 73%;
  height: 79%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 18px 26px #51230044);
  z-index: 3;
}
.cm-phoenix-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 55% 82%;
  animation: cm-breathe 4.8s ease-in-out infinite;
}
.cm-phoenix-stage.walking {
  animation: cm-pace 10s ease-in-out infinite alternate;
}
.cm-phoenix-stage.depart {
  animation: cm-flyaway 1.55s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}
.cm-phoenix-stage.depart img {
  animation: none;
}
.cm-blue-core {
  position: absolute;
  left: 58%;
  top: 38%;
  width: 55px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #d9f7ff 0,
    #6bd6ff 28%,
    #0a8ee780 52%,
    transparent 72%
  );
  filter: blur(5px);
  opacity: 0.52;
  mix-blend-mode: screen;
  animation: cm-core 3.2s ease-in-out infinite;
}
@keyframes cm-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.012);
  }
}
@keyframes cm-pace {
  0% {
    transform: translateX(-2%) scaleX(1);
  }
  48% {
    transform: translateX(5%) scaleX(1);
  }
  52% {
    transform: translateX(5%) scaleX(-1);
  }
  100% {
    transform: translateX(-2%) scaleX(-1);
  }
}
@keyframes cm-core {
  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}
@keyframes cm-flyaway {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  45% {
    transform: translate(10%, -20%) scale(0.82);
    opacity: 1;
  }
  100% {
    transform: translate(70%, -115%) scale(0.34);
    opacity: 0;
  }
}
.cm-watch {
  position: absolute;
  right: 7%;
  top: 31%;
  z-index: 5;
  border: 2px solid #edb52e;
  border-radius: 28px;
  background: #06152ddd;
  padding: 9px 14px;
  color: #ffd85b;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 0.62rem;
  box-shadow: 0 0 22px #ffca4b66;
}
.cm-watch i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #f8c338;
  border-radius: 50%;
  font-size: 1rem;
}
.cm-gate-tag {
  position: absolute;
  left: 3%;
  bottom: 3%;
  font-family: Georgia, serif;
  font-style: italic;
  color: #173f72;
  font-size: 1.2rem;
  z-index: 4;
}
.cm-gate-right {
  position: relative;
  z-index: 5;
  padding: 62px 30px 50px 0;
  display: grid;
  grid-template-columns: minmax(350px, 1fr) 190px;
  gap: 18px;
  align-content: center;
}
.cm-verify,
.cm-code,
.cm-journey {
  background: linear-gradient(
    180deg,
    rgba(7, 26, 55, 0.96),
    rgba(3, 15, 32, 0.96)
  );
  border: 2px solid #eeb72d;
  border-radius: 22px;
  box-shadow:
    0 0 24px #ffc94777,
    inset 0 0 35px #0f396766;
}
.cm-verify {
  padding: 26px 25px;
}
.cm-eyebrow {
  text-align: center;
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  color: #ffe19a;
}
.cm-verify h2 {
  font-family: Georgia, serif;
  color: #ffd96a;
  text-align: center;
  font-size: 2rem;
  margin: 7px 0 4px;
}
.cm-verify .sub {
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}
.cm-verify .intro {
  text-align: center;
  color: #d6e4ef;
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 14px 0 18px;
}
.cm-form {
  display: grid;
  gap: 10px;
}
.cm-field {
  display: flex;
  align-items: center;
  background: #f7fbff;
  border-radius: 9px;
  border: 1px solid #d7ecf8;
  min-height: 44px;
  color: #183b63;
  box-shadow: inset 0 1px 3px #ffffff;
}
.cm-field span {
  width: 42px;
  text-align: center;
  font-size: 1rem;
}
.cm-field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  padding: 12px 12px 12px 0;
  color: #102b4d;
}
.cm-gold-action {
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  background: linear-gradient(#ffd861, #eaa915);
  font-weight: 900;
  color: #071a32;
  font-size: 0.76rem;
  box-shadow: 0 0 18px #ffcb3a66;
  cursor: pointer;
}
.cm-note {
  text-align: center;
  color: #b8ccdb;
  font-size: 0.58rem;
}
.cm-trust {
  border-top: 1px solid #c9972d66;
  margin-top: 18px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  color: #d4e0e9;
  font-size: 0.55rem;
}
.cm-status {
  text-align: center;
  min-height: 18px;
  margin-top: 10px;
  font-size: 0.67rem;
  color: #d9ecf9;
}
.cm-status.error {
  color: #ff9d9d;
}
.cm-code {
  padding: 20px 15px;
  align-self: center;
  text-align: center;
}
.cm-code h3 {
  color: #ffd761;
  font-size: 0.86rem;
  margin: 8px 0;
}
.cm-code p {
  font-size: 0.61rem;
  color: #cbdce8;
}
.cm-code .cm-field {
  margin: 10px 0;
}
.cm-text-btn {
  border: 0;
  background: none;
  color: #d6e4ef;
  font-size: 0.6rem;
  margin-top: 8px;
  cursor: pointer;
}
.cm-success {
  text-align: center;
  padding: 20px 0;
}
.cm-success i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #2ebc74;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 0 24px #2ef28f66;
}
.cm-success h3 {
  color: #ffe07a;
  font-family: Georgia, serif;
}
.cm-journey {
  padding: 14px 12px;
}
.cm-journey h3 {
  text-align: center;
  color: #ffd668;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.cm-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
}
.cm-step i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(#ffc740, #9b6111);
  border: 1px solid #ffe289;
  color: #07152b;
  font-weight: 900;
  font-size: 0.65rem;
}
.cm-step b {
  display: block;
  font-size: 0.58rem;
}
.cm-step small {
  font-size: 0.48rem;
  color: #aebfcb;
}
.cm-gate-bottom {
  height: 30px;
  display: grid;
  place-items: center;
  background: #06142b;
  border-top: 1px solid #ecb72c;
  color: #ffd15a;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  font-weight: 700;
}
/* Headquarters */
.cm-hq-shell {
  min-height: calc(100vh - 72px);
  background: linear-gradient(#071a35, #06142c);
  position: relative;
}
.cm-hq-hero {
  height: 460px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e7af22;
  background:
    radial-gradient(
      circle at 54% 28%,
      #fff9d2 0 4%,
      #ffd46a 10%,
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #91d9ff 0%,
      #d8f5ff 45%,
      #83cbe7 66%,
      #0e4e79 67%,
      #062748 100%
    );
}
.cm-hq-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 82%, #ffb74d55, transparent 20%),
    radial-gradient(ellipse at 85% 75%, #ffca5b4d, transparent 23%);
  pointer-events: none;
}
.cm-skyline {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 31%;
  height: 41%;
  opacity: 0.66;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 42px,
    #1b5f85 44px 61px,
    transparent 63px 86px
  );
  clip-path: polygon(
    0 90%,
    3% 50%,
    6% 90%,
    10% 26%,
    13% 90%,
    17% 48%,
    21% 90%,
    26% 17%,
    29% 90%,
    34% 42%,
    38% 90%,
    44% 10%,
    47% 90%,
    52% 35%,
    56% 90%,
    62% 22%,
    66% 90%,
    72% 47%,
    76% 90%,
    82% 18%,
    86% 90%,
    92% 39%,
    96% 90%,
    100% 52%,
    100% 100%,
    0 100%
  );
}
.cm-hq-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(#2074a288, #073a63 45%, #051f40 100%);
}
.cm-palm {
  position: absolute;
  bottom: 22%;
  width: 9px;
  height: 105px;
  background: #6a481f;
  border-radius: 50% 50% 0 0;
  z-index: 2;
  transform-origin: bottom;
}
.cm-palm:after {
  content: "";
  position: absolute;
  top: -23px;
  left: -42px;
  width: 95px;
  height: 48px;
  background: radial-gradient(ellipse, #1c7a5f 0 28%, transparent 31%) 0 0/33px
    20px;
  transform: rotate(-8deg);
}
.cm-palm.p1 {
  left: 6%;
  transform: rotate(-6deg);
}
.cm-palm.p2 {
  left: 17%;
  height: 82px;
  transform: rotate(4deg);
}
.cm-palm.p3 {
  right: 7%;
  transform: rotate(7deg);
}
.cm-palm.p4 {
  right: 17%;
  height: 89px;
  transform: rotate(-4deg);
}
.cm-hq-center {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 9%;
  transform: translateX(-50%);
  text-align: center;
  width: min(760px, 68%);
  color: #0b336d;
}
.cm-hq-center .flymark {
  width: 95px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px #9c4d0055);
  animation: cm-float 4s ease-in-out infinite;
}
.cm-hq-center .script {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 2rem;
}
.cm-hq-center h1 {
  font-family: Georgia, serif;
  text-transform: uppercase;
  font-size: 3.2rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: #17346d;
  text-shadow: 0 2px #fff7c2;
}
.cm-hq-center p {
  font-family: Georgia, serif;
  font-style: italic;
  margin: 5px;
}
.cm-hq-center b {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
}
@keyframes cm-float {
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
.cm-hq-panel {
  position: absolute;
  z-index: 7;
  bottom: 12%;
  width: 255px;
  background: #071a36ee;
  border: 1px solid #edb72a;
  border-radius: 17px;
  padding: 14px;
  color: white;
  box-shadow: 0 0 18px #ffca3866;
}
.cm-hq-panel.left {
  left: 3.4%;
}
.cm-hq-panel.right {
  right: 3.4%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cm-hq-panel h3 {
  color: #ffd45c;
  font-family: Georgia, serif;
  margin: 4px 0;
  font-size: 1rem;
}
.cm-hq-panel p {
  font-size: 0.62rem;
  color: #cfe1ed;
}
.cm-hq-panel img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.cm-hq-panel a,
.cm-hq-panel button {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(#ffd25a, #e1a10f);
  color: #06162d;
  font-weight: 800;
  font-size: 0.55rem;
  padding: 8px 11px;
  text-decoration: none;
  cursor: pointer;
}
.cm-hq-directory {
  padding: 18px 22px 26px;
  background: linear-gradient(180deg, #06162d, #081f3e);
  position: relative;
  z-index: 5;
}
.cm-dir-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}
.cm-dir-head h2 {
  font-family: Georgia, serif;
  color: #ffd563;
  margin: 2px 0;
  font-size: 1.6rem;
}
.cm-dir-head span {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: #f1c95f;
}
.cm-dir-head p {
  font-size: 0.62rem;
  color: #b9cad7;
  max-width: 410px;
  text-align: right;
}
.cm-room-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.cm-room {
  min-height: 142px;
  background: linear-gradient(180deg, #0b2d50, #061629);
  border: 1px solid #d9a624;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 24px #188dc326;
}
.cm-room-visual {
  height: 80px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #167eb4, #071a34 70%);
  overflow: hidden;
}
.cm-room-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-room-visual svg {
  width: 42px;
  height: 42px;
  color: #ffc94b;
  stroke: currentColor;
}
.cm-room b {
  font-size: 0.58rem;
  text-align: center;
  padding: 7px 4px 2px;
}
.cm-room small {
  font-size: 0.46rem;
  text-align: center;
  color: #aebfcd;
  min-height: 22px;
  padding: 0 5px;
}
.cm-room strong {
  margin: 4px 6px 6px;
  background: linear-gradient(#ffdc68, #e8a813);
  color: #07152a;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  font-size: 0.46rem;
}
.cm-room:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px #ffca3966;
}
.cm-room.travel {
  border-color: #fff0a2;
  box-shadow: 0 0 18px #ffcf4e40;
}
.cm-room.credentials .cm-room-visual {
  background: radial-gradient(circle, #5e4200, #0b1e38 70%);
}
.cm-substrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 20px;
  background: #30240f;
  border-top: 1px solid #d5a725;
  border-bottom: 1px solid #d5a725;
}
.cm-substrip b {
  color: #ffd45d;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
}
.cm-substrip small {
  color: #cbd6dd;
}
.cm-substrip button {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(#ffd866, #e7a811);
  padding: 10px 28px;
  font-weight: 900;
  color: #07162c;
}
.cm-substrip em {
  font-family: Georgia, serif;
  color: #ffd76d;
}
/* Coin room */
.cm-coin-stage {
  min-height: calc(100vh - 72px);
  padding: 34px 28px;
  background: radial-gradient(
    circle at 35% 38%,
    #113e6b 0,
    #071a35 33%,
    #020912 100%
  );
  position: relative;
  overflow: hidden;
}
.cm-coin-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 23% 44%, #ffd64b33, transparent 25%),
    radial-gradient(circle at 78% 20%, #167dba33, transparent 24%);
}
.cm-coin-wrap {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.cm-coin-visual {
  text-align: center;
}
.cm-coin-title {
  font-family: Georgia, serif;
  color: #ffd45c;
  font-size: 2.3rem;
  margin: 0;
}
.cm-coin-sub {
  color: #c7d9e6;
  margin: 6px 0 22px;
}
.cm-coin-orbit {
  width: min(520px, 90vw);
  height: 520px;
  margin: auto;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.cm-orbit-ring {
  position: absolute;
  inset: 6%;
  border: 1px solid #efbb3266;
  border-radius: 50%;
  box-shadow: 0 0 30px #ffc64122;
  animation: cm-ring 14s linear infinite;
}
.cm-orbit-ring:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffe069;
  top: 9%;
  left: 20%;
  box-shadow: 0 0 18px #ffd64f;
}
@keyframes cm-ring {
  to {
    transform: rotate(360deg);
  }
}
.cm-coin-float {
  width: 360px;
  height: 360px;
  animation: cm-coinfloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes cm-coinfloat {
  50% {
    transform: translateY(-12px);
  }
}
.cm-coin-spin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cm-coinspin 12s linear infinite;
  cursor: pointer;
}
.cm-coin-spin.paused {
  animation-play-state: paused;
}
@keyframes cm-coinspin {
  to {
    transform: rotateY(360deg);
  }
}
.cm-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
}
.cm-face.back {
  transform: rotateY(180deg);
}
.cm-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px #000a);
}
.cm-coin-data {
  background: #06172eea;
  border: 1px solid #d8aa2a;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 26px #ffcc4333;
}
.cm-seal-line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cm-seal-line img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.cm-seal-line h2 {
  font-family: Georgia, serif;
  color: #ffd766;
  margin: 2px 0;
}
.cm-live-status {
  font-size: 0.63rem;
  color: #a8bbc9;
}
.cm-live-status.live-ok {
  color: #79e0a8;
}
.cm-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.cm-stat {
  background: #0b2848;
  border: 1px solid #1e577d;
  border-radius: 9px;
  padding: 10px;
}
.cm-stat small {
  display: block;
  color: #90abc0;
  font-size: 0.48rem;
}
.cm-stat b {
  color: #fff;
  font-size: 0.85rem;
}
.cm-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  border-top: 1px solid #d6a62a55;
  padding-top: 13px;
}
.cm-facts div {
  font-size: 0.56rem;
  color: #b7cad8;
}
.cm-facts b {
  display: block;
  color: #ffe076;
  font-size: 0.7rem;
}
.cm-contract {
  margin-top: 14px;
  border: 1px solid #d8aa2a;
  border-radius: 8px;
  padding: 10px;
  font:
    600 0.62rem ui-monospace,
    monospace;
  word-break: break-all;
  background: #020c19;
}
.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cm-actions a,
.cm-actions button {
  border: 1px solid #ddb02f;
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.6rem;
  cursor: pointer;
}
.cm-actions .primary {
  background: linear-gradient(#ffd65e, #e7a616);
  color: #05142b;
}
.cm-actions .secondary {
  background: #09213f;
  color: #ffe079;
}
.cm-data-source {
  font-size: 0.53rem;
  color: #8fa6b8;
  line-height: 1.4;
}
/* credentials room */
.cm-cred-stage {
  min-height: calc(100vh - 72px);
  padding: 34px 24px;
  background: radial-gradient(
    circle at 18% 20%,
    #173e6b,
    #06162e 38%,
    #020810 100%
  );
  color: white;
}
.cm-cred-wrap {
  max-width: 1120px;
  margin: auto;
}
.cm-cred-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  background: #071b35dd;
  border: 1px solid #d8aa2b;
  border-radius: 18px;
  padding: 24px;
}
.cm-cred-hero img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}
.cm-cred-hero h1 {
  font-family: Georgia, serif;
  color: #ffd662;
  margin: 0 0 8px;
  font-size: 2.3rem;
}
.cm-ownership {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.cm-ownership span {
  border: 1px solid #e3b329;
  border-radius: 18px;
  padding: 8px 12px;
  color: #ffe28b;
  background: #34240066;
  font-size: 0.65rem;
  font-weight: 800;
}
.cm-cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.cm-cred-card {
  background: #071b35;
  border: 1px solid #2d5879;
  border-radius: 14px;
  padding: 18px;
}
.cm-cred-card h2 {
  font-family: Georgia, serif;
  color: #ffd45d;
  margin-top: 0;
}
.cm-cred-card ul {
  padding-left: 19px;
  line-height: 1.7;
  color: #d2e0e9;
  font-size: 0.78rem;
}
.cm-cred-note {
  margin-top: 14px;
  font-size: 0.62rem;
  color: #9cb1c1;
  border-top: 1px solid #d0a42a55;
  padding-top: 12px;
}
@media (max-width: 1100px) {
  .cm-top {
    grid-template-columns: 1fr auto;
  }
  .cm-motto {
    display: none;
  }
  .cm-gate {
    grid-template-columns: 1fr;
  }
  .cm-gate-left {
    min-height: 600px;
  }
  .cm-gate-right {
    padding: 18px 20px 34px;
    grid-template-columns: 1fr 190px;
  }
  .cm-room-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cm-coin-wrap {
    grid-template-columns: 1fr;
  }
  .cm-coin-stage {
    padding-top: 18px;
  }
}
@media (max-width: 680px) {
  .cm-top {
    height: 62px;
    padding: 0 10px;
  }
  .cm-brand img {
    width: 44px;
    height: 44px;
  }
  .cm-brand strong {
    font-size: 0.78rem;
  }
  .cm-lock {
    font-size: 0.48rem;
    padding: 7px;
  }
  .cm-gate {
    min-height: auto;
  }
  .cm-gate-left {
    min-height: 440px;
    padding: 24px 16px;
  }
  .cm-gate-copy h1 {
    font-size: 2.4rem;
  }
  .cm-gate-copy .beyond,
  .cm-gate-list {
    display: none;
  }
  .cm-phoenix-stage {
    left: 2%;
    width: 96%;
    height: 74%;
  }
  .cm-watch {
    right: 3%;
    top: 32%;
    transform: scale(0.8);
    transform-origin: right;
  }
  .cm-gate-tag {
    font-size: 0.8rem;
  }
  .cm-gate-right {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .cm-journey {
    display: none;
  }
  .cm-verify {
    padding: 18px 14px;
  }
  .cm-verify h2 {
    font-size: 1.55rem;
  }
  .cm-gate-bottom {
    font-size: 0.42rem;
    letter-spacing: 0.12em;
  }
  .cm-hq-hero {
    height: 390px;
  }
  .cm-hq-center {
    width: 92%;
    top: 7%;
  }
  .cm-hq-center h1 {
    font-size: 2.15rem;
  }
  .cm-hq-panel {
    display: none;
  }
  .cm-room-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cm-hq-directory {
    padding: 13px 9px 20px;
  }
  .cm-dir-head {
    display: block;
  }
  .cm-dir-head p {
    text-align: left;
  }
  .cm-room {
    min-height: 135px;
  }
  .cm-substrip {
    flex-wrap: wrap;
    text-align: center;
  }
  .cm-substrip em {
    display: none;
  }
  .cm-coin-orbit {
    height: 390px;
  }
  .cm-coin-float {
    width: 290px;
    height: 290px;
  }
  .cm-readout {
    grid-template-columns: repeat(2, 1fr);
  }
  .cm-cred-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cm-cred-hero img {
    margin: auto;
  }
  .cm-cred-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm-phoenix-stage img,
  .cm-phoenix-stage.walking,
  .cm-blue-core,
  .cm-hq-center .flymark,
  .cm-orbit-ring,
  .cm-coin-float,
  .cm-coin-spin {
    animation: none !important;
  }
}
/* Rich coded city/resort layers — geometry, not pasted screenshots. */
.cm-gate-city {
  position: absolute;
  left: 41%;
  right: 28%;
  bottom: 11%;
  height: 45%;
  z-index: 1;
  filter: drop-shadow(0 10px 18px #07314d55);
}
.cm-gate-city span {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(90deg, #15577a, #56a7c7 52%, #174f73);
  border: 1px solid #b5e5ef66;
  box-shadow:
    inset 0 0 12px #d8f6ff55,
    0 0 10px #0b5c8766;
}
.cm-gate-city span:before {
  content: "";
  position: absolute;
  inset: 8px 5px;
  background:
    repeating-linear-gradient(180deg, #ffe777 0 3px, transparent 3px 13px),
    repeating-linear-gradient(
      90deg,
      transparent 0 6px,
      #ffe77799 6px 8px,
      transparent 8px 13px
    );
  opacity: 0.75;
  mask: linear-gradient(#000, transparent 96%);
}
.cm-gate-city span:nth-child(4):after,
.cm-gate-city span:nth-child(6):after,
.cm-gate-city span:nth-child(8):after {
  content: "";
  position: absolute;
  left: 42%;
  top: -26px;
  width: 4px;
  height: 26px;
  background: #efc04d;
  box-shadow: 0 0 8px #ffd75d;
}
.cm-gate-road {
  position: absolute;
  left: 34%;
  bottom: -7%;
  width: 55%;
  height: 31%;
  border: 7px solid #d9b05088;
  border-left-color: transparent;
  border-top-color: #fff2a055;
  border-radius: 50%;
  z-index: 1;
  transform: rotate(-6deg);
  box-shadow:
    0 0 18px #ffe57255,
    inset 0 0 20px #094a7155;
}
.cm-gate-road:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed #fff3a099;
  border-radius: 50%;
}
.cm-hq-city {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 25%;
  height: 46%;
  z-index: 1;
  opacity: 0.88;
}
.cm-hq-city span {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: var(--w);
  height: var(--h);
  background: linear-gradient(90deg, #174e72, #65aac6 45%, #0f486b);
  border: 1px solid #c7edf255;
  border-radius: 7px 7px 0 0;
  box-shadow:
    0 0 12px #0c5f8b55,
    inset 0 0 14px #b8edff33;
}
.cm-hq-city span:before {
  content: "";
  position: absolute;
  inset: 8px 4px;
  background:
    repeating-linear-gradient(180deg, #ffe687 0 3px, transparent 3px 11px),
    repeating-linear-gradient(
      90deg,
      transparent 0 5px,
      #ffe687aa 5px 7px,
      transparent 7px 12px
    );
  opacity: 0.66;
  mask: linear-gradient(#000, transparent 98%);
}
.cm-hq-city span:nth-child(4):after,
.cm-hq-city span:nth-child(6):after,
.cm-hq-city span:nth-child(10):after {
  content: "";
  position: absolute;
  left: 46%;
  top: -26px;
  width: 3px;
  height: 26px;
  background: #e9bd4c;
  box-shadow: 0 0 7px #ffd467;
}
.cm-hq-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    #2b88b599,
    #0f5d89 30%,
    #063a64 65%,
    #052747
  );
  box-shadow: inset 0 8px 18px #fff4b633;
}
.cm-hq-water:before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff8beaa, transparent);
  box-shadow:
    0 22px 0 #d8f4ff33,
    0 46px 0 #ffe78122,
    0 70px 0 #cdefff22;
}
.cm-hq-building {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 42%;
  height: 31%;
  filter: drop-shadow(0 14px 20px #02243e88);
}
.cm-hq-dome {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 58%;
  border: 4px solid #edc85d;
  border-bottom: 0;
  border-radius: 50% 50% 16% 16%/65% 65% 20% 20%;
  background: linear-gradient(180deg, #d7f3ff88, #0d5b8088);
  box-shadow:
    inset 0 0 30px #fff5b24d,
    0 0 16px #f5c64b55;
}
.cm-hq-dome:before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 34%;
  height: 2px;
  background: #ffe88488;
  box-shadow: 0 20px 0 #ffe88466;
}
.cm-hq-facade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  border: 3px solid #dcb247;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(
    90deg,
    #0b3154,
    #174f75 22%,
    #0f6e93 50%,
    #174f75 78%,
    #0b3154
  );
  box-shadow: inset 0 0 30px #64cbe44f;
}
.cm-hq-facade:before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 28%;
  bottom: 12%;
  background: repeating-linear-gradient(
    90deg,
    #c7f2ff55 0 2%,
    transparent 2% 8%
  );
  border-top: 1px solid #ffe37d55;
}
.cm-hq-facade b {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 2.3rem;
  color: #ffe172;
  text-shadow: 0 0 12px #f2bd36;
}
.cm-hq-ring {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%) perspective(500px) rotateX(67deg);
  width: 27%;
  height: 15%;
  border: 5px solid #e7bd4c;
  border-radius: 50%;
  box-shadow:
    0 0 25px #ffd34f99,
    inset 0 0 25px #ffd34f55;
  background: #08233baa;
  display: grid;
  place-items: center;
}
.cm-hq-ring span {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 2rem;
  color: #ffd55d;
  text-shadow: 0 0 12px #ffd86d;
  transform: rotateX(-67deg);
}
@media (max-width: 680px) {
  .cm-gate-city {
    left: 48%;
    right: 6%;
    height: 38%;
    bottom: 12%;
    opacity: 0.65;
  }
  .cm-gate-road {
    left: 35%;
    width: 70%;
  }
  .cm-hq-city {
    bottom: 30%;
    height: 38%;
  }
  .cm-hq-building {
    width: 68%;
    height: 27%;
    bottom: 20%;
  }
  .cm-hq-ring {
    width: 44%;
    bottom: 7%;
  }
}
@media (max-width: 680px) {
  .cm-hq-panel.left,
  .cm-hq-panel.right {
    display: none !important;
  }
  .cm-hq-center {
    top: 5%;
    width: 96%;
  }
  .cm-hq-center .script {
    font-size: 1.5rem;
  }
  .cm-hq-center h1 {
    font-size: 1.72rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
  }
  .cm-hq-center p {
    font-size: 0.78rem;
  }
  .cm-hq-center b {
    font-size: 0.46rem;
    letter-spacing: 0.2em;
  }
  .cm-hq-building {
    width: 66%;
    height: 25%;
    bottom: 18%;
  }
  .cm-hq-ring {
    width: 42%;
    height: 12%;
    bottom: 6%;
  }
}

/* Final visual-parity pass against the locked cinematic model. These are coded layers, not a pasted page image. */
@media (min-width: 1101px) {
  .cm-gate {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    min-height: calc(100vh - 72px);
    background:
      radial-gradient(
        ellipse at 44% 17%,
        rgba(255, 248, 190, 0.96) 0 3%,
        rgba(255, 194, 69, 0.83) 9%,
        rgba(255, 164, 47, 0.22) 22%,
        transparent 37%
      ),
      radial-gradient(
        ellipse at 8% 74%,
        rgba(33, 139, 172, 0.28),
        transparent 34%
      ),
      linear-gradient(
        155deg,
        #dff7ff 0%,
        #9cdef1 30%,
        #f7d58d 57%,
        #8cc9dc 74%,
        #183f67 100%
      );
  }
  .cm-gate-left {
    min-height: 760px;
    padding: 42px 30px 28px 38px;
  }
  .cm-gate-copy h1 {
    font-size: 3.55rem;
    line-height: 0.9;
    text-shadow: 0 1px 0 #fff8;
  }
  .cm-gate-copy .beyond {
    margin-top: 26px;
  }
  .cm-gate-list {
    gap: 6px;
  }
  .cm-phoenix-stage {
    left: 9%;
    bottom: -1.5%;
    width: 76%;
    height: 87%;
  }
  .cm-phoenix-stage img {
    filter: saturate(1.06) contrast(1.04)
      drop-shadow(0 18px 18px rgba(82, 39, 0, 0.25));
  }
  .cm-blue-core {
    left: 55%;
    top: 39%;
    width: 54px;
    height: 70px;
    filter: blur(8px);
    opacity: 0.25;
  }
  .cm-watch {
    right: 5%;
    top: 36%;
    box-shadow: 0 7px 18px rgba(0, 20, 43, 0.32);
  }
  .cm-gate-city {
    left: 39%;
    right: 17%;
    bottom: 12%;
    height: 41%;
    opacity: 0.9;
  }
  .cm-gate-road {
    left: 39%;
    bottom: -8%;
    width: 62%;
    height: 32%;
  }
  .cm-gate-right {
    padding: 44px 24px 42px 0;
    grid-template-columns: minmax(360px, 1fr) 184px;
    gap: 14px;
  }
  .cm-verify {
    box-shadow:
      0 18px 42px rgba(1, 24, 48, 0.38),
      0 0 24px rgba(255, 196, 54, 0.28);
    backdrop-filter: blur(6px);
  }
  .cm-journey {
    box-shadow:
      0 18px 42px rgba(1, 24, 48, 0.3),
      0 0 22px rgba(255, 196, 54, 0.18);
  }
  .cm-gate-tag {
    left: 2.5%;
    bottom: 2.5%;
    color: #173a64;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .cm-hq-hero {
    height: 500px;
    background:
      radial-gradient(
        circle at 50% 18%,
        #fff9cf 0 3%,
        #ffd56b 8%,
        rgba(255, 205, 90, 0.2) 21%,
        transparent 33%
      ),
      radial-gradient(
        ellipse at 15% 65%,
        rgba(255, 190, 75, 0.28),
        transparent 31%
      ),
      radial-gradient(
        ellipse at 86% 64%,
        rgba(255, 205, 98, 0.24),
        transparent 30%
      ),
      linear-gradient(
        180deg,
        #8fd8f6 0%,
        #c9f0ff 38%,
        #79bfdf 63%,
        #1d719b 64%,
        #072d53 100%
      );
  }
  .cm-hq-center {
    top: 6%;
  }
  .cm-hq-center h1 {
    font-size: 3.4rem;
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.5),
      0 6px 18px rgba(0, 39, 76, 0.15);
  }
  .cm-hq-building {
    width: 44%;
    height: 34%;
    bottom: 17%;
  }
  .cm-hq-ring {
    width: 30%;
  }
  .cm-hq-panel {
    backdrop-filter: blur(5px);
    box-shadow:
      0 16px 34px rgba(1, 24, 48, 0.28),
      0 0 20px rgba(255, 196, 54, 0.16);
  }
  .cm-hq-directory {
    padding-top: 20px;
    background: linear-gradient(180deg, #06162d 0%, #081f3e 78%, #06162d 100%);
  }
  .cm-room {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease;
    box-shadow:
      inset 0 0 26px rgba(24, 141, 195, 0.16),
      0 7px 16px rgba(0, 0, 0, 0.15);
  }
  .cm-room-visual {
    position: relative;
  }
  .cm-room-visual:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(transparent, rgba(1, 11, 25, 0.7));
    pointer-events: none;
  }
  .cm-room svg {
    filter: drop-shadow(0 0 9px rgba(255, 206, 73, 0.38));
  }
}

/* More dimensional gateway skyline and atmosphere. */
.cm-gate-left:before {
  content: "";
  position: absolute;
  left: -10%;
  right: -5%;
  bottom: 0;
  height: 28%;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(87, 181, 207, 0.16),
    rgba(12, 75, 111, 0.55) 45%,
    rgba(5, 46, 79, 0.9)
  );
  clip-path: polygon(
    0 40%,
    12% 22%,
    23% 35%,
    34% 12%,
    47% 36%,
    59% 20%,
    72% 42%,
    84% 15%,
    100% 36%,
    100% 100%,
    0 100%
  );
  filter: drop-shadow(0 -5px 16px rgba(255, 231, 149, 0.16));
}
.cm-gate-left:after {
  content: "";
  position: absolute;
  left: 24%;
  right: -7%;
  bottom: 5%;
  height: 20%;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at 35% 35%,
      rgba(255, 245, 183, 0.33),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(186, 237, 248, 0.45), rgba(24, 112, 148, 0.38));
  clip-path: polygon(
    0 56%,
    16% 49%,
    27% 60%,
    38% 41%,
    49% 55%,
    64% 35%,
    76% 52%,
    88% 39%,
    100% 50%,
    100% 100%,
    0 100%
  );
  opacity: 0.75;
}
.cm-gate-copy,
.cm-phoenix-stage,
.cm-watch,
.cm-gate-tag,
.cm-gate-city,
.cm-gate-road {
  position: absolute;
}
.cm-gate-copy {
  left: 42px;
  top: 48px;
}

/* Refined small-screen composition: phoenix first, then the required verification card. */
@media (max-width: 680px) {
  .cm-gate-left:before,
  .cm-gate-left:after {
    display: block;
  }
  .cm-gate-copy {
    left: 16px;
    top: 24px;
  }
  .cm-gate-copy h1 {
    font-size: 2.18rem;
  }
  .cm-phoenix-stage {
    left: 0;
    bottom: -1%;
    width: 100%;
    height: 70%;
  }
  .cm-watch {
    top: 31%;
    right: 3%;
  }
  .cm-gate-right {
    background: linear-gradient(
      180deg,
      rgba(255, 221, 135, 0.85),
      #0a3258 17%,
      #06162d 100%
    );
  }
  .cm-verify {
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.28),
      0 0 18px rgba(255, 196, 54, 0.15);
  }
}

/* 2026-08-25 responsive text/collision correction.
   The confirmed model remains the visual master; this only prevents copy from crossing component boundaries. */
.cm-top > *,
.cm-brand,
.cm-brand span,
.cm-gate-copy,
.cm-gate-list,
.cm-gate-right,
.cm-verify,
.cm-code,
.cm-journey,
.cm-hq-center,
.cm-dir-head > *,
.cm-room,
.cm-cred-hero > *,
.cm-cred-card {
  min-width: 0;
}
.cm-brand strong,
.cm-brand small,
.cm-motto,
.cm-motto small,
.cm-lock,
.cm-gate-copy .beyond,
.cm-gate-list span,
.cm-verify h2,
.cm-verify .sub,
.cm-verify .intro,
.cm-code h3,
.cm-code p,
.cm-hq-center h1,
.cm-hq-center p,
.cm-dir-head h2,
.cm-dir-head p,
.cm-room b,
.cm-room small,
.cm-room strong,
.cm-cred-hero h1,
.cm-cred-hero p,
.cm-cred-card h2,
.cm-cred-card li {
  overflow-wrap: anywhere;
}
.cm-lock {
  white-space: nowrap;
}
.cm-room b {
  line-height: 1.15;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
}
.cm-room small {
  line-height: 1.2;
  min-height: 2.4em;
  padding-inline: 5px;
}
.cm-room strong {
  line-height: 1.15;
}
.cm-cred-card h2 {
  line-height: 1.12;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .cm-gate-copy {
    max-width: 250px;
  }
  .cm-gate-copy h1 {
    font-size: clamp(2.8rem, 5.5vw, 3.5rem);
  }
  .cm-gate-copy .beyond {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    margin-top: 20px;
  }
  .cm-gate-list {
    max-width: 225px;
    font-size: 0.62rem;
    gap: 6px;
  }
  .cm-phoenix-stage {
    left: 25%;
    width: 70%;
    height: 82%;
  }
  .cm-watch {
    right: 3%;
    transform: scale(0.9);
    transform-origin: right center;
  }
}
@media (max-width: 900px) and (min-width: 681px) {
  .cm-gate-copy {
    max-width: 48%;
  }
  .cm-gate-copy .beyond,
  .cm-gate-list {
    display: none;
  }
  .cm-phoenix-stage {
    left: 18%;
    width: 80%;
    height: 80%;
  }
  .cm-gate-right {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 20px 34px;
  }
  .cm-journey {
    display: none;
  }
  .cm-room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cm-hq-center h1 {
    font-size: clamp(2.05rem, 5vw, 2.8rem);
    line-height: 1.03;
  }
}
@media (max-width: 680px) {
  .cm-brand span {
    overflow: hidden;
  }
  .cm-brand strong {
    white-space: nowrap;
    letter-spacing: 0.055em;
  }
  .cm-brand small {
    white-space: nowrap;
    letter-spacing: 0.11em;
  }
  .cm-hq-center h1 {
    white-space: normal !important;
    line-height: 1.02;
    max-width: 100%;
    margin-inline: auto;
  }
  .cm-dir-head h2 {
    line-height: 1.08;
  }
  .cm-room b {
    font-size: 0.56rem;
    min-height: 2.4em;
  }
  .cm-room small {
    font-size: 0.45rem;
    min-height: 2.5em;
  }
  .cm-gate-bottom {
    min-height: 30px;
    height: auto;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.25;
  }
}
@media (max-width: 680px) {
  .cm-gate-tag {
    display: none !important;
  }
}

/* 2026-08-25 final confirmed-model containment pass. */
.cm-top,
.cm-top > *,
.cm-brand,
.cm-brand span,
.cm-motto,
.cm-lock,
.cm-gate,
.cm-gate-left,
.cm-gate-right,
.cm-verify,
.cm-code,
.cm-journey,
.cm-hq-shell,
.cm-hq-hero,
.cm-hq-center,
.cm-hq-directory,
.cm-dir-head,
.cm-dir-head > *,
.cm-room-grid,
.cm-room,
.cm-room-visual,
.cm-substrip,
.cm-cred-stage,
.cm-cred-wrap,
.cm-cred-hero,
.cm-cred-hero > *,
.cm-cred-grid,
.cm-cred-card {
  min-width: 0;
  max-width: 100%;
}
.cm-brand span {
  display: block;
  overflow: hidden;
}
.cm-brand strong,
.cm-brand small,
.cm-motto,
.cm-motto small,
.cm-lock,
.cm-gate-copy h1,
.cm-gate-copy b,
.cm-gate-copy .beyond,
.cm-gate-list span,
.cm-verify h2,
.cm-verify .sub,
.cm-verify .intro,
.cm-code h3,
.cm-code p,
.cm-hq-center .script,
.cm-hq-center h1,
.cm-hq-center p,
.cm-hq-center b,
.cm-dir-head h2,
.cm-dir-head p,
.cm-room b,
.cm-room small,
.cm-room strong,
.cm-cred-hero h1,
.cm-cred-hero p,
.cm-cred-card h2,
.cm-cred-card p,
.cm-cred-card li,
.cm-substrip b,
.cm-substrip small,
.cm-substrip em {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.cm-room {
  height: auto !important;
  overflow: hidden;
}
.cm-room b,
.cm-room small,
.cm-room strong {
  white-space: normal !important;
}
.cm-field {
  min-width: 0;
}
.cm-field input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.cm-dir-head {
  flex-wrap: wrap;
}
.cm-dir-head p {
  flex: 1 1 280px;
}
@media (max-width: 680px) {
  .cm-top {
    height: auto;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 9px;
  }
  .cm-brand {
    gap: 7px;
    overflow: hidden;
  }
  .cm-brand img {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
  }
  .cm-brand span {
    min-width: 0;
    max-width: calc(100vw - 160px);
  }
  .cm-brand strong {
    font-size: 0.72rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cm-brand small {
    font-size: 0.32rem;
    letter-spacing: 0.055em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cm-lock {
    max-width: 118px;
    white-space: normal !important;
    text-align: center;
    line-height: 1.12;
    font-size: 0.44rem;
    padding: 7px 8px;
  }
  .cm-verify h2 {
    font-size: clamp(1.38rem, 7.5vw, 1.8rem);
    line-height: 1.05;
  }
  .cm-verify .sub {
    font-size: 0.61rem;
    line-height: 1.25;
    letter-spacing: 0.1em;
  }
  .cm-verify .intro {
    font-size: 0.68rem;
    line-height: 1.45;
  }
  .cm-form .cm-gold-action {
    white-space: normal;
    line-height: 1.15;
  }
  .cm-dir-head h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
  .cm-room {
    min-height: 0;
  }
  .cm-room b {
    font-size: 0.53rem;
    line-height: 1.17;
    min-height: 2.34em;
    padding: 7px 5px 2px;
  }
  .cm-room small {
    font-size: 0.43rem;
    line-height: 1.2;
    min-height: 2.4em;
    padding: 0 5px;
  }
  .cm-room strong {
    font-size: 0.42rem;
    line-height: 1.15;
    margin: 5px 6px 6px;
    padding: 6px 4px;
  }
  .cm-substrip {
    gap: 10px;
    padding-inline: 10px;
  }
}
@media (max-width: 350px) {
  .cm-brand span {
    max-width: calc(100vw - 145px);
  }
  .cm-brand strong {
    font-size: 0.64rem;
  }
  .cm-lock {
    max-width: 106px;
    font-size: 0.4rem;
  }
  .cm-room-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-room b {
    font-size: 0.62rem;
    min-height: auto;
  }
  .cm-room small {
    font-size: 0.5rem;
    min-height: auto;
  }
  .cm-room strong {
    font-size: 0.48rem;
  }
}

/* HARD BORDER CONTAINMENT — final deploy guard. */
.cm-verify,
.cm-code,
.cm-journey,
.cm-room,
.cm-cred-card,
.cm-lock,
.cm-gold-action,
.cm-substrip,
.cm-hq-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.cm-verify *,
.cm-code *,
.cm-journey *,
.cm-room *,
.cm-cred-card *,
.cm-lock *,
.cm-gold-action *,
.cm-substrip *,
.cm-hq-panel * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cm-room b,
.cm-room small,
.cm-room strong,
.cm-lock,
.cm-gold-action {
  white-space: normal !important;
  height: auto !important;
}
@media (max-width: 430px) {
  .cm-room b {
    font-size: 0.53rem;
    line-height: 1.15;
    min-height: 0;
    padding: 7px 4px 2px;
  }
  .cm-room small {
    font-size: 0.43rem;
    line-height: 1.17;
    min-height: 0;
    padding: 0 4px;
  }
  .cm-room strong {
    font-size: 0.42rem;
    line-height: 1.14;
    padding: 6px 4px;
  }
  .cm-eyebrow {
    letter-spacing: 0.16em;
  }
}
@media (max-width: 340px) {
  .cm-room-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* Coin room containment: orbit follows its actual card width, never viewport width. */
.cm-coin-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.cm-coin-visual,
.cm-coin-data {
  min-width: 0;
  max-width: 100%;
}
.cm-coin-orbit {
  width: min(520px, 100%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}
.cm-coin-float {
  width: min(360px, 82%);
  max-width: 82%;
  height: auto;
  aspect-ratio: 1/1;
}
.cm-coin-spin {
  --coin-depth: 36px;
  isolation: isolate;
  transform-style: preserve-3d;
  animation: cm-realcoinspin 12s linear infinite;
}
@keyframes cm-realcoinspin {
  0% {
    transform: rotateX(-8deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(-4deg) rotateY(90deg);
  }
  50% {
    transform: rotateX(7deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(3deg) rotateY(270deg);
  }
  100% {
    transform: rotateX(-8deg) rotateY(360deg);
  }
}
.cm-face {
  z-index: 2;
  transform-style: preserve-3d;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}
.cm-face:before {
  content: "";
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    #ffe284 0,
    #b8790d 58%,
    #3f1c00 100%
  );
  box-shadow:
    inset 0 0 8px #fff0a3,
    0 0 2px 2px #6d3700;
}
.cm-face.front {
  transform: rotateY(0deg) translateZ(calc(var(--coin-depth) / 2));
  animation: cm-frontface 12s linear infinite;
}
.cm-face.back {
  transform: rotateY(180deg) translateZ(calc(var(--coin-depth) / 2));
  animation: cm-backface 12s linear infinite;
}
@keyframes cm-frontface {
  0%,
  24.9%,
  75%,
  100% {
    opacity: 1;
  }
  25%,
  74.9% {
    opacity: 0;
  }
}
@keyframes cm-backface {
  0%,
  24.9%,
  75%,
  100% {
    opacity: 0;
  }
  25%,
  74.9% {
    opacity: 1;
  }
}
.cm-coin-rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
  pointer-events: none;
}
.cm-coin-rim span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform-style: preserve-3d;
  background: repeating-linear-gradient(
    90deg,
    #4b2100 0 2px,
    #b86d09 2px 4px,
    #ffe073 4px 6px,
    #7a3900 6px 8px
  );
  border-top: 1px solid #ffeaa0;
  border-bottom: 1px solid #5a2700;
  box-shadow:
    inset 0 3px 5px #ffe99499,
    inset 0 -4px 6px #341300aa;
}
.cm-face img {
  position: relative;
  z-index: 1;
  background: transparent;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  filter: drop-shadow(0 16px 14px #0008);
}
.cm-coin-spin.paused,
.cm-coin-spin.paused .cm-face {
  animation-play-state: paused;
}
.cm-readout,
.cm-facts,
.cm-actions {
  min-width: 0;
  max-width: 100%;
}
.cm-stat,
.cm-facts > div,
.cm-actions > a,
.cm-actions > button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (max-width: 680px) {
  .cm-coin-orbit {
    height: auto;
    aspect-ratio: 1/1;
  }
  .cm-coin-float {
    width: min(290px, 84%);
    max-width: 84%;
    height: auto;
    aspect-ratio: 1/1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm-face.front {
    opacity: 1;
    animation: none;
  }
  .cm-face.back {
    opacity: 0;
    animation: none;
  }
}
