/* The Early Access screen of Hero Dirt (EA2, web/play/ea.js; docs/EARLY-ACCESS.md § 2 B-E). The gameplay video fills it,
   darkened; gamelarp's own bar on top; one big card in the middle (Proto 00 big, the Hero Dirt logo, one line, three perks
   with their pictures, the price, one button, one line of small print). The panel (account, pay) is gamelarp's own sheet:
   night and sapphire, play.css's tokens (19 nov, Julius: the buyer must never feel they left gamelarp). "You're in."
   takes the middle when it is paid. Hero Dirt's colours (ink, sand, terracotta) only for the game's own promo: the card,
   its button and You're in. Quiet motion: a calm intro, a card that lifts a little under the mouse. */

.ea {
  --ink: #16120F; --sand: #E8D9B8; --terra: #C4572B; --night: #1A1410;
  --terra-hi: #D66A3C; --terra-lo: #A8461F;
  --sand-2: rgba(232, 217, 184, .74); --sand-3: rgba(232, 217, 184, .52);
  --edge: rgba(232, 217, 184, .12); --edge-2: rgba(232, 217, 184, .2);
  --pane: rgba(22, 17, 13, .72); --pane-solid: rgba(26, 20, 16, .97);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar: 68px;
  position: absolute; inset: 0; z-index: 90; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--sand); font-family: var(--f);
  display: grid; grid-template-rows: auto 1fr;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.ea.leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }

/* ---------- behind: the video (or only its poster), darkened so the words read ---------- */
.ea-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.ea-bg img, .ea-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ea-bg img { transform: scale(1.04); transition: transform 8s var(--ease); }
.ea.on .ea-bg img { transform: none; }
.ea-bg video { opacity: 0; transition: opacity 1.2s var(--ease); }
.ea-bg.playing video { opacity: 1; }
/* (Julius 19 nov, evening: the video more in the background, so the button comes first; the mix is soft already) */
.ea-shade { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 52%, rgba(10, 9, 12, .5), rgba(10, 9, 12, .2) 70%),
    linear-gradient(180deg, rgba(7, 11, 22, .8) 0%, rgba(10, 9, 12, .3) 18%, rgba(10, 9, 12, .3) 62%, rgba(10, 9, 12, .88) 100%); }

/* ---------- on top: gamelarp's own bar (play.css's night and frost) ---------- */
.ea-top { position: relative; z-index: 2; height: calc(var(--bar) + var(--st)); display: flex; align-items: center; gap: 28px;
  padding: var(--st) calc(28px + var(--sr)) 0 calc(28px + var(--sl));
  background: linear-gradient(180deg, rgba(7, 11, 22, .86), rgba(7, 11, 22, .62));
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line); color: var(--frost); }
.ea-gl { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; margin-left: -6px; border-radius: 12px; color: var(--frost); text-decoration: none; flex: none; }
.ea-gl .mk { height: 32px; width: auto; display: block; }
.ea-gl .wm { height: 17px; width: auto; display: block; }
.ea-gl:hover { background: var(--tint); }
.ea-gl:focus-visible, .ea-nav a:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.ea-nav { display: flex; gap: 4px; }
.ea-nav a { height: 40px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; color: var(--haze); text-decoration: none;
  font-size: 15px; font-weight: 650; transition: color .15s, background-color .15s; }
.ea-nav a:hover { color: var(--frost); background: var(--tint); }
.ea-who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ea-login { height: 40px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--sap); color: #fff; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 6px 18px -8px var(--btn-sh, rgba(10, 24, 80, .5)), inset 0 1px 0 rgba(255, 255, 255, .18); transition: background-color .15s; }
.ea-login:hover { background: var(--sap-hi); }
.ea-me { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 4px; border-radius: 99px; background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; color: var(--frost); }

/* ---------- the middle: the offer ---------- */
.ea-stage { min-height: 0; display: grid; align-content: center; justify-items: center; gap: clamp(12px, 2vh, 20px);
  padding: clamp(14px, 3vh, 40px) calc(32px + var(--sr)) calc(clamp(16px, 3.4vh, 40px) + var(--sb)) calc(32px + var(--sl));
  transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease); }
.ea-offers { display: flex; gap: 24px; justify-content: center; width: 100%; }

.ea-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center;
  width: min(1120px, 100%); border-radius: 28px; background: var(--pane); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(232, 217, 184, .07);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ea-card { background: var(--pane-solid); } }
@media (hover: hover) { .ea-card:hover .ea-art > img { transform: scale(1.025); } }

/* (Julius 19 nov, evening: it looked like you buy a bike) the game itself: its key art, in a frame on the left */
.ea-art { position: relative; align-self: stretch; min-height: 0; margin: 10px 0 10px 10px; border-radius: 20px; overflow: hidden; background: #1A1410; }
.ea-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 42%; display: block;
  transition: transform 1.2s var(--ease); }
.ea-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 244, 222, .08); }
.ea-glow { position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1.5; transform: translate(-50%, -50%); border-radius: 50%; opacity: .8;
  background: radial-gradient(closest-side, rgba(214, 106, 60, .46), rgba(196, 87, 43, .14) 55%, rgba(196, 87, 43, 0) 100%);
  filter: blur(6px); transition: opacity .8s var(--ease); pointer-events: none; }

.ea-info { display: grid; gap: clamp(10px, 1.6vh, 16px); justify-items: start; padding: clamp(24px, 3.6vh, 44px) clamp(26px, 3vw, 48px) clamp(24px, 3.6vh, 44px) clamp(22px, 2.6vw, 40px); }
.ea-label { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-hi); white-space: nowrap; }
.ea-title { margin: 2px 0 0; font-size: clamp(38px, 5vh, 54px); line-height: 1; font-weight: 850; font-stretch: 110%; letter-spacing: -.02em; color: #F4E9D2; }
.ea-logo { height: clamp(64px, 10vh, 108px); width: auto; max-width: 100%; display: block; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .45)); }
.ea-pitch { margin: -2px 0 0; font-size: clamp(20px, 2.6vh, 26px); line-height: 1.2; font-weight: 760; font-stretch: 106%; letter-spacing: -.01em; color: #FFF4DE; }
.ea-perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: clamp(8px, 1.3vh, 12px); width: 100%; }
.ea-perks li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.ea-perks li > span:last-child { display: grid; gap: 1px; }
.ea-perks b { font-size: clamp(15px, 1.9vh, 17px); line-height: 1.25; font-weight: 740; color: #F4E9D2; }
.ea-perks small { font-size: 13.5px; line-height: 1.3; color: var(--sand-3); }
/* (each perk's picture on a tile: the trail, the bike, the Dirt coin and the Summit Kit) */
.ea-pics { position: relative; width: 52px; height: 40px; border-radius: 11px; overflow: hidden; display: block;
  background: radial-gradient(closest-side, rgba(214, 106, 60, .3), rgba(196, 87, 43, .06)), rgba(232, 217, 184, .06); border: 1px solid var(--edge); }
.ea-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ea-perks li:nth-child(2) .ea-pics img { object-fit: contain; padding: 3px; }
.ea-pics img:nth-child(1):not(:last-child) { width: 56%; left: 4%; object-fit: contain; }
.ea-pics img:nth-child(2) { object-fit: contain; }
.ea-pics img:nth-child(1):not(:last-child) + img { width: 56%; left: auto; right: 2%; }
.ea-price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 10px; }
.ea-price b { font-size: clamp(40px, 5.8vh, 60px); line-height: 1; font-weight: 820; letter-spacing: -.03em; color: #FFF7E6; }
.ea-price span { font-size: 15px; font-weight: 650; color: var(--sand-3); }

/* (Julius 19 nov, late) the one orange thing on the screen, Hero Dirt's own colour: plain, no gradient, no glow, no
   price in it (the price stands right above it; on a phone beside it) */
.ea-cta { position: relative; overflow: hidden; width: 100%; height: 58px; border: 0; border-radius: 14px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center;
  background: #B94E26; color: #fff; font-size: 17.5px; font-weight: 760;   /* (a touch deeper than --terra: white text 5:1) */ letter-spacing: -.005em;
  transition: transform .18s var(--ease), background .2s; }
@media (hover: hover) { .ea-cta:hover { background: var(--terra); } }
.ea-cta:active { transform: translateY(1px) scale(.99); }
.ea-cta:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.ea-bar { display: none; }

.ea-trust { margin: -2px 0 0; display: flex; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.4; color: var(--sand-3); }
.ea-trust svg.i { width: 14px; height: 14px; flex: none; color: var(--sand-2); }

.ea-promise { margin: 0; max-width: 640px; text-align: center; font-size: 13.5px; line-height: 1.45; color: rgba(232, 217, 184, .66); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }

/* (EA3, playtest codes) an ended playtest: thanks, over the offer */
.ea-ended { margin: 0; max-width: 640px; padding: 11px 18px; border-radius: 14px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--sand-2);
  background: rgba(22, 18, 15, .6); border: 1px solid var(--edge-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ea-ended b { color: #F4E9D2; }

/* "Have a playtest code?", quiet under the offer */
.ea-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: -6px; }
.ea-alt:empty { display: none; }
.ea-codebtn { min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--sand-3); font-size: 13.5px; font-weight: 650;
  text-decoration: underline; text-decoration-color: rgba(232, 217, 184, .3); text-underline-offset: 3px; }
.ea-codebtn:hover { color: var(--sand); text-decoration-color: var(--sand-2); }
.ea-codebtn:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- the intro: the card, then its picture, then the small print (one calm movement) ---------- */
.ea-card, .ea-promise { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.ea-art > img { opacity: 0; transition: opacity 1s var(--ease) .2s, transform 1.2s var(--ease); }
.ea.on .ea-card { opacity: 1; transform: none; transition: opacity .8s var(--ease) .08s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.ea.on .ea-promise { opacity: 1; transform: none; transition-delay: .4s, .4s; }
.ea.on .ea-art > img { opacity: 1; transform: none; }

/* ---------- the panel: gamelarp's own account sheet and kassa (C, D), on the same screen ---------- */
.ea-dim { position: absolute; inset: 0; z-index: 4; background: rgba(4, 7, 15, .55); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.ea[data-panel="open"] .ea-dim { opacity: 1; pointer-events: auto; }
.ea[data-panel="open"] .ea-stage { opacity: 0; transform: scale(.97); pointer-events: none; }

/* (Julius 19 nov, evening: not a menu at the side) a window in the middle, as gamelarp's own account popup: the game and
   what you buy on the left, the steps on the right */
.ea-panel { position: absolute; z-index: 5; left: 50%; top: calc(50% + (var(--bar) + var(--st)) / 2);
  width: min(940px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); overflow: hidden;
  border-radius: 26px; background: var(--deep, #0D1322); color: var(--frost); border: 1px solid var(--line2);
  box-shadow: 0 50px 120px -24px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translate(-50%, -48%) scale(.97);
  transition: opacity .3s var(--ease), transform .5s var(--ease), width .45s var(--ease), visibility 0s linear .5s; }
.ea[data-panel="open"] .ea-panel { opacity: 1; visibility: visible; transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), transform .5s var(--ease), width .45s var(--ease), visibility 0s; }
.ea-panel.paying { width: min(1060px, calc(100% - 48px)); }
.ea-pside { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; gap: 20px;
  min-height: min(580px, calc(100dvh - var(--bar) - var(--st) - var(--sb) - 48px)); padding: 26px 28px 30px; background: #0A0F1C; }
.ea-pkey { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; display: block; }
.ea-pside::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 11, 22, .6) 0, rgba(7, 11, 22, 0) 24%, rgba(7, 11, 22, 0) 42%, rgba(7, 11, 22, .9) 78%, #0A0F1C 100%); }
.ea-pmain { position: relative; min-width: 0; max-height: calc(100dvh - var(--bar) - var(--st) - var(--sb) - 48px); overflow: auto; overscroll-behavior: contain;
  padding: 54px 40px 34px; display: flex; flex-direction: column; justify-content: safe center; }
/* (a short step like Pay sits in the middle of the window, not at the top of an empty column) */
.ea-pmain > * { flex: none; }
.ea-pmain > .ea-x { position: absolute; top: 12px; right: 12px; }
.ea-panel:focus { outline: none; }

.ea-pgl { display: inline-flex; align-items: center; gap: 9px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.ea-pgl .mk { height: 26px; width: auto; display: block; }
.ea-pgl .wm { height: 14px; width: auto; display: block; }
.ea-x { color: var(--haze); }

/* what you buy, under the picture: the name, with Proto 00, the price */
.ea-pwhat { display: grid; gap: 3px; min-width: 0; }
.ea-pwhat b { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.2; }
.ea-pwhat span { font-size: 14px; color: var(--haze); }
.ea-pwhat .ea-pprice { margin-top: 6px; font-size: 32px; font-weight: 820; letter-spacing: -.02em; color: #fff; }

.ea-pbody { display: grid; gap: 14px; }
.ea-pbody > * { margin: 0; }
.ea-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--haze); }
.ea-steps li { display: inline-flex; align-items: center; gap: 8px; }
.ea-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line2); margin-right: 2px; }
.ea-sn { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--haze); }
.ea-sn svg.i { width: 13px; height: 13px; }
.ea-steps li.on { color: var(--frost); }
.ea-steps li.on .ea-sn { background: var(--sap); box-shadow: none; color: #fff; }
.ea-steps li.done .ea-sn { background: rgba(127, 214, 164, .16); box-shadow: none; color: #7FD6A4; }
.ea-h { font-size: 28px; line-height: 1.1; font-weight: 820; font-stretch: 106%; letter-spacing: -.015em; color: var(--frost); }
.ea-sub { font-size: 15px; line-height: 1.45; color: var(--haze); margin-top: -6px !important; }
.ea-sub b { color: var(--frost); }
.ea-note { font-size: 13.5px; color: var(--frost); background: rgba(44, 107, 239, .14); border: 1px solid rgba(63, 123, 255, .32); border-radius: 12px; padding: 10px 12px; }

/* Google on top, white and big (as on gamelarp.com), Discord under it */
.ea-socials { display: grid; gap: 10px; margin-top: 4px; }
.ea-panel .btn.wide { height: 52px; border-radius: 14px; font-size: 15.5px; font-weight: 720; gap: 10px; }
.ea-panel .btn.google { box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .6); }
.ea-panel .btn.google svg, .ea-panel .btn.discord svg { width: 20px; height: 20px; }
.ea-or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--dim); font-size: 12.5px; font-weight: 650; }
.ea-or::before, .ea-or::after { content: ""; height: 1px; background: var(--line2); }

.ea-form { display: grid; gap: 8px; }
.ea-form .lbl { font-size: 13px; font-weight: 700; color: var(--haze); margin-top: 6px; }
.ea-form .lbl:first-child { margin-top: 0; }
.ea-form .opt { font-weight: 600; color: var(--dim); }
.ea-panel .field { height: 52px; border-radius: 14px; }
.ea-iwrap { position: relative; }
.ea-iwrap svg.i { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.ea-iwrap .field { padding-left: 44px; }
.ea-form .hint { font-size: 12.5px; margin: 0; }
.ea-panel .err { font-size: 13.5px; margin: 0; color: var(--no); }
.ea-panel .err:empty { display: none; }
.ea-pass { position: relative; }
.ea-pass .field { padding-right: 70px; }
.ea-peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  color: var(--haze); font-size: 13px; font-weight: 700; }
.ea-peek:hover { background: var(--tint); color: var(--frost); }
.ea-go { margin-top: 4px; }
/* (sapphire: gamelarp's one button colour) */
.ea-panel .btn.wide.ea-go, .ea-panel .btn.wide.pri, .ea-panel .btn.wide.ea-gems { background: linear-gradient(180deg, var(--sap-hi), var(--sap)); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(44, 107, 239, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ea-panel .btn.wide.ea-go:hover, .ea-panel .btn.wide.ea-gems:hover { filter: brightness(1.08); }
.ea-panel .btn.wide:not(.ea-go):not(.google):not(.discord):not(.ea-gems):not(.pri) { background: var(--tint); color: var(--frost); box-shadow: inset 0 0 0 1px var(--line); }
.ea-panel .btn.wide:not(.ea-go):not(.google):not(.discord):not(.ea-gems):not(.pri):hover { background: var(--tint2); }
.ea-panel .btn.wide.ea-quiet { height: 46px; background: none !important; box-shadow: none !important; color: var(--haze) !important; font-size: 14.5px; }
.ea-panel .btn.wide.ea-quiet:hover { color: var(--frost) !important; background: var(--tint) !important; }
.ea-switch, .ea-links { font-size: 14px; color: var(--haze); text-align: center; }
.ea-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.ea-legal { font-size: 12px; line-height: 1.45; color: var(--dim); text-align: center; }
.ea-legal a { color: var(--haze); }
.ea-wait, .ea-busy { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; color: var(--frost); }
.ea-busy { justify-content: center; min-height: 200px; }
.ea-busy.small { min-height: 0; justify-content: flex-start; padding: 6px 2px; font-size: 14px; color: var(--haze); }

/* the box for the right to withdraw (checkout.js's): tick it, Stripe's form comes under it */
.ea-agree { font-size: 13.5px; color: var(--haze); padding: 16px 16px 16px 14px; border: 1.5px solid var(--sap); background: color-mix(in srgb, var(--sap) 14%, transparent); min-height: 64px; }
.ea-agree:not(.given) { animation: ea-agree-glow 2.4s ease-in-out 1s 2; }
.ea-agree input { left: 14px; top: 16px; width: 26px; height: 26px; }
.ea-agree .box { width: 26px; height: 26px; border-color: var(--frost); }
.ea-agree-t { display: grid; gap: 3px; }
.ea-agree-t b { font-size: 16px; font-weight: 750; color: var(--frost); }
.ea-agree-lead { font-size: 14px; color: var(--frost); margin: 0 0 -2px; }
.ea-agree.given { opacity: .72; cursor: default; animation: none; }
@keyframes ea-agree-glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sap) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ea-agree { animation: none !important; } }
.ea-ways { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.ea-ways svg.i { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--haze); }

/* (EA3) who has the gems: one tap */
.ea-gembox { display: grid; gap: 8px; transition: opacity .3s var(--ease); }
.ea-gembox.quiet { opacity: .5; pointer-events: none; }
.ea-panel .btn.wide.ea-gems { height: 54px; gap: 9px; font-size: 16px; }
.ea-gems .gem { width: 18px; height: 18px; }
.ea-have { font-size: 13px; color: var(--haze); text-align: center; }
.ea-have b { color: var(--frost); }
.ea-stripe { margin-top: 14px; border-radius: 16px; overflow: hidden; background: #fff; min-height: 120px; color: #111; }

/* ---------- You're in (E): Hero Dirt again, the whole screen ---------- */
.ea[data-step="in"] .ea-stage { opacity: 0; transform: scale(.96); pointer-events: none; filter: blur(4px); }
.ea-in { position: absolute; inset: calc(var(--bar) + var(--st)) 0 0; z-index: 3; display: grid; align-content: center; justify-items: center; text-align: center; gap: 0;
  padding: 24px calc(24px + var(--sr)) calc(32px + var(--sb)) calc(24px + var(--sl)); overflow: auto; }
.ea-in > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.ea-in.on > * { opacity: 1; transform: none; }
.ea-in.on > :nth-child(2) { transition-delay: .15s; }
.ea-in.on > :nth-child(3) { transition-delay: .22s; }
.ea-in.on > :nth-child(4) { transition-delay: .3s; }
.ea-in.on > :nth-child(5) { transition-delay: .42s; }
.ea-in.on > :nth-child(6) { transition-delay: .55s; }
.ea-in-art { position: relative; width: min(480px, 74vw, 34vh * 1.78); aspect-ratio: 16 / 9; margin-bottom: 26px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12); }
.ea-in-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ea-kicker { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-hi); }
.ea-in .ea-kicker { margin-bottom: 8px; }
.ea-in-title { margin: 0; font-size: clamp(56px, 11vh, 120px); line-height: .95; font-weight: 850; font-stretch: 112%; letter-spacing: -.035em; color: #FFF4DE;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.ea-in-title:focus { outline: none; }
.ea-in-line { margin: 14px 0 0; font-size: 17px; color: var(--sand-2); max-width: 520px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.ea-ride { margin-top: clamp(22px, 4vh, 38px); height: 64px; padding: 0 38px 0 30px; border: 0; border-radius: 18px; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #0B0F1A; font-size: 19px; font-weight: 780; letter-spacing: -.005em; transition: transform .18s var(--ease), background .2s; }
.ea-ride svg.i { width: 22px; height: 22px; color: #0B0F1A; }
@media (hover: hover) { .ea-ride:hover { background: #E9ECF3; } }
.ea-ride:active { transform: translateY(1px) scale(.99); }
.ea-ride[aria-disabled="true"] { opacity: .6; }
.ea-ride:focus-visible { outline: 2px solid var(--terra-hi); outline-offset: 4px; }
.ea-on-pc { margin: clamp(20px, 3.4vh, 32px) 0 0; max-width: 420px; padding: 16px 20px; border-radius: 16px; background: var(--pane); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 16px; line-height: 1.45; color: var(--sand-2); }
.ea-on-pc b { color: #FFF4DE; }
.ea-on-pc p { margin: 0; }
.ea-send { margin-top: 14px; width: 100%; height: 52px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #0B0F1A; font-size: 16px; font-weight: 760; }
.ea-send svg.i { width: 19px; height: 19px; color: #0B0F1A; }
.ea-send:active { transform: translateY(1px) scale(.99); }
.ea-send:focus-visible { outline: 2px solid var(--terra-hi); outline-offset: 3px; }
.ea-more { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ea-more:empty { display: none; }
.ea-discord, .ea-nudge { height: 40px; padding: 0 16px 0 13px; border-radius: 99px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700;
  text-decoration: none; border: 1px solid var(--edge-2); background: rgba(22, 18, 15, .5); color: var(--sand); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, border-color .2s; }
.ea-discord svg { color: #8C95FF; }
.ea-nudge svg { color: var(--terra-hi); }
.ea-discord:hover, .ea-nudge:hover { background: rgba(232, 217, 184, .12); border-color: rgba(232, 217, 184, .34); }
.ea-nudge.done { color: #9FE0BA; border-color: rgba(127, 214, 164, .3); cursor: default; }
.ea-nudge.done svg { color: #7FD6A4; }
.ea-nudge[aria-disabled="true"] { opacity: .6; }

/* ---------- a big screen (1920 x 1080): the same, larger ---------- */
@media (min-width: 1600px) and (min-height: 960px) {
  .ea { --bar: 76px; }
  .ea-card { width: min(1280px, 100%); border-radius: 32px; }
  .ea-logo { height: 118px; }
  .ea-pitch { font-size: 28px; }
  .ea-perks { gap: 14px; }
  .ea-perks li { grid-template-columns: 60px 1fr; }
  .ea-pics { width: 60px; height: 46px; }
  .ea-perks b { font-size: 18px; }
  .ea-perks small { font-size: 14.5px; }
  .ea-price b { font-size: 68px; }
  .ea-cta { height: 66px; font-size: 19.5px; border-radius: 18px; }
  .ea-info { padding: 52px 60px 52px 16px; gap: 18px; }
  .ea-promise { font-size: 14.5px; }
  .ea-gl .mk { height: 36px; }
  .ea-gl .wm { height: 19px; }
  .ea-nav a { font-size: 16px; }
}

/* ---------- a laptop of school (1366 x 768) and other short screens ---------- */
@media (max-height: 820px) and (min-width: 821px) {
  .ea { --bar: 60px; }
  .ea-card { width: min(1040px, 100%); }
  .ea-info { gap: 9px; padding-top: 22px; padding-bottom: 22px; }
  .ea-logo { height: 62px; }
  .ea-pitch { font-size: 20px; }
  .ea-perks { gap: 7px; }
  .ea-pics { height: 36px; }
  .ea-perks small { font-size: 12.5px; }
  .ea-price { margin-top: 2px; }
  .ea-price b { font-size: 40px; }
  .ea-cta { height: 54px; }
}

/* ---------- a phone, or a narrow window: everything under each other, the button always in view ---------- */
@media (max-width: 820px) {
  .ea { --bar: 56px; }
  .ea-top { gap: 12px; padding: var(--st) calc(14px + var(--sr)) 0 calc(14px + var(--sl)); }
  .ea-gl .mk { height: 28px; }
  .ea-gl .wm { height: 15px; }
  .ea-nav { display: none; }
  .ea-login { height: 36px; padding: 0 16px; font-size: 14px; }
  .ea-me { height: 36px; font-size: 13px; padding-right: 12px; }
  .ea-me .av { --s: 28px !important; }
  @media (max-width: 420px) { .ea-me { padding: 0 4px; } .ea-me > span:last-child { display: none; } }
  .ea-stage { align-content: start; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 12px calc(14px + var(--sr)) calc(150px + var(--sb)) calc(14px + var(--sl)); gap: 14px; }
  .ea-card { grid-template-columns: 1fr; border-radius: 24px; }
  .ea-art { margin: 8px 8px 0; aspect-ratio: 16 / 9; border-radius: 18px; }
  .ea-info { padding: 16px 20px 22px; gap: 10px; }
  .ea-logo { height: 58px; }
  .ea-pitch { font-size: 21px; }
  .ea-price b { font-size: 44px; }
  /* the button stays in view at the foot of the screen, on a band of the night (the bar, not the card's button) */
  .ea-card .ea-cta, .ea-card .ea-price { display: none; }   /* (the price stands in the bar, beside the button) */
  .ea-bar { display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
    padding: 30px calc(14px + var(--sr)) calc(14px + var(--sb)) calc(14px + var(--sl));
    background: linear-gradient(180deg, rgba(22, 18, 15, 0), rgba(22, 18, 15, .84) 42%, rgba(22, 18, 15, .94));
    opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .3s, transform 1s var(--ease) .3s, visibility 0s; }
  .ea.on .ea-bar { opacity: 1; transform: none; }
  .ea-bar-row { display: flex; align-items: center; gap: 16px; }
  .ea-bar-price { margin: 0 0 0 4px; display: grid; line-height: 1; flex: none; }
  .ea-bar-price b { font-size: 26px; font-weight: 820; letter-spacing: -.02em; color: #FFF7E6; }
  .ea-bar-price span { margin-top: 4px; font-size: 12px; font-weight: 650; color: var(--sand-3); }
  .ea-bar .ea-cta { display: flex; flex: 1; min-width: 0; width: auto; height: 56px; margin: 0; }
  .ea-bar:has(.ea-bar-note) { padding-top: 22px; background: linear-gradient(180deg, rgba(22, 18, 15, 0), rgba(22, 18, 15, .95) 18px, rgba(22, 18, 15, .97)); }
  .ea-bar-note { margin: 0 2px 10px; display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--sand-2); }
  .ea-bar-note svg.i { width: 18px; height: 18px; color: var(--terra-hi); }
  .ea-trust { font-size: 12px; }
  .ea[data-panel="open"] .ea-bar, .ea[data-step="in"] .ea-bar { opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .ea-promise { font-size: 12.5px; }
  /* the panel comes from below, nearly the whole screen: what you buy as a row on top, then the steps */
  .ea-panel { display: block; top: auto; bottom: 0; left: 0; width: 100% !important; max-height: calc(100% - 20px - var(--st)); overflow: auto; overscroll-behavior: contain;
    border-width: 1px 0 0; border-radius: 24px 24px 0 0; padding: 12px calc(18px + var(--sr)) calc(22px + var(--sb)) calc(18px + var(--sl));
    opacity: 1; transform: translateY(104%); box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6);
    transition: transform .5s var(--ease), visibility 0s linear .5s; }
  .ea[data-panel="open"] .ea-panel { transform: none; transition: transform .5s var(--ease), visibility 0s; }
  .ea-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 8px; }
  .ea-pside { min-height: 0; display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; align-content: center; margin: 28px 0 18px;
    padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--tint); border: 1px solid var(--line2); }
  .ea-pside::before, .ea-pgl { display: none; }
  .ea-pkey { position: static; width: 116px; height: 72px; border-radius: 12px; }
  .ea-pwhat b { font-size: 16px; }
  .ea-pwhat span { font-size: 13px; }
  .ea-pwhat .ea-pprice { margin-top: 2px; font-size: 22px; }
  .ea-pmain { position: static; max-height: none; overflow: visible; padding: 0; display: block; }
  .ea-pmain > .ea-x { top: 8px; right: calc(8px + var(--sr)); }
  .ea-h { font-size: 25px; }
  .ea-in-art { width: min(340px, 84vw); margin-bottom: 20px; border-radius: 18px; }
  .ea-in-title { font-size: clamp(52px, 15vw, 72px); }
  .ea-in-line { font-size: 16px; }
}

/* ---------- less motion: only the fades ---------- */
@media (prefers-reduced-motion: reduce) {
  .ea, .ea *, .ea *::before, .ea *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .ea-card, .ea-promise, .ea-art > img, .ea-in > * { transform: none !important; }
  .ea[data-panel="open"] .ea-stage { transform: none; }
}

/* ---------- (21 nov) a phone's "You're in": the home screen first, then Ride now right here (install.js) ---------- */
.ea-phone-go { margin-top: clamp(18px, 3vh, 28px); width: min(420px, 100%); display: grid; justify-items: center; gap: 14px; }
.ea-home { width: 100%; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 18px; text-align: left; background: var(--pane); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--sand-2); font-size: 15px; line-height: 1.4; }
.ea-home-title { margin: 0; font-size: 18px; font-weight: 780; color: #FFF4DE; letter-spacing: -.005em; }
.ea-home-line { margin: 4px 0 0; }
.ea-home b { color: #FFF4DE; font-weight: 720; }
.ea-home-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ea-home-steps li { display: flex; align-items: center; gap: 12px; }
.ea-home-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12);
  color: #FFF4DE; font-size: 13px; font-weight: 800; }
.ea-home-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0 4px 0 0; vertical-align: -6px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.ea-home-ic svg.i { width: 15px; height: 15px; color: #FFF4DE; }
.ea-home-add { margin-top: 14px; width: 100%; height: 56px; border: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #0B0F1A; font-size: 17px; font-weight: 780; }
.ea-home-add svg.i { width: 20px; height: 20px; color: #0B0F1A; }
.ea-home-add:active { transform: translateY(1px) scale(.99); }
.ea-home-done { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; color: #FFF4DE; }
.ea-home-done svg.i { width: 20px; height: 20px; color: var(--terra-hi); flex: none; }
.ea-phone-go .ea-ride { margin-top: 0; width: 100%; justify-content: center; }
.ea-ride.ea-ride-alt { height: 54px; background: rgba(255, 255, 255, .14); color: #FFF4DE; font-size: 17px; border: 1px solid var(--edge); }
.ea-ride.ea-ride-alt svg.i { color: #FFF4DE; }
@media (hover: hover) { .ea-ride.ea-ride-alt:hover { background: rgba(255, 255, 255, .2); } }
.ea-on-pc-line { margin: 2px 0 0; font-size: 14px; color: var(--sand-2); }
.ea-on-pc-line b { color: #FFF4DE; }
.ea-inapp { margin: 2px 0 14px !important; }
.ea-pbody:has(.ea-agree.given) .ea-agree-lead { display: none; }
