/* Account pages: sign up (/account/create/), log in, the account dashboard, character creation, and the
   loading, offline, success and empty states. Lengths are px of the 1086 px mockups 10 to 13 and the
   17-feedback and 18-launcher-states boards; the column, the tiles and the scenes are fluid, so the pages
   fill any window and the shell's zoom scales the type. Phone lengths are half the 724 px phone mockups. */

.acct { padding-bottom: 2px; }
/* Screens, forms, states and notes are shown and hidden with the hidden attribute. */
.acct [hidden] { display: none !important; }
.acct-screen { display: flex; flex-direction: column; gap: 14px; }

/* Headings on parchment are in ink; on navy in cream. */
.auth__title, .launch__title, .chars__title, .acct-state__title, .creator__label, .creator__heading,
.dash__title, .creator__title, .guides__title, .pick__label, .problem__title, .form-errors__title, .created__title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
}
.dash__title, .creator__title, .guides__title { color: var(--cream); }
:is(.auth__title, .dash__title, .creator__title):focus { outline: none; }

:where(.acct) .rule { margin: 0; }

/* ---- Fields ---- */
.acct .field { gap: 0; }
.acct .field__label { margin-bottom: 10px; font-size: 26px; line-height: 1.2; }
.acct .input {
  min-height: 65px;
  padding: 10px 16px;
  border: 2px solid #8b5420;
  border-radius: 4px;
  background-color: var(--surface);
  box-shadow: none;
  font-size: 24px;
}
.acct .input::placeholder { color: #7a7268; }
.acct .input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgb(125 31 44 / 0.25); }
.acct .input[aria-invalid="true"] { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); color: var(--ink); }
.acct .field__hint { margin-top: 8px; font-size: 21px; color: var(--ink); }
.acct .field__error { margin-top: 8px; gap: 8px; align-items: flex-start; font-size: 19px; font-weight: 600; line-height: 1.3; }
.acct .field__error::before { content: ''; flex: none; width: 21px; height: 19px; margin-top: 2px; background: url(/assets/art/interface-icons/warning.webp) center / contain no-repeat; }

.password { position: relative; }
.password .input { padding-right: 104px; }
.password__toggle {
  position: absolute;
  top: 8px;
  right: 2px;
  bottom: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 18px;
  border: 0;
  border-left: 2px solid #c79a62;
  background: none;
  color: var(--link);
  font: 600 22px/1 var(--sans);
  cursor: pointer;
}
.password__toggle:hover { color: var(--burgundy-hover); }
.password .input::placeholder { color: #4d463f; font-size: 30px; }
.password__toggle:focus-visible { outline-offset: -2px; }

/* "Check your details": the summary above a form's fields. */
.form-errors {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 16px;
  border: 2px solid var(--burgundy);
  border-radius: 4px;
  background: var(--surface);
  color: var(--burgundy);
}
.form-errors::before { content: ''; grid-row: span 2; width: 30px; height: 27px; margin-top: 2px; background: url(/assets/art/interface-icons/warning.webp) center / contain no-repeat; }
.form-errors__title { font-size: 24px; line-height: 1.2; color: var(--burgundy); }
.form-errors__list { margin: 0; padding: 0 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.35; }

/* Pending submits keep their colour; the label says what is happening. */
.acct .btn[aria-busy="true"] { opacity: 1; }

/* "Could not connect." inside a form after a failed request; the entered values stay. */
.problem { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 2px solid #c79a62; border-radius: 4px; background: var(--surface); }
.problem__art { width: 96px; height: auto; }
.problem__title { font-size: 24px; line-height: 1.15; }
.problem__text { margin: 4px 0 10px; font-size: 17px; line-height: 1.35; color: var(--ink-2); }

/* ---- Feedback states (17-feedback panels): art at the left, title, rule, text and action. ---- */
.acct-state { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: center; }
.acct-state__art { width: 250px; height: auto; }
.acct-state__body { display: grid; gap: 14px; justify-items: start; }
.acct-state__title { font-size: 36px; line-height: 1.08; }
.acct-state__title:focus { outline: none; }
.acct-state .rule { width: 100%; margin: -2px 0; }
.acct-state__text { font-size: 20px; line-height: 1.25; color: var(--ink); }
.acct-state__action { min-width: 210px; min-height: 52px; padding: 6px 24px; font-size: 22px; white-space: normal; line-height: 1.15; }
.acct .skeleton { width: 100%; height: 20px; border-radius: 4px; background: #d3c9b5; }
.acct .skeleton--short { width: 80%; }
.acct-screen--state { flex: 1; align-items: center; justify-content: center; padding: 48px 0; }
.acct-screen--state .acct-state { width: clamp(min(570px, 100%), 48%, 660px); padding: 24px 26px 24px 18px; }

/* ---- Sign up (mockup 10): the form panel keeps a readable width beside the tall framed camp scene,
   which takes the rest of the row. The scene's frame tucks under the panel's right border, so the two
   frames join as the mockup draws them. ---- */
.auth { padding-block: 45px 35px; }
.auth--signup { display: grid; grid-template-columns: clamp(400px, 44%, 520px) minmax(0, 1fr); }
.auth__panel { z-index: 1; container-type: inline-size; display: flex; flex-direction: column; padding: 92px 47px 72px; }
.auth__title { font-size: min(68px, 17.4cqi); line-height: 1.1; }
.auth__panel > .rule { margin-top: 23px; }
.auth__lede { margin-top: 24px; font-size: min(26px, 6.1cqi); line-height: 1.35; }
.auth__form { display: grid; gap: 28px; margin-top: 48px; }
.auth__form .field + .field { margin-top: 12px; }
.auth__submit { width: auto; min-height: 85px; margin: 25px -7px 0; font-size: 34px; }
.auth__switch { margin-top: 36px; text-align: center; font-size: min(26px, 6.8cqi); }
.auth__switch + .rule { margin-top: 37px; }
.auth__note { margin: 24px -12px 0; text-align: center; font-size: 18px; text-wrap: balance; }
.auth__panel .acct-state { grid-template-columns: 130px 1fr; margin-top: 46px; }
.auth__panel .acct-state__art { width: 130px; }
.auth__panel .acct-state__title { font-size: 32px; }
.auth__art { min-height: 400px; margin-left: -6px; }
.auth__art img { object-position: var(--art-pos, 50% 50%); }
.auth--signup .auth__art { --art-pos: 46% 50%; }

/* ---- Log in (mockup 11): a centred form panel over a wide crop of the inn scene in its frame. The form
   keeps the mockup's 846 px measure; the panel and the scene take the window's width, and the scene's
   height grows with it. ---- */
.auth--login { gap: 18px; padding-top: 25px; }
.login { padding: 32px max(60px, calc((100% - 846px) / 2)) 28px; text-align: center; }
.login .auth__title { font-size: 76px; }
.login > .rule { margin: -6px 0 0; }
.login .auth__lede { margin-top: 6px; font-size: 30px; line-height: 1.3; }
.login__status:empty { display: none; }
.login__status { margin-top: 10px; font-weight: 600; color: var(--burgundy); }
.login .auth__form { gap: 16px; margin-top: 21px; padding-inline: 10px; text-align: left; }
.login .auth__form .field + .field { margin-top: 0; }
.login .input { min-height: 62px; }
.login .auth__submit { min-height: 75px; margin: 14px -12px 0; }
.login .auth__switch { margin-top: 12px; font-size: 24px; }
.login .auth__switch .link { text-decoration-thickness: 3px; }
/* The log-in note sits under a plain line, without the ornament. */
.login__note { margin: 26px 0 0; padding-top: 8px; border-top: 2px solid #c79a62; font-size: 22px; }
.auth--login .auth__art { min-height: 0; margin: 0; aspect-ratio: 1066 / 548; --art-pos: 50% 60%; }

/* ---- Dashboard ---- */
.dash { gap: 14px; }
.dash__hero { padding-top: 15px; text-align: center; }
.dash__title { font-size: 57px; line-height: 1.1; }
.dash__who { margin-top: -5px; font-size: 24px; line-height: 1.3; color: var(--cream); }
/* The courtyard runs the width of the window, grows with it and melts into the navy at its edges. */
.dash__banner { aspect-ratio: 3.4; margin: 0 -10px calc(-1 * var(--gap)); overflow: hidden; --fade-l: 3%; --fade-r: 3%; --fade-t: 6%; --fade-b: 0%; }
.dash__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

.created { display: flex; align-items: center; gap: 18px; padding: 18px 40px 18px 56px; font-size: 20px; }
.created:focus { outline: none; }
.created:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.created__icon { width: 130px; height: auto; margin: -8px 6px -8px -20px; }
.created__title { padding: 6px 0 6px 24px; border-left: 2px solid #a87b48; font-size: 30px; line-height: 1.1; white-space: nowrap; }

.launch, .chars { display: flex; flex-direction: column; align-items: center; text-align: center; }
.launch { padding: 18px 125px 25px; }
.launch__title { font-size: 56px; line-height: 1.1; }
.launch > .rule, .chars > .rule { align-self: stretch; margin-top: -3px; }
.chars > .rule { margin-top: -5px; }
.launch__lede { margin-top: 4px; font-size: 25px; line-height: 1.3; }
.launch__play { min-width: 340px; min-height: 65px; margin-top: 12px; font-size: 31px; }

.chars { padding: 18px 80px 26px; }
.chars > .rule { margin-inline: 45px; }
.chars__title { font-size: 46px; line-height: 1.15; }
.chars__create { min-width: 312px; min-height: 52px; margin-top: 12px; font-size: 25px; }
.chars__list { display: grid; gap: 16px; align-self: stretch; margin-top: 12px; }
.char { display: flex; align-items: center; min-height: 79px; padding: 4px 30px; border: 2px solid #b98c59; border-radius: 6px; background: rgb(255 248 233 / 0.55); text-align: left; }
.char__medal {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 80px;
  height: 70px;
  background: #4a1d12;
  clip-path: polygon(22% 0, 78% 0, 100% 27%, 100% 73%, 78% 100%, 22% 100%, 0 73%, 0 27%);
  font: 700 44px/1 var(--display);
  color: var(--cream);
  isolation: isolate;
}
.char__medal::before, .char__medal::after { content: ''; position: absolute; z-index: -1; clip-path: inherit; }
.char__medal::before { inset: 3px; background: linear-gradient(#f2c172, #b7742f); }
.char__medal::after { inset: 8px; background: linear-gradient(var(--burgundy-top), var(--burgundy-bottom)); box-shadow: inset 0 0 0 1px #3a0d14; }
.char__text { margin-left: 28px; padding-left: 28px; border-left: 2px solid #8b5420; line-height: 1.2; }
.char__name { font: 700 31px/1.1 var(--sans); color: var(--ink); }
.char__meta { margin-top: 2px; font-size: 22.5px; color: var(--ink); }
.chars__note { margin-top: 14px; font-size: 21px; }
.chars__empty { width: min(540px, 100%); margin-top: 16px; text-align: left; }

/* "Make your first days count.": the guidebook sits on a stone floor before a dark brick wall that melts
   into the navy behind the copy, as in the mockup; the band grows with the window. */
.guides {
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40' shape-rendering='crispEdges'%3E%3Crect width='64' height='40' fill='%23141a2e'/%3E%3Crect x='1' y='1' width='30' height='18' fill='%233a3a52'/%3E%3Crect x='33' y='1' width='30' height='18' fill='%23434259'/%3E%3Crect x='0' y='21' width='15' height='18' fill='%23403f57'/%3E%3Crect x='17' y='21' width='30' height='18' fill='%2337364d'/%3E%3Crect x='49' y='21' width='15' height='18' fill='%23403f57'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  aspect-ratio: 4.4;
}
.guides::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6px 6px 6px 36%;
  clip-path: var(--notch);
  background:
    radial-gradient(circle at 47% 55%, rgb(255 190 90 / 0.3), rgb(255 190 90 / 0) 22%),
    linear-gradient(rgb(8 26 53 / 0) 76%, #2a2433 76%, #1c1a28),
    var(--bricks) 0 0 / 96px 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
  image-rendering: pixelated;
  pointer-events: none;
}
.guides__text { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 18px 0 20px 51px; }
.guides__title { max-width: 400px; font-size: 48px; line-height: 0.94; }
.guides__link { min-width: 323px; min-height: 52px; font-size: 26px; }
.guides__art { position: absolute; z-index: 0; right: 13%; bottom: 7px; width: auto; height: calc(100% - 16px); }

/* ---- Sign in with Google ----
   Google draws its button in an iframe at a width the page passes (account.js); the slot centres it. */
.google-signin { display: grid; gap: 12px; margin-top: 22px; }
.google-signin__or { display: flex; align-items: center; gap: 16px; font-size: 20px; color: var(--ink-2); }
.google-signin__or::before, .google-signin__or::after { content: ''; flex: 1; height: 2px; background: #c79a62; }
.google-signin__button { display: flex; justify-content: center; min-height: 44px; }
.google-signin__error { justify-content: center; }
.google-signin__privacy { text-align: center; font-size: 18px; }

.google-link { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 80px 26px; text-align: center; }
.google-link__title { font: 700 46px/1.15 var(--display); color: var(--ink); }
.google-link > .rule { align-self: stretch; margin: -9px 45px 0; }
.google-link__text { font-size: 22px; line-height: 1.35; text-wrap: balance; }
.google-link .google-signin__button { align-self: stretch; }
.google-link__unlink { min-width: 220px; min-height: 46px; font-size: 21px; }

@media (max-width: 767px) {
  .google-signin { gap: 10px; margin-top: 16px; }
  .google-signin__or { font-size: 15px; }
  .google-signin__privacy { font-size: 14px; }
  .google-link { gap: 10px; padding: 14px 20px 16px; }
  .google-link__title { font-size: 30px; }
  .google-link > .rule { margin-inline: 0; }
  .google-link__text { font-size: 15px; }
  .google-link__unlink { min-width: 0; min-height: 38px; font-size: 16px; }
}

/* ---- Character creation ---- */
.creator { gap: 0; }
/* The vocation hall grows with the window and melts into the navy at its sides and under the title. */
.creator__banner { aspect-ratio: 1020 / 345; margin: 2px 23px 0; overflow: hidden; --fade-l: 4%; --fade-r: 4%; --fade-b: 12%; }
.creator__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.creator__hero { margin-top: -12px; padding: 0 0 10px; text-align: center; }
.creator__title { font-size: 62px; line-height: 1.1; }
.creator__lede { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: -4px; font-size: 27px; line-height: 1.3; color: var(--cream); }
.creator__lede::before, .creator__lede::after { content: ''; width: 154px; height: 3px; background: linear-gradient(90deg, transparent, var(--focus) 20%, #c9a259); }
.creator__lede::after { transform: scaleX(-1); }

.creator__form { display: flex; flex-direction: column; padding: 28px 50px 19px; }
.creator__form > .form-errors { margin: 0 36px 18px; }
.creator__top { display: grid; grid-template-columns: minmax(0, 448px) 2px max-content; gap: 0 56px; padding: 0 0 13px 36px; }
.creator__top::after { content: ''; grid-column: 2; grid-row: 1; width: 2px; height: 98px; align-self: center; background: #a87b48; }
.creator__name { grid-column: 1; grid-row: 1; }
.creator__sex { grid-column: 3; grid-row: 1; }
.creator__rule-sex { display: none; }
.creator__label { display: block; margin-bottom: 10px; padding: 0; font-size: 26px; line-height: 1.2; }
.creator__name .input { min-height: 40px; padding: 4px 12px; font-size: 20px; }
.creator__name .field__hint { margin-top: 6px; font-size: 17.5px; }
.creator__sex, .creator__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.creator__sexes { display: flex; gap: 30px; padding-top: 6px; }
.creator__sexes .radio { min-width: 150px; gap: 16px; font-size: 23px; }
.acct .radio input { width: 30px; height: 30px; border: 2px solid #7a4e2a; }
.acct .radio input::before { width: 16px; height: 16px; }

.creator__heading { width: 100%; padding: 0; margin: 0 0 16px; text-align: center; font-size: 29px; line-height: 1.2; }
/* The tiles fill the row and size their insides from their own width (mockup 13: 167 x 158 vocation
   tiles, 295 x 168 city tiles, 20 px apart). */
.picks { display: grid; gap: 20px; padding-inline: 16px; }
.picks--vocations { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.picks--cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.creator__group .field__error { justify-content: center; }
.creator__group + .rule { margin-top: 18px; }

.pick { position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; padding: 8px 8px 0; cursor: pointer; }
.pick::before { content: ''; position: absolute; inset: 0; z-index: -1; border: 7px solid transparent; border-image: url(/assets/art/frame-btn.svg) 20 / 16px; clip-path: var(--notch); background: linear-gradient(#fdf1d4, #f1d6a2); background-origin: border-box; }
.pick:has(.pick__radio:checked)::after { content: ''; position: absolute; inset: -3px; z-index: -2; background: var(--burgundy); clip-path: var(--notch); }
.pick:has(.pick__radio:focus-visible) { outline: 3px solid var(--burgundy); outline-offset: 5px; }
.pick__radio { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__art { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid #2b1a10; box-shadow: inset 0 0 0 1px #e0a55a; }
.pick__label { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.pick__mark { flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); }
.pick__radio:checked + .pick__art + .pick__label .pick__mark {
  border-color: var(--burgundy);
  background: var(--burgundy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff4dd' d='M9 2h2v2H9zM8 4h2v2H8zM7 5h2v2H7zM6 6h2v2H6zM5 7h2v2H5zM4 8h2v2H4zM2 6h2v2H2zM3 7h2v2H3z'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.pick--vocation { aspect-ratio: 167 / 158; }
.pick--vocation .pick__art { flex: none; height: 67cqw; background: radial-gradient(ellipse at 50% 42%, #7e1c2c, #5a0f1b 85%); }
.pick--vocation .pick__art img { width: 80cqw; height: 62cqw; object-fit: contain; }
.pick--vocation .pick__label { gap: 7cqw; font-size: min(21px, 12.6cqw); }
.pick--vocation .pick__mark { width: 15.5cqw; height: 15.5cqw; }
.pick--city { aspect-ratio: 295 / 168; }
.pick--city .pick__art { flex: none; height: 39cqw; }
.pick--city .pick__art img { width: 100%; height: 100%; object-fit: cover; }
.pick--city .pick__label { gap: 4cqw; font-size: min(21px, 7.2cqw); }
.pick--city .pick__mark { width: 8.8cqw; height: 8.8cqw; }

.city-select { display: none; }
.creator__form > .creator__rule-kit { margin-top: 21px; }
/* On wide screens the rule above the kit note is a plain line without the ornament. */
.creator__rule-kit > i, .creator__rule-kit::after { display: none; }
.creator__kit { margin-top: -5px; text-align: center; font-size: 21px; }
.creator__actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.creator__submit { min-width: 350px; min-height: 60px; font-size: 26.5px; }
.creator__back { font-size: 18.5px; text-underline-offset: 4px; }
.creator__form .problem { margin: 16px auto 0; width: min(560px, 100%); }

/* ---- Narrow windows (the shell switches to its Menu button here too) ---- */
@media (max-width: 1000px) {
  .login { padding-inline: 48px; }
  .launch, .chars { padding-inline: 40px; }
  .chars > .rule { margin-inline: 0; }
  .creator__form { padding-inline: 32px; }
  .creator__top { gap: 0 28px; padding-left: 0; }
  .creator__sexes { gap: 16px; }
  .creator__sexes .radio { min-width: 0; }
  .picks { gap: 14px; padding-inline: 0; }
  .guides__text { padding-left: 32px; }
  .guides__title { font-size: 40px; }
  .guides__link { min-width: 0; }
  .guides__art { right: 6%; }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .auth--signup .auth__panel { padding: 64px 36px 52px; }
  .auth--signup .auth__note { margin-inline: -18px; font-size: 16px; }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
  .acct-screen:not(.creator) { gap: 15px; }
  .acct .field__label { margin-bottom: 8px; font-size: 17px; }
  .acct .input { min-height: 35px; padding: 5px 12px; font-size: 16px; }
  .acct .field__hint { margin-top: 3px; font-size: 14px; }
  .acct .field__error { margin-top: 6px; font-size: 14px; }
  .acct .field__error::before { width: 16px; height: 14px; margin-top: 1px; }
  .password .input { padding-right: 76px; }
  .password .input::placeholder { font-size: 20px; }
  .password__toggle { top: 6px; bottom: 6px; padding: 0 10px 0 12px; font-size: 15px; }
  .form-errors { gap: 2px 10px; padding: 8px 10px; }
  .form-errors::before { width: 22px; height: 20px; }
  .form-errors__title { font-size: 17px; }
  .form-errors__list { padding-left: 16px; font-size: 14px; }
  .problem { grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 10px; }
  .problem__art { width: 64px; }
  .problem__title { font-size: 17px; }
  .problem__text { margin: 2px 0 8px; font-size: 13px; }

  .acct-state { grid-template-columns: 110px 1fr; gap: 10px; }
  .acct-state__art { width: 110px; }
  .acct-state__body { gap: 8px; }
  .acct-state__title { font-size: 22px; }
  .acct-state__text { font-size: 14px; }
  .acct-state__action { min-width: 0; min-height: 36px; padding: 4px 14px; font-size: 15px; }
  .acct .skeleton { height: 12px; }
  .acct-screen--state { padding: 24px 0; }
  .acct-screen--state .acct-state { padding: 16px 14px 16px 10px; }

  .auth { padding-block: 16px 0; }
  .auth--signup { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .auth__panel { padding: 31px 32px 21px; }
  .auth__title { font-size: min(48px, 17cqi); line-height: 0.94; }
  .auth__panel > .rule { margin-top: 8px; }
  .auth__lede { margin-top: 7px; font-size: 19px; line-height: 22.5px; }
  .auth__form { gap: 14px; margin-top: 18px; }
  .auth__form .field + .field { margin-top: 0; }
  .auth__submit { min-height: 47px; margin: 0 -8px; font-size: 22px; }
  .auth__switch { margin-top: 10px; font-size: 17px; }
  .auth__switch + .rule { margin-top: 9px; }
  .auth__note { margin: 6px 0 0; font-size: 13px; }
  .auth__panel .acct-state { grid-template-columns: 96px 1fr; margin-top: 18px; }
  .auth__panel .acct-state__art { width: 96px; }
  .auth__art { min-height: 0; margin-left: 0; aspect-ratio: 0.95; }
  .auth--signup .auth__art { --art-pos: 50% 45%; }
  .auth--login .auth__art { aspect-ratio: 0.9; --art-pos: 50% 12%; }

  .auth--login { padding-top: 18px; gap: 12px; }
  .login { padding: 36px 25px 23px; text-align: center; }
  .login .auth__title { font-size: min(40px, 13.4cqi); line-height: 1.1; }
  .login > .rule { margin-top: 4px; }
  .login .auth__lede { margin-top: 2px; font-size: 17.5px; }
  .login .auth__form { gap: 16px; margin-top: 30px; padding-inline: 0; }
  .login .input { min-height: 41px; }
  .login .auth__submit { min-height: 53px; margin: 14px -5px 0; }
  .login .auth__switch { margin-top: 18px; font-size: 17px; }
  .login__note { margin: 24px 0 0; padding-top: 8px; font-size: 14px; line-height: 1.4; text-wrap: balance; }

  .dash { gap: 15px; }
  .dash__hero { order: 1; padding-top: 0; margin-top: -6px; }
  .dash__banner { order: 0; aspect-ratio: 3.7; margin: 16px -1px 0; --fade-t: 0%; --fade-l: 2%; --fade-r: 2%; }
  .dash__banner ~ * { order: 2; }
  .dash__title { font-size: clamp(28px, 10vw, 35px); line-height: 0.97; }
  .dash__who { margin-top: 6px; font-size: 15px; }
  .created { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 16px; font-size: 14px; }
  .created__icon { grid-row: span 2; width: 64px; margin: 0; }
  .created__title { padding: 0; border: 0; font-size: 18px; }
  .launch { padding: 14px 18px 18px; }
  .launch__title { font-size: clamp(26px, 8.8vw, 32px); }
  .launch__lede { margin-top: 4px; max-width: 250px; font-size: 17px; line-height: 1.3; }
  .launch__play { min-width: 249px; min-height: 46px; margin-top: 18px; font-size: 20px; }
  .chars { padding: 14px 20px 16px; }
  .chars > .rule { margin-inline: 0; }
  .chars__title { font-size: 30px; }
  .chars__create { min-width: 216px; min-height: 37px; margin-top: 8px; font-size: 17px; }
  .chars__list { gap: 10px; margin-top: 12px; }
  .char { min-height: 50px; padding: 3px 10px; border-radius: 5px; }
  .char__medal { width: 48px; height: 42px; font-size: 26px; }
  .char__medal::before { inset: 2px; }
  .char__medal::after { inset: 5px; }
  .char__text { margin-left: 15px; padding-left: 16px; }
  .char__name { font-size: 20px; }
  .char__meta { font-size: 14.5px; }
  .chars__note { max-width: 220px; margin-top: 2px; font-size: 14px; line-height: 19px; }
  .chars__empty { margin-top: 12px; }
  .guides { flex-direction: column; align-items: stretch; aspect-ratio: auto; }
  .guides__text { align-items: center; gap: 12px; padding: 16px 12px 0; text-align: center; }
  .guides__title { max-width: 260px; font-size: 30px; line-height: 0.95; }
  .guides__link { min-width: 252px; min-height: 37px; font-size: 18px; }
  .guides__art { position: relative; z-index: 0; right: auto; bottom: auto; align-self: center; width: min(190px, 58%); height: auto; margin: 6px 0 4px; }
  .guides::after {
    inset: auto 6px 6px;
    height: 46%;
    background:
      radial-gradient(circle at 36% 50%, rgb(255 190 90 / 0.25), rgb(255 190 90 / 0) 34%),
      linear-gradient(rgb(8 26 53 / 0) 74%, #2a2433 74%, #1c1a28),
      var(--bricks) 50% 0 / 64px 40px;
    -webkit-mask-image: linear-gradient(transparent, #000 36%);
    mask-image: linear-gradient(transparent, #000 36%);
  }

  .creator__banner { aspect-ratio: 2.6; margin: -4px 0 0; --fade-l: 0%; --fade-r: 0%; --fade-b: 14%; }
  .creator__hero { margin-top: -10px; padding: 0 0 9px; }
  .creator__title { font-size: clamp(26px, 8.3vw, 30px); }
  .creator__lede { gap: 14px; margin-top: 1px; font-size: 15px; white-space: nowrap; }
  .creator__lede::before, .creator__lede::after { flex: 0 1 40px; min-width: 8px; height: 2px; }
  .creator__form { padding: 12px clamp(14px, 10vw, 36px) 85px; }
  .creator__form > .form-errors { margin: 0 0 12px; }
  .creator__top { display: block; padding: 0; }
  .creator__top::after { display: none; }
  .creator__rule-sex { display: flex; margin: 3px -11px -2px; }
  .creator__label { margin-bottom: 6px; font-size: 16.5px; }
  .creator__name .input { min-height: 26px; padding: 2px 10px; font-size: 15px; }
  .creator__name .field__hint { margin-top: 3px; font-size: 12px; }
  .creator__sexes { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 0; padding: 0; }
  .creator__sex { padding-bottom: 5px; }
  .creator__sex .creator__label { margin-bottom: 4px; }
  .creator__group + .rule { margin-top: 8px; }
  .creator__sexes .radio { min-width: 0; gap: 10px; font-size: 15px; }
  .acct .radio input { width: 20px; height: 20px; }
  .acct .radio input::before { width: 10px; height: 10px; }
  .creator__form > .rule { margin-inline: -11px; }
  .creator__heading { margin: 0 0 10px; text-align: left; font-size: 17px; }
  .picks--vocations { grid-template-columns: repeat(2, minmax(0, 125px)); gap: 8px clamp(10px, 6vw, 22px); justify-content: center; }
  .pick { padding: 4px 4px 0; }
  .pick::before { border-width: 4px; border-image-width: 10px; }
  .pick--vocation { aspect-ratio: 125 / 82; }
  .pick--vocation .pick__art { height: 44cqw; }
  .pick--vocation .pick__art img { width: 62cqw; height: 41cqw; }
  .pick--vocation .pick__label { font-size: min(13px, 10.4cqw); }
  .pick--vocation .pick__mark { width: 14.4cqw; height: 14.4cqw; }
  .picks--cities { display: none; }
  .city-select { display: block; }
  .city-select .input { min-height: 33px; padding: 4px 40px 4px 12px; font-weight: 700; font-size: 15px; font-family: var(--display); }
  .city-select__others { margin-top: 5px; text-align: center; font-size: 12px; }
  .creator__form > .creator__rule-kit { margin-top: 8px; }
  .creator__rule-kit > i, .creator__rule-kit::after { display: block; }
  .creator__kit { margin-top: -1px; font-size: 12px; line-height: 15px; }
  .creator__actions { gap: 4px; margin-top: 28px; }
  .creator__submit { min-width: 265px; min-height: 34px; font-size: 17px; }
  .creator__back { font-size: 13px; }
}
