/* The lobby's layout on the Heroes site's design system (/play/heroes/ui/bfh.css: panels, buttons, fields,
   icons, fonts; H1459 the homage to the old Revive Heroes site, notes/bfheroes/site_design.md). The variables
   below are bfh.css's fallbacks for a lobby served without the site. */
:root { --bfh-ink: #14100c; --bfh-paper: #d7c8af; --bfh-paper-2: #c9b796; --bfh-paper-3: #e8e3d9; --bfh-paper-ink: #2a2016;
  --bfh-paper-dim: #6b5d48; --bfh-blue: #2f6fb3; --bfh-red: #8b322e; --bfh-green-2: #328b2e; --bfh-gold: #fede01; --bfh-cream: #fff8ea;
  --bfh-ok: #9fe07a; --bfh-err: #ff8b6e; --bfh-font-ui: 'BFH UI', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --bfh-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bfh-sky-deep: #0f417e; --bfh-red-bar: #8b322e; --bfh-red-bar-2: #6d2522; --bfh-hover: #fede01; --bfh-row: #e8e3d9; --bfh-row-2: #dad3c5;
  --bfh-outline-thin: 1px 1px 0 #14100c, -1px 1px 0 #14100c, -1px -1px 0 #14100c, 1px -1px 0 #14100c, 0 2px 0 #14100c; }
html, body { margin: 0; min-height: 100%; }
/* The old site's sky: the clouds painting behind everything, fixed while the page scrolls. */
body { background: var(--bfh-sky-deep) url(/play/heroes/ui/img/clouds_1280.webp) center bottom / cover no-repeat fixed; color: var(--bfh-cream);
  font: 15px/1.45 var(--bfh-font-body); padding: 0 0 40px; box-sizing: border-box; }
@media (min-width: 1300px) { body { background-image: url(/play/heroes/ui/img/clouds_2560.webp); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* The red bar (the old site's nav): the logo, the server line, the account. */
#head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 6px max(3vw, calc(50vw - 480px)); min-height: 60px; box-sizing: border-box;
  background: linear-gradient(180deg, #9a3833 0%, var(--bfh-red-bar) 55%, var(--bfh-red-bar-2) 100%); border-bottom: 3px solid var(--bfh-ink);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45); color: #fff; text-shadow: var(--bfh-outline-thin); }
#head img { display: block; height: 52px; width: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
#status { flex: 1; font: 600 15px/1.2 var(--bfh-font-ui); }
#acct-current { font: 600 15px/1.2 var(--bfh-font-ui); }
#acct-current b { color: var(--bfh-hover); }
#acct-current a, #head a { color: #fff; }
#acct-current a:hover, #head a:hover { color: var(--bfh-hover); }
#panel { width: min(960px, 94vw); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
#lobby { display: flex; flex-direction: column; gap: 18px; }
#lobby[style*="block"] { display: flex !important; }
.row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pair { display: flex; gap: 10px; } .pair > * { flex: 1; }
.pick { display: block; }
a { color: var(--bfh-gold); }
.bfh-panel a { color: var(--bfh-red); }
.bfh-panel-blue a, .bfh-panel-dark a { color: var(--bfh-gold); }
.bfh-panel-head a.small { color: #fff; text-shadow: none; font-family: var(--bfh-font-body); }
.small { font-size: 13px; color: var(--bfh-paper-dim); }
#head .small { color: #fff; }
.role-badge { font: 600 11px/1 var(--bfh-font-ui); color: var(--bfh-ink); text-shadow: none; background: var(--bfh-ok); padding: 3px 6px; border-radius: 5px; cursor: help; }
#msg { min-height: 1.3em; font: 600 15px/1.35 var(--bfh-font-ui); color: #fff; text-shadow: var(--bfh-outline-thin); }
#msg.ok { color: var(--bfh-ok); }
#msg.error { color: var(--bfh-err); }

/* The account forms: a blue panel with the faction's general beside it on a wide screen. */
.card-form { position: relative; width: min(440px, 100%); margin: 24px auto 0; box-sizing: border-box; }
.card-form .general { position: absolute; right: calc(100% - 20px); bottom: -10px; height: 320px; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); display: none; pointer-events: none; }
@media (min-width: 900px) { .card-form .general { display: block; } }
.card-form p { margin: 0 0 6px; }
.card-form .row { justify-content: space-between; }

/* Hero cards (the old site's soldier rows, as cards): the turntable preview on the faction's colour, the class
   icon, name, faction / class / level / VP, PLAY. The selected card is the hero a server's PLAY joins as. */
#heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
#heroes .hero { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--bfh-row); color: var(--bfh-paper-ink);
  border: 3px solid var(--bfh-ink); border-radius: 6px; padding: 10px; cursor: pointer; box-shadow: 0 2px 9px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s, box-shadow 0.12s; }
#heroes .hero:nth-child(2n) { background: var(--bfh-row-2); }
#heroes .hero:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55); }
#heroes .hero.selected { outline: 4px solid var(--bfh-hover); outline-offset: -1px; }
#heroes .hero.selected::after { content: 'selected'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font: 600 12px/1 var(--bfh-font-ui);
  color: var(--bfh-ink); background: var(--bfh-hover); border: 2px solid var(--bfh-ink); border-radius: 5px; padding: 3px 8px; }
#heroes .hero-pic { position: relative; aspect-ratio: 1; border-radius: 4px; border: 2px solid var(--bfh-ink); overflow: hidden;
  background: radial-gradient(ellipse at 50% 92%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #0f417e, #2f6fb3 60%, #a9d0f0); }
#heroes .team-1 .hero-pic { background: radial-gradient(ellipse at 50% 92%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #4a1714, #8b322e 60%, #d27a5c); }
#heroes .hero-pic img { position: absolute; left: 50%; top: 6%; height: 118%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45)); }
/* The turntable sheet's frame (H1423): the front, spinning under the pointer (lobby.js turntableFrame). */
#heroes .hero-pic .frame { position: absolute; left: 0; right: 0; top: 2%; bottom: -2%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45)); }
#heroes .hero-pic .bfh-icon { position: absolute; right: 6px; top: 6px; border: 2px solid var(--bfh-ink); border-radius: 6px; background-color: var(--bfh-row); }
#heroes .hero b { font: 600 19px/1.1 var(--bfh-font-ui); color: var(--bfh-paper-ink); word-break: break-word; }
#heroes .hero-meta { font-size: 13px; color: var(--bfh-paper-dim); }
#heroes .hero-actions { display: flex; gap: 6px; align-items: center; margin-top: auto; }
#heroes .hero-actions .play { flex: 1; }
#heroes .hero-actions .war { font-size: 12px; padding: 6px 8px; }
#heroes .hero button.del { margin-left: auto; background: none; border: 0; color: #8a6a60; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
#heroes .hero button.del:hover { color: var(--bfh-red); }
#play-as { margin-top: 10px; color: var(--bfh-paper-dim); }
#heroes > span.small { grid-column: 1 / -1; }

/* Tables: servers and friends, in the old site's alternating rows. */
#games, table.friends { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
#games th { text-align: left; color: var(--bfh-paper-dim); font: 600 13px/1.2 var(--bfh-font-ui); text-transform: lowercase; padding: 4px 8px; }
#games td, table.friends td { padding: 7px 8px; background: var(--bfh-row); }
#games tr:nth-child(2n) td, table.friends tr:nth-child(2n) td { background: var(--bfh-row-2); }
#games td:first-child, table.friends td:first-child { border-radius: 6px 0 0 6px; }
#games td:last-child, table.friends td:last-child { border-radius: 0 6px 6px 0; }
#games td:first-child { font: 600 15px/1.2 var(--bfh-font-ui); }
table.friends td b { font: 600 15px/1.2 var(--bfh-font-ui); }
table.friends td.on { color: var(--bfh-green-2); }
table.friends td.off { color: var(--bfh-paper-dim); }
.friends-of { margin: 8px 0 2px; font-family: var(--bfh-font-ui); color: var(--bfh-paper-ink); }

/* The character creator (H1424): the steps beside the stage on a wide screen, stacked on a phone. Colours
   come from the design system's variables only (bfh.css), so a new palette changes it as a whole. */
#lobby.no-heroes #create { order: -1; }
.creator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); gap: 18px; align-items: start; }
.cr-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cr-step { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity 0.2s; }
.cr-step:disabled { opacity: 0.45; }
.cr-step legend { padding: 0; margin-bottom: 8px; font: 400 20px/1.1 var(--bfh-font-ui); letter-spacing: 0.4px; color: var(--bfh-paper-ink); }
.cr-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%;
  background: var(--bfh-ink); color: var(--bfh-gold); font-size: 17px; }
.cr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cr-choice { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'icon name' 'line line' 'kit kit'; gap: 4px 8px; align-items: center;
  text-align: left; cursor: pointer; padding: 10px 12px; color: var(--bfh-paper-ink); background: var(--bfh-paper-3); border: 3px solid var(--bfh-ink);
  border-radius: 12px; box-shadow: 0 4px 0 var(--bfh-ink); font: 13px/1.35 var(--bfh-font-body); transition: transform 0.08s, box-shadow 0.08s, background 0.15s; }
.cr-choice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bfh-ink); }
.cr-choice:focus-visible { outline: 3px solid var(--bfh-gold); outline-offset: 2px; }
.cr-choice:disabled { cursor: default; }
.cr-choice .bfh-icon { grid-area: icon; }
.cr-choice b { grid-area: name; font: 400 19px/1.1 var(--bfh-font-ui); letter-spacing: 0.3px; }
.cr-choice .cr-line { grid-area: line; }
.cr-choice .cr-kit { grid-area: kit; font-size: 12px; color: var(--bfh-paper-dim); }
.cr-looks .cr-choice { grid-template-areas: 'name' 'line'; grid-template-columns: 1fr; }
.cr-choice.on { background: var(--bfh-gold); box-shadow: 0 0 0 3px var(--bfh-ink) inset, 0 4px 0 var(--bfh-ink); }
.cr-choice.on .cr-kit { color: var(--bfh-paper-ink); }
.cr-sides .cr-choice[data-team="2"].on { background: var(--bfh-blue); color: var(--bfh-cream); }
.cr-sides .cr-choice[data-team="1"].on { background: var(--bfh-red); color: var(--bfh-cream); }
.cr-sub { margin: 12px 0 6px; font: 400 15px/1.2 var(--bfh-font-ui); letter-spacing: 0.4px; text-transform: uppercase; color: var(--bfh-paper-dim); }
.cr-hint { min-height: 1.3em; font-size: 13px; color: var(--bfh-paper-dim); }
.cr-hint.ok { color: var(--bfh-green-2); }
.cr-hint.error, #cr-name[aria-invalid="true"] { color: var(--bfh-red); }
#cr-name { font-size: 18px; }
.cr-go { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#cr-msg { text-shadow: none; }
/* The stage: the hero on the chosen side's colour, the class icon and the name plate. */
.cr-stage { position: sticky; top: 10px; display: flex; flex-direction: column; border: 3px solid var(--bfh-ink); border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 88%, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0) 55%), var(--bfh-paper-dim); transition: background-color 0.3s; }
.side-2 .cr-stage { background-color: var(--bfh-blue); }
.side-1 .cr-stage { background-color: var(--bfh-red); }
.cr-spinner { position: relative; height: min(56vh, 460px); cursor: grab; outline: none; }
.cr-spinner.dragging { cursor: grabbing; }
.cr-spinner:focus-visible { box-shadow: 0 0 0 3px var(--bfh-gold) inset; }
.cr-spinner img.fallback { position: absolute; left: 50%; bottom: 0; height: 96%; transform: translateX(-50%); }
.cr-stage.empty .cr-spinner::after { content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 400 120px/1 var(--bfh-font-display); color: var(--bfh-cream); opacity: 0.5; }
.cr-plate { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bfh-ink); color: var(--bfh-cream); }
.cr-plate .bfh-icon { flex: none; border-radius: 8px; background-color: var(--bfh-paper-3); }
.cr-plate .bfh-icon:not([class*="bfh-icon-"]) { visibility: hidden; }
.cr-plate > span { display: flex; flex-direction: column; min-width: 0; }
.cr-plate b { font: 400 20px/1.1 var(--bfh-font-ui); color: var(--bfh-gold); overflow-wrap: anywhere; }
.cr-plate span span { font-size: 13px; color: var(--bfh-paper-3); }
.cr-drag { position: absolute; top: 8px; left: 10px; color: var(--bfh-cream); opacity: 0.75; pointer-events: none; }
.cr-stage.empty .cr-drag { display: none; }
#creator-simple { float: right; color: var(--bfh-cream); font: 13px var(--bfh-font-body); }

/* The looks pickers of the simple create form. */
.looks-label { margin: 10px 0 3px; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; }
.looks button { background: var(--bfh-row); color: var(--bfh-paper-ink); border: 2px solid var(--bfh-ink); border-radius: 6px; padding: 5px 10px; cursor: pointer; font: 13px var(--bfh-font-body); }
.looks button:hover { background: #fff; }
.looks button.on { background: var(--bfh-gold); box-shadow: 0 0 0 2px var(--bfh-ink) inset; }
.looks.swatches button { width: 32px; height: 32px; padding: 0; }
.looks.swatches button.on { box-shadow: 0 0 0 3px var(--bfh-gold) inset; }

@media (max-width: 600px) {
  #head { justify-content: center; text-align: center; padding: 6px 12px; }
  #head img { height: 44px; }
  #heroes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .bfh-panel { padding: 14px 14px; }
  .bfh-panel-head { margin: -14px -14px 12px; padding: 9px 14px; }
  /* The creator stacks: faction, class, the hero, name and look, CREATE & PLAY. */
  .creator { display: flex; flex-direction: column; gap: 14px; }
  .cr-steps { display: contents; }
  #cr-step1 { order: 1; } #cr-step2 { order: 2; } .cr-stage { order: 3; position: relative; top: 0; } #cr-step3 { order: 4; } .cr-go { order: 5; align-items: stretch; }
  .cr-spinner { height: 46vh; }
  .cr-choices { grid-template-columns: 1fr; }
  .cr-sides, .cr-looks { grid-template-columns: 1fr 1fr; }
}

/* H1506: the creator's looks (hair, beard, skin and hair colour) and the 3D hero on its stage. */
.cr-looks { display: flex; flex-direction: column; gap: 8px; }
.cr-look-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; }
.cr-look-k { font: 600 13px/1.1 var(--bfh-font-ui); text-transform: lowercase; color: var(--bfh-paper-dim); }
.cr-look-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.cr-look { font: 600 13px/1 var(--bfh-font-ui); padding: 6px 9px; border: 2px solid var(--bfh-ink); border-radius: 7px; background: var(--bfh-row); color: var(--bfh-paper-ink); cursor: pointer; }
.cr-look:hover { background: #fff; }
.cr-look.on { background: var(--bfh-gold); box-shadow: 0 0 0 2px var(--bfh-ink) inset; }
.cr-look:focus-visible { outline: 3px solid var(--bfh-gold); outline-offset: 2px; }
.swatches .cr-look { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.swatches .cr-look.on { box-shadow: 0 0 0 3px #fff inset, 0 0 0 2px var(--bfh-ink); transform: scale(1.12); }
.cr-stage { position: relative; }
.cr-3d { position: absolute; left: 0; right: 0; top: 0; height: min(56vh, 460px); width: 100%; display: block; opacity: 0; transition: opacity 0.5s; pointer-events: none; cursor: grab; }
.cr-stage.three .cr-3d { opacity: 1; pointer-events: auto; }
.cr-stage.three .cr-spinner > * { opacity: 0; transition: opacity 0.5s; }
.cr-stage.three .cr-spinner { pointer-events: none; }

/* The account panel and the password reset (H1503). */
#account .pair { flex-wrap: wrap; } #account .pair > * { min-width: 160px; }
#account-msg { text-shadow: none; min-height: 1.2em; }
#discord-code b { font: 600 18px/1.2 var(--bfh-font-ui); letter-spacing: 2px; color: var(--bfh-paper-ink); }
#forgot-step2 .bfh-input { margin-top: 8px; }
/* bfh.css's blue panel turns --bfh-paper-ink cream, which the fields' text takes on their cream fill: keep it ink. */
.bfh-panel-blue .bfh-input { color: #2a2016; }

/* H1468 theme: the game menu's village at sunset (ui/img/menu/stage_bg.webp, Menu_client.zip bg_menu) behind the
   heroes of the creator's stage and the hero cards, with the faction's colour as a soft wash. */
.side-2 .cr-stage, .side-1 .cr-stage, .cr-stage { background: #8a6a3e url(/play/heroes/ui/img/menu/stage_bg.webp) center bottom / cover no-repeat; }
.cr-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(255, 236, 190, 0.28), rgba(255, 236, 190, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(20, 10, 0, 0.45)); }
.side-2 .cr-stage::before { background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(255, 236, 190, 0.28), rgba(255, 236, 190, 0) 70%), linear-gradient(180deg, rgba(47, 111, 179, 0.25), rgba(20, 10, 0, 0.45)); }
.side-1 .cr-stage::before { background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(255, 236, 190, 0.28), rgba(255, 236, 190, 0) 70%), linear-gradient(180deg, rgba(139, 50, 46, 0.25), rgba(20, 10, 0, 0.45)); }
.cr-plate { position: relative; z-index: 2; }
#heroes .hero-pic, #heroes .team-1 .hero-pic { background: #8a6a3e url(/play/heroes/ui/img/menu/stage_bg.webp) center 85% / cover no-repeat; }
#heroes .hero-pic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 55%, rgba(255, 236, 190, 0.3), rgba(255, 236, 190, 0) 70%); pointer-events: none; }
#heroes .team-1 .hero-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(139, 50, 46, 0.25), rgba(0, 0, 0, 0)); pointer-events: none; }
#heroes .hero:hover .hero-pic { box-shadow: 0 0 0 3px var(--bfh-hover); }

/* ---- On the site's shell (phase 3; shell/shell.js mounts it once logged in): the game menu's bars replace the
   lobby's header, the panels take the menu's kit (the olive head of 01_fgTabWide over 01_bgFrameLarge's taupe), a
   hero card is the cream 01_fgBox card and the chosen one glows as CharacterSelection's yellow row. The creator is
   its own page (/heroes/create/); the simple form stays here. */
body.bfh-shell #head { display: none; }
body.bfh-shell #panel { width: min(1100px, 94vw); margin: 18px auto 28px; }
body.bfh-shell #lobby .bfh-panel { background: var(--m-taupe); color: #1b1712; border: 2px solid #000; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
body.bfh-shell #lobby .bfh-panel::before { display: none; }
body.bfh-shell #lobby .bfh-panel-head {
  background: linear-gradient(#56602a, var(--m-olive)); border-bottom: 2px solid #000; border-radius: 8px 8px 0 0;
  font: 600 22px/1.1 var(--m-font); text-shadow: var(--m-out); text-transform: lowercase;
}
body.bfh-shell #lobby .bfh-panel a { color: #6a211e; }
/* A button that is a link (the friends' JOIN) keeps the button's lettering, not the panels' red link colour (R-0100). */
body.bfh-shell #lobby .bfh-panel a.bfh-btn { color: #fff; }
body.bfh-shell #lobby .bfh-panel-head a { color: #ffe08a; }
body.bfh-shell #heroes .hero, body.bfh-shell #heroes .hero:nth-child(2n) { background: var(--m-card); border: 2px solid #000; border-radius: 8px; }
body.bfh-shell #heroes .hero b { font-family: var(--m-font); }
body.bfh-shell #heroes .hero.selected { outline: 0; box-shadow: 0 0 0 3px #f2c23c, 0 0 18px rgba(242, 194, 60, .65); }
body.bfh-shell #heroes .hero.selected::after { background: linear-gradient(#f2c23c, var(--m-yellow)); color: #fff; text-shadow: var(--m-out); border: 2px solid #000; }
body.bfh-shell #creator { display: none; }
body.bfh-shell #lobby #to-creator { margin: 6px 0 10px; color: #fff; }
body.bfh-shell #lobby .small, body.bfh-shell #lobby table { color: #1b1712; }

/* The join prompt of a server row's PLAY (shell/join.js, H8015): "join server" with the server's name, map and
   players, in the shell's panel (shell.css .m-panel, .m-btn, its bfh-fade / bfh-pop). The yellow button is lettered in
   the site's ink (a link in a panel took the panels' red link colour before). */
#bfh-join { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: rgba(0, 0, 0, .45); animation: bfh-fade .18s ease; }
#bfh-join .m-panel { width: min(520px, 94vw); max-height: 88vh; color: #1b1712; font: 15px/1.35 var(--m-font); animation: bfh-pop .22s cubic-bezier(.3, 1.4, .5, 1); }
#bfh-join .pb { padding: 14px 16px 16px; }
#bfh-join p { margin: 0 0 10px; }
#bfh-join .lead { font-size: 16px; }
#bfh-join .srv { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 14px; padding: 10px 12px; background: var(--m-card); border: 2px solid #000; border-radius: 8px; }
#bfh-join .srv .nm { flex: 1 0 100%; font-size: 19px; overflow-wrap: anywhere; }
#bfh-join .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#bfh-join .go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 2px solid #000; border-radius: 8px;
  background: linear-gradient(#ffe066, #ffcc1a 48%, #f2a600 52%, #ffbf1f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 0 #000;
  color: #1b1712; font-size: 22px; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
#bfh-join .go:hover { filter: brightness(1.07); transform: translateY(-1px); }
#bfh-join .go:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 0 #000; }
#bfh-join .go:focus-visible, #bfh-join .m-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#bfh-join .tech { margin-top: 14px; font-size: 13px; }
#bfh-join .tech summary { cursor: pointer; }
#bfh-join .tech input { width: 100%; padding: 5px 6px; border: 1px solid #000; border-radius: 5px; background: var(--m-field); font: 12px/1.3 ui-monospace, Consolas, monospace; }
#bfh-join .tech a { margin-left: 10px; color: var(--m-red-dark); }
@media (max-width: 600px) { #bfh-join .acts > * { flex: 1 1 100%; justify-content: center; } }
