/* The intro is the visual source of truth for every Invictus surface.
   Presentation only: signing, account ownership and payment behavior stay in their modules. */
@import url('/wallet/assets/bodoni-moda.css');

:root {
  color-scheme: dark;
  --experience-ink: #03080d;
  --experience-text: #f4ecdc;
  --experience-gold: #e5c78e;
  --experience-muted: #cbc5b8;
  --experience-line: #d9bd843d;
  --experience-glass: #07111ce6;
  --experience-serif: 'Bodoni Moda', Didot, Georgia, serif;
  --experience-sans: Arial, Helvetica, sans-serif;
  --background: #03080d;
  --foreground: #f4ecdc;
  --card: #07111c;
  --card-foreground: #f4ecdc;
  --popover: #07111c;
  --popover-foreground: #f4ecdc;
  --muted: #101c27;
  --muted-foreground: #cbc5b8;
  --border: #d9bd843d;
  --input: #d9bd845c;
  --primary: #e5c78e;
  --primary-foreground: #14100a;
  --accent: #15222f;
  --accent-foreground: #f4ecdc;
  --ring: #e5c78e;
}
html { background: var(--experience-ink); }
html body {
  margin: 0;
  color: var(--experience-text);
  background-color: var(--experience-ink) !important;
  font-family: var(--experience-sans);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #b99e6b70 #03080d;
}
html body:not(:has(> .browser)):not(.im-mobile) {
  isolation: isolate;
  min-height: 100svh;
  background-image: linear-gradient(180deg,#02070c35,#02070c66),url('/web/assets/ocean.webp') !important;
  background-position: center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}
/* Legacy moon/grid scenery must not cover the shared ocean. */
html body:not(:has(> .browser)):not(.im-mobile)::before,
html body:not(:has(> .browser)):not(.im-mobile)::after {
  content: none !important;
  animation: none !important;
}
html body[data-native-wallet] .moon-scene { display: none !important; }
html body :is(h1,h2,h3) { font-family: var(--experience-serif); font-weight: 400; }
html body :is(p,label,small) { text-wrap: pretty; }
html body :is(button,input,select,textarea) { font-family: var(--experience-sans); }
html body :is(button,a,input,select,textarea):focus-visible {
  outline: 2px solid #f6dcaa !important;
  outline-offset: 4px;
}
html body :is(button,a) { -webkit-tap-highlight-color: transparent; }
html body :is(button,input,select,textarea):disabled { cursor: not-allowed; }

/* A complete control foundation; no browser-default white buttons. */
html body .invictus-account { color: var(--experience-text); font: 17px/1.6 var(--experience-sans); }
html body .invictus-account :is(button,a.outline,a.text-button) {
  box-sizing: border-box;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px !important;
  padding: 14px 20px !important;
  border: 1px solid var(--experience-line) !important;
  border-radius: 12px !important;
  background: #0a1621c9 !important;
  color: var(--experience-text) !important;
  font: 500 17px/1.4 var(--experience-sans) !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px #fff9db08 !important;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color .22s ease,border-color .22s ease,box-shadow .22s ease;
}
html body .invictus-account :is(button.gold,button.device-continue) {
  width: 100%;
  min-height: 58px !important;
  border-color: #e5c78eae !important;
  background: linear-gradient(135deg,#dec08b1c,#07111cdd) !important;
  color: #fff1d6 !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px #ffe4b51a,0 6px 28px #0003 !important;
}
html body .invictus-account :is(button,a).text-button {
  width: 100%;
  margin: 10px 0 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--experience-muted) !important;
  box-shadow: none !important;
}
html body .invictus-account button.device-create {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--experience-muted) !important;
}
html body .invictus-account :is(.account-device-hint,.account-device-note,.account-switch-target) { text-align: center; text-wrap: pretty; }
html body .invictus-account .account-device-note { color: #b4dfc8 !important; }
html body .invictus-account button:hover:not(:disabled) {
  background-color: #caaa6920 !important;
  border-color: #e5c78eab !important;
  box-shadow: 0 0 24px #e5c78e0c !important;
}
html body .invictus-account button:disabled { opacity: .58; }
html body .invictus-account :is(input,select,textarea) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 54px !important;
  padding: 13px 16px !important;
  color: var(--experience-text) !important;
  background: #020910c9 !important;
  border: 1px solid #d9bd845c !important;
  border-radius: 12px !important;
  font: 17px/1.5 var(--experience-sans) !important;
}
html body .invictus-account input::placeholder { color: #aaa99f; opacity: 1; }
html body .invictus-account .account-field { margin: 20px 0; }
html body .invictus-account label { display: block; margin: 0 0 8px; }
html body .invictus-account :is(.micro,label) {
  color: var(--experience-muted) !important;
  font: 16px/1.65 var(--experience-sans) !important;
  letter-spacing: 0 !important;
}
html body .invictus-account > .micro { margin: 18px 0 20px; }
html body .invictus-account .section-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }
html body .invictus-account .section-line .eyebrow { margin: 0; color: var(--experience-gold) !important; font-size: 14px !important; }
html body .invictus-account .account-message {
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--experience-line) !important;
  border-radius: 12px;
  background: #0a1723ed !important;
  text-align: left;
}
html body .invictus-account .account-message.bad { color: #ffd5c2 !important; border-color: #e4a28580 !important; }
html body .invictus-account .account-message.good { color: #c8edda !important; border-color: #9bd7ba70 !important; }
html body .invictus-account .account-trigger { width: 100%; gap: 14px; text-align: left; justify-content: flex-start; }
html body .invictus-account .account-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #e5c78e14; color: var(--experience-gold); }
html body .invictus-account .account-who { min-width: 0; flex: 1; overflow-wrap: anywhere; }
html body .invictus-account .account-who strong { display: block; }
html body .invictus-account .google-status { display: inline-flex; align-items: center; gap: 7px; color: #b4dfc8; font-size: 13px; }
html body .invictus-account .google-dot { width: 6px; height: 6px; border-radius: 50%; background: #b4dfc8; }
html body .invictus-account .account-menu { position: relative; inset: auto; display: grid; gap: 8px; padding: 12px 0; background: transparent; border: 0; box-shadow: none; }
html body .invictus-account .account-menu[hidden] { display: none !important; }
html body .invictus-account .account-menu button { justify-content: flex-start; }
html body .invictus-account > a.outline { margin-top: 12px; }

/* Account: the same horizon, calm centered type, one clear next action. */
html body.experience-account { overflow-x: hidden; }
.experience-account .am-main { box-sizing: border-box; width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 28px 48px; }
.experience-account .am-top { display: flex; justify-content: space-between; align-items: center; margin: 0; gap: 20px; }
.experience-account .am-top a { min-height: 48px; font: 15px/1.4 var(--experience-sans); color: var(--experience-muted); letter-spacing: .03em; }
.experience-account .am-top a:last-child { font: 16px/1.5 var(--experience-serif); letter-spacing: .2em; color: var(--experience-gold); }
.experience-account .am-entry { width: min(100%,500px); margin: clamp(18px,4vh,54px) auto 0; }
.experience-account .am-intro { display: block; padding: 0; max-width: none; letter-spacing: normal; text-align: center; margin-bottom: 30px; }
.experience-account .am-eyebrow { margin: 0 0 15px; color: var(--experience-gold); font: 12px/1.6 var(--experience-sans); letter-spacing: .24em; }
.experience-account .am-intro h1 { margin: 0 0 18px; color: #edcf96; font: 400 clamp(44px,5.2vw,66px)/1.08 var(--experience-serif); letter-spacing: -.035em; }
.experience-account .am-intro > .am-muted { color: #e1dacb; font: 17px/1.6 var(--experience-sans); margin: 0; }
.experience-account .am-main .invictus-account {
  box-sizing: border-box;
  padding: clamp(22px,4vw,32px);
  background: linear-gradient(145deg,#0b1725d9,#020a12df);
  border: 1px solid #e0c18b47;
  border-radius: 22px;
  box-shadow: inset 0 1px #ffe9c014,0 20px 80px #0005;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.experience-account[data-account-state='signed-out'] .invictus-account > .section-line { display: none; }
.experience-account[data-account-state='signed-out'] .invictus-account > .micro { text-align: center; }
.experience-account .am-section { margin: 0 0 20px; padding: 20px; border: 1px solid var(--experience-line); border-radius: 16px; background: #06111be8; }
.experience-account .am-section h2 { font: 12px/1.6 var(--experience-sans); letter-spacing: .14em; color: var(--experience-gold); }
.experience-account .am-muted { font: 16px/1.65 var(--experience-sans); color: var(--experience-muted); }
.experience-account .am-active { font-size: 14px; color: #b4dfc8; }
.experience-account #am-current strong { font: 20px/1.4 var(--experience-sans); }
.experience-account .am-actions button { border: 1px solid var(--experience-line); border-radius: 10px; min-height: 52px; color: var(--experience-text); background: #0b1722; font: 16px/1.4 var(--experience-sans); }
.experience-account #am-status:empty { display: none; }
.experience-account #am-status { font: 16px/1.6 var(--experience-sans); color: var(--experience-muted); }
.experience-account .am-footnote { margin: 24px 0 0; text-align: center; color: #e0d3ba; font: 13px/1.8 var(--experience-sans); letter-spacing: .08em; }

/* The shared portal: I, 29, Broker, wallet, profile, settings and support. */
html body #im-root { --im-gold: var(--experience-gold); --im-text: var(--experience-text); --im-muted: var(--experience-muted); --im-line: var(--experience-line); background: var(--experience-ink); }
html body #im-root:not([data-page='world']) .im-universe,
html body[data-web-address] #im-root:not([data-page='world']) .im-universe {
  background: linear-gradient(180deg,#02070c22,#02070c55),url('/web/assets/ocean.webp') center/cover no-repeat !important;
}
html body #im-root:not([data-page='world']) :is(.iv-living-ocean,.im-nebula,.im-stardust) { opacity: 0 !important; }
html body #im-root .im-page { background: transparent !important; }
html body #im-root #im-gate {
  box-sizing: border-box;
  justify-content: center;
  gap: 24px;
  padding: 36px 24px;
  background: linear-gradient(180deg,#02070c22,#02070c55),url('/web/assets/ocean.webp') center/cover no-repeat !important;
}
html body #im-root #im-gate::before { background: none; }
html body #im-root #im-gate .im-gate-brand { flex: 0 0 auto; min-height: 0; max-width: 560px; margin: 0; padding: 0; }
html body #im-root #im-gate .im-gate-brand::before { width: 62px; height: 62px; margin-bottom: 16px; background: url('/favicon.png') center/contain no-repeat; animation: experience-glow 8s ease-in-out infinite; }
html body #im-root #im-gate :is(.im-entry-wordmark,.im-gate-brand h1),
html body[data-web-address] #im-root #im-gate .im-entry-wordmark {
  margin: 0 !important;
  color: var(--experience-gold) !important;
  font: 400 clamp(34px,7vw,48px)/1.15 var(--experience-serif) !important;
  letter-spacing: .14em !important;
  text-shadow: 0 2px 24px #0005;
}
html body #im-root #im-gate .im-entry-tagline { margin: 12px 0 0 !important; color: #e1dacb; font: 17px/1.6 var(--experience-serif); letter-spacing: .04em; }
/* Account form states share the same readable brand scale as the entry state. */
html body #im-root #im-gate:is(.is-form,:has(#im-entry-title:not([hidden]))) .im-entry-wordmark {
  order: 0;
  font: 400 clamp(34px,7vw,48px)/1.15 var(--experience-serif) !important;
  letter-spacing: .14em !important;
}
html body #im-root #im-gate:is(.is-form,:has(#im-entry-title:not([hidden]))) .im-gate-brand::before {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
}
html body #im-root #im-gate:is(.is-form,:has(#im-entry-title:not([hidden]))) .im-entry-tagline {
  margin-top: 12px !important;
  font-size: 17px;
}
html body #im-root #im-gate .im-entry-card {
  box-sizing: border-box;
  width: min(100%,470px);
  max-width: 470px;
  margin: 0;
  padding: 26px !important;
  background: linear-gradient(145deg,#0b1725d9,#020a12df) !important;
  border: 1px solid #e0c18b47 !important;
  border-radius: 22px;
  box-shadow: inset 0 1px #ffe9c014,0 20px 80px #0005 !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html body #im-root #im-gate #im-account { padding: 0 !important; background: transparent !important; }
html body #im-root #im-gate .invictus-account > .section-line { display: none; }
html body #im-root #im-gate #im-entry-title { font: 400 30px/1.25 var(--experience-serif); margin-bottom: 20px; }
html body #im-root #im-gate .im-gate-note { margin: 18px 0 0; color: var(--experience-muted) !important; font-size: 14px; line-height: 1.7; }
html body #im-root #im-gate .im-download { min-height: 44px; border: 0 !important; box-shadow: none !important; background: none !important; margin: 0; font-size: 14px; }
html body #im-root #im-gate .invictus-account :is(button,a.outline) { border-radius: 12px !important; font-size: 17px !important; letter-spacing: .01em !important; }
html body #im-root #im-gate .invictus-account :is(button.gold,button.device-continue) { border-color: #e5c78eae !important; background: linear-gradient(135deg,#dec08b1c,#07111cdd) !important; color: #fff1d6 !important; }
html body #im-root #im-gate .invictus-account :is(button,a).text-button { border-color: transparent !important; background: transparent !important; }
html body #im-root #im-gate .invictus-account button.device-create { border-color: transparent !important; background: transparent !important; }
html body #im-root :is(.im-card,.im-support-grid button,.im-settings-row,.im-history-list > article,.im-history-list > button) {
  color: var(--experience-text);
  border-color: var(--experience-line) !important;
  border-radius: 16px !important;
  background: var(--experience-glass) !important;
  box-shadow: inset 0 1px #fff4d008 !important;
}
html body #im-root .im-lead { color: var(--experience-gold); font: 400 clamp(38px,6vw,62px)/1.15 var(--experience-serif) !important; letter-spacing: -.035em; }
html body #im-root .im-page-content { width: min(100%,680px); box-sizing: border-box; margin: 0 auto; padding: 32px 24px 72px; }
html body #im-root :is(.im-kicker,.im-screen-bar p) { color: var(--experience-gold); font-size: 13px; letter-spacing: .14em; }
html body #im-root .im-muted { color: var(--experience-muted) !important; font-size: 16px; line-height: 1.65; }
html body #im-root :is(.im-card,.im-actions,.im-support-grid,.im-page-content) > button {
  min-height: 50px;
  border-color: var(--experience-line) !important;
  color: var(--experience-text);
  background-color: #0b1722;
  font-size: 16px;
}
html body #im-root :is(.im-sheet,.im-top-menu,.im-chat-composer,.iv-i-tools[open] > div) { background: #07111cf5 !important; border-color: var(--experience-line) !important; }
html body #im-root :is(.im-sheet,.im-page-content) :is(input:not([type='checkbox']):not([type='range']),select,textarea) { background: #030b14 !important; color: var(--experience-text); border-color: #d9bd845c !important; border-radius: 12px; font-size: 16px; }

/* Native wallet and secondary destinations use the same materials and typography. */
html body[data-wallet-renewal] #shell { max-width: 680px !important; }
html body[data-wallet-renewal] #cloud-boot { max-width: 480px; margin: 12svh auto !important; }
html body[data-wallet-renewal] :is(.native-entry,#core-entry,#core-setup,#core-settings,#one-lending),
html body :is(.cloud-main .invictus-account,.mail-content #messages article,.hub-card,.node-card) {
  box-sizing: border-box;
  background: var(--experience-glass) !important;
  color: var(--experience-text);
  border: 1px solid var(--experience-line) !important;
  border-radius: 20px !important;
  padding: 26px !important;
  box-shadow: inset 0 1px #fff4d008,0 16px 60px #0003 !important;
}
html body[data-wallet-renewal] :is(.renewal-title,#core-panel h2,#core-panel h3),
html body .cloud-main h1 { color: var(--experience-gold); font-family: var(--experience-serif) !important; }
html body[data-wallet-renewal] .renewal-title { font-size: 34px; }
html body[data-wallet-renewal] :is(.renewal-available,#core-balance-note,.core-badge,.renewal-latest) { color: var(--experience-muted); font-size: 14px; line-height: 1.65; }
html body[data-wallet-renewal] .renewal-actions > button { border-color: #d9bd8466 !important; background: #07111cdd !important; font-size: 16px; }
html body[data-wallet-renewal] .renewal-nav a { font-size: 14px; color: var(--experience-muted); }
html body[data-wallet-renewal] .renewal-nav a[aria-current] { color: var(--experience-gold); }
html body[data-wallet-renewal] :is(.native-entry,.core-card) > :is(button,a.outline,a.text-button) { min-height: 52px; padding: 14px 20px; border: 1px solid var(--experience-line); border-radius: 12px; background: #0a1621; color: var(--experience-text); font-size: 16px; line-height: 1.5; }
html body :is(.mail-content,.cloud-main,.am-main) :is(input:not([type='checkbox']),textarea,select) { font-size: 17px; background: #030b14; color: var(--experience-text); border: 1px solid #d9bd845c; border-radius: 12px; }
html body :is(.notice,.lede,.small,.intro > p,.cloud-note) { color: var(--experience-muted); line-height: 1.7; }
html body .wiki-shell { background: #03080db3; }
html body :is(dialog,.web-dialog) { color: var(--experience-text); background-color: #07111cf5; border-color: var(--experience-line); }
html body dialog::backdrop { background: #01060bbd; backdrop-filter: blur(8px); }
html body[data-web-address] > header { background: transparent; }
html body[data-web-address] .am-top { margin-top: 0; }

/* Feedback fades; controls, loan stars and game targets never shift for decoration. */
@keyframes experience-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes experience-glow { 0%,100% { filter: drop-shadow(0 0 4px #e5c78e22); } 50% { filter: drop-shadow(0 0 14px #e5c78e55); } }
@media (prefers-reduced-motion: no-preference) {
  .experience-account .am-entry { animation: experience-arrive .55s ease-out both; }
  html body #im-root #im-gate .im-entry-card { animation: experience-arrive .4s ease-out both; }
}
@media (max-width: 600px) {
  .experience-account .am-main { padding: 12px 20px 36px; }
  .experience-account .am-entry { margin-top: 26px; }
  .experience-account .am-intro { margin-bottom: 24px; }
  .experience-account .am-intro h1 { font-size: clamp(40px,11vw,54px); }
  .experience-account .am-main .invictus-account { padding: 22px 20px; }
  .experience-account .am-footnote { font-size: 12px; }
  html body #im-root #im-gate { padding: 28px 20px; gap: 22px; }
  html body #im-root #im-gate .im-entry-card { padding: 22px 20px !important; }
  html body .invictus-account .account-trigger { flex-wrap: wrap; }
  html body .invictus-account .google-status { margin-left: 58px; }
  html body[data-wallet-renewal] #cloud-boot { margin: 10svh 20px !important; width: auto; }
}
@media (max-height: 700px) {
  .experience-account .am-entry { margin-top: 12px; }
  .experience-account .am-intro { margin-bottom: 20px; }
  html body #im-root #im-gate { justify-content: flex-start; }
  html body #im-root #im-gate .im-gate-brand::before { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .am-entry,html body #im-root #im-gate .im-entry-card,html body #im-root #im-gate .im-gate-brand::before { animation: none !important; }
  html body .invictus-account :is(button,a,input,select,textarea) { transition: none !important; }
}


/* Approved ocean / constellation system. Shared across every first-party destination. */
:root {
  --experience-ink: #02070b;
  --experience-text: #f3ead8;
  --experience-gold: #e7cb94;
  --experience-muted: #c0bbb1;
  --experience-glass: #050d14df;
  --experience-line: #d9bd8438;
}
html body .browser { --chrome: 68px; }
html body .address-row { grid-template-columns: 100px minmax(0,1fr) 100px; padding-inline: clamp(12px,3.5vw,56px); }
html body .history-actions :is(#back,#forward) { display: none !important; }
html body .address-form { height: 64px; padding-top: 30px; }
html body .address-emblem { width: 30px; height: 30px; top: 0; }
html body .address-form input { height: 31px; font: 18px/1.4 var(--experience-serif); }
html body #home-page .home-wordmark { top: 39%; }
html body #home-page .home-wordmark h1 { margin: 0 0 22px; font-size: clamp(42px,9.3vw,174px); font-weight: 400; letter-spacing: .19em; padding-left: .19em; }
html body #home-page .home-wordmark > p:not(.home-device-status) { font: 23px/1.5 var(--experience-serif); letter-spacing: .035em; }
html body #home-page .home-signin,
html body .invictus-account button.device-continue,
html body #im-root #im-gate .invictus-account button.device-continue {
  position: relative; isolation: isolate; display: flex; flex-direction: row; align-items: center; justify-content: center;
  width: min(100%,310px); min-width: 0; min-height: 62px !important; margin: 32px auto 0; padding: 14px 24px !important;
  color: #f6eddc !important; font: 500 20px/1.4 var(--experience-sans) !important; letter-spacing: .01em !important;
  border: 1px solid #d8b779 !important; border-radius: 8px !important;
  background: linear-gradient(125deg,#e3c38d0a,transparent 55%),#03090ed9 !important;
  box-shadow: inset 0 1px #ffe5b31a,0 7px 28px #0003 !important;
  transition: border-color .24s,box-shadow .24s,background-color .24s;
}
html body #home-page .home-signin::before,
html body .invictus-account button.device-continue::before {
  content: ''; position: absolute; top: -1px; left: 24%; width: 60px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg,transparent,#fff6dd,transparent); box-shadow: 0 0 11px 2px #e9c58b55; border-radius: 50%;
}
html body #home-page .home-signin:hover,
html body .invictus-account button.device-continue:hover:not(:disabled) {
  border-color: #f2d9ab !important; box-shadow: inset 0 1px #ffe5b333,0 0 28px #dcb87818 !important;
}
html body #home-page .home-device-status { margin: 10px auto 0; max-width: 42ch; font: 15px/1.65 var(--experience-sans); color: var(--experience-muted); letter-spacing: 0; }
html body #home-page .home-search-open,html body #home-page .install-link { top: 22px; font: 16px var(--experience-serif); }
html body #home-page .home-search-open { left: clamp(20px,3vw,52px); }
html body #home-page .install-link { right: clamp(20px,3vw,52px); }
html body #home-page .home-links { gap: 0; width: max-content; max-width: 100%; bottom: 24px; }
html body #home-page .home-links a { min-height: 48px; padding: 10px 26px; font: 17px/1.4 var(--experience-serif); background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
html body #home-page .home-links a+a::before { display: block; }
html body.experience-account .am-main { min-height: 100svh; display: flex; flex-direction: column; max-width: none; padding: 20px clamp(20px,3vw,50px) 24px; }
html body.experience-account[data-web-address] .am-top { display: none; }
html body.experience-account .am-entry { width: min(100%,560px); margin: clamp(36px,10vh,96px) auto 50px; }
html body.experience-account .am-emblem { display: block; width: 56px; height: 56px; object-fit: contain; margin: 0 auto 18px; }
html body.experience-account .am-eyebrow { font: 19px/1.4 var(--experience-serif); letter-spacing: .38em; margin-bottom: 20px; padding-left: .38em; color: #e9ddc3; }
html body.experience-account .am-intro h1 { font: 400 clamp(44px,5.4vw,78px)/1.16 var(--experience-serif); letter-spacing: -.035em; color: #f5e8cb; margin-bottom: 16px; }
html body.experience-account .am-intro > .am-muted { font: 22px/1.5 var(--experience-serif); color: #eee2cb; }
html body.experience-account .am-intro { margin-bottom: 25px; }
html body.experience-account .am-main .invictus-account:has(> .device-continue),
html body .cloud-main .invictus-account:has(> .device-continue),
html body #im-root #im-gate .im-entry-card:has(.device-continue) {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important;
}
html body .invictus-account:has(> .device-continue) > .section-line { display: none; }
html body .invictus-account button.device-continue { margin-top: 0; width: min(100%,340px); }
html body .invictus-account > .account-device-hint { margin: 18px auto 3px; font: 15px/1.6 var(--experience-sans) !important; text-align: center; color: #e5dfd1 !important; }
html body .invictus-account > .account-device-method { margin: 0 auto 16px; font: 14px/1.6 var(--experience-sans) !important; text-align: center; color: #bdb8ae !important; }
html body .invictus-account .account-message { max-width: 460px; margin-inline: auto !important; }
html body.experience-account .am-footnote { margin: 52px auto 0; font-size: 11px; letter-spacing: .16em; color: #c4baa5; }
html body.experience-account .am-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: auto; font: 15px/1.5 var(--experience-serif); letter-spacing: .03em; color: #d8c6a5; }
html body.experience-account .am-footer span:last-child { letter-spacing: .22em; }
html body #im-root #im-gate { gap: 28px; justify-content: flex-start; padding-top: clamp(40px,10vh,96px); }
html body #im-root #im-gate .im-gate-brand > img { width: 56px; height: 56px; margin-bottom: 18px; object-fit: contain; }
html body #im-root:not([data-page='feed']) #im-gate .im-download { display: none; }
html body #im-root #im-gate .im-entry-card:has(.device-continue) { max-width: 520px; }
html body #im-root #im-gate .im-entry-card:has(.device-continue) #im-entry-title { display: none; }
html body #im-root #im-gate .im-gate-note { color: #bdb8ae !important; letter-spacing: .04em; }
html body #im-root #im-gate .im-download { font-size: 13px; color: #bdb8ae; }
/* A single scene follows embedded pages; media and WRLD retain their own canvas. */
html body[data-web-address='broker.i'] #im-root .im-universe,
html body[data-web-address] #im-root:not([data-page='world']) .im-universe {
  background: linear-gradient(180deg,#02070c22,#02070c55),url('/web/assets/ocean.webp') center/cover no-repeat !important;
}
html body .wiki-shell { border-color: var(--experience-line); background: #030a10cf; }
@keyframes invictus-edge-light { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@media(prefers-reduced-motion:no-preference) {
  html body #home-page .home-signin::before,html body .invictus-account button.device-continue::before { animation: invictus-edge-light 6s ease-in-out infinite; }
}
@media(max-width:700px) {
  html body .browser { --chrome: 64px; }
  html body .address-row { grid-template-columns: 96px minmax(0,1fr) 96px; padding-inline: 4px; }
  html body .address-form { height: 60px; }
  html body .address-form input { font-size: 16px; }
  html body #home-page .home-wordmark { top: 40%; padding-inline: 18px; }
  html body #home-page .home-wordmark h1 { font-size: clamp(30px,9vw,64px); letter-spacing: .10em; padding-left: .10em; margin-bottom: 18px; }
  html body #home-page .home-wordmark > p:not(.home-device-status) { font-size: 20px; }
  html body #home-page .home-signin { width: 240px; margin-top: 28px; min-height: 58px !important; font-size: 18px !important; }
  html body #home-page .home-search-open,html body #home-page .install-link { top: 12px; font: 14px var(--experience-sans); }
  html body #home-page .home-search-open { left: 18px; }
  html body #home-page .install-link { right: 18px; }
  html body #home-page .home-links { width: 100%; padding: 0 8px; bottom: 20px; flex-wrap: wrap; }
  html body #home-page .home-links a { padding: 10px 12px; font-size: 16px; }
  html body.experience-account .am-main { padding: 20px 20px 24px; }
  html body.experience-account .am-entry { margin-top: clamp(30px,7vh,62px); margin-bottom: 38px; }
  html body.experience-account .am-emblem { width: 48px; height: 48px; }
  html body.experience-account .am-intro h1 { font-size: clamp(42px,11vw,64px); }
  html body.experience-account .am-intro > .am-muted { font-size: 20px; }
  html body.experience-account .am-footer { font-size: 12px; }
  html body #im-root #im-gate { padding: 28px 22px; }
}
@media(max-height:600px) {
  html body #home-page .home-wordmark { position: relative; top: auto; left: auto; transform: none; padding: 76px 20px 34px; }
  html body #home-page .home-wordmark h1 { font-size: clamp(36px,7vw,90px); margin-bottom: 10px; }
  html body #home-page .home-links { position: relative; left: auto; transform: none; bottom: auto; margin: 0 auto 20px; }
  html body.experience-account .am-entry { margin: 22px auto 36px; }
}
@media(prefers-reduced-motion:reduce) {
  html body #home-page .home-signin::before,html body .invictus-account button.device-continue::before { animation: none; }
}
html body.experience-account .am-footer .am-footnote { margin: 0; align-self: center; font: 11px/1.6 var(--experience-sans); letter-spacing: .14em; color: #c4baa5; }
@media(max-width:700px) {
 html body.experience-account .am-footer { flex-wrap: wrap; }
 html body.experience-account .am-footer .am-footnote { order: -1; flex: 0 0 100%; margin: 0 0 6px; }
}
@media(max-width:370px) { html body #home-page .home-links a { font-size: 14px; padding-inline: 8px; } }
/* Deliberate account recovery stays secondary to the single Sign in action. */
html body .invictus-account .account-entry-options { margin:12px auto 0; max-width:340px; text-align:center; }
html body .invictus-account .account-entry-options summary { min-height:44px; padding:12px; cursor:pointer; list-style:none; color:#bcb2a1; }
html body .invictus-account .account-entry-options summary::-webkit-details-marker { display:none; }
html body .invictus-account .account-entry-options button { display:block; width:100%; min-height:44px; margin:2px 0; }
html body .invictus-account .account-setup-title { margin:0 0 18px; color:#f0e6d0; font:28px/1.25 var(--experience-serif); }
/* The original ocean remains still in composition while its light breathes. */
html body .home-environment::before,html body.experience-account .am-main::before { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 77%,#e8c7871c,transparent 37%),radial-gradient(2px 2px at 22% 22%,#e7d4a878,transparent),radial-gradient(1px 1px at 69% 14%,#d2e8ff80,transparent),radial-gradient(2px 2px at 82% 35%,#d2e8ff65,transparent),radial-gradient(1px 1px at 37% 40%,#fff1c972,transparent); opacity:.45; }
html body.experience-account .am-main::before { position:fixed; z-index:-1; }
@media(prefers-reduced-motion:no-preference) { html body .home-environment::before,html body.experience-account .am-main::before { animation:invictus-ocean-light 11s ease-in-out infinite alternate; } }
@keyframes invictus-ocean-light { from { opacity:.2; transform:translate3d(-.35%,0,0); } to { opacity:.8; transform:translate3d(.35%,-.25%,0); } }
html[data-ambient-paused='true'] body .home-environment::before,html[data-ambient-paused='true'] body.experience-account .am-main::before,html[data-ambient-paused='true'] body .invictus-account button.device-continue::before { animation-play-state:paused!important; }

/* Nico's approved mobile intro, November 3: one complete screen of ocean and
   sky, with real account controls over the scene. Keep the image on the main
   layer so decorative pseudo-elements can never replace it again. */
html body[data-address='invictus.i'] > .browser { grid-template-rows:minmax(0,1fr); }
html body[data-address='invictus.i'] > .browser > .browser-chrome { display:none!important; }
html body #home-page { width:100%; height:100%; min-height:0; overflow:hidden!important; }
html body #home-page .home-environment {
  background:#02070d url('/web/assets/ocean.webp') center/cover no-repeat!important;
  animation:none!important; z-index:0;
  /* The landscape source's 64% horizon becomes 54% in the portrait scene. */
  transform:scale(1.5); transform-origin:50% 84%;
}
html body #home-page .home-environment::after { background:linear-gradient(#02070b08,transparent 55%,#00000012); }
html body #home-page :is(.home-search-open,.install-link,.home-links) { display:none!important; }
html body #home-page .home-intro-emblem {
  position:absolute; top:max(6.6%,env(safe-area-inset-top,0px)); left:50%;
  transform:translateX(-50%); width:clamp(28px,7vw,46px); height:clamp(28px,7vw,46px);
  object-fit:contain; filter:drop-shadow(0 0 8px #e9b86824); pointer-events:none; z-index:1;
}
html body #home-page .home-wordmark {
  position:absolute; top:25.2%; left:0; width:100%; padding:0 max(24px,env(safe-area-inset-left,0px)) 0 max(24px,env(safe-area-inset-right,0px));
  transform:none; text-align:center; z-index:1;
}
html body #home-page .home-wordmark h1 {
  margin:0; padding:0 0 0 .105em; font:400 clamp(34px,12.1vw,140px)/1.1 var(--experience-serif);
  letter-spacing:.105em; color:#edcf94!important; background:none!important;
  -webkit-text-fill-color:#edcf94; text-shadow:0 1px 1px #21170a,0 0 30px #f5ce870c;
  white-space:nowrap;
}
html body #home-page .home-wordmark > p:not(.home-device-status) {
  margin:clamp(15px,2.2vh,24px) 0 0; font:400 clamp(19px,4.9vw,29px)/1.35 var(--experience-serif);
  letter-spacing:.01em; color:#f5ead5;
}
html body #home-page .home-entry-actions {
  position:absolute; top:72.2%; left:50%; transform:translateX(-50%);
  display:grid; gap:clamp(12px,1.6dvh,18px); width:min(77.5%,380px); max-width:calc(100% - 48px); z-index:1;
}
html body #home-page :is(.home-signin,.home-create) {
  position:relative; display:flex; align-items:center; justify-content:center; gap:clamp(14px,4vw,25px);
  width:100%; max-width:none; min-width:0; height:clamp(56px,7.2dvh,70px); min-height:56px!important;
  margin:0; padding:8px 18px!important; overflow:visible; border:1px solid #d7ac6c!important;
  border-radius:clamp(12px,3.2vw,18px)!important; color:#fff3dc!important;
  font:400 clamp(22px,5.65vw,29px)/1.2 var(--experience-serif)!important; letter-spacing:0!important;
  background:linear-gradient(125deg,#b595651a,transparent 65%),#03080bc9!important;
  box-shadow:inset 0 1px #ffe5b323,0 6px 28px #0004!important;
  backdrop-filter:blur(13px); -webkit-backdrop-filter:blur(13px);
  transition:border-color .22s,box-shadow .22s,background-color .22s;
}
html body #home-page .home-create {
  height:clamp(50px,5.9dvh,60px); min-height:50px!important; border-color:#b9a17c9c!important;
  background:linear-gradient(120deg,#a08a5a08,transparent),#02070ac9!important;
}
html body #home-page .home-signin::before { top:-1px; left:36%; width:28%; }
html body #home-page .home-face-id { flex:0 0 auto; width:clamp(29px,7vw,36px); height:clamp(29px,7vw,36px); }
html body #home-page .home-signin-label { min-width:0; overflow-wrap:anywhere; }
html body #home-page .home-signin[data-session-state='signed-in'] .home-signin-label { font-size:clamp(16px,4vw,21px); }
html body #home-page :is(.home-signin,.home-create):hover { border-color:#ffe0a9!important; box-shadow:inset 0 1px #ffe5b333,0 0 25px #dcb87820!important; }
html body #home-page :is(.home-signin,.home-create):focus-visible { outline:2px solid #ffe5b1!important; outline-offset:5px; }
html body #home-page .home-device-status {
  position:absolute; top:100%; left:-12px; right:-12px; max-width:none; margin:10px 0 0;
  text-align:center; color:#eee0c9; font:13px/1.35 var(--experience-sans); letter-spacing:0;
}
html body #home-page .home-device-status[hidden] { display:none!important; }
html body #home-page .home-intro-address {
  position:absolute; left:0; right:0; bottom:max(3.8%,calc(env(safe-area-inset-bottom,0px) + 10px));
  text-align:center; color:#f5ecd9; font:400 clamp(16px,3.8vw,21px)/1.2 var(--experience-serif); letter-spacing:.035em; z-index:1;
}
@media(max-aspect-ratio:1/1) {
  html body #home-page .home-environment {
    background-image:url('/web/assets/intro-ocean-mobile.webp')!important;
    background-position:center!important; background-size:100% 100%!important; transform:none;
  }
}
@media(max-height:640px) and (max-aspect-ratio:1/1) {
  html body #home-page .home-entry-actions {
    top:auto; bottom:max(70px,calc(env(safe-area-inset-bottom,0px) + 48px));
  }
}
@media(max-height:540px) and (orientation:landscape) {
  html body #home-page .home-intro-emblem { top:max(4%,env(safe-area-inset-top,0px)); width:26px; height:26px; }
  html body #home-page .home-wordmark { top:23%; padding-inline:24px; }
  html body #home-page .home-wordmark h1 { font-size:clamp(38px,8.5vw,78px); }
  html body #home-page .home-wordmark > p:not(.home-device-status) { margin-top:8px; font-size:18px; }
  html body #home-page .home-entry-actions { top:68%; grid-template-columns:1fr 1fr; width:min(80%,600px); gap:14px; }
  html body #home-page :is(.home-signin,.home-create) { height:50px; min-height:50px!important; font-size:22px!important; border-radius:12px!important; }
  html body #home-page .home-face-id { width:27px; height:27px; }
  html body #home-page .home-intro-address { bottom:max(3%,calc(env(safe-area-inset-bottom,0px) + 5px)); font-size:15px; }
  html body #home-page .home-device-status { margin-top:5px; font-size:12px; }
}
html[data-ambient-paused='true'] body #home-page .home-signin::before { animation-play-state:paused!important; }

/* Apple safe areas: keep account controls clear of system UI while the ocean fills every edge. */
html body.experience-account .am-main {
  box-sizing:border-box;
  min-height:100svh;
  min-height:100dvh;
  padding:calc(20px + env(safe-area-inset-top,0px))
    calc(clamp(20px,3vw,50px) + env(safe-area-inset-right,0px))
    calc(24px + env(safe-area-inset-bottom,0px))
    calc(clamp(20px,3vw,50px) + env(safe-area-inset-left,0px));
}
html body.experience-account .am-top,
html body.experience-account .am-footer { flex-shrink:0; }
html body.experience-account .am-top a { display:inline-flex; align-items:center; min-height:48px; }
@media(max-width:700px) {
  html body.experience-account .am-main {
    padding-left:calc(20px + env(safe-area-inset-left,0px));
    padding-right:calc(20px + env(safe-area-inset-right,0px));
  }
}
