/* Aerenis : the web site ( the game's page, /register, /login ). No outside file : the gateway's policy allows 'self'.
   Colours taken from the design ( header #11a6fd -> #016dd8, footer the same upside down, button #fce65e -> #fd9d24 ). */

/* Burbank is a commercial typeface : it is used when it is installed on the visitor's machine, or when a licensed
   copy is put at /fonts/burbank-bold.woff2. Otherwise the next families of the list are used. */
@font-face {
  font-family: "Burbank";
  src: local("Burbank Big Condensed Bold"), local("Burbank Big Cd Bd"), local("BurbankBigCondensed-Bold"),
       url("fonts/burbank-bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --blue-top: #11a6fd;
  --blue-mid: #0a8aea;
  --blue-deep: #016dd8;
  --blue-ink: #0b4f9e;
  --line: #5daced;
  --gold-top: #fce65e;
  --gold-mid: #fcc341;
  --gold-deep: #fd9d24;
  --gold-ink: #5b3600;
  --paper: #ffffff;
  --text: #17324f;
  --muted: #5b7493;
  --bad: #c62828;
  --good: #1b7f3b;
  --display: "Burbank", "Arial Rounded MT Bold", "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1000px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  font: 16px/1.5 var(--body); color: var(--text);
  background: #000;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- header */
.head { background: linear-gradient(180deg, var(--blue-top), var(--blue-deep)); color: #fff; position: relative; z-index: 20; }
/* the logo, then the sections right beside it ; the account at the right end */
/* as wide as the game's frame ( 1280 ) : both sides have room, so the middle column really is the middle */
.head .wrap { height: 80px; max-width: min(1560px, 90vw); display: flex; align-items: center; gap: 24px; }
.head .logo { justify-self: start; }
.head .side { margin-left: auto; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 58px; width: auto; }
/* close to the logo ( about 20 px ), 20 px between sections */
.nav { display: flex; justify-content: flex-start; gap: 26px; margin-left: 10px; }
/* the sections : the drawing over its word, large white words ; no background on hover or on the page you are on
   ( the drawing hops a little instead, the keyboard still gets its outline ) */
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px; border-radius: 10px;
  color: #fff; text-decoration: none; white-space: nowrap;
  font: 800 16px/1 var(--display); letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(3, 55, 120, 0.35);
}
.nav svg, .nav img { display: block; width: 26px; height: 26px; fill: none; flex: none; filter: drop-shadow(0 2px 2px rgba(3, 55, 120, 0.35)); transition: transform 0.12s ease; }
.nav a:hover svg, .nav a:hover img { transform: translateY(-2px) scale(1.06); }
.side { display: flex; align-items: center; gap: 14px; flex: none; }

/* the account : a round picture and a chevron that opens a menu */
.who { position: relative; }
.who-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px 4px; border: 0; border-radius: 999px; background: transparent; color: #fff;
}
/* no background behind the picture on hover */
.who-btn img { width: 42px; height: 42px; border-radius: 50%; display: block; object-fit: cover; }
.who-btn .chev { width: 12px; height: 8px; fill: #fff; transition: transform 0.15s ease; }
.who-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--paper); color: var(--text);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(4, 40, 90, 0.35);
}
.menu::before { content: ""; position: absolute; right: 22px; top: -7px; width: 14px; height: 14px; background: var(--paper); transform: rotate(45deg); border-radius: 3px; }
.menu li { position: relative; }
.menu .name { padding: 10px 12px 8px; font: 800 15px/1.2 var(--display); color: var(--blue-ink); border-bottom: 1px solid #e3edf8; margin-bottom: 4px; word-break: break-all; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text); text-decoration: none; text-align: left;
  font: 800 15px/1.2 var(--display);
}
.menu a:hover, .menu a:focus-visible, .menu button:hover, .menu button:focus-visible { background: #e9f4ff; }
.menu svg { width: 22px; height: 22px; flex: none; }

/* the yellow button of the design */
.gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 6px;
  border: 1px solid #684213;
  background: linear-gradient(180deg, #fbf267, #fe951e);
  color: #684213; text-decoration: none; white-space: nowrap;
  font: 900 15px/1 var(--display); letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.gold:hover, .gold:focus-visible { filter: brightness(1.06); transform: translateY(-1px); }
.gold:active { transform: translateY(1px); }
.gold[disabled] { filter: grayscale(0.5) brightness(0.95); cursor: default; transform: none; }
.gold.big { padding: 15px 46px; font-size: 24px; border-radius: 8px; }
/* the Play button of the header : the big one of the design */
.head .gold {
  padding: 15px 20px; font-size: 18px;
}
.head .who-btn img { width: 50px; height: 50px; }
/* a signed in player : the penguin in the same blue circle as the guest's picture */
.who-btn img.member { border-radius: 50%; object-fit: cover; background: #0b78dc; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
/* full screen : only the game, at the right end of the bar */
.fs {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: #fff;
  font: 800 12px/1 var(--display); white-space: nowrap;
}
.fs svg { width: 22px; height: 22px; fill: #fff; }
.fs:hover, .fs:focus-visible { background: rgba(255, 255, 255, 0.16); }
.stage iframe:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.card :focus-visible, .menu :focus-visible, .lang-menu :focus-visible { outline-color: var(--blue-mid); }

/* ---------------------------------------------------------------- the game */
/* the game sits in the middle with the site's blue at both sides : a 4:3 frame ( the game's own shape ) as large
   as fits under the header without scrolling, at most 1280 wide */
.stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--blue-deep); overflow: hidden; }
/* the picture behind the game : img/stage.jpg ( the art without its lower part, where the title is ), see-through
   over the site's blue. --stage-art is how much of it shows : 0 none, 1 the picture as it is. */
.stage { --stage-art: 0.38; }
.stage::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/stage.jpg") center 30% / cover no-repeat;
  opacity: var(--stage-art);
}
.stage iframe { position: relative; }
.stage iframe {
  flex: none; display: block; border: 0; background: #000;
  width: min(100%, 1280px, max(560px, calc((100vh - 128px) * 4 / 3)));
  aspect-ratio: 4 / 3; height: auto;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 30, 90, 0.45);
}
.curtain {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 42%, #0f3f7d 0%, #06172f 55%, #000 100%);
}
.curtain h1 { margin: 0; font: 900 clamp(40px, 8vw, 84px)/1 var(--display); letter-spacing: 0.01em; text-shadow: 0 6px 30px rgba(17, 166, 253, 0.5); }
.curtain p { margin: 0; max-width: 520px; color: #b9d3f2; }
.curtain .small { font-size: 13px; opacity: 0.8; }

/* ---------------------------------------------------------------- the forms ( /register, /login ) */
.sheet {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 56px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(700px 380px at 90% 100%, rgba(255, 230, 94, 0.3), transparent 70%),
    linear-gradient(180deg, #cfeaff, #eef8ff 60%, #d9efff);
}
.card { width: 100%; max-width: 440px; padding: 30px 30px 26px; background: var(--paper); border-radius: 18px; box-shadow: 0 18px 50px rgba(6, 72, 150, 0.22); }
.card h1 { margin: 0 0 4px; font: 900 34px/1.05 var(--display); color: var(--blue-ink); }
.card .sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font: 800 14px/1.2 var(--display); color: var(--blue-ink); }
.field input {
  width: 100%; padding: 11px 13px; font: 16px/1.3 var(--body); color: var(--text);
  background: #f4f9ff; border: 2px solid #cfe3f8; border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--blue-mid); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--bad); background: #fff6f6; }
.field .note { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.field .note.strong { font-weight: 700; color: var(--blue-ink); }

/* a field's state, at its right end : asking the server ( a turning ring ), right ( a tick ), wrong ( a mark ) */
.box { position: relative; }
.box input { padding-right: 44px; }
.state { position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; display: none; }
.field.busy .state { display: block; border: 3px solid #cfe3f8; border-top-color: var(--blue-mid); animation: turn 0.7s linear infinite; }
.field.ok .state, .field.bad .state { display: block; background: center / 22px 22px no-repeat; }
.field.ok .state { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%231faa4b'/%3E%3Cpath d='M6 11.500l3.300 3.300L16 8' fill='none' stroke='%23fff' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field.bad .state { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23f4722b'/%3E%3Cpath d='M11 5.500v7' stroke='%23fff' stroke-width='2.800' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='16.300' r='1.600' fill='%23fff'/%3E%3C/svg%3E"); }
.field.ok input { border-color: #8fd3a6; }
@keyframes turn { to { transform: rotate(360deg); } }

/* why it is wrong : a bubble above the field, while the visitor is in it ( or was sent back to it ) */
.bubble {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  width: max-content; max-width: min(300px, 92%); margin: 0; padding: 9px 14px;
  background: var(--gold-mid); color: var(--blue-ink); border-radius: 12px;
  font: 800 13.5px/1.3 var(--display); text-align: center;
  box-shadow: 0 6px 18px rgba(6, 72, 150, 0.25); z-index: 5;
  display: none;
}
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--gold-mid); border-bottom: 0; }
.field.bad:focus-within .bubble, .field.bad.show .bubble { display: block; }

/* the check's place is kept from the first paint ( the widget is 65 px high and comes a moment later ), so the card
   does not grow when it arrives ; .off : the server asks for no check */
.captcha { margin: 4px 0 14px; min-height: 65px; line-height: 0; font-size: 0; }      /* no line gap under the widget : 65 px exactly */
.captcha:empty { border: 1px solid #e0e0e0; border-radius: 4px; background: #fafafa; box-sizing: border-box; }
.captcha.off { display: none; }
.captcha > div, .captcha iframe { width: 100% !important; }
.card .gold { width: 100%; padding: 14px 20px; font-size: 19px; border-radius: 10px; }
.msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.msg.bad { background: #fdecec; color: var(--bad); }
.msg.good { background: #e7f7ec; color: var(--good); }
.alt { margin: 16px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.alt a { color: var(--blue-deep); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.foot { background: linear-gradient(180deg, var(--blue-deep), var(--blue-top)); color: #fff; }
.foot .cols { display: grid; grid-template-columns: 196px 1fr 1fr auto; padding: 28px 0 24px; }
.foot .col { padding: 0 44px; border-left: 1px solid var(--line); min-height: 88px; }
.foot .col:first-child { padding: 0 28px 0 0; border-left: 0; display: flex; flex-direction: column; align-items: center; }
/* the two buttons : as wide as their words need, both as wide as the wider one */
.foot .col:last-child { padding-right: 0; padding-left: 32px; display: grid; grid-template-columns: max-content; align-content: start; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li a { display: inline-flex; align-items: center; gap: 9px; padding: 1px 0; color: #fff; text-decoration: none; font: 800 16px/1.4 var(--display); }
.foot li a:hover, .foot li a:focus-visible { text-decoration: underline; }
.foot li svg { width: 16px; height: 16px; fill: #fff; flex: none; }
.foot .logo img { width: 100%; max-width: 180px; height: auto; }
.foot .pill {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 9px 14px 9px 12px;
  min-height: 40px; border-radius: 10px; border: 1px solid #0b7ac2;
  background: linear-gradient(180deg, #22a4f3, #1583d7); color: #fff; text-decoration: none;
  font: 800 12.8px/1.1 var(--display); white-space: nowrap; box-shadow: 0 3px 0 rgba(3, 70, 140, 0.45);
}
.foot .pill:hover, .foot .pill:focus-visible { filter: brightness(1.07); }
button.pill { text-align: left; cursor: pointer; }
.foot .pill svg { width: 20px; height: 18px; flex: none; }
/* the fan-project notice : its own darker band under the footer, centred, a little larger */
.foot .cols { padding-bottom: 28px; }
.fine-band { background: #0b6fbf; padding: 24px 16px 21px; }
.fine { max-width: 600px; margin: 0 auto; padding: 0; font: 700 14.5px/1.5 var(--display); text-align: center; color: #ffffff; }

/* the language : a small button that opens a list above it */
.lang { position: relative; margin-top: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: 800 13px/1 var(--display); }
.lang-btn:hover, .lang-btn:focus-visible { background: rgba(255, 255, 255, 0.18); }
.lang-btn svg { width: 16px; height: 16px; fill: #fff; }
.lang-menu {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); min-width: 156px; margin: 0; padding: 4px; list-style: none;
  background: var(--paper); border-radius: 12px; box-shadow: 0 12px 34px rgba(4, 40, 90, 0.35);
}
.lang-menu li + li { border-top: 1px solid #e3edf8; }
.lang-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 800 15px/1.2 var(--display); text-align: center; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: #e9f4ff; }
.lang-menu button[aria-current="true"] { color: var(--blue-deep); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1180px) {
  .fs span { display: none; }
}
@media (max-width: 860px) {
  .head .wrap { display: flex; gap: 10px; }
  .nav { flex: 1; }
  .foot .cols { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .foot .col { padding: 0 20px; }
  .foot .col:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .head .wrap { gap: 8px; }
  .nav a span { display: none; }
  .nav { gap: 6px; margin-left: 0; }
  .nav svg, .nav img { width: 26px; height: 26px; }
  .logo img { height: 48px; }
  .gold, .head .gold { padding: 10px 13px; font-size: 16px; }
  .head .who-btn img { width: 40px; height: 40px; }
  .fs span { display: none; }
  .card { padding: 24px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gold, .who-btn .chev { transition: none; }
}

/* ---------------------------------------------------------------- the home page : no game in it, the way to it */
.stage.hero { --stage-art: 0.5; min-height: max(560px, calc(100vh - 80px)); padding: 48px 16px 56px; color: #fff; text-align: center; }
.hero-in { position: relative; width: 100%; max-width: 940px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-in h1 { margin: 0; font: 900 clamp(46px, 9vw, 104px)/1 var(--display); letter-spacing: 0.005em; text-shadow: 0 6px 30px rgba(0, 40, 110, 0.65); }
.hero-in .lead { margin: 0; max-width: 560px; font-size: clamp(17px, 2.2vw, 21px); color: #e6f2ff; text-shadow: 0 1px 8px rgba(0, 40, 110, 0.7); }
.hero-in .small { margin: 0; font-size: 13px; color: #d5e8ff; text-shadow: 0 1px 6px rgba(0, 40, 110, 0.7); }
.hero-in .cards { width: 100%; margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; text-align: left; }
.hero-in .cards article { padding: 20px 22px; border-radius: 16px; background: rgba(4, 60, 140, 0.55); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.hero-in .cards h2 { margin: 0 0 6px; font: 900 19px/1.2 var(--display); }
.hero-in .cards p { margin: 0; font-size: 15px; color: #dcecff; }

/* ---------------------------------------------------------------- the sign-in dialog ( in the middle of any page ) */
.modal { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(3, 30, 70, 0.6); backdrop-filter: blur(3px); }
.modal .card { position: relative; max-width: none; box-shadow: 0 24px 70px rgba(2, 20, 60, 0.45); }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eef5fd; color: var(--blue-ink); font: 800 22px/1 var(--display);
}
.modal-x:hover { background: #ddeafb; }
.modal-x:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 0.16s ease-out; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
}


/* ---------------------------------------------------------------- the forms' main button ( register, sign in ) :
   green, upper case ; dimmed and not clickable until the form is complete */
.card button[type="submit"] {
  background: linear-gradient(-180deg, #6ed200, #5db100);
  border: 1px solid rgba(0, 63, 114, 0.8);
  box-shadow: 0 3px 0 0 rgba(0, 62, 113, 0.3), inset 0 1px 1px 0 #ccff7d;
  color: #ffffff; text-transform: uppercase; letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(0, 63, 114, 0.45);
  filter: none; transform: none;
  transition: all 0.2s ease 0s;
}
.card button[type="submit"]:hover:not([disabled]) { filter: brightness(1.07); transform: translateY(-1px); }
.card button[type="submit"]:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 0 rgba(0, 62, 113, 0.3), inset 0 1px 1px 0 #ccff7d; }
.card button[type="submit"][disabled] { opacity: 0.5; filter: saturate(0.55); cursor: not-allowed; transform: none; }
.card button[type="submit"]:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }

/* ---------------------------------------------------------------- the register page : one card, welcome + form */
.sheet-reg {
  background: radial-gradient(900px 420px at 18% 0%, #3db3ff 0%, transparent 60%), linear-gradient(180deg, var(--blue-mid), #0757b3);
  padding: 44px 16px 56px;
}
.reg {
  width: min(100%, 940px); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(2, 30, 80, 0.45);
}
.reg-welcome {
  padding: 34px 28px 28px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(420px 300px at 50% 85%, rgba(61, 179, 255, 0.35), transparent 70%), linear-gradient(160deg, #0c4ea8, #062f6e);
}
.reg-welcome h2 { margin: 0; font: 900 clamp(28px, 3.4vw, 36px)/1.04 var(--display); text-wrap: balance; }
.reg-welcome p { margin: 0; font-size: 15px; font-weight: 600; color: #cfe2ff; }
.reg-welcome .perks { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font: 800 15px/1.3 var(--display); }
.reg-welcome .perks li::before { content: "\2605"; margin-right: 8px; color: var(--gold-top); }
.reg-welcome img { display: block; width: min(76%, 260px); height: auto; margin: auto auto 0; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35)); }

.reg-form.card { max-width: none; border-radius: 0; box-shadow: none; background: #f4f9ff; padding: 32px 32px 28px; }
.reg-form.card h1 { color: #063a7c; }
.reg-form .field label { font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #063a7c; }
.reg-form .field input { background: #ffffff; }
.rail { display: flex; gap: 6px; margin: 0 0 20px; }
.rail span { flex: 1; height: 6px; border-radius: 99px; background: #cfe0f4; transition: background 0.2s ease; }
.rail span.done { background: #1faa4b; }
.reg-form .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.reg-form .field.code { padding: 12px 14px 10px; border-radius: 12px; background: #fff4cf; border: 2px dashed #f2c14e; }
.reg-form .field.code label { color: #8a5a00; }

@media (max-width: 760px) {
  .reg { grid-template-columns: minmax(0, 1fr); }
  .reg-welcome { padding: 24px 22px 18px; }
  .reg-welcome img { width: 120px; margin: 4px auto 0; }
  .reg-form.card { padding: 24px 20px 22px; }
  .reg-form .pair { grid-template-columns: minmax(0, 1fr); }
}


/* the password's note sits under the left box of the pair : it may run on under the right one, which has none */
@media (min-width: 761px) {
  .reg-form .pair .note { white-space: nowrap; }
}

/* the line under "Crea tu cuenta" : blue and bold, as in the chosen version */
.reg-form .sub { color: #0b6fbf; font-weight: 800; }

/* ---------------------------------------------------------------- the home page : a wide picture + four pictures */
/* The picture ( img/stage.jpg ) fades into the site's blue at the right, where the logo, a line and the Play button
   sit ; under it four pictures of the game, each with a title and a line. */
main.home { flex: 1; display: flex; flex-direction: column; padding: 32px 0 0; color: #fff; background: linear-gradient(180deg, #1a8ff0, #0a63c8 60%, var(--blue-deep)); }
.home-in { width: 100%; max-width: min(1560px, 90vw); margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 22px; }
.banner {
  position: relative; min-height: 340px; aspect-ratio: 39 / 10; border-radius: 14px; overflow: hidden; display: flex; justify-content: flex-end;
  background: #0a55c0 url("img/stage.jpg") 0% 28% / cover no-repeat; box-shadow: 0 10px 28px rgba(0, 30, 80, 0.45);
}
.banner-side {
  width: min(100%, max(440px, 34%)); padding: 28px 34px 28px 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: linear-gradient(90deg, rgba(10, 85, 192, 0), rgba(10, 85, 192, 0.93) 28%, #0a55c0);
}
/* a video behind the banner's words : YouTube's own player, muted, without controls, filling the banner ( it is
   16:9, the banner much wider : its middle band shows ) ; the picture stays under it until it plays. No clicks reach it. */
.banner { container-type: size; }
.banner-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.banner-video iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%);
}
/* The player is never made see-through ( YouTube pauses a player the visitor cannot see ) : the banner's picture lies
   over it and goes away while the video is really playing and the player's own buttons are gone ( site.js sets .on ). */
.banner-video::after {
  content: ""; position: absolute; inset: 0; background: #0a55c0 url("img/stage.jpg") 0% 28% / cover no-repeat;
  transition: opacity 0.3s ease;
}
.banner-video.on::after { opacity: 0; }
.banner-side { position: relative; z-index: 1; }
.banner-side h1 { margin: 0; line-height: 0; }
.banner-side h1 img { width: min(100%, clamp(290px, 22vw, 400px)); height: auto; }
.banner-side .lead { margin: 0; font: 900 clamp(19px, 1.5vw, 24px)/1.25 var(--display); text-wrap: balance; }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feats article { text-align: center; }
.feats img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 16px rgba(0, 30, 80, 0.4); }
.feats h2 { margin: 12px 0 4px; font: 900 clamp(20px, 1.5vw, 24px)/1.15 var(--display); }
.feats p { margin: 0; font-size: clamp(15px, 1.1vw, 17px); font-weight: 600; line-height: 1.4; color: #dcecff; text-wrap: balance; }
main.home .small { margin: 2px 0 0; text-align: center; font-size: 13px; color: #d5e8ff; }
@media (max-width: 860px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { min-height: 300px; }
  .banner-side { width: 100%; padding: 26px 20px; background: rgba(10, 85, 192, 0.72); }
}
@media (max-width: 460px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* the picture under the home page's content, before the footer : Madrigal's sky ( img/home-sky.jpg ), see-through
   over the site's blue, coming up out of it ( the top is masked away ) and drifting slowly. Still when the visitor
   asks for less motion. */
.home-art {
  position: relative; flex: none; height: clamp(220px, 28vw, 520px); margin: 8px 0 0; align-self: stretch; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 78%, rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(180deg, transparent, #000 40%, #000 78%, rgba(0, 0, 0, 0.25));
}
.home-art::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background: url("img/home-sky.jpg?v=2") center 35% / cover no-repeat;
}
/* clouds passing in front of it : two rows of the same drawing ( img/clouds.svg ), the near one larger and faster.
   Each row moves by exactly its own width, so the loop has no jump. */
.home-art::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 2400px); opacity: 0.5;
  background: url("img/clouds.svg") 0 118% / 1200px 220px repeat-x, url("img/clouds.svg") 0 16% / 800px 147px repeat-x;
  animation: home-clouds 80s linear infinite; will-change: transform;
}
/* moved as one layer by the graphics card ( a transform ), so nothing is painted again each frame : 2400 px is a whole
   number of both rows' widths, the loop has no jump */
@keyframes home-clouds { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-2400px, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .home-art::after { animation: none; } }

/* phones : the wide logo, four sections, the account and the play button on one line */
@media (max-width: 430px) {
  .head .wrap { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .logo img { height: 34px; }
  .nav { gap: 4px; }
  .nav a { padding: 4px 0; }
  .nav svg, .nav img { width: 24px; height: 24px; }
  .gold, .head .gold { padding: 8px 10px; font-size: 14px; }
  .head .who-btn img { width: 34px; height: 34px; }
}
