:root {
  --paper: #f1efe8;
  --paper-soft: #f8f6ef;
  --ink: #11110f;
  --ink-soft: #4f4e48;
  --ink-muted: #66645d;
  --line: rgba(17, 17, 15, 0.24);
  --line-strong: #11110f;
  --acid: #c8ff1a;
  --acid-deep: #a9dc00;
  --signal: #ff5a36;
  --success: #087b50;
  --danger: #bd321f;
  --display: var(--lg-font-display, Arial, "Segoe UI", sans-serif);
  --ui: var(--lg-font-ui, Arial, "Segoe UI", sans-serif);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-hard: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  scroll-behavior: smooth;
}

body[data-next-experience] {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--ui) !important;
  font-optical-sizing: auto;
  isolation: isolate;
}

body[data-next-experience]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(17, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.055) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.2) 72%, transparent);
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.2) 72%, transparent);
}

body[data-next-experience]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.next-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2147483647;
  padding: 11px 15px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-170%);
  transition: opacity 120ms ease, transform 160ms var(--ease-out);
}

.next-skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.next-skip-link:focus:not(:focus-visible) {
  opacity: 0;
  transform: translateY(-170%);
}

body[data-next-experience] .container.lgx-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1600px);
  max-width: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(22px, env(safe-area-inset-top))
    clamp(18px, 3vw, 48px)
    max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(430px, 1fr) auto auto;
  align-content: stretch;
  gap: 0 clamp(10px, 1.2vw, 22px);
}

.lgx-masthead {
  grid-column: 1 / -1;
  min-height: 62px;
  padding: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lgx-wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.lgx-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
  box-shadow: 3px 3px 0 var(--acid-deep);
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lgx-brand-mark :is(img, svg) {
  width: 100%;
  height: 100%;
  display: block;
}

.lgx-brand-lockup {
  min-width: 0;
  display: grid;
  gap: 4px;
  line-height: 1;
}

.lgx-brand-lockup strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
}

.lgx-brand-lockup small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.lgx-brand-lockup b {
  padding: 2px 5px 2px 6px;
  background: var(--acid);
  color: var(--ink);
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.lgx-wordmark:focus-visible {
  outline: 3px solid var(--acid-deep);
  outline-offset: 5px;
}

.lgx-edition {
  justify-self: center;
  padding-top: 8px;
}

.lgx-system-state {
  justify-self: end;
  padding-top: 8px;
}

.lgx-system-state i {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--acid-deep);
  box-shadow: 0 0 0 4px rgba(169, 220, 0, 0.15);
}

body[data-next-experience] .header.lgx-hero {
  position: relative !important;
  grid-column: 1 / 9;
  grid-row: 2;
  min-width: 0;
  min-height: clamp(450px, 63vh, 760px);
  margin: 0 !important;
  padding: clamp(32px, 5vw, 78px) 0 26px !important;
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 0 clamp(10px, 1.2vw, 22px);
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.lgx-hero-copy {
  position: relative;
  z-index: auto;
  grid-column: 1 / 8;
  align-self: center;
  max-width: 900px;
}

.lgx-kicker,
body[data-next-experience] .h1 > span,
body[data-next-experience] .h1 .lgx-title-word,
body[data-next-experience] .subtitle {
  position: relative;
  z-index: 4;
}

.lgx-kicker,
.lgx-overline {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lgx-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lgx-kicker::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--ink);
}

.lgx-kicker span {
  color: var(--ink-muted);
}

body[data-next-experience] .h1 {
  max-width: 880px;
  margin: 0 !important;
  color: var(--ink) !important;
  font-family: var(--display) !important;
  font-size: clamp(4.5rem, 9.4vw, 10rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.052em !important;
  line-height: 0.86 !important;
  text-wrap: balance;
}

body[data-next-experience] .h1.lgx-guide-title {
  max-width: 920px;
  font-size: clamp(4.15rem, 7.6vw, 8.3rem) !important;
  line-height: 0.88 !important;
}

body[data-next-experience] .h1 span,
body[data-next-experience] .h1 em {
  display: block;
}

body[data-next-experience] .lgx-guide-title span {
  white-space: nowrap;
}

body[data-next-experience] .h1 em {
  position: relative;
  z-index: auto;
  margin-left: clamp(32px, 9vw, 150px);
  color: var(--ink);
  font-weight: 500;
}

body[data-next-experience] .h1 em::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.12em;
  z-index: 1;
  height: 0.18em;
  background: var(--acid);
  transform: rotate(-1deg);
  transform-origin: left center;
}

body[data-next-experience] .subtitle {
  max-width: 520px;
  margin: clamp(34px, 5vw, 62px) 0 0 8px !important;
  color: var(--ink-soft) !important;
  font-family: var(--ui) !important;
  font-size: clamp(0.98rem, 1.2vw, 1.14rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em;
  line-height: 1.65 !important;
}

.lgx-artifact-stage {
  position: absolute;
  top: 9%;
  right: -6%;
  z-index: 2;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  cursor: grab;
  outline: none;
  pointer-events: auto;
  touch-action: pan-y;
  transform: rotate(3deg);
  -webkit-tap-highlight-color: transparent;
}

.lgx-artifact-stage::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 240ms ease, transform 500ms var(--ease-out);
}

.lgx-artifact-stage::after {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 52% 39%, rgba(255, 216, 77, 0.27) 0%, rgba(255, 216, 77, 0.09) 27%, transparent 52%),
    radial-gradient(circle at 65% 62%, rgba(200, 255, 26, 0.18) 0%, transparent 46%),
    radial-gradient(ellipse at 52% 79%, rgba(17, 17, 15, 0.24) 0%, transparent 60%);
  filter: blur(20px);
  transform: rotate(-3deg) scale(1.04);
}

.lgx-artifact-stage:focus-visible::before,
.lgx-artifact-stage.is-interacting::before {
  border-color: rgba(17, 17, 15, 0.5);
  transform: scale(1.025) rotate(-2deg);
}

.lgx-artifact-stage:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -8px;
  border-radius: 50%;
}

.lgx-artifact-stage.is-grabbing {
  cursor: grabbing;
}

.lgx-artifact-canvas,
.lgx-artifact-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lgx-artifact-canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

.lgx-artifact-stage.is-webgl .lgx-artifact-canvas {
  opacity: 1;
}

.lgx-artifact-stage.is-webgl .lgx-artifact-fallback {
  opacity: 0;
}

.lgx-artifact-fallback {
  z-index: 1;
  perspective: 720px;
  transform-style: preserve-3d;
  transition: opacity 350ms ease;
  filter: drop-shadow(18px 22px 18px rgba(17, 17, 15, 0.2));
}

.lgx-book-cover,
.lgx-book-page,
.lgx-book-spine,
.lgx-book-ribbon {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.lgx-book-cover {
  top: 31%;
  width: 39%;
  height: 38%;
  background: #13140e;
  box-shadow: 0 12px 0 rgba(17, 17, 15, 0.18);
}

.lgx-book-cover-left {
  left: 11%;
  transform: rotateX(58deg) rotateY(9deg) rotateZ(-5deg);
  transform-origin: right center;
}

.lgx-book-cover-right {
  right: 11%;
  transform: rotateX(58deg) rotateY(-9deg) rotateZ(5deg);
  transform-origin: left center;
}

.lgx-book-page {
  top: 30%;
  width: 37%;
  height: 35%;
  border: 1px solid rgba(74, 71, 58, 0.24);
  background:
    repeating-linear-gradient(to bottom, transparent 0 15%, rgba(74, 71, 58, 0.34) 15.5% 16.2%, transparent 16.7% 24%),
    #fbf7ec;
  box-shadow: 0 5px 0 rgba(74, 71, 58, 0.10);
}

.lgx-book-page-left {
  left: 13%;
  transform: rotateX(58deg) rotateY(11deg) rotateZ(-4deg) translateZ(8px);
  transform-origin: right center;
}

.lgx-book-page-right {
  right: 13%;
  transform: rotateX(58deg) rotateY(-11deg) rotateZ(4deg) translateZ(8px);
  transform-origin: left center;
}

.lgx-book-spine {
  top: 31%;
  left: 48.8%;
  width: 2.4%;
  height: 38%;
  background: #dbb243;
  transform: rotateX(58deg) translateZ(5px);
}

.lgx-book-ribbon {
  top: 61%;
  left: 61%;
  width: 5%;
  height: 14%;
  background: #c8ff1a;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotateX(58deg) rotateZ(4deg) translateZ(7px);
}

.lgx-hero-index {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: end;
  gap: 12px;
  color: var(--ink);
  font-family: var(--ui);
}

.lgx-hero-index span {
  font-family: var(--display);
  font-size: 2.9rem;
  font-style: normal;
  line-height: 0.8;
}

.lgx-hero-index small {
  padding-bottom: 2px;
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body[data-next-experience] #gateBox.lgx-access {
  position: relative;
  z-index: 5;
  grid-column: 9 / -1;
  grid-row: 2;
  align-self: end;
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 30px !important;
  padding: clamp(24px, 3vw, 42px) !important;
  overflow: visible !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--paper-soft) !important;
  box-shadow: var(--shadow-hard) !important;
  color: var(--ink) !important;
}

body[data-next-experience] #gateBox.lgx-access::before,
body[data-next-experience] #gateBox.lgx-access::after {
  content: none !important;
}

.lgx-access-head {
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.lgx-access-head h2 {
  max-width: 290px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.lgx-duration {
  min-width: 72px;
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: end;
  border: 1px solid var(--ink);
  background: var(--acid);
  line-height: 1;
}

.lgx-duration strong {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
}

.lgx-duration span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lgx-access-intro {
  max-width: 480px;
  margin: 25px 0 30px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.next-field-label {
  display: block !important;
  margin: 0 0 9px !important;
  color: var(--ink) !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}

body[data-next-experience] .inputRow {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0 !important;
}

body[data-next-experience] #keyInput {
  min-width: 0;
  min-height: 58px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid var(--ink) !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: var(--ui) !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-next-experience] #keyInput::placeholder {
  color: #98958b !important;
  opacity: 1;
}

body[data-next-experience] #keyInput:focus {
  position: relative;
  z-index: 2;
  border: 1px solid var(--acid-deep) !important;
  outline: 3px solid var(--acid) !important;
  outline-offset: 2px !important;
  background: #fff !important;
  box-shadow:
    inset 0 -4px 0 var(--acid-deep),
    inset 0 0 0 1px var(--acid-deep) !important;
}

body[data-next-experience] #keyInput[aria-invalid="true"] {
  border-color: var(--signal) !important;
  outline-color: var(--signal) !important;
  box-shadow:
    inset 0 -4px 0 var(--signal),
    inset 0 0 0 1px var(--signal) !important;
}

body[data-next-experience] #btnCheck.primary {
  min-width: 164px;
  min-height: 58px;
  margin: 0 !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  box-shadow: none !important;
  color: var(--paper) !important;
  font-family: var(--ui) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 150ms var(--ease-out) !important;
}

body[data-next-experience] #btnCheck.primary:active {
  transform: translate(2px, 2px);
}

body[data-next-experience] #btnCheck.primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status {
  min-height: 34px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  color: var(--ink-soft) !important;
  font-size: 0.8rem !important;
  line-height: 1.45;
}

.status:empty {
  min-height: 0;
  margin-top: 0 !important;
}

.status .bad,
.status .ok,
.status-loading {
  min-height: 34px;
  padding: 8px 10px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.status .bad {
  color: var(--danger) !important;
}

.status .ok {
  color: var(--success) !important;
}

.status-loading {
  color: var(--ink-soft);
}

.loading-spinner {
  width: 14px !important;
  height: 14px !important;
  border: 1.5px solid rgba(17, 17, 15, 0.2) !important;
  border-top-color: var(--ink) !important;
}

.lgx-access-foot {
  margin-top: 28px;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lgx-footer {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 40px;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lgx-footer p {
  margin: 0;
}

body[data-next-experience] :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--acid) !important;
  outline-offset: 3px !important;
}

body[data-next-experience] .hidden {
  display: none !important;
}

/* Authenticated guide surface */
body.authed {
  background: #e7e4da !important;
}

body.authed::before {
  opacity: 0.12;
}

body.authed .lgx-masthead,
body[data-next-experience].authed .header.lgx-hero,
body.authed .lgx-footer {
  display: none !important;
}

body.authed .container.lgx-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0 !important;
  display: block;
}

body.authed #okBox {
  display: none !important;
}

body.authed #stickyHeader {
  position: sticky !important;
  top: 0;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) clamp(16px, 3vw, 38px) 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: rgba(241, 239, 232, 0.94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

body.authed #stickyHeader .sticky-content {
  width: min(100%, 1500px);
  min-height: 38px;
  margin: 0 auto;
  padding: 0 !important;
}

body.authed .sticky-badge {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--acid) !important;
  color: var(--ink) !important;
  font-size: 0.62rem !important;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.authed .sticky-label {
  color: var(--ink-muted) !important;
  font-size: 0.61rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.authed .sticky-timer {
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.04em !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  animation: none !important;
}

body.authed #iframeWrap {
  width: 100% !important;
  height: calc(100vh - 59px) !important;
  height: calc(100dvh - 59px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  box-shadow: none !important;
}

body.authed #protected {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--paper);
}

body.guide-hint-open #stickyHeader {
  display: none !important;
}

body.guide-hint-open #iframeWrap {
  height: 100vh !important;
  height: 100dvh !important;
}

@media (max-width: 520px) {
  body.authed #stickyHeader {
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      8px
      max(12px, env(safe-area-inset-left)) !important;
  }

  body.authed #stickyHeader .sticky-content {
    min-height: 34px;
    gap: 8px;
  }

  body.authed .sticky-badge {
    padding: 5px 7px !important;
    font-size: 0.55rem !important;
  }

  body.authed .sticky-countdown {
    gap: 6px;
  }

  body.authed .sticky-label {
    font-size: 0.55rem !important;
  }

  body.authed .sticky-timer {
    font-size: 1.08rem !important;
  }

  body.authed #iframeWrap {
    height: calc(100vh - 51px) !important;
    height: calc(100dvh - 51px) !important;
  }

  body.guide-hint-open #iframeWrap {
    height: 100vh !important;
    height: 100dvh !important;
  }
}

@keyframes lgx-enter-access {
  from {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Keep the hero copy at its responsive resting position from the first frame.
   An entrance transform here would override the mobile centering transform. */
body.lgx-ready .lgx-hero-copy {
  animation: none;
}

body.lgx-ready #gateBox {
  animation: lgx-enter-access 760ms 100ms var(--ease-out) both;
}

@media (hover: hover) and (pointer: fine) {
  .lgx-wordmark:hover .lgx-brand-mark {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--acid-deep);
  }

  .lgx-artifact-stage:hover::before {
    border-color: rgba(17, 17, 15, 0.5);
    transform: scale(1.025) rotate(-2deg);
  }

  body[data-next-experience] #btnCheck.primary:hover {
    background: var(--acid) !important;
    color: var(--ink) !important;
  }
}

@media (max-width: 1120px) {
  body[data-next-experience] .container.lgx-shell {
    grid-template-rows: auto auto auto auto;
  }

  body[data-next-experience] .header.lgx-hero {
    grid-column: 1 / 8;
    min-height: 520px;
  }

  body[data-next-experience] #gateBox.lgx-access {
    grid-column: 8 / -1;
  }

  .lgx-artifact-stage {
    top: 15%;
    right: -30%;
    width: min(58vw, 600px);
  }

  body[data-next-experience] .h1 {
    font-size: clamp(4.3rem, 10vw, 8rem) !important;
  }

  body[data-next-experience] .h1 em {
    margin-left: clamp(18px, 5vw, 70px);
  }

  body[data-next-experience] .inputRow {
    grid-template-columns: 1fr;
  }

  body[data-next-experience] #keyInput {
    border-right: 1px solid var(--ink) !important;
    border-bottom: 0 !important;
  }
}

@media (max-width: 820px) {
  body[data-next-experience]::before {
    background-size: 25vw 25vw;
  }

  body[data-next-experience] .container.lgx-shell {
    min-height: 100dvh;
    padding:
      max(16px, env(safe-area-inset-top))
      16px
      max(18px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: 10px;
  }

  .lgx-masthead {
    min-height: 54px;
    grid-template-columns: 1fr;
  }

  body[data-next-experience] .header.lgx-hero {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: clamp(300px, 90vw, 530px);
    padding: 24px 0 34px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .lgx-hero-copy {
    position: relative;
    z-index: 4;
    grid-column: 1 / -1;
    align-self: start;
  }

  .lgx-kicker {
    margin-bottom: 15px;
    font-size: 0.58rem;
  }

  .lgx-kicker::before {
    width: 28px;
  }

  body[data-next-experience] .h1 {
    font-size: clamp(3.45rem, 14.8vw, 6.2rem) !important;
    line-height: 0.88 !important;
  }

  body[data-next-experience] .h1.lgx-guide-title {
    font-size: clamp(2.35rem, 11.8vw, 4.8rem) !important;
    line-height: 0.9 !important;
  }

  body[data-next-experience] .h1 em {
    margin-left: clamp(20px, 9vw, 64px);
  }

  body[data-next-experience] .lgx-guide-title em {
    margin-left: clamp(12px, 4vw, 28px);
    font-size: 1.16em;
    letter-spacing: -0.058em;
  }

  body[data-next-experience] .subtitle {
    max-width: min(92%, 390px);
    margin: 18px 0 0 !important;
    color: var(--ink) !important;
    font-size: clamp(0.96rem, 4vw, 1.02rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.012em;
    line-height: 1.52 !important;
    text-wrap: pretty;
  }

  .lgx-artifact-stage {
    top: 24%;
    right: -22%;
    width: min(74vw, 430px);
    opacity: 1;
  }

  .lgx-artifact-canvas {
    display: block;
  }

  .lgx-artifact-stage.is-webgl .lgx-artifact-canvas {
    opacity: 0.43;
  }

  .lgx-artifact-fallback {
    opacity: 0.43;
  }

  .lgx-artifact-stage.is-webgl .lgx-artifact-fallback {
    opacity: 0;
  }

  .lgx-artifact-stage::before {
    opacity: 0.46;
  }

  .lgx-artifact-stage::after {
    opacity: 0.28;
  }

  .lgx-hero-index {
    margin-top: 40px;
  }

  body[data-next-experience] #gateBox.lgx-access {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 0 34px !important;
    padding: 24px !important;
    box-shadow: 5px 5px 0 var(--ink) !important;
  }

  .lgx-access-head h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .lgx-access-intro {
    margin: 22px 0 25px;
    font-size: 0.85rem;
  }

  body[data-next-experience] #keyInput,
  body[data-next-experience] #btnCheck.primary {
    min-height: 56px;
  }

  .lgx-footer {
    grid-column: 1 / -1;
    grid-row: 4;
    align-items: flex-end;
    font-size: 0.52rem;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 820px) {
    .lgx-footer {
      padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 52px));
    }
  }
}

@media (max-width: 420px) {
  .lgx-brand-mark {
    width: 40px;
    height: 40px;
  }

  .lgx-brand-lockup strong {
    font-size: 0.96rem;
  }

  body[data-next-experience] .h1 {
    font-size: clamp(3.35rem, 14.5vw, 4.4rem) !important;
  }

  .lgx-duration {
    min-width: 64px;
  }

  body[data-next-experience] #gateBox.lgx-access {
    padding: 20px !important;
  }

}

/* Archived Midnight Studio override.
   Keep the block for traceability, but do not apply it in the restored editorial theme. */
@media not all {
html {
  background: #0d0913;
}

body[data-next-experience]:not(.authed) {
  --paper: #0d0913;
  --paper-soft: #17111f;
  --ink: #f6f1e9;
  --ink-soft: #bbb2c4;
  --ink-muted: #887e91;
  --line: rgba(246, 241, 233, 0.12);
  --line-strong: rgba(246, 241, 233, 0.24);
  --acid: #c6ff3d;
  --acid-deep: #9fe816;
  --signal: #ff6645;
  --success: #5de0a4;
  --danger: #ff765e;
  --shadow-hard: 0 30px 90px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  background:
    radial-gradient(circle at 77% 28%, rgba(198, 255, 61, 0.075), transparent 27%),
    radial-gradient(circle at 12% 78%, rgba(255, 102, 69, 0.09), transparent 28%),
    #0d0913 !important;
}

body[data-next-experience]:not(.authed)::before {
  opacity: 1;
  background-image:
    radial-gradient(circle at 72% 24%, rgba(198, 255, 61, 0.13), transparent 24%),
    radial-gradient(circle at 56% 54%, rgba(118, 72, 255, 0.11), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(255, 102, 69, 0.13), transparent 24%),
    linear-gradient(rgba(246, 241, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 233, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, clamp(64px, 6.25vw, 110px) clamp(64px, 6.25vw, 110px), clamp(64px, 6.25vw, 110px) clamp(64px, 6.25vw, 110px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.88) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.88) 72%, transparent 100%);
}

body[data-next-experience]:not(.authed)::after {
  opacity: 0.055;
  filter: contrast(130%);
  mix-blend-mode: soft-light;
}

body[data-next-experience]:not(.authed) ::selection {
  background: var(--acid);
  color: #0d0913;
}

body[data-next-experience]:not(.authed) .container.lgx-shell {
  grid-template-rows: auto minmax(520px, 1fr) auto auto;
}

body[data-next-experience]:not(.authed) .lgx-masthead {
  min-height: 66px;
  padding-bottom: 18px;
  border-color: var(--line-strong);
  color: var(--ink);
}

body[data-next-experience]:not(.authed) .lgx-brand-mark {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(246, 241, 233, 0.18),
    0 10px 32px rgba(198, 255, 61, 0.18);
}

body[data-next-experience]:not(.authed) .lgx-brand-lockup strong {
  color: var(--ink);
}

body[data-next-experience]:not(.authed) .lgx-brand-lockup small {
  color: var(--ink-muted);
}

body[data-next-experience]:not(.authed) .lgx-brand-lockup b {
  border-radius: 4px;
  background: var(--acid);
  color: #0d0913;
}

body[data-next-experience]:not(.authed) .header.lgx-hero {
  min-height: clamp(500px, 68vh, 770px);
  padding: clamp(44px, 6vw, 88px) 0 34px !important;
}

body[data-next-experience]:not(.authed) .lgx-hero-copy {
  z-index: 4;
  grid-column: 1 / 8;
  max-width: 800px;
  pointer-events: none;
}

body[data-next-experience]:not(.authed) .lgx-kicker {
  width: fit-content;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding: 9px 13px;
  gap: 11px;
  border: 1px solid rgba(246, 241, 233, 0.18);
  border-radius: 999px;
  background: rgba(246, 241, 233, 0.055);
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-next-experience]:not(.authed) .lgx-kicker::before {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--acid));
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.42);
}

body[data-next-experience]:not(.authed) .lgx-kicker span {
  color: var(--acid);
}

body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
  max-width: 800px;
  color: var(--ink) !important;
  font-family: var(--display) !important;
  font-size: clamp(5rem, 7.4vw, 8.8rem) !important;
  font-weight: 720 !important;
  letter-spacing: -0.068em !important;
  line-height: 0.8 !important;
  text-wrap: initial;
}

body[data-next-experience]:not(.authed) .h1.lgx-guide-title > span {
  margin: 0 0 0.26em 0.08em;
  color: rgba(246, 241, 233, 0.88);
  font-size: 0.43em;
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

body[data-next-experience]:not(.authed) .lgx-guide-title em {
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  color: var(--ink);
  font-size: 1em;
  font-style: normal;
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

body[data-next-experience]:not(.authed) .lgx-title-word {
  background: linear-gradient(104deg, #f8f3ea 0%, #f8f3ea 25%, #dcff84 54%, #c6ff3d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(13, 9, 19, 0.28);
  paint-order: stroke fill;
  filter:
    drop-shadow(0 4px 4px rgba(13, 9, 19, 0.56))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

body[data-next-experience]:not(.authed) .h1.lgx-guide-title em::after {
  right: -0.13em;
  bottom: 0.045em;
  left: auto;
  width: 0.082em;
  height: 0.082em;
  border-radius: 50%;
  background: var(--signal);
  box-shadow:
    0 0 0 0.026em #0d0913,
    0 0 22px rgba(255, 102, 69, 0.62);
  transform: none;
}

body[data-next-experience]:not(.authed) .subtitle {
  max-width: 30ch;
  margin: clamp(28px, 3.3vw, 44px) 0 0 0.08em !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft) !important;
  font-size: clamp(1rem, 1.18vw, 1.12rem) !important;
  font-weight: 520 !important;
  letter-spacing: -0.018em;
  line-height: 1.62 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

body[data-next-experience]:not(.authed) .lgx-artifact-stage {
  top: 3%;
  right: -11%;
  z-index: 2;
  width: min(55vw, 760px);
  transform: rotate(-3deg);
}

body[data-next-experience]:not(.authed) .lgx-artifact-stage::before {
  inset: 8%;
  border-color: rgba(246, 241, 233, 0.16);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 102, 69, 0.13), transparent 23%),
    radial-gradient(circle at 68% 68%, rgba(198, 255, 61, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 0 80px rgba(118, 72, 255, 0.06),
    0 0 90px rgba(118, 72, 255, 0.08);
}

body[data-next-experience]:not(.authed) .lgx-artifact-stage::after {
  inset: 1%;
  opacity: 1;
  background:
    radial-gradient(circle at 64% 34%, rgba(198, 255, 61, 0.22), transparent 28%),
    radial-gradient(circle at 38% 58%, rgba(118, 72, 255, 0.19), transparent 34%),
    radial-gradient(circle at 56% 76%, rgba(255, 102, 69, 0.17), transparent 24%);
  filter: blur(34px);
  transform: rotate(3deg) scale(1.04);
}

body[data-next-experience]:not(.authed) .lgx-artifact-canvas {
  filter:
    saturate(1.15)
    drop-shadow(0 30px 32px rgba(0, 0, 0, 0.42));
}

body[data-next-experience]:not(.authed) .lgx-artifact-stage:focus-visible {
  outline-color: var(--acid);
}

body[data-next-experience]:not(.authed) .lgx-book-cover {
  background: #160b20;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.34);
}

body[data-next-experience]:not(.authed) .lgx-book-page {
  border-color: rgba(38, 25, 44, 0.2);
  background:
    repeating-linear-gradient(to bottom, transparent 0 15%, rgba(38, 25, 44, 0.2) 15.5% 16.2%, transparent 16.7% 24%),
    #f4ead9;
}

body[data-next-experience]:not(.authed) .lgx-book-spine {
  background: var(--signal);
}

body[data-next-experience]:not(.authed) #gateBox.lgx-access {
  align-self: center;
  margin: 24px 0 !important;
  padding: clamp(26px, 2.5vw, 38px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(246, 241, 233, 0.16) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(31, 23, 42, 0.96), rgba(18, 13, 25, 0.9)) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: var(--ink) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body[data-next-experience]:not(.authed) #gateBox.lgx-access::before {
  content: "" !important;
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), var(--signal), transparent);
  box-shadow: 0 0 20px rgba(198, 255, 61, 0.26);
}

body[data-next-experience]:not(.authed) .lgx-access-head {
  padding-bottom: 22px;
  border-color: var(--line);
}

body[data-next-experience]:not(.authed) .lgx-overline {
  color: var(--acid);
  font-size: 0.61rem;
}

body[data-next-experience]:not(.authed) .lgx-access-head h2 {
  max-width: 330px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.6rem, 3.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

body[data-next-experience]:not(.authed) .lgx-duration {
  min-width: 70px;
  padding: 9px 10px;
  align-items: center;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--acid), #e8ff9a);
  box-shadow: 0 12px 30px rgba(198, 255, 61, 0.16);
  color: #0d0913;
}

body[data-next-experience]:not(.authed) .lgx-duration strong {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 760;
  letter-spacing: -0.05em;
}

body[data-next-experience]:not(.authed) .lgx-access-intro {
  margin: 22px 0 26px;
  color: #c8bfd1;
  font-size: 0.95rem;
  line-height: 1.62;
}

body[data-next-experience]:not(.authed) .next-field-label {
  color: var(--ink-soft) !important;
}

body[data-next-experience]:not(.authed) .inputRow {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px !important;
}

body[data-next-experience]:not(.authed) #keyInput {
  min-height: 60px;
  padding: 0 17px !important;
  border: 1px solid rgba(246, 241, 233, 0.16) !important;
  border-radius: 15px !important;
  background: rgba(246, 241, 233, 0.055) !important;
  color: var(--ink) !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.04em;
}

body[data-next-experience]:not(.authed) #keyInput::placeholder {
  color: #77707f !important;
}

body[data-next-experience]:not(.authed) #keyInput:focus {
  border-color: rgba(198, 255, 61, 0.68) !important;
  background: rgba(246, 241, 233, 0.085) !important;
  box-shadow:
    0 0 0 4px rgba(198, 255, 61, 0.09),
    inset 0 0 0 1px rgba(198, 255, 61, 0.18) !important;
}

body[data-next-experience]:not(.authed) #btnCheck.primary {
  min-width: 0;
  min-height: 60px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(105deg, var(--acid), #e7ff96) !important;
  box-shadow: 0 14px 34px rgba(198, 255, 61, 0.14) !important;
  color: #0d0913 !important;
  font-size: 0.82rem !important;
  transition:
    filter 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out) !important;
}

body[data-next-experience]:not(.authed) #btnCheck.primary:active {
  transform: scale(0.985);
}

body[data-next-experience]:not(.authed) .status {
  color: var(--ink-soft) !important;
}

body[data-next-experience]:not(.authed) .lgx-access-foot {
  border-color: var(--line);
  color: var(--ink-muted);
}

body[data-next-experience]:not(.authed) .lgx-footer {
  border-color: var(--line-strong);
  color: var(--ink-muted);
}

body[data-next-experience]:not(.authed) :is(button, a, input, select, textarea):focus-visible {
  outline-color: var(--acid) !important;
}

@media (hover: hover) and (pointer: fine) {
  body[data-next-experience]:not(.authed) #btnCheck.primary:hover {
    filter: saturate(1.08) brightness(1.04);
    box-shadow: 0 18px 42px rgba(198, 255, 61, 0.22) !important;
    transform: translateY(-2px);
  }

  body[data-next-experience]:not(.authed) .lgx-wordmark:hover .lgx-brand-mark {
    box-shadow:
      0 0 0 1px rgba(246, 241, 233, 0.28),
      0 14px 38px rgba(255, 102, 69, 0.2);
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  body[data-next-experience]:not(.authed) .header.lgx-hero {
    grid-column: 1 / 8;
  }

  body[data-next-experience]:not(.authed) #gateBox.lgx-access {
    grid-column: 8 / -1;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    right: -20%;
    width: min(58vw, 680px);
  }
}

@media (min-width: 821px) {
  body[data-next-experience]:not(.authed) :is(.lgx-artifact-canvas, .lgx-artifact-fallback) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 18%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 18%, #000 40%);
  }
}

@media (max-width: 820px) {
  body[data-next-experience]:not(.authed) .container.lgx-shell {
    grid-template-rows: auto auto auto auto;
  }

  body[data-next-experience]:not(.authed) .lgx-masthead {
    min-height: 58px;
    padding-bottom: 15px;
  }

  body[data-next-experience]:not(.authed) .header.lgx-hero {
    --lgx-mobile-hero-shift: clamp(48px, 14vw, 64px);
    min-height: clamp(380px, 108vw, 560px);
    padding: 34px 0 28px !important;
  }

  body[data-next-experience]:not(.authed) .lgx-hero-copy {
    transform: translateY(var(--lgx-mobile-hero-shift));
  }

  body[data-next-experience]:not(.authed) .lgx-kicker {
    margin-bottom: 24px;
    padding: 8px 11px;
    font-size: 0.55rem;
    transform: translateY(-8px);
  }

  body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
    max-width: 100%;
    font-size: clamp(3.55rem, 15.4vw, 5.2rem) !important;
    line-height: 0.82 !important;
  }

  body[data-next-experience]:not(.authed) .h1.lgx-guide-title > span {
    margin-left: 0.05em;
    font-size: 0.52em;
  }

  body[data-next-experience]:not(.authed) .lgx-guide-title em {
    margin-left: 0;
    font-size: 1em;
  }

  body[data-next-experience]:not(.authed) .subtitle {
    max-width: min(91%, 410px);
    margin: 22px 0 0 0.05em !important;
    padding: 0;
    color: rgba(246, 241, 233, 0.78) !important;
    font-size: clamp(0.98rem, 4vw, 1.04rem) !important;
    font-weight: 520 !important;
    line-height: 1.55 !important;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    top: calc(-6% + var(--lgx-mobile-hero-shift));
    right: -36%;
    width: min(91vw, 470px);
    transform: rotate(7deg);
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage.is-webgl .lgx-artifact-canvas {
    opacity: 0.72;
  }

  body[data-next-experience]:not(.authed) #gateBox.lgx-access {
    margin: 0 0 34px !important;
    padding: 24px !important;
    border-radius: 24px !important;
  }

  body[data-next-experience]:not(.authed) .lgx-access-head h2 {
    max-width: none;
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }
}

@media (max-width: 420px) {
  body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
    font-size: clamp(3.15rem, 15.4vw, 4.2rem) !important;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    top: calc(-8% + var(--lgx-mobile-hero-shift));
    right: -42%;
    width: 98vw;
  }

  body[data-next-experience]:not(.authed) #gateBox.lgx-access {
    padding: 21px !important;
  }
}

@media (max-width: 360px) {
  body[data-next-experience]:not(.authed) .lgx-access-head {
    gap: 12px;
  }

  body[data-next-experience]:not(.authed) .lgx-access-head h2 {
    font-size: 2.2rem;
  }

  body[data-next-experience]:not(.authed) .lgx-duration {
    min-width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgx-brand-mark {
    transition: none;
  }

  .lgx-wordmark:hover .lgx-brand-mark {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lgx-artifact-canvas {
    display: none !important;
  }
}

@media (forced-colors: active) {
  .lgx-duration,
  .sticky-badge,
  .next-skip-link {
    forced-color-adjust: none;
    background: Highlight !important;
    color: HighlightText !important;
  }
}
}

/* Preserve the Midnight hero composition while the editorial palette is active. */
body[data-next-experience]:not(.authed) .header.lgx-hero {
  min-height: clamp(500px, 68vh, 770px);
  padding: clamp(44px, 6vw, 88px) 0 34px !important;
}

body[data-next-experience]:not(.authed) .lgx-hero-copy {
  z-index: 4;
  grid-column: 1 / 8;
  max-width: 800px;
  pointer-events: none;
}

body[data-next-experience]:not(.authed) .lgx-kicker {
  width: fit-content;
  margin-bottom: clamp(24px, 3vw, 38px);
}

body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
  max-width: 800px;
  font-size: clamp(5rem, 7.4vw, 8.8rem) !important;
  font-weight: 720 !important;
  letter-spacing: -0.068em !important;
  line-height: 0.8 !important;
  text-wrap: initial;
}

body[data-next-experience]:not(.authed) .h1.lgx-guide-title > span {
  margin: 0 0 0.26em 0.08em;
  font-size: 0.43em;
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

body[data-next-experience]:not(.authed) .lgx-guide-title em {
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  font-size: 1em;
  font-style: normal;
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

body[data-next-experience]:not(.authed) .subtitle {
  max-width: 30ch;
  margin: clamp(28px, 3.3vw, 44px) 0 0 0.08em !important;
  padding: 0;
  font-size: clamp(1rem, 1.18vw, 1.12rem) !important;
  font-weight: 520 !important;
  letter-spacing: -0.018em;
  line-height: 1.62 !important;
}

body[data-next-experience]:not(.authed) .lgx-artifact-stage {
  top: 3%;
  right: -11%;
  z-index: 2;
  width: min(55vw, 760px);
  transform: rotate(-3deg);
}

@media (max-width: 1180px) and (min-width: 821px) {
  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    right: -20%;
    width: min(58vw, 680px);
  }
}

@media (max-width: 820px) {
  body[data-next-experience]:not(.authed) .header.lgx-hero {
    --lgx-mobile-book-shift: clamp(48px, 14vw, 64px);
    min-height: clamp(380px, 108vw, 560px);
    padding: 34px 0 28px !important;
  }

  body[data-next-experience]:not(.authed) .lgx-hero-copy {
    transform: translateY(var(--lgx-mobile-book-shift));
  }

  body[data-next-experience]:not(.authed) .lgx-kicker {
    margin-bottom: 24px;
    font-size: 0.55rem;
    transform: translateY(-8px);
  }

  body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
    max-width: 100%;
    font-size: clamp(3.55rem, 15.4vw, 5.2rem) !important;
    line-height: 0.82 !important;
  }

  body[data-next-experience]:not(.authed) .h1.lgx-guide-title > span {
    margin-left: 0.05em;
    font-size: 0.52em;
  }

  body[data-next-experience]:not(.authed) .lgx-guide-title em {
    margin-left: 0;
    font-size: 1em;
  }

  body[data-next-experience]:not(.authed) .subtitle {
    max-width: min(91%, 410px);
    margin: 22px 0 0 0.05em !important;
    padding: 0;
    font-size: clamp(0.98rem, 4vw, 1.04rem) !important;
    font-weight: 520 !important;
    line-height: 1.55 !important;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    top: calc(-6% + var(--lgx-mobile-book-shift));
    right: -36%;
    width: min(91vw, 470px);
    transform: rotate(7deg);
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage.is-webgl .lgx-artifact-canvas,
  body[data-next-experience]:not(.authed) .lgx-artifact-fallback {
    opacity: 1;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage.is-webgl .lgx-artifact-fallback {
    opacity: 0;
  }
}

@media (max-width: 420px) {
  body[data-next-experience]:not(.authed) .h1.lgx-guide-title {
    font-size: clamp(3.15rem, 15.4vw, 4.2rem) !important;
  }

  body[data-next-experience]:not(.authed) .lgx-artifact-stage {
    top: calc(-8% + var(--lgx-mobile-book-shift));
    right: -42%;
    width: 98vw;
  }
}
