/* Fellthorn account pages (account.fellthorn.com): join, sign in, account, owner page.
   The tokens, type, ornaments, buttons and form controls are copied from the teaser site, web/site/css/site.css
   (":root", "ornaments", "buttons", "playtest" and "sprites" blocks). Keep the :root block in step with it.
   Art in /acct/ is copied from web/site/assets by server/tools/sync_account_assets.sh. */

/* the character-look swatches, one class per colour (generated by server/tools/export_looks.py) */
@import url("look/looks.css");

@font-face {
  font-family: "Fellreach Pixel";
  src: url("font/fellreach-pixel.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0b0910;
  --bg: #120f18;
  --bg-2: #1a1622;
  --slate: #1f1b2a;
  --plum: #2a2036;
  --plum-2: #3a2c45;
  --olive: #384538;
  --olive-2: #556749;
  --moss: #768b51;
  --edge: #4b4659;
  --edge-ctl: #716a87;
  --gold: #e3c57c;
  --gold-hi: #f6e2a6;
  --gold-lo: #a7843f;
  --gold-line: rgba(227, 197, 124, .38);
  --gold-faint: rgba(227, 197, 124, .14);
  --teal: #5fd4c8;
  --ward: #76b4ea;
  --ember: #f59432;
  --blood: #d0464a;
  --text: #ece7dc;
  --text-2: #c9c2b3;
  --dim: #a39cb0;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --pixel: "Fellreach Pixel", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text);
  font: 400 clamp(17px, .5vw + 14px, 19px)/1.6 var(--serif);
  font-feature-settings: "kern", "liga", "onum";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(118, 180, 234, .06), transparent 60%),
    url("grain.svg"); /* the site's paper grain, as a file: the CSP allows no data: images */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .06em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.sr-only, .sr-defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.px-text { font-family: var(--pixel); font-size: 18px; line-height: 22px; letter-spacing: 0; -webkit-font-smoothing: none; text-transform: none; }
.dim { color: var(--dim); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82em; letter-spacing: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(227, 197, 124, .18); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; font-family: var(--display); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ backdrop, top bar, footer */

.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(.8) blur(1px); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,15,24,.35) 0%, rgba(18,15,24,.8) 40%, #0e0b13 100%), radial-gradient(ellipse at 50% 20%, transparent, rgba(18,15,24,.7)); }

.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter); border-bottom: 1px solid var(--gold-faint); background: rgba(14, 11, 19, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top__mark { display: block; width: 206px; flex: none; }
.top__mark img { width: 206px; height: 27px; }
.top__nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.top__nav a, .top__who { color: var(--text-2); text-decoration: none; font: 500 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--gold-hi); }
.top__who { color: var(--dim); text-transform: none; letter-spacing: .04em; font: italic 16px var(--serif); }
@media (max-width: 560px) { .top { flex-wrap: wrap; gap: 10px 16px; padding-top: 14px; padding-bottom: 14px; } .top__mark, .top__mark img { width: 154px; height: auto; } .top__who { display: none; } .top__nav { gap: 16px; } }

.main { flex: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 64px; }
.main--wide { max-width: 1240px; }
.main--admin { max-width: 1440px; }

.foot { border-top: 1px solid var(--gold-faint); background: #0c0a10; padding: 26px var(--gutter); color: var(--dim); text-align: center; font-size: 15px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot .sep { color: var(--gold-lo); margin: 0 10px; }

/* ------------------------------------------------------------------ ornaments */

.eyebrow { color: var(--gold); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.eyebrow::after { transform: scaleX(-1); }
.head { text-align: center; margin-bottom: 30px; }
.head h1 { font-size: clamp(30px, 2.4vw + 16px, 46px); color: #f3ead6; text-wrap: balance; }
.head p { color: var(--text-2); max-width: 560px; margin: 14px auto 0; }
.head--left { text-align: left; }
.head--left p { margin-left: 0; }
.head--left .divider { margin-left: 0; width: min(260px, 70%); }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; width: min(320px, 80%); color: var(--gold); }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 40%, var(--gold-line)); }
.divider i:last-child { transform: scaleX(-1); }
.divider svg { width: 10px; height: 10px; filter: drop-shadow(0 0 6px rgba(227, 197, 124, .6)); }

.frame { position: relative; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(31, 27, 42, .94), rgba(18, 15, 24, .97)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(11, 9, 16, .55), inset 0 0 0 5px var(--gold-faint); padding: clamp(24px, 3vw, 40px); }
.frame__corner { position: absolute; width: 34px; height: 34px; color: var(--gold); pointer-events: none; z-index: 4; }
.frame__corner svg { width: 100%; height: 100%; }
.frame__corner.tl { left: -7px; top: -7px; }
.frame__corner.tr { right: -7px; top: -7px; transform: scaleX(-1); }
.frame__corner.bl { left: -7px; bottom: -7px; transform: scaleY(-1); }
.frame__corner.br { right: -7px; bottom: -7px; transform: scale(-1, -1); }
.frame__title { font-size: 21px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.frame__title::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(227,197,124,.45); }
.frame__title small { margin-left: auto; font: italic 16px var(--serif); text-transform: none; letter-spacing: 0; color: var(--dim); }
.frame--center { text-align: center; }
.frame--center .frame__title { justify-content: center; }
.frame--center .frame__title::before { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--gold); border-radius: var(--radius);
  font: 600 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; isolation: isolate; overflow: hidden; background: none;
  transition: box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn > * { position: relative; z-index: 1; }
.btn::after { content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 246, 214, .55) 50%, transparent 65%); transform: translateX(-110%); }
.btn:hover::after, .btn:focus-visible::after { transition: transform .8s var(--ease); transform: translateX(110%); }
.btn--gold { color: #1a1306; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #c49d55); box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 8px 24px -8px rgba(227, 197, 124, .55), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 84, 30, .45); }
.btn--gold:hover { color: #1a1306; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 12px 36px -8px rgba(227, 197, 124, .8), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 84, 30, .45); }
.btn--ghost { color: var(--gold-hi); background: rgba(18, 15, 24, .45); border-color: var(--gold-line); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(42, 32, 54, .55); color: var(--gold-hi); }
.btn--danger { color: #f3b1b3; border-color: rgba(208, 70, 74, .55); background: rgba(208, 70, 74, .08); }
.btn--danger:hover { border-color: var(--blood); background: rgba(208, 70, 74, .18); color: #ffd3d4; }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 11px; letter-spacing: .14em; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"], .btn:disabled { cursor: not-allowed; filter: saturate(.3) brightness(.8); }
.btn[aria-disabled="true"]::after { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------------ forms (from the playtest form) */

.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
.field label, .lbl { display: block; font: 500 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.field input, .select select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--edge-ctl);
  background: rgba(11, 9, 16, .75); color: var(--text); font-size: 18px; transition: border-color .25s, box-shadow .25s, background-color .25s;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
}
.field input::placeholder { color: #8d87a0; }
.field input:hover, .select select:hover { border-color: #8f88a6; }
.field input:focus, .select select:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(95, 212, 200, .16); background: rgba(11, 9, 16, .9); }
.field.is-bad input, .field.is-bad select { border-color: var(--blood); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(208, 70, 74, .14); }
.field.is-ok input { border-color: rgba(95, 212, 200, .55); }
.field__hint { margin: 6px 0 0; color: var(--dim); font-size: 15px; line-height: 1.4; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
.select option { background: #1a1622; }
.err, .field__err { margin: 6px 0 0; color: #f08a8d; font-size: 15px; }
.alert { margin: 0 0 20px; padding: 12px 16px; border: 1px solid rgba(208, 70, 74, .5); background: rgba(208, 70, 74, .1); color: #f6c3c4; font-size: 16px; }
.notice { margin: 0 0 24px; padding: 14px 18px; border: 1px solid rgba(95, 212, 200, .4); background: rgba(95, 212, 200, .07); color: #c9f1ec; display: flex; gap: 14px; align-items: center; }
.notice::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--teal); transform: rotate(45deg); box-shadow: 0 0 10px rgba(95, 212, 200, .6); }
form > .field__hint { margin: -4px 0 18px; }
.note { margin-top: 22px; color: var(--dim); font-size: 16px; line-height: 1.5; }
.form-foot { margin-top: 20px; text-align: center; color: var(--dim); font-size: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ seal (wardstone with rings) */

.seal { position: relative; width: 120px; height: 120px; margin: 0 auto 6px; display: grid; place-items: center; }
.seal img { width: 42px; height: 62px; filter: drop-shadow(0 0 18px rgba(118, 180, 234, .85)); animation: hover 4s var(--ease-io) infinite; }
.seal__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ward); animation: ring 2.6s var(--ease) .4s infinite; opacity: 0; }
.seal__ring--2 { animation-delay: 1.7s; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ------------------------------------------------------------------ sprites (cell sizes from web/site/assets/sprites/sprites.json) */

.sprite {
  --s: 3; --w: 44; --h: 52; --n: 4;
  display: block; flex: none;
  width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px);
  background-repeat: no-repeat; background-position: 0 0;
  background-size: calc(var(--w) * var(--n) * var(--s) * 1px) calc(var(--h) * var(--s) * 1px);
  image-rendering: pixelated; image-rendering: crisp-edges;
  animation: walk .8s steps(4) infinite;
}
.sprite--2 { --s: 2; }
.sprite--1 { --s: 1; }
@keyframes walk { from { background-position-x: 0; } to { background-position-x: calc(var(--w) * var(--n) * var(--s) * -1px); } }
.sprite--knight { --w: 44; --h: 51; background-image: url("sprites/knight.png"); }
.sprite--ranger { --w: 44; --h: 54; background-image: url("sprites/ranger.png"); }
.sprite--mage   { --w: 44; --h: 56; background-image: url("sprites/mage.png"); }
.sprite--druid  { --w: 44; --h: 52; background-image: url("sprites/druid.png"); }

/* ------------------------------------------------------------------ join / sign in */

.auth { display: grid; gap: 0; }
.auth .frame { padding: clamp(26px, 3.4vw, 44px); }
.auth__parade { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 0 0 -6px; position: relative; z-index: 1; }
.auth__parade .sprite { --s: 2; margin: 0 -8px; filter: drop-shadow(0 8px 6px rgba(0,0,0,.55)); }
.auth__parade .sprite:nth-child(2) { animation-delay: -.2s; }
.auth__parade .sprite:nth-child(3) { animation-delay: -.4s; }
.auth__parade .sprite:nth-child(4) { animation-delay: -.6s; }
/* the invite sign-up: on a laptop the greeting and the four walking classes sit beside the form, so the whole form
   (and its Create account button) is above the fold */
.main--join { max-width: 600px; }
@media (min-width: 960px) {
  .main--join { max-width: 1080px; padding-top: clamp(28px, 4vh, 56px); }
  .auth--join { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 0 64px; align-items: center; }
  .auth--join .auth__intro { text-align: left; }
  .auth--join .head { text-align: left; margin-bottom: 26px; }
  .auth--join .head p { margin-left: 0; }
  .auth--join .divider { margin-left: 0; width: min(260px, 70%); }
  .auth--join .steps { flex-direction: column; justify-content: flex-start; gap: 10px; margin-bottom: 34px; }
  .auth--join .auth__parade { justify-content: flex-start; margin: 0 0 0 8px; }
  .auth--join .auth__parade .sprite { --s: 3; margin: 0 -12px; }
  .auth--join .frame { padding: 30px 34px 26px; }
  .auth--join .field { margin-bottom: 14px; }
  .auth--join .note { margin-top: 16px; font-size: 15px; }
}

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; color: var(--dim); font-size: 15px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li span { width: 22px; height: 22px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold-line); font-size: 9px; line-height: 11px; }
.steps li.is-now { color: var(--gold-hi); }
.steps li.is-now span { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ------------------------------------------------------------------ account dashboard */

.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.dash > .span { grid-column: 1 / -1; }
@media (max-width: 960px) { .dash { grid-template-columns: minmax(0, 1fr); } }

.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; }
.dl__lead h2 { font-size: clamp(24px, 1.5vw + 16px, 32px); color: #f3ead6; margin-bottom: 10px; }
.dl__lead p { color: var(--text-2); }
.dl__soon { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--gold-line); background: rgba(11, 9, 16, .4); }
.dl__soon img { width: 21px; height: 31px; flex: none; filter: drop-shadow(0 0 10px rgba(118, 180, 234, .8)); animation: hover 4s var(--ease-io) infinite; }
.dl__soon p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.dl__soon strong { color: var(--gold-hi); font-weight: 500; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--gold-faint); background: rgba(11, 9, 16, .45); transition: border-color .3s, background-color .3s; }
.platform svg { width: 30px; height: 30px; color: var(--text-2); }
.platform__name { font: 600 16px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.platform__meta { grid-column: 2; color: var(--dim); font-size: 15px; line-height: 1.35; }
.platform__act { grid-column: 3; grid-row: 1 / span 2; }
.platform__tag { display: none; position: absolute; top: -9px; left: 14px; padding: 2px 8px; background: var(--gold); color: var(--ink); font-size: 9px; line-height: 11px; }
.platform.is-mine { border-color: var(--gold-line); background: linear-gradient(90deg, rgba(227, 197, 124, .09), rgba(11, 9, 16, .45)); }
.platform.is-mine svg { color: var(--gold-hi); }
.platform.is-mine .platform__tag { display: block; }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font: 500 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; border: 1px solid rgba(163, 156, 176, .3); }
.soon::before { content: ""; width: 6px; height: 6px; background: var(--gold-lo); transform: rotate(45deg); }
@media (max-width: 860px) { .dl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .platform { grid-template-columns: 30px minmax(0, 1fr); } .platform svg { width: 24px; height: 24px; } .platform__act { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; } }

/* characters */
.chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.char { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 0 16px; align-items: center; padding: 10px 16px 10px 8px; border: 1px solid var(--gold-faint); background: linear-gradient(90deg, rgba(42, 32, 54, .45), rgba(11, 9, 16, .4)); }
.char__stage { width: 96px; height: 120px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse 40% 12% at 50% 92%, rgba(0,0,0,.6), transparent 70%); overflow: hidden; }
.char__stage .sprite { --s: 2; margin-bottom: 4px; }
.char h3 { font-size: 19px; letter-spacing: .08em; color: #f3ead6; }
.char p { margin: 2px 0 0; color: var(--dim); font-size: 15px; }
.char__lvl { text-align: center; color: var(--gold); }
.char__lvl b { display: block; font: 600 22px/1 var(--display); color: var(--gold-hi); }
.char__lvl small { font-size: 9px; line-height: 11px; color: var(--dim); }
.empty { text-align: center; padding: 26px 10px; color: var(--dim); border: 1px dashed var(--gold-faint); }
.empty .seal { width: 90px; height: 90px; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; color: var(--dim); font-size: 15px; }

/* create character */
.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--dim); }
.rules li { display: flex; gap: 10px; align-items: baseline; }
.rules li::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid var(--edge-ctl); transform: rotate(45deg) translateY(-1px); transition: background-color .2s, border-color .2s; }
.rules li.is-ok { color: var(--text-2); }
.rules li.is-ok::before { background: var(--teal); border-color: var(--teal); }
.rules li.is-bad { color: #f08a8d; }
.rules li.is-bad::before { background: var(--blood); border-color: var(--blood); }
.preview { margin: 8px 0 0; font-size: 15px; color: var(--dim); min-height: 1.4em; }
.preview b { color: var(--gold-hi); font: 600 17px var(--display); letter-spacing: .08em; }

.paths { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.paths legend { padding: 0; }
.paths__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.path { position: relative; }
.path input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.path label { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 0 6px 12px; border: 1px solid var(--gold-faint); background: linear-gradient(180deg, rgba(42, 32, 54, .4), rgba(11, 9, 16, .7)); cursor: pointer; text-align: center; transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.path__stage { width: 100%; height: 132px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; background: radial-gradient(ellipse 45% 10% at 50% calc(100% - 12px), rgba(0,0,0,.6), transparent 70%), radial-gradient(ellipse 70% 80% at 50% 100%, var(--glow, transparent), transparent 70%); }
.path--knight { --glow: rgba(227,197,124,.22); } .path--ranger { --glow: rgba(118,139,81,.3); } .path--mage { --glow: rgba(245,148,50,.22); } .path--druid { --glow: rgba(95,212,200,.2); }
.path__stage .sprite { --s: 2; }
.path__name { font: 600 15px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #f3ead6; margin-top: 8px; }
.path__line { font-size: 14px; line-height: 1.35; color: var(--dim); margin-top: 4px; }
.path:hover label { border-color: var(--gold-line); }
.path input:checked + label { border-color: var(--gold); background: linear-gradient(180deg, rgba(227, 197, 124, .12), rgba(11, 9, 16, .75)); box-shadow: 0 0 0 1px rgba(227, 197, 124, .25), 0 10px 26px -12px rgba(227, 197, 124, .5); }
.path input:checked + label .path__name { color: var(--gold-hi); }
.path input:focus-visible + label { outline: 1px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1180px) and (min-width: 961px), (max-width: 620px) { .paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the chosen path's line under the grid: on a phone the cards are too small for it */
.paths__desc { display: none; margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--gold-line); color: var(--text-2); font-size: 16px; line-height: 1.45; }
.paths__desc b { color: var(--gold-hi); font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
@media (max-width: 420px) { .path__line { display: none; } .path__stage { height: 120px; } .paths__desc { display: block; } }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; margin: 0 0 24px; }
.facts dt { font: 500 12px/1.9 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.sub { font: 600 15px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin: 6px 0 14px; padding-top: 20px; border-top: 1px solid var(--gold-faint); }

/* character looks: the body toggle, the five colour pickers and the live preview (account.js recolours it) */
.look-fig { image-rendering: pixelated; image-rendering: crisp-edges; display: block; flex: none; }
.char__stage .look-fig { width: 88px; height: 124px; margin-bottom: -4px; }
.char__look { font-size: 14px !important; line-height: 1.35; font-style: italic; }
.look { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; container-type: inline-size; }
.look > legend { padding: 0; }
.look__grid { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 18px; align-items: start; }
.look__stage { position: sticky; top: 12px; z-index: 2; margin: 0; height: 196px; display: flex; gap: 6px; align-items: flex-end; justify-content: center; padding-bottom: 14px; border: 1px solid var(--gold-faint);
  background: radial-gradient(ellipse 42% 8% at 50% calc(100% - 16px), rgba(0,0,0,.65), transparent 70%), radial-gradient(ellipse 70% 70% at 50% 100%, rgba(227, 197, 124, .13), transparent 70%), linear-gradient(180deg, #1b1724, #0e0c13); }
.look__fig { width: 88px; height: 124px; }
.look__picks { min-width: 0; }
.seg, .swatches { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.seg legend, .swatches legend { padding: 0; margin-bottom: 8px; }
.seg__row { display: inline-flex; border: 1px solid var(--edge-ctl); background: rgba(11, 9, 16, .75); }
.seg__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__row label { min-width: 96px; padding: 11px 18px; text-align: center; cursor: pointer; font: 500 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); transition: background-color .2s, color .2s; }
.seg__row label + input + label { border-left: 1px solid var(--edge-ctl); }
.seg__row label:hover { color: var(--gold-hi); }
.seg__row input:checked + label { background: linear-gradient(180deg, rgba(227, 197, 124, .22), rgba(227, 197, 124, .08)); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.seg__row input:focus-visible + label { outline: 1px solid var(--gold); outline-offset: 3px; position: relative; z-index: 1; }
.swatches__now { margin-left: 8px; color: var(--gold-hi); font: 400 italic 16px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.swatches__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw { position: relative; display: block; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.sw label { display: block; width: 30px; height: 30px; cursor: pointer; border: 1px solid rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, var(--sw4) 0 22%, var(--sw3) 22% 48%, var(--sw2) 48% 74%, var(--sw1) 74%); transition: transform .2s var(--ease), box-shadow .2s; }
.sw label:hover { transform: translateY(-2px); }
.sw input:checked + label { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold), 0 6px 14px -6px rgba(227, 197, 124, .7); }
.sw input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }
.sw__sep { margin: 0 2px 0 8px; color: var(--dim); font: 9px/11px var(--pixel); text-transform: uppercase; }
.swatches.is-bad .swatches__row, .seg.is-bad .seg__row { outline: 1px solid var(--blood); outline-offset: 4px; }
.look__foot { margin: 2px 0 0; font-size: 15px; }
@container (max-width: 520px) {
  .look__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .look__stage { height: 226px; gap: 18px; padding-bottom: 12px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .9); }
  .look__fig { width: 132px; height: 186px; }   /* 3 screen px per art px */
}
@container (max-width: 360px) {
  .look__stage { height: 150px; gap: 6px; padding-bottom: 10px; }
  .look__fig { width: 88px; height: 124px; }    /* a phone: 2x, so the preview leaves room for the rows it stays above */
}

/* ------------------------------------------------------------------ owner page */

.tabs { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid var(--gold-faint); flex-wrap: wrap; }
.tabs a { padding: 12px 18px; color: var(--text-2); text-decoration: none; font: 500 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.tabs a:hover { color: var(--gold-hi); }
.tabs a[aria-current="page"] { color: var(--gold-hi); border-color: var(--gold-faint); background: linear-gradient(180deg, rgba(42, 32, 54, .7), var(--bg)); }
.tabs .badge { display: inline-block; margin-left: 8px; padding: 2px 6px; min-width: 18px; background: var(--gold); color: var(--ink); font: 9px/11px var(--pixel); vertical-align: 1px; }
.tabs form { margin-left: auto; align-self: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--gold-faint); color: var(--text-2); text-decoration: none; font-size: 15px; background: rgba(11, 9, 16, .45); }
.chip b { font: 600 15px var(--display); color: var(--text); }
.chip:hover { border-color: var(--gold-line); color: var(--gold-hi); }
.chip.is-on { border-color: var(--gold); background: rgba(227, 197, 124, .1); color: var(--gold-hi); }
.filters { display: grid; grid-template-columns: 180px 220px minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 18px; }
.filters .field { margin: 0; }
.filters input, .filters select { min-height: 44px; font-size: 16px; padding: 8px 12px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--gold-faint); background: rgba(11, 9, 16, .4); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap table { min-width: 1040px; } /* narrow screens scroll the table inside its frame, never the page */
td:nth-child(2) { white-space: nowrap; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(227, 197, 124, .08); vertical-align: middle; }
th { font: 500 11px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: rgba(42, 32, 54, .5); white-space: nowrap; }
tr:hover td { background: rgba(227, 197, 124, .03); }
td.acts { white-space: nowrap; text-align: right; }
td.acts form { display: inline-block; margin-left: 6px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--dim); }
.status--pending::before { background: var(--gold); }
.status--invited::before { background: var(--ward); }
.status--declined::before { background: var(--blood); }
.status--joined::before { background: var(--teal); box-shadow: 0 0 8px rgba(95, 212, 200, .7); }
.status--open::before { background: var(--teal); }
.cb { width: 18px; height: 18px; accent-color: var(--gold); }
/* the bulk bar stays at the bottom of the window while the list scrolls under it */
.bulk { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 14px 0 0; padding: 12px 16px; color: var(--dim); font-size: 15px; border: 1px solid var(--gold-line); background: rgba(18, 15, 24, .96); box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .8); }
.bulk__note { flex: 1 1 320px; font-size: 14px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin: 12px 0 0; color: var(--dim); font-size: 15px; }

/* the owner's sign-up table: quiet row actions (one gold button per row was a wall of gold), short regions */
.btn--quiet { color: var(--text-2); border-color: rgba(163, 156, 176, .28); background: none; }
.btn--quiet:hover { color: #ffd3d4; border-color: rgba(208, 70, 74, .55); background: rgba(208, 70, 74, .1); }
.btn--go:hover { border-color: var(--gold); background: rgba(227, 197, 124, .14); }
table.signups td { white-space: nowrap; }
table.signups td.c-email { white-space: normal; overflow-wrap: anywhere; min-width: 200px; }
table.signups abbr { text-decoration: none; cursor: help; }
table.signups tr.is-focus td { background: rgba(95, 212, 200, .07); }
table.signups tr.is-focus td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
table.signups tr.linkrow td { padding: 0 12px 14px; background: rgba(95, 212, 200, .07); white-space: normal; }
table.signups tr.linkrow .linkbox { margin: 0; }
tr[id^="row-"] { scroll-margin-top: 120px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.flag { font-size: 13px; color: #f0c48a; text-decoration: none; border-bottom: 1px dotted rgba(240, 196, 138, .5); }
.flag:hover { color: var(--gold-hi); }

/* below 700px each sign-up is a card: email first, then the facts, then the actions, all on screen */
@media (max-width: 700px) {
  .tablewrap:has(table.signups) { overflow: visible; border: 0; background: none; }
  .tablewrap table.signups { min-width: 0; }
  table.signups thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.signups, table.signups tbody { display: block; }
  table.signups tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--gold-faint); background: rgba(11, 9, 16, .55); }
  table.signups td { display: block; padding: 0; border: 0; white-space: normal; background: none !important; font-size: 15px; }
  table.signups td[data-label]::before { content: attr(data-label); display: block; font: 500 10px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  table.signups td.c-pick { position: absolute; top: 12px; right: 12px; }
  table.signups td.c-email { order: -1; grid-column: 1 / -1; min-width: 0; padding-right: 34px; font-size: 17px; color: var(--text); }
  table.signups .linkbox h2 { font-size: 14px; letter-spacing: .08em; overflow-wrap: anywhere; }
  table.signups td.c-email::before { display: none; }
  table.signups td:empty { display: none; }
  table.signups td.acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-start; margin-top: 12px; text-align: left; }
  table.signups td.acts form { margin: 0; flex: 1; }
  table.signups td.acts .btn { width: 100%; min-height: 44px; }
  table.signups tr.is-focus td:first-child { box-shadow: none; }
  table.signups tr.is-focus { border-color: rgba(95, 212, 200, .55); }
  table.signups tr.linkrow { display: block; padding: 0; border: 0; margin-top: -6px; }
  table.signups tr.linkrow td { padding: 0; background: none; }
  tr:hover td { background: none; }
  .bulk { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .bulk .btn { width: 100%; }
  .bulk__note { display: none; }
}

.linkbox { margin: 0 0 26px; padding: 20px; border: 1px solid rgba(95, 212, 200, .4); background: rgba(95, 212, 200, .06); }
.linkbox h2 { overflow-wrap: anywhere; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: #c9f1ec; margin-bottom: 12px; }
.linkbox__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.linkbox__row input { flex: 1 1 360px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--edge-ctl); background: rgba(11, 9, 16, .85); color: var(--gold-hi); font: 15px ui-monospace, "SF Mono", Menlo, monospace; }
.linkbox p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
