/* ---------------------------------------------------------------------------
   Taking the job — the franchise picker and the briefing (src/onboard.js),
   up in the owner's box (src/room.js). Windows of the room kit (room.css):
   each club a card in its own colour over a navy body, the briefing one
   window with the club on its title bar, the owner as a dialogue, the
   gold button to take the job. Solid colour only, no tints.
--------------------------------------------------------------------------- */
.ob-head { margin-bottom: 14px; }
.ob-sorts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.ob-sort {
  margin: 3px; padding: 7px 12px 5px; cursor: pointer; border: 0; border-radius: 0;
  background: var(--win-2); color: #fff; box-shadow: var(--frame);
  font: 400 20px/1 var(--disp); letter-spacing: .5px; text-transform: uppercase;
}
.ob-sort:hover { background: var(--win-3); }
.ob-sort.on { background: var(--gold); color: var(--ink); }
.ob-sort.ob-rand { margin-left: auto; background: #fff; color: var(--ink); }
.ob-sort.ob-rand:hover { background: var(--gold); }

.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.ob-card {
  display: block; text-align: left; padding: 0; margin: 3px; overflow: hidden; cursor: pointer;
  background: var(--win-2); color: #fff; font-family: var(--sans); border: 0; border-radius: 0;
  box-shadow: var(--frame), 0 6px 0 0 var(--ink);
}
.ob-card:hover { background: var(--win-3); }
.ob-card:hover .ob-top { box-shadow: inset 0 0 0 3px var(--gold); }
.ob-card:active { transform: translateY(3px); box-shadow: var(--frame), 0 3px 0 0 var(--ink); }
.ob-top { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 3px solid var(--ink); }
.ob-logo {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: var(--frame-2); margin: 2px;
}
.ob-logo img { width: 32px; height: 32px; object-fit: contain; }
.ob-nm { display: grid; min-width: 0; }
.ob-nm b { font-family: var(--disp); font-weight: 400; font-size: 23px; line-height: 0.95; text-transform: uppercase; }
.ob-nm i { font-style: normal; font-weight: 900; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.ob-body { padding: 8px 10px 0; display: grid; gap: 4px; }
.ob-line { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; }
.ob-line span { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ob-wait { justify-content: center; padding: 22px 0; }
.ob-best {
  display: flex; align-items: center; gap: 7px; margin-top: 6px; padding-top: 6px;
  border-top: 2px solid var(--rule);
}
.ob-best span { display: grid; min-width: 0; }
.ob-best i { font-style: normal; font-size: 10px; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.ob-best b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-best em { margin-left: auto; font-style: normal; font-family: var(--disp); font-size: 26px; }
.pxface.ob-face, .ob-face { width: 32px; height: 32px; flex: none; background: var(--tm); box-shadow: var(--frame-2); margin: 2px; image-rendering: pixelated; }
.ob-v {
  margin: 8px -10px 0; padding: 6px; text-align: center; color: #fff;
  font: 900 11.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  border-top: 3px solid var(--ink);
}
.v-a { background: #16a34a; } .v-b { background: #1e63d6; } .v-c { background: #a87400; }
.v-d { background: #ea580c; } .v-e { background: #e11d48; }

/* the loading line sits on its own ink plate — never words on the picture */
.ob-loadwrap {
  display: grid; place-items: center; gap: 14px; max-width: 520px; margin: 40px auto; padding: 26px 20px;
  background: var(--win); border: 2px solid #fff; box-shadow: var(--frame), var(--drop);
}
.ob-load { font: 800 14px/1.4 var(--sans); color: #fff; text-align: center; }

/* --- the briefing: one window, the club on its title bar ---------------------- */
.ob-brief {
  display: grid; gap: 14px; margin: 3px; padding: 0 16px 18px; overflow: hidden;
  background: var(--win); color: #fff; border: 2px solid #fff; box-shadow: var(--frame), var(--drop);
}
.ob-bhead {
  display: flex; align-items: center; gap: 16px; margin: 0 -16px; padding: 14px 18px 12px;
  border-bottom: 3px solid var(--ink);
  box-shadow: inset 0 4px 0 0 rgba(255, 255, 255, .28), inset 0 -4px 0 0 rgba(0, 0, 0, .3);
}
.ob-blogo { width: 86px; height: 86px; object-fit: contain; flex: none; background: #fff; box-shadow: var(--frame); margin: 3px; padding: 11px; }
.ob-bkick { font: 900 11.5px var(--sans); text-transform: uppercase; letter-spacing: 0.1em; }
.ob-bhead h1 { font-size: 50px; line-height: 0.95; margin: 3px 0 8px; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(13, 27, 42, .9); }
.ob-bv { display: inline-block; padding: 5px 10px 4px; color: #fff; font: 900 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--frame-2); margin: 2px; }

.ob-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ob-tile { display: grid; gap: 3px; margin: 3px; padding: 9px 12px 10px; background: var(--win-2); box-shadow: var(--frame); }
.ob-tile span { font: 900 10.5px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.ob-tile b { font-family: var(--disp); font-weight: 400; font-size: 40px; line-height: 1; }
.ob-tile i { font-style: normal; font: 800 11.5px var(--sans); color: var(--soft); }

/* the owner: his portrait, his name on a gold plate, what he wants of you */
.ob-owner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 16px; align-items: start;
  margin: 3px; padding: 12px 14px; background: var(--ink); color: #fff; box-shadow: var(--frame); border-top: 3px solid var(--gold);
}
.ob-oleft { min-width: 0; display: flex; align-items: center; gap: 14px; }
.ob-oface { flex: none; line-height: 0; }
.ob-opix { width: 128px; height: 128px; background: var(--tm); box-shadow: var(--frame); margin: 3px; image-rendering: pixelated; }
.ob-oname { min-width: 0; }
.ob-oname b { display: block; font-family: var(--disp); font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--gold); }
.ob-opri { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 7px; padding: 4px 10px 3px;
  background: #fff; box-shadow: var(--frame-2); font: 900 13px var(--sans); color: var(--ink); }
.ob-opri i { font: 900 10.5px var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ob-goals { display: grid; gap: 6px; }
.ob-goal { display: grid; gap: 3px; margin: 3px; padding: 8px 12px 9px; text-align: left; background: var(--win-2); box-shadow: var(--frame); }
.ob-goal .r { font: 900 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ob-goal b { font: 800 14px/1.35 var(--sans); color: #fff; }
.ob-orole { display: block; margin-top: 6px; font: 900 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }

.ob-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ob-two > div { display: grid; grid-template-rows: auto repeat(3, 1fr); gap: 6px; align-content: start; }
.ob-two h3 {
  display: flex; align-items: center; gap: 8px; margin: 4px 3px 2px;
  font: 400 20px/1 var(--disp); letter-spacing: .6px; text-transform: uppercase; color: var(--gold);
}
.ob-two h3::after { content: ''; flex: 1; height: 3px; background: var(--rule); }
.ob-unit {
  display: flex; gap: 10px; align-items: center; margin: 3px; padding: 7px 10px; min-height: 68px;
  background: var(--win-2); box-shadow: var(--frame);
}
.ob-unit .ob-face { width: 48px; height: 48px; }
.ob-ui { display: grid; gap: 3px; min-width: 0; }
.ob-unit b { font: 400 21px/1 var(--disp); letter-spacing: .4px; text-transform: uppercase; }
.ob-unit > .ob-ui > span { font: 700 11.5px var(--sans); color: var(--soft); }
/* his name, his rating and any badge another view pins on him: one line */
.ob-uw { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ob-uw .plink { font: 800 13px var(--sans); color: #fff; text-decoration: none; }
.ob-uw .plink:hover { color: var(--gold); }
.ob-uw em { font-style: normal; font-family: var(--disp); font-size: 22px; line-height: 1; color: var(--gold); }
.ob-uw .rk { margin-left: 0; flex: none; }
.pxface.ob-face[src] { image-rendering: pixelated; }

.ob-next { margin: 3px; padding: 12px 14px; background: var(--win-2); box-shadow: var(--frame); }
.ob-next h3 { font: 900 12px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; color: var(--gold); }
.ob-next ol { margin: 0; padding-left: 20px; }
.ob-next li { font: 700 13px var(--sans); margin-bottom: 4px; }

.ob-take {
  position: relative; justify-self: start; margin: 6px 3px 8px; padding: 13px 28px 11px 50px; cursor: pointer; border: 0; border-radius: 0;
  background: var(--gold); color: var(--ink);
  box-shadow: var(--frame), 0 7px 0 0 var(--ink), inset 0 -5px 0 0 var(--gold-dk);
  font: 400 34px/1 var(--disp); letter-spacing: 1px; text-transform: uppercase;
}
.ob-take::before {
  content: ''; position: absolute; left: 18px; top: 50%; width: 14px; height: 22px; margin-top: -12px;
  background: var(--cur-ink) center / 100% 100% no-repeat; image-rendering: pixelated;
  animation: rm-bob .7s steps(2, jump-none) infinite;
}
.ob-take:hover { background: var(--gold-hi); }
.ob-take:active { transform: translateY(3px); box-shadow: var(--frame), 0 4px 0 0 var(--ink), inset 0 -3px 0 0 var(--gold-dk); }

@media (max-width: 720px) {
  .ob-two { grid-template-columns: 1fr; }
  .ob-owner { grid-template-columns: 1fr; }
  .ob-brief { padding: 0 10px 14px; }
  .ob-bhead { margin: 0 -10px; padding: 12px; gap: 10px; }
  .ob-blogo { width: 64px; height: 64px; padding: 0; }
  .ob-bhead h1 { font-size: 34px; }
  .ob-opix { width: 64px; height: 64px; }
  .ob-oname b { font-size: 26px; }
  .ob-take { justify-self: stretch; font-size: 28px; }
  .ob-sort.ob-rand { margin-left: 3px; }
}

/* a club already over the cap is a different job — say so on the tile */
.ob-tile.bad { background: var(--red); }
.ob-tile.bad span, .ob-tile.bad i { color: #fff; }

/* the briefing's two pages and its button bar (src/onboard.js): on a desk
   they are invisible wrappers — every window sits in the one grid exactly as
   before, and Back / Next are never drawn. A phone held sideways turns them
   into two pages with the bar pinned under them (src/phone.css). */
.ob-pg, .ob-bar { display: contents; }
.ob-pgb { display: none; }
/* the face step's second Surprise me, between Back and Next (src/boot.js):
   a phone held sideways only (src/phone.css) */
.bt-nav .bt-roll2 { display: none; }
