#cloudGate {
  --entry-ink: #faf6e9;
  --entry-gold: #eccc85;
  z-index: 100010;
  background: radial-gradient(ellipse at 48% 25%, #20372e, #0d1b18 58%, #09120f);
  color: var(--entry-ink);
  place-items: safe center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overscroll-behavior: contain;
  text-align: left;
  box-sizing: border-box;
}
#cloudGate .runner-entry {
  width: min(100%, 960px);
  min-width: 0;
  padding: 0;
  border: 1px solid #59634b;
  border-radius: 18px;
  overflow: hidden;
  background: #13221e;
  box-shadow: 0 18px 72px #0005;
}
#cloudGate .runner-entry-notice {
  margin: 0;
  padding: 12px 20px;
  background: #ece3c5;
  color: #302f23;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
  text-wrap: balance;
}
.runner-entry-layout { display: grid; grid-template-columns: 1.15fr 1fr; }
.runner-entry-art {
  position: relative;
  min-height: 370px;
  background: linear-gradient(180deg, #0c201410 42%, #041a167a), url("assets/runner-encounter.webp") 62% center / cover no-repeat;
}
.runner-wordmark {
  position: absolute;
  left: 7%;
  top: 8%;
  color: #ffe8aa;
  text-shadow: 0 2px 9px #081609a6;
}
.runner-wordmark strong { display: block; font: italic 950 clamp(44px, 6.5vw, 82px)/.84 system-ui, sans-serif; letter-spacing: -.09em; }
.runner-wordmark strong span { color: #f2bc57; font-size: .55em; padding-left: .12em; vertical-align: top; }
.runner-wordmark small { display: block; margin: 12px 0 0 4px; font-size: 13px; font-weight: 750; letter-spacing: .18em; }
.runner-entry-body { align-self: center; padding: clamp(26px, 4vw, 46px); min-width: 0; }
#cloudGate #runnerGateTitle { margin: 0; font-size: clamp(24px, 3vw, 35px); line-height: 1.25; letter-spacing: -.065em; color: var(--entry-ink); outline: none; }
#cloudGate #runnerGateHint { margin: 10px 0 24px; font-size: 14px; line-height: 1.65; color: #c7d2c5; word-break: keep-all; }
#cloudGate label { display: block; margin: 0 0 14px; font-size: 13px; color: #e8e7d8; font-weight: 650; }
#cloudGate input {
  box-sizing: border-box; width: 100%; min-height: 47px; padding: 10px 14px; margin-top: 6px;
  border: 1px solid #52655b; border-radius: 8px; background: #0f1c19; color: #fff;
  font: inherit; font-size: 16px; font-weight: 500;
}
#cloudGate input::placeholder { color: #9fac9f; }
#cloudGate button.runner-action, #cloudGate button.runner-secondary {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px 12px;
  border-radius: 8px; font: inherit; font-size: 16px; font-weight: 750; cursor: pointer;
}
#cloudGate button.runner-action { background: #f1d58d; color: #232419; border: 1px solid #ffe6ad; }
#cloudGate button.runner-action span { padding-left: 4px; }
#cloudGate button.runner-secondary { margin-top: 9px; background: #1b2c26; color: #efdca9; border: 1px solid #536457; }
#cloudGate button:disabled { opacity: .65; cursor: wait; }
#cloudGate input:focus-visible, #cloudGate button:focus-visible { outline: 2px solid var(--entry-gold); outline-offset: 2px; }
#cloudGate #cloudError { min-height: 0; margin: 0 0 10px; line-height: 1.5; }
#cloudGate #cloudError:empty, #cloudGate [hidden] { display: none !important; }
body:has(>#cloudGate:not([hidden])) { overflow: hidden; }
body:has(>#cloudGate:not([hidden])) #cloudLoading { visibility: hidden; }
@media (max-width: 720px) {
  #cloudGate { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  #cloudGate .runner-entry { max-width: 460px; border-radius: 14px; }
  .runner-entry-layout { grid-template-columns: 1fr; }
  .runner-entry-art { min-height: 0; height: clamp(135px, 26svh, 236px); background-position: center 64%; }
  #cloudGate[data-view="welcome"] .runner-entry-art { height: clamp(172px, 33svh, 280px); }
  .runner-wordmark strong { font-size: clamp(40px, 11vw, 58px); }
  .runner-wordmark small { font-size: 11px; margin-top: 8px; }
  .runner-entry-body { padding: 22px; }
  #cloudGate .runner-entry-notice { font-size: 13px; padding: 10px 14px; }
}
@media (max-height: 620px) and (max-width: 720px) {
  #cloudGate:not([data-view="welcome"]) .runner-entry-art { height: 88px; }
  #cloudGate:not([data-view="welcome"]) .runner-wordmark strong { font-size: 29px; }
}
