/* BountyWarz career door (bountywarz.com /bountywarz.html, the "Step aboard — Career mode" door).
   Look carried forward from the December 2025 BountyWarz index (repo-root index.html @ 6a7916ee7c):
   navy field with gold star dust and scanlines, a framed console with gold diamond corners,
   the gold block title, the 18-nation grid, gold dividers, the gold launch button and the
   "THE BOUNTY IS ALL" footer. Today's flow is unchanged: same form, ids, inputs and calls.
   Scoped to body.bw-door, which www/career-door.js sets only on that door. */

body.bw-door {
  background-color: #0a0a1a;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #ffd700, transparent),
    radial-gradient(2px 2px at 60% 70%, #ffd700, transparent),
    radial-gradient(1px 1px at 80% 20%, #d4af37, transparent),
    radial-gradient(1px 1px at 40% 80%, #b8860b, transparent),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
  background-attachment: fixed;
}
body.bw-door .bw-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .3;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
}
body.bw-door .mast { background: rgba(10,10,30,.92); border-bottom: 1px solid rgba(255,215,0,.3); }
body.bw-door .mast .brand { color: #ffd700; letter-spacing: 2px; text-transform: uppercase; font-family: Impact, 'Arial Black', sans-serif; font-weight: 400; }

/* The console frame */
body.bw-door #room {
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
  padding: 2.25rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  border-radius: 0;
  background: rgba(10,10,30,.95);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 0 40px rgba(255,215,0,.3), 0 0 80px rgba(212,175,55,.15), inset 0 0 60px rgba(0,0,0,.8);
  text-align: center;
  color: #e8e2cf;
}
body.bw-door #room > .bw-corner {
  position: absolute; font-size: 20px; line-height: 1; color: #ffd700; text-shadow: 0 0 10px #ffd700;
  pointer-events: none;
}
body.bw-door #room > .bw-corner.tl { top: 8px; left: 12px; }
body.bw-door #room > .bw-corner.tr { top: 8px; right: 12px; }
body.bw-door #room > .bw-corner.bl { bottom: 8px; left: 12px; }
body.bw-door #room > .bw-corner.br { bottom: 8px; right: 12px; }

/* The gold title */
body.bw-door #room h1#room-title {
  margin: 0 0 .9rem;
  font-family: Impact, 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: clamp(4px, 1.4vw, 8px);
  text-transform: uppercase;
  color: #ffd700;
  text-shadow: 2px 2px 0 #b8860b, 4px 4px 0 rgba(0,0,0,.5), 0 0 30px rgba(255,215,0,.5);
}

/* Ship art as the December card image */
body.bw-door #room .ka-door-hero { margin: 0 auto 1rem; max-width: 44rem; }
body.bw-door #room .ka-door-hero-img {
  display: block; width: 100%; height: clamp(170px, 34vw, 260px); object-fit: cover;
  border: 2px solid #b8860b; border-radius: 0; box-shadow: 0 0 20px rgba(255,215,0,.2);
}

/* Lore */
body.bw-door #room .ka-door {
  max-width: 40rem; margin: 0 auto 1rem; padding: 0; background: none; border: 0; box-shadow: none;
}
body.bw-door #room .ka-door .ka-head { justify-content: center; }
body.bw-door #room .ka-door .ka-tag {
  color: #ffd700; border-color: rgba(255,215,0,.5); background: rgba(255,215,0,.06); letter-spacing: 2px;
}
body.bw-door #room .ka-door .ka-line {
  font-family: Georgia, serif; font-size: 1.1rem; line-height: 1.5; color: #d8d2c0; text-align: center;
}
body.bw-door #room .ka-door .ka-tagline { color: #ffd700; font-family: Georgia, serif; font-style: italic; text-align: center; }

/* Gold dividers and section titles */
body.bw-door #room .bw-divider { height: 1px; margin: 1rem 0; background: linear-gradient(90deg, transparent, #ffd700, transparent); }
body.bw-door #room .bw-title {
  margin: 0 0 .75rem; color: #ffd700; font-size: .95rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
}

/* 18 nations: one row of six per faction, as in December */
body.bw-door #room .bw-nations { max-width: 44rem; margin: 0 auto 1rem; }
body.bw-door #room .bw-faction { margin: 0 0 .6rem; }
body.bw-door #room .bw-faction-name {
  display: block; margin: 0 0 .35rem; color: #d4af37; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
}
body.bw-door #room .bw-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
body.bw-door #room .bw-nation {
  background: rgba(0,0,0,.5); border: 1px solid #333; padding: 0; text-align: center; min-width: 0;
}
/* Each tile is a button (recruit flow): a tap picks the nation and moves to the callsign. */
body.bw-door #room .bw-nation-pick {
  all: unset; box-sizing: border-box; display: block; width: 100%; padding: 6px 2px 5px; cursor: pointer; text-align: center;
}
body.bw-door #room .bw-nation-pick:focus-visible { outline: 2px solid #ffd700; outline-offset: -2px; }
body.bw-door #room .bw-nation.picked { border-color: #ffd700; box-shadow: inset 0 0 0 2px #ffd700, 0 0 12px rgba(255,215,0,.35); }
body.bw-door #room .bw-nation.picked span { color: #ffd700; }
body.bw-door #room .bw-nation img { display: block; width: 100%; max-width: 56px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 3px; }
body.bw-door #room .bw-nation span {
  display: block; color: #b9b2a0; font-size: 10px; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Freehold (the independent nation) wore the same gold as a picked tile, so two tiles looked selected
   at once (Captain's phone, 2 Dec 2026). Only the picked tile is gold; Freehold looks like the rest. */
body.bw-door #room .bw-call { margin: .5rem 0 0; color: #9a937f; font-size: .85rem; }

/* Callsign: the December setup card, with the gold launch button */
body.bw-door #room #player-form {
  width: 100%; max-width: 30rem; margin: 0 auto 1rem; padding: 1.25rem 1.25rem 1rem;
  justify-items: stretch; text-align: left;
  background: rgba(0,0,0,.6); border: 2px solid #b8860b; border-radius: 0;
  box-shadow: 0 0 20px rgba(255,215,0,.15);
}
body.bw-door #room #player-form::before {
  content: '◈ Captain ◈'; display: block; text-align: center; color: #ffd700;
  font-size: .9rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
}
body.bw-door #room #player-form label[for="callsign"] { color: #d4af37; font-size: 1rem; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }
body.bw-door #room #player-form .row { display: grid; gap: .6rem; width: 100%; }
body.bw-door #room #callsign {
  width: 100%; box-sizing: border-box; min-height: 3rem; padding: .7rem .9rem;
  font: 700 1.15rem 'Courier New', monospace; letter-spacing: 1px; color: #ffd700;
  background: rgba(10,10,30,.9); border: 2px solid rgba(255,215,0,.45); border-radius: 0;
}
body.bw-door #room #callsign::placeholder { color: #8a826b; }
body.bw-door #room #callsign:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 14px rgba(255,215,0,.35); }
body.bw-door #room #player-save {
  width: 100%; min-height: 3rem; padding: .75rem 1.5rem;
  font-family: 'Arial Black', Impact, sans-serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #0a0a1a; background: linear-gradient(135deg, #ffd700, #d4af37);
  border: 2px solid #ffd700; border-radius: 0; box-shadow: 0 4px 15px rgba(0,0,0,.4); cursor: pointer;
}
body.bw-door #room #player-save:hover { background: linear-gradient(135deg, #fff8dc, #ffd700); box-shadow: 0 6px 25px rgba(255,215,0,.5); }
body.bw-door #room #callsign-next { color: #c9c2ae; font-size: .95rem; line-height: 1.45; text-align: center; }
body.bw-door #room #player-form select,
body.bw-door #room #player-form #guardian-name { background: rgba(10,10,30,.9); color: #e8e2cf; border: 1px solid rgba(255,215,0,.45); border-radius: 0; }
body.bw-door #room #profile-status { text-align: center; }
body.bw-door #room #room-panel > div > .muted { color: #b9b2a0; font-size: .95rem; text-align: center; }
body.bw-door #room #room-panel > .quiet-link { display: block; margin: 0 auto 1rem; color: #d4af37; }

/* The first code as sealed orders: parchment, wax seal, the cipher in ink */
body.bw-door #room .preboard {
  position: relative; max-width: 30rem; margin: 1.25rem auto 1.5rem; padding: 2.4rem 1.4rem 1.3rem;
  text-align: center; color: #3a2a12;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(180deg, #f3e3bf 0%, #e6cf98 60%, #d6b878 100%);
  border: 1px solid #8a6a2e; border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(10,10,30,.95), 0 0 0 5px #b8860b, 0 10px 30px rgba(0,0,0,.6), inset 0 0 40px rgba(120,80,20,.35);
}
body.bw-door #room .preboard::before {
  content: 'Sealed orders'; position: absolute; top: .8rem; left: 0; right: 0;
  font: 700 .75rem Georgia, serif; letter-spacing: 4px; text-transform: uppercase; color: #7a5a22;
}
body.bw-door #room .preboard::after {
  content: 'BW'; position: absolute; top: -22px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 900 .85rem Georgia, serif; letter-spacing: 1px; color: #f2c9a8;
  background: radial-gradient(circle at 35% 30%, #c0392b, #7b1a12 70%);
  box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 0 4px rgba(0,0,0,.18);
  transform: rotate(-12deg); pointer-events: none;
}
body.bw-door #room .preboard h3 {
  margin: 0 0 .4rem; font-family: Georgia, serif; font-size: 1.35rem; color: #2a1c08; letter-spacing: .5px;
}
body.bw-door #room .preboard .pre-muted { color: #5a4420; font-size: .95rem; font-family: Georgia, serif; }
body.bw-door #room .preboard pre.pre-input {
  margin: .8rem 0 1rem; padding: .9rem .5rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  background: none; border: 0; border-top: 1px dashed #8a6a2e; border-bottom: 1px dashed #8a6a2e; border-radius: 0;
  font: 700 clamp(1.05rem, 4.6vw, 1.35rem) 'Courier New', monospace; letter-spacing: 2px; color: #2a1c08;
}
body.bw-door #room .preboard .pre-form { display: grid; gap: .6rem; }
body.bw-door #room .preboard .pre-form input {
  width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: .6rem .8rem;
  font: 600 1.05rem 'Courier New', monospace; color: #2a1c08;
  background: rgba(255,250,235,.85); border: 1px solid #8a6a2e; border-radius: 0;
}
body.bw-door #room .preboard .pre-form input::placeholder { color: #8a7650; }
body.bw-door #room .preboard .pre-form button {
  min-height: 2.9rem; font-family: 'Arial Black', Impact, sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
  color: #f3e3bf; background: #3a2a12; border: 2px solid #7a5a22; border-radius: 0; cursor: pointer;
}
body.bw-door #room .preboard [role="status"] { margin: .6rem 0 0; color: #3a2a12; font-weight: 600; }

/* The London poster keeps its art inside a gold frame */
body.bw-door #room .ka-panel[data-ka-step="poster"] {
  border: 1px solid rgba(255,215,0,.35); border-radius: 0; background: rgba(0,0,0,.45); text-align: left;
}
body.bw-door #room .ka-panel[data-ka-step="poster"] .ka-tag { color: #ffd700; border-color: rgba(255,215,0,.5); }

body.bw-door #room .bw-footer {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255,215,0,.3);
  color: #9a937f; font: 600 .9rem 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase;
}

@media (max-width: 600px) {
  body.bw-door #room { padding: 2rem .9rem 1.4rem; border-left: 0; border-right: 0; }
  body.bw-door #room h1#room-title { font-size: clamp(1.6rem, 8.2vw, 2.4rem); letter-spacing: 2px; overflow-wrap: anywhere; }
  body.bw-door #room .ka-door-hero-img { height: 150px; }
  body.bw-door #room .bw-nation span { text-transform: none; }
  body.bw-door #room .preboard pre.pre-input { font-size: clamp(.95rem, 4.3vw, 1.2rem); letter-spacing: .5px; }
  body.bw-door #room .bw-grid { gap: 4px; }
  body.bw-door #room .bw-nation span { font-size: 10px; letter-spacing: 0; }
  body.bw-door #room .preboard { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.bw-door #room #player-save { transition: none; }
}
