:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #04142f;
  --gold: #ffe292;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: radial-gradient(ellipse at 55% 35%, #092650, #04142f 72%); }
[hidden] { display: none !important; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(410px, 33.333vw);
  background: #04152f;
  overflow: hidden;
}

.hero-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-content {
  position: relative;
  width: 49%;
  padding: 3.4vw 1.25vw 3.1vw 2.6vw;
  text-align: center;
}

.brand { display: block; width: 88%; height: auto; margin: 0 auto .25vw; }
h1, .intro { margin: 0; text-shadow: 0 2px 12px #000a; }
h1 {
  font-size: clamp(24px, 2.78vw, 64px);
  line-height: 1.09;
  letter-spacing: -.035em;
  font-weight: 850;
  color: #ffdc67;
  background: linear-gradient(#fff2b1 13%, #ffdf67 61%, #f0a51d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.intro { margin-top: .23em; font-size: clamp(15px, 1.79vw, 42px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.actions { display: grid; justify-items: center; gap: clamp(10px, 1vw, 24px); margin-top: clamp(14px, 1vw, 23px); }
.gold-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .24em .65em .28em;
  border: clamp(2px, .21vw, 5px) solid #ffc84e;
  border-radius: 999px;
  background: linear-gradient(#097cff 0%, #004bd2 25%, #001c51 58%, #06142d 100%);
  box-shadow: inset 0 1px 2px #fff7ce, inset 0 -1px 1px #fff1a1, 0 0 4px #f6a71c;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  line-height: 1.14;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 2px #010a23b8;
  cursor: pointer;
}

.gold-button::after {
  content: '';
  position: absolute;
  inset: auto 28% -3px;
  height: 4px;
  background: radial-gradient(ellipse, #fff9cb 0%, #ffc344 40%, transparent 72%);
  pointer-events: none;
}

.gold-button:hover { filter: brightness(1.16); }
.signup-button { width: 79%; font-size: clamp(19px, 2.25vw, 52px); }
.login-button { width: 41%; color: #fff; font-size: clamp(18px, 1.98vw, 45px); }
.message { width: min(100%, 32rem); margin: 1rem auto 0; padding: .65rem .85rem; border: 1px solid #5c8ac0; border-radius: .7rem; background: #071d3e; font-weight: 600; line-height: 1.4; }

.signup-dialog {
  position: fixed;
  width: min(29rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  inset: 0;
  padding: clamp(1.1rem, 5vw, 1.75rem);
  border: 2px solid #eeb746;
  border-radius: 1.3rem;
  background: linear-gradient(140deg, #0b2e60, #071833 68%);
  color: #fff;
  box-shadow: 0 0 0 1px #173c68, 0 1rem 4rem #0009;
}

.signup-dialog::backdrop { background: #000b20bd; backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.dialog-top h2 { margin: 0; font-size: clamp(1.35rem, 5vw, 1.7rem); color: var(--gold); }
.close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #708ca8; border-radius: 50%; color: #fff; font-size: 1.7rem; line-height: 1; text-decoration: none; }
form label { display: block; margin: 1rem 0 .35rem; font-weight: 700; }
form input:is([type=text], [type=password], [type=tel]) { width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #8199b9; border-radius: .55rem; background: #05162e; color: #fff; font: inherit; }
.form-submit { width: 100%; margin-top: 1.4rem; font-size: 1.2rem; }
.form-message { margin: 0; color: #ffdf96; font-weight: 650; line-height: 1.45; }
.form-link { text-align: center; margin: 1.1rem 0 0; }
.form-link a, .training-content a { color: #9addff; }
.training-content { width: min(42rem, 100%); margin: 0 auto; padding: clamp(1.5rem, 6vw, 4rem) 1.25rem; text-align: center; }
.training-content .brand { width: min(100%, 29rem); margin-bottom: 1.5rem; }
.language-selector { display: flex; width: fit-content; gap: .35rem; align-items: center; margin: 0; }
.language-selector select { min-height: 44px; padding: .32rem .78rem; border: 1px solid #789ac6; border-radius: 999px; background: #061632f0; color: #f8e4a9; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.language-selector select:focus-visible { outline: 3px solid #70dcff; outline-offset: 3px; }
.hero > .member-controls { position: absolute; z-index: 2; top: 1rem; right: 1.2rem; }
.member-controls, .member-account { display: flex; flex-direction: column; align-items: flex-end; gap: .46rem; }
.member-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: .15rem .38rem;
  max-width: min(70vw, 19rem);
  padding: .38rem .66rem;
  border: 1px solid #436087;
  border-radius: .52rem;
  background: #0d203e;
  color: #bfcfe9;
  font-size: .75rem;
  text-align: right;
}
.member-identity strong { color: #f8df9c; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.member-logout { margin: 0; }
.member-logout button, .member-back-button {
  display: inline-flex;
  align-items: center;
  gap: .43rem;
  min-height: 2.5rem;
  padding: .42rem .72rem;
  border: 1px solid #53729c;
  border-radius: .48rem;
  background: #10233f;
  color: #e4efff;
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.member-logout button:hover, .member-back-button:hover { background: #1c3a61; border-color: #89a8d2; }
.member-page-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: 1rem clamp(1rem, 3.1vw, 3.5rem) 0; }
.member-page-bar .member-controls { margin-left: auto; }
.landing-form { position: static; max-height: none; margin: 1.5rem auto; text-align: left; }
.invite-url { display: block; width: 100%; margin: .45rem 0 1rem; padding: .6rem; }
#page-message:is([data-copy="denied"], [data-copy="registration_required"], [data-copy="invalid"]) { color: #ffb1b1; border-color: #de7777; }
.hero-content:lang(es) h1 { font-size: clamp(23px, 2.45vw, 59px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #70dcff; outline-offset: 3px; }
.preview-label { position: fixed; z-index: 1; right: .7rem; bottom: .7rem; margin: 0; padding: .42rem .68rem; border-radius: .4rem; background: #07182ef2; color: #e1ecff; font-size: .78rem; }

@media (max-width: 800px) {
  .hero { min-height: auto; flex-direction: column; background: #04152f; }
  .hero-art {
    position: static;
    order: 2;
    height: clamp(200px, 58vw, 360px);
    object-position: right center;
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
  }
  .hero-content { width: 100%; max-width: 40rem; padding: 1.65rem 1rem .45rem; }
  .hero > .member-controls { position: relative; align-self: flex-end; top: auto; right: auto; margin: .65rem .75rem 0 0; }
  .brand { width: min(90%, 30rem); margin-bottom: .6rem; }
  h1 { font-size: clamp(24px, 5.8vw, 40px); }
  .hero-content:lang(es) h1 { font-size: clamp(24px, 5.5vw, 39px); }
  .intro { margin-top: .4rem; font-size: clamp(15px, 3.75vw, 22px); }
  .actions { margin-top: 1rem; }
  .signup-button { width: min(88%, 26rem); }
  .login-button { width: min(48%, 13rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .gold-button { transition: filter .15s ease; }
}
.member-wallet-picker {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #6a83a9;
  border-radius: .45rem;
  background: #0b192e;
  color: #f3f7ff;
}
.member-wallet-help { margin: .55rem 0 .85rem; color: #d4e1f5; font-size: .9rem; }
.form-submit:disabled { opacity: .75; cursor: wait; }
