:root {
  --ethan-ink: #071512;
  --ethan-panel: #0e211d;
  --ethan-panel-2: #15342e;
  --ethan-line: rgba(153, 231, 205, 0.2);
  --ethan-text: #eefbf6;
  --ethan-muted: rgba(238, 251, 246, 0.72);
  --ethan-soft: rgba(238, 251, 246, 0.1);
  --ethan-accent: #36d89a;
  --ethan-accent-2: #b6f05d;
  --ethan-warm: #ffc85a;
}

body.ethan-guest-brand {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 18%, rgba(54, 216, 154, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(255, 200, 90, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--ethan-ink), #0a171a 54%, #101216);
  color: var(--ethan-text);
}

body.ethan-guest-brand::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

#ethan-guest-brand {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(28rem, 1fr) minmax(25rem, 0.78fr);
  padding: clamp(1.25rem, 3vw, 3rem);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.ethan-brand-nav,
.ethan-brand-copy,
.ethan-brand-sponsor {
  pointer-events: auto;
}

.ethan-brand-nav {
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  left: clamp(1rem, 2.8vw, 3rem);
  right: clamp(1rem, 2.8vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ethan-text);
}

.ethan-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.ethan-brand-mark span:first-child {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--ethan-line);
  border-radius: 0.55rem;
  color: var(--ethan-ink);
  background: linear-gradient(135deg, var(--ethan-accent), var(--ethan-accent-2));
  box-shadow: 0 12px 36px rgba(54, 216, 154, 0.24);
}

.ethan-sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--ethan-line);
  border-radius: 999px;
  color: var(--ethan-text);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ethan-sponsor-link:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 216, 154, 0.55);
  background: rgba(54, 216, 154, 0.13);
}

.ethan-brand-copy {
  align-self: center;
  max-width: 44rem;
  padding-top: 4rem;
}

.ethan-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(54, 216, 154, 0.32);
  border-radius: 999px;
  color: #dffdf1;
  background: rgba(54, 216, 154, 0.1);
  font-size: 0.85rem;
  font-weight: 700;
}

.ethan-brand-kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ethan-accent);
  box-shadow: 0 0 0 0.35rem rgba(54, 216, 154, 0.12);
}

.ethan-brand-title {
  max-width: 11ch;
  margin: 0;
  color: var(--ethan-text);
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ethan-brand-title strong {
  color: var(--ethan-accent-2);
  font-weight: 800;
}

.ethan-brand-lede {
  max-width: 37rem;
  margin: 1.35rem 0 0;
  color: var(--ethan-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.ethan-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ethan-brand-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.ethan-brand-action.primary {
  color: #06130f;
  background: linear-gradient(135deg, var(--ethan-accent), var(--ethan-accent-2));
}

.ethan-brand-action.secondary {
  border: 1px solid var(--ethan-line);
  color: var(--ethan-text);
  background: rgba(255, 255, 255, 0.07);
}

.ethan-brand-sponsor {
  align-self: end;
  justify-self: start;
  width: min(31rem, 100%);
  margin-bottom: clamp(1rem, 4vh, 3rem);
  padding: 1rem;
  border: 1px solid var(--ethan-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.ethan-sponsor-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ethan-text);
  font-size: 1.05rem;
  font-weight: 800;
}

.ethan-sponsor-name a {
  color: var(--ethan-accent-2);
  text-decoration: none;
}

.ethan-sponsor-note {
  margin-top: 0.5rem;
  color: var(--ethan-muted);
  line-height: 1.6;
}

.ethan-sponsor-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.ethan-sponsor-strip span {
  min-height: 3.2rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.7rem;
  color: #dffdf1;
  background: rgba(5, 18, 15, 0.36);
  font-size: 0.82rem;
  line-height: 1.35;
}

body.ethan-guest-brand #root {
  position: relative;
  z-index: 2;
}

body.ethan-guest-brand[data-ethan-auth-page="true"] #root {
  min-height: 100svh;
  padding-left: min(52vw, 48rem);
}

body.ethan-guest-brand[data-ethan-auth-page="true"] #root :is(form, [data-slot="card"]) {
  border-color: rgba(54, 216, 154, 0.22) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

body.ethan-guest-brand[data-ethan-auth-page="true"] #root :is(input, button, a) {
  border-radius: 0.7rem;
}

.ethan-dc-oauth {
  border-color: rgba(54, 216, 154, 0.42) !important;
  background: linear-gradient(135deg, rgba(54, 216, 154, 0.16), rgba(182, 240, 93, 0.12)) !important;
  color: #082018 !important;
  font-weight: 800 !important;
}

.ethan-dc-oauth::before {
  content: "dc";
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-right: 0.45rem;
  border-radius: 0.4rem;
  color: #06130f;
  background: var(--ethan-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  #ethan-guest-brand {
    position: relative;
    min-height: auto;
    display: block;
    padding: 1rem;
  }

  .ethan-brand-nav {
    position: relative;
    inset: auto;
    margin-bottom: 2rem;
  }

  .ethan-brand-copy {
    max-width: none;
    padding-top: 0;
  }

  .ethan-brand-title {
    max-width: 12ch;
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .ethan-brand-sponsor {
    width: 100%;
    margin: 1.25rem 0 0;
  }

  body.ethan-guest-brand[data-ethan-auth-page="true"] #root {
    min-height: auto;
    padding: 0 1rem 2rem;
  }
}

@media (max-width: 620px) {
  .ethan-brand-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethan-brand-lede {
    font-size: 1rem;
  }

  .ethan-sponsor-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ethan-brand-copy,
  .ethan-brand-sponsor {
    animation: ethan-rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .ethan-brand-sponsor {
    animation-delay: 90ms;
  }
}

@keyframes ethan-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.ethan-home-sponsored {
  --ethan-home-bg: #101413;
  --ethan-home-panel: rgba(17, 24, 26, 0.86);
  --ethan-home-line: rgba(86, 255, 196, 0.18);
  --ethan-home-text: #f4fbf8;
  --ethan-home-muted: rgba(244, 251, 248, 0.68);
  --ethan-home-green: #20e69c;
  --ethan-home-lime: #c6ff63;
  --ethan-home-pink: #ff2f73;
  --ethan-home-blue: #5f9dff;
  background:
    radial-gradient(circle at 12% 22%, rgba(32, 230, 156, 0.15), transparent 24rem),
    radial-gradient(circle at 84% 8%, rgba(255, 47, 115, 0.11), transparent 22rem),
    linear-gradient(180deg, #111717, #121212 68%);
}

body.ethan-home-sponsored::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

body.ethan-home-sponsored #root {
  position: relative;
  z-index: 1;
}

.ethan-sponsor-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  margin-left: 0.75rem;
  padding: 0 0.86rem;
  border: 1px solid rgba(198, 255, 99, 0.48);
  border-radius: 999px;
  color: #dbfff1;
  background: rgba(32, 230, 156, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(32, 230, 156, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ethan-sponsor-nav-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(198, 255, 99, 0.72);
  background: rgba(32, 230, 156, 0.14);
}

.ethan-sponsor-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ethan-home-green);
  box-shadow: 0 0 0 0.28rem rgba(32, 230, 156, 0.16);
}

body.ethan-home-sponsored h1 {
  max-width: 12ch;
  color: var(--ethan-home-text);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ethan-title-line {
  color: #eefaf5;
}

.ethan-title-line a {
  color: var(--ethan-home-lime);
  text-decoration: none;
}

.ethan-title-accent {
  display: inline-block;
  color: #9b72ff;
  text-shadow: 0 0 34px rgba(143, 108, 255, 0.34);
}

.ethan-sponsor-rail {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  max-width: min(48rem, 100%);
  margin: 1.35rem 0 0;
  padding: 0.82rem;
  border: 1px solid rgba(32, 230, 156, 0.32);
  border-radius: 1.05rem;
  background:
    linear-gradient(135deg, rgba(32, 230, 156, 0.14), rgba(155, 114, 255, 0.08) 48%, rgba(255, 47, 115, 0.08)),
    rgba(8, 13, 14, 0.72);
  color: var(--ethan-home-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.ethan-sponsor-rail__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 11rem;
  color: var(--ethan-home-text);
  text-decoration: none;
}

.ethan-sponsor-rail__logo {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.75rem;
  color: #06140f;
  background: linear-gradient(135deg, var(--ethan-home-green), var(--ethan-home-lime));
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 14px 35px rgba(32, 230, 156, 0.22);
}

.ethan-sponsor-rail__brand span:last-child,
.ethan-sponsor-rail__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ethan-sponsor-rail__brand strong,
.ethan-sponsor-rail__copy strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.ethan-sponsor-rail__brand small,
.ethan-sponsor-rail__copy span {
  color: var(--ethan-home-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ethan-sponsor-rail__copy {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ethan-sponsor-rail__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 0.95rem;
  border-radius: 0.72rem;
  color: #06140f;
  background: linear-gradient(135deg, var(--ethan-home-green), var(--ethan-home-lime));
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.ethan-sponsor-rail__meter {
  display: grid;
  gap: 0.22rem;
  width: 2.2rem;
}

.ethan-sponsor-rail__meter span {
  display: block;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(198, 255, 99, 0.28);
}

.ethan-sponsor-rail__meter span:nth-child(1) {
  width: 100%;
  background: rgba(32, 230, 156, 0.75);
}

.ethan-sponsor-rail__meter span:nth-child(2) {
  width: 72%;
}

.ethan-sponsor-rail__meter span:nth-child(3) {
  width: 44%;
}

.ethan-code-sponsored-panel {
  position: relative !important;
}

.ethan-code-sponsor-corner {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.85rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(32, 230, 156, 0.28);
  border-radius: 999px;
  color: #dbfff1;
  background: rgba(5, 16, 15, 0.86);
  font-size: 0.72rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ethan-code-sponsor-corner span {
  color: rgba(219, 255, 241, 0.6);
}

.ethan-code-sponsor-corner strong {
  color: var(--ethan-home-lime);
}

.ethan-primary-action {
  box-shadow: 0 16px 40px rgba(255, 47, 115, 0.24) !important;
}

.ethan-doc-action,
.ethan-dc-oauth {
  border-color: rgba(32, 230, 156, 0.32) !important;
}

body.ethan-auth-sponsored .ethan-dc-oauth {
  border-color: rgba(32, 230, 156, 0.42) !important;
  background: rgba(32, 230, 156, 0.12) !important;
}

@media (max-width: 920px) {
  .ethan-sponsor-nav-pill {
    min-height: 2rem;
    padding: 0 0.7rem;
    font-size: 0.78rem;
  }

  .ethan-sponsor-rail {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    border-radius: 0.9rem;
  }

  .ethan-sponsor-rail__copy {
    padding-left: 0;
    border-left: 0;
  }

  .ethan-sponsor-rail__meter {
    display: none;
  }
}

@media (max-width: 640px) {
  .ethan-sponsor-nav-pill {
    width: fit-content;
  }

  .ethan-sponsor-rail {
    padding: 0.85rem;
  }

  .ethan-sponsor-rail__link {
    width: 100%;
  }
}
