/* lander-login.css: the Log In page (/login). The first part is the front page's own (site/index.html's <style>: tokens, buttons, header, the fly and its bubble), the rest is this page's. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/fredoka.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lilita-one-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ff-tokens begin: a copy of the UI kit's tokens (docs/areas/ui-kit.md); server/test/lint.test.js keeps it equal */
:root {
  --ff-night: #0d0c18; --ff-glass: rgba(24, 23, 38, .92); --ff-glass2: #1d1c30; --ff-line: rgba(255, 255, 255, .09);
  --ff-gold: #f6c24a; --ff-gold2: #d99a2b; --ff-gold-d: #7d500c; --ff-gold-line: #c9a24a; --ff-hair: rgba(246, 194, 74, .55); --ff-honey: #ffe08a; --ff-cream: #f8ebcd; --ff-dim: #c9bb9a;
  --ff-ruby: #e23c64; --ff-ruby2: #8f1f3c; --ff-green: #52c070; --ff-sky: #74c4ff; --ff-pink: #ff86b0; --ff-red: #ff6b6b;
  --ff-r-common: #b9bccb; --ff-r-ripe: #7fd67b; --ff-r-juicy: #ff9a3d; --ff-r-overripe: #c58cff; --ff-r-fermented: #ffd34a;
  --ff-font: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; --ff-title: 'Lilita One', 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
}
/* ff-tokens end */
:root { --night: var(--ff-night); --glass: var(--ff-glass); --glass2: var(--ff-glass2); --gold: var(--ff-gold); --gold-line: var(--ff-gold-line); --hair: rgba(246, 194, 74, .45);
  --honey: var(--ff-honey); --cream: var(--ff-cream); --dim: var(--ff-dim); --line: var(--ff-line); --ruby: var(--ff-ruby); --leaf: var(--ff-green); --pink: var(--ff-pink); --sky: var(--ff-sky);
  --font: var(--ff-font); --title: var(--ff-title);
  --wrap: min(1200px, calc(100vw - 32px)); color-scheme: dark; }
@media (min-width: 1800px) { :root { --wrap: 1400px; } html { font-size: 17px; } }
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; color: var(--cream); font: 500 1rem/1.5 var(--font); overflow-x: hidden; }
a { color: var(--honey); }
a:focus-visible, button:focus-visible, canvas:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.wrap { width: var(--wrap); margin: 0 auto; }
[hidden] { display: none !important; }

/* buttons: the game's .gw-btn (orange, a 3px lip that squishes) and its ghost (plum) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 400 15px/1 var(--title); letter-spacing: .6px; text-decoration: none; padding: 10px 18px; border-radius: 12px;
  border: 2px solid #4a1f08; color: #fff3d6; text-shadow: 0 1px 0 rgba(60, 20, 0, .5); background: linear-gradient(#ffb25a, #e8661e); box-shadow: 0 3px 0 #8a3a0c, inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .08s ease-out, filter .12s; white-space: nowrap; cursor: pointer; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(2px) scale(.96); box-shadow: 0 1px 0 #8a3a0c; }
.btn.ghost { color: var(--cream); border-color: #000; background: linear-gradient(#4a476a, #35334f); box-shadow: 0 3px 0 #15142a, inset 0 1px 0 rgba(255, 255, 255, .18); text-shadow: none; }
.btn.ghost:active { box-shadow: 0 1px 0 #15142a; }
.btn.big { font-size: 20px; padding: 14px 24px; border-radius: 16px; box-shadow: 0 4px 0 #8a3a0c, 0 10px 24px rgba(232, 102, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.big.ghost { box-shadow: 0 4px 0 #15142a, inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.sm { font-size: 14px; padding: 7px 13px; border-radius: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(29, 28, 48, .96), rgba(20, 18, 36, .94)); border-bottom: 2px solid var(--gold-line); box-shadow: 0 1px 0 #000, 0 6px 20px rgba(0, 0, 0, .35); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.brand b { font: 400 25px/1 var(--title); letter-spacing: 1.2px; color: var(--cream); text-shadow: 0 3px 0 #2a1840, 0 0 18px rgba(246, 194, 74, .3); }

.flybox { aspect-ratio: 1; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; border-radius: 24px; opacity: 0; transition: opacity .5s; }
#stage.in { opacity: 1; }
.myfly { position: absolute; left: 50%; top: 50%; width: 62%; translate: -50% -55%; cursor: pointer; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); -webkit-user-drag: none; user-select: none; }
.myfly.poster { left: 0; top: 0; width: 100%; translate: none; filter: none; transform-origin: 50% 70%; }   /* (framed like the 3D fly's canvas, barrel and shadow included) */
.myfly.squish { animation: squish .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes squish { 30% { transform: scale(1.08, .9); } 65% { transform: scale(.96, 1.05) translateY(-4%); } }
.flybox:has(.myfly:not([hidden]):not(.poster))::before { content: ''; position: absolute; left: 22%; right: 22%; bottom: 14%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
/* the fly's name / the hint, a small sign under its barrel */
.tagline { position: absolute; left: 50%; bottom: 9%; translate: -50% 0; width: max-content; max-width: 100%; padding: 6px 13px 7px; border-radius: 12px; text-align: center; pointer-events: none;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
#hint { font: 400 15px/1 var(--title); letter-spacing: .6px; color: var(--honey); }
/* the game's chat bubble (.chatb): cream, a dark edge, a drop under it, a tail on the speaker */
#bubble { position: absolute; left: 0; top: 0; z-index: 2; padding: 7px 13px; max-width: min(250px, 80%); width: max-content; text-align: center; text-wrap: balance; font: 600 15px/1.28 var(--font); border-radius: 13px; background: #fffaf0; color: #241a10; box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px #241a10; opacity: 0; scale: .92; transform-origin: 50% 100%; transition: opacity .14s, scale .14s; pointer-events: none; overflow-wrap: anywhere; }
#bubble::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fffaf0; border-radius: 0 0 2px 0; transform: rotate(45deg); box-shadow: 2px 2px 0 #241a10; }
#bubble.show { opacity: 1; scale: 1; animation: bubPop .34s ease-out; }
@keyframes bubPop { from { scale: .3; opacity: 0; } 55% { scale: 1.08; opacity: 1; } 78% { scale: .97; } to { scale: 1; } }
/* a nap: three z's rise over its head */
#zzz { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
#zzz i { position: absolute; left: 0; bottom: 0; font: 400 26px/1 var(--title); font-style: normal; color: #fff3d6; text-shadow: 0 2px 0 #2a1840; opacity: 0; animation: zzz 3s ease-out infinite; }
#zzz i:nth-child(2) { animation-delay: 1s; font-size: 20px; } #zzz i:nth-child(3) { animation-delay: 2s; font-size: 15px; }
@keyframes zzz { 0% { transform: translate(6px, 0) rotate(-8deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(38px, -74px) rotate(14deg); opacity: 0; } }

/* ---- the page: Juice Valley behind everything, the card on the left, the fly on the right ---- */
body { min-height: 100svh; display: flex; flex-direction: column; }
.top .back .ico { rotate: -90deg; }
.scene { flex: 1; position: relative; isolation: isolate; display: grid; }
.scene .hero-bg { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity .6s; }
.scene .hero-bg.in { opacity: 1; }
.scene::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(44% 62% at 74% 52%, transparent 40%, rgba(13, 12, 24, .34) 100%), linear-gradient(90deg, rgba(13, 12, 24, .94) 0%, rgba(13, 12, 24, .76) 34%, rgba(13, 12, 24, .22) 68%), linear-gradient(180deg, rgba(13, 12, 24, .3) 0%, transparent 25%, transparent 70%, rgba(13, 12, 24, .7) 100%); }
.scene-in { display: grid; grid-template-columns: minmax(300px, 470px) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: center; padding: clamp(18px, 5vh, 48px) 0; }
.acct { min-width: 0; animation: rise .38s cubic-bezier(.2, .9, .3, 1); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
.acct h1 { margin: 0; font: 400 clamp(36px, min(4.8vw, 8.5vh), 62px)/1.02 var(--title); letter-spacing: 1px; color: var(--cream); text-shadow: 0 4px 0 #2a1840, 0 0 30px rgba(0, 0, 0, .45); }
.sub { margin: 8px 0 0; font-size: clamp(15px, 1.25vw, 18px); color: #f3e8d2; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.sub:empty { display: none; }

/* the card: navy glass, a gold hairline, a ruby at each corner */
.card { position: relative; margin-top: clamp(12px, 2.4vh, 20px); padding: 16px 18px 18px; border: 2px solid var(--gold-line); border-radius: 14px; background: linear-gradient(180deg, rgba(42, 40, 64, .96), rgba(26, 25, 43, .97)); box-shadow: 0 0 0 1px #000, 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 40px rgba(0, 0, 0, .3); }
.card::before { content: ''; position: absolute; inset: -9px; pointer-events: none; --gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3'%3E%3Cstop stop-color='%23ff9fb8'/%3E%3Cstop offset='.55' stop-color='%23e23c64'/%3E%3Cstop offset='1' stop-color='%238a1030'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M5 0h6l5 5v6l-5 5H5l-5-5V5z'/%3E%3C/svg%3E");
  background: var(--gem) 0 0 / 16px 16px no-repeat, var(--gem) 100% 0 / 16px 16px no-repeat, var(--gem) 0 100% / 16px 16px no-repeat, var(--gem) 100% 100% / 16px 16px no-repeat; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 4px; border: 2px solid #000; border-radius: 14px; background: #121122; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .07); }
.tabs::before { content: ''; box-sizing: border-box; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border: 2px solid #4a1f08; border-radius: 10px; background: linear-gradient(#ffb25a, #e8661e); box-shadow: 0 2px 0 #8a3a0c, inset 0 1px 0 rgba(255, 255, 255, .35); transition: translate .24s cubic-bezier(.3, 1.35, .5, 1); }
.tabs[data-on="register"]::before { translate: 100% 0; }
.tabs button { position: relative; font: 400 16px/1 var(--title); letter-spacing: .5px; padding: 12px 8px; border: 0; border-radius: 10px; color: var(--dim); background: none; cursor: pointer; transition: color .14s, scale .08s; }
.tabs button:hover { color: var(--cream); }
.tabs button:active { scale: .96; }
.tabs button.on { color: #fff3d6; text-shadow: 0 1px 0 rgba(60, 20, 0, .5); }
.auth-body { display: grid; min-height: 196px; }
.authf { display: grid; gap: 12px; align-content: start; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .f2 .tick { font-size: 14.5px; }
@media (max-width: 360px) { .f2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 5px; font: 400 14px/1.2 var(--title); letter-spacing: .4px; color: var(--cream); }
.fld small { font: 500 12px/1.2 var(--font); letter-spacing: 0; color: var(--dim); margin-left: 4px; }
.fld input { width: 100%; font: 500 16px/1.2 var(--font); padding: 11px 12px; border-radius: 10px; border: 2px solid #000; color: var(--cream); background: #121122; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .07); transition: box-shadow .15s, border-color .15s; }
.fld input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 0 12px rgba(246, 194, 74, .3); }
.fld input[aria-invalid="true"] { border-color: var(--ruby); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 0 0 1px rgba(226, 60, 100, .55), 0 0 12px rgba(226, 60, 100, .35); }
.fld input[aria-invalid="true"]:focus-visible { outline-color: var(--ruby); }
.tick { display: flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.tick input { width: 20px; height: 20px; flex: none; accent-color: var(--gold); }
.lead { margin: 0; font-size: 15px; color: #f3e8d2; }
.gnote { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--gold-line); background: rgba(246, 194, 74, .1); }
.fine { margin: 0; font-size: 13px; color: var(--dim); }
.fine.right { margin-top: -5px; text-align: right; }
.fine.back { margin-top: 12px; text-align: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--honey); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: #fff3d6; }
@media (pointer: coarse) { .fine .linkish { display: inline-block; padding: 7px 3px; margin: -7px -3px; } }

/* something went wrong: a ruby with a mark, a tinted strip, the words in the game's own voice, and the fields it is about turn ruby too */
.err { position: relative; margin: 0; padding: 9px 12px 9px 40px; border: 2px solid #7f1f3a; border-radius: 10px; font: 600 14px/1.3 var(--font); color: #ffe6ea; background: linear-gradient(rgba(226, 60, 100, .24), rgba(226, 60, 100, .13)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .25); }
.err:empty { display: none; }
.err::before { content: '!'; position: absolute; left: 9px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; display: grid; place-items: center; font: 400 15px/1 var(--title); color: #fff; text-shadow: 0 1px 0 #5a1424; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: radial-gradient(circle at 35% 30%, #ff9fb8, #e23c64 55%, #8a1030); }
.err:not(:empty) { animation: errShake .32s ease-out; } @keyframes errShake { 25% { translate: -4px 0; } 60% { translate: 3px 0; } }

.btn.wide { width: 100%; }
.btn:disabled { filter: grayscale(.5) brightness(.8); cursor: default; }
.btn.busy, .btn.busy:disabled { filter: none; cursor: progress; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 10px, transparent 10px 20px) 0 0 / 28.3px 28.3px, linear-gradient(#ffb25a, #e8661e); animation: stripes .55s linear infinite; }
@keyframes stripes { to { background-position: 28.3px 0, 0 0; } }
.code { padding: 14px 8px; border-radius: 12px; text-align: center; word-break: break-all; user-select: all; font: 400 20px/1.3 var(--title); letter-spacing: 2px; color: var(--honey); background: #121122; border: 2px dashed var(--gold-line); }
.pick { margin: 0; padding: 4px 12px 12px; border-radius: 12px; border: 2px solid var(--line); background: rgba(0, 0, 0, .18); }
.pick legend { padding: 0 6px; font: 400 14px/1 var(--title); letter-spacing: .4px; color: var(--cream); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid #000; cursor: pointer; transition: transform .14s cubic-bezier(.3, 1.8, .5, 1); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .3), inset 0 -2px 3px rgba(0, 0, 0, .25); }
.sw:hover { transform: scale(1.12); }
.sw:active { transform: scale(.92); }
.sw[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px #000, 0 0 10px rgba(246, 194, 74, .6), inset 0 2px 3px rgba(255, 255, 255, .3); transform: scale(1.18); }
@media (max-width: 420px), (max-height: 480px) and (min-width: 560px) { .swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; justify-items: center; } .sw { width: 28px; height: 28px; } }   /* (one row, or an even two on the narrowest: never one left over) */
@media (max-width: 359px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.types button { font: 400 14px/1 var(--title); letter-spacing: .4px; padding: 9px 10px; border-radius: 10px; border: 2px solid #000; color: var(--cream); background: #2a2840; cursor: pointer; transition: scale .08s; }
.types button:active { scale: .95; }
.types button[aria-pressed="true"] { color: #fff3d6; border-color: #4a1f08; background: linear-gradient(#ffb25a, #e8661e); box-shadow: 0 2px 0 #8a3a0c; }
.also { margin: 14px 0 0; text-align: center; font-size: 14.5px; color: #f3e8d2; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }

/* in you go: the bar fills while the fly cheers, then the page dims into the game's loading screen */
.going { align-content: center; text-align: center; }
.auth-body:has(.going) { min-height: 120px; }
.gobar { height: 18px; padding: 2px; border: 2px solid #000; border-radius: 10px; background: #121122; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .07); }
.gobar i { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 16px) 0 0 / 22.6px 22.6px, linear-gradient(#ffe08a, #f6c24a); animation: goFill 1.5s cubic-bezier(.35, .1, .4, 1) both, stripes2 .55s linear infinite; }
@keyframes goFill { from { transform: scaleX(.04); } }
@keyframes stripes2 { to { background-position: 22.6px 0, 0 0; } }
body::after { content: ''; position: fixed; inset: 0; z-index: 60; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .22s ease-in; }
body.leaving::after { opacity: 1; }
.paper { position: fixed; left: 0; top: 0; z-index: 45; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; }

/* the fly: as big as it is on the front page, and it stays beside a long form */
.flybox { position: sticky; top: 72px; justify-self: center; width: min(100%, 620px, 78svh); }
.foot { position: relative; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--gold-line); background: linear-gradient(180deg, #17162a, #0d0c18); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--honey); }
.foot small { color: #8f8670; font-size: 13px; }

/* a phone or a tall tablet: the fly stands over the card, in the sky of the portrait postcard */
@media (max-aspect-ratio: 4/5), (max-width: 559px) {
  .scene::before { background: linear-gradient(180deg, rgba(13, 12, 24, .16) 0%, rgba(13, 12, 24, .34) 22%, rgba(13, 12, 24, .74) 40%, rgba(13, 12, 24, .92) 60%); }
  .scene-in { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 4px 0 16px; }
  .flybox { order: -1; position: relative; top: 0; width: 100%; height: clamp(176px, 29svh, 340px); }
  .tagline { bottom: 2%; padding: 4px 10px 5px; } #hint { font-size: 13.5px; }
  #bubble { padding: 5px 11px; max-width: min(320px, 94%); font-size: 14px; }
  .myfly, .myfly.poster { left: 50%; top: 0; width: auto; height: 100%; max-width: 100%; translate: -50% 0; }   /* (the picture stays inside the short box) */
  .acct { justify-self: center; width: min(100%, 500px); }
  .acct h1 { text-align: center; font-size: clamp(30px, 8.6vw, 46px); } .sub { text-align: center; margin-top: 4px; }
  .card { margin-top: 10px; }
}
@media (max-aspect-ratio: 4/5) and (min-width: 600px) { .flybox { height: 38svh; } }
@media (max-aspect-ratio: 4/5) and (max-height: 700px) { .flybox { height: 150px; } .sub { display: none; } .card { margin-top: 6px; } #bubble { left: 4px; top: 10px; translate: none !important; width: auto !important; max-width: calc(50% - 62px); padding: 3px 8px 4px; font-size: 12.5px; line-height: 1.2; transform-origin: 100% 50%; } #bubble::after { left: auto; right: -5px; top: 50%; bottom: auto; margin: -5px 0 0; } }   /* (a phone like 375 x 667: the card ends on the first screen, the bubble beside the fly, not on its face) */
@media (max-aspect-ratio: 4/5) and (max-height: 640px) { .flybox { height: 112px; } .card { padding: 12px 14px 14px; } .fld input { padding: 9px 12px; } #bubble { display: none; } }   /* (a small phone: Log In and the line under it stay on the first screen; no room for words, the fly still reacts) */
@media (max-width: 400px) { .top .wrap { gap: 6px; } .brand { gap: 5px; } .brand img { width: 28px; height: 28px; } .brand b { font-size: 19px; letter-spacing: .5px; } }
/* a phone on its side: every line counts */
@media (max-height: 480px) and (min-width: 560px) and (min-aspect-ratio: 4/5) {
  .top { position: static; } .top .wrap { height: 46px; }
  .scene-in { grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 0; }
  .flybox { top: 8px; width: min(100%, 86svh); }
  .acct h1 { font-size: 26px; } .sub { display: none; } .card { margin-top: 8px; padding: 10px 14px 14px; } .also { margin-top: 8px; }
}
/* very big screens: the card and the fly grow with the room */
@media (min-width: 2400px) and (min-aspect-ratio: 4/5) {
  :root { --wrap: 2100px; }
  .scene-in { grid-template-columns: 720px minmax(0, 1fr); }
  .acct { zoom: 1.5; }
  .flybox { width: min(100%, 1100px, 78svh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .hero-bg, #stage, #bubble, .tabs::before, .tabs button, .types button, .sw, body::after { transition: none; }
  .myfly.squish, #bubble.show, .acct, .err:not(:empty), .btn.busy, .gobar i { animation: none; }
}
@media (max-width: 559px), (max-height: 480px) and (min-width: 560px) { .types { display: grid; grid-template-columns: 1fr 1fr; } .types button { padding: 9px 6px; } }   /* (a narrow card: the four types two by two, never three and one) */
@media (max-height: 720px) and (min-width: 560px) and (min-aspect-ratio: 4/5) { .flybox { align-self: start; } }   /* (a short window: the fly stays at the top of the row, not centred on a tall card below the fold) */
