/* ==========================================================================
   RAPTOR — THE SEAT BOARD ON THE CASHIER TERMINAL

   Loaded AFTER cashier-ui.css. Nothing above is edited.

   OWNER'S INSTRUCTION, 19 September 2026:
   BUILD AROUND THE BOARD ONLY. NO OTHER AREA OF THE TERMINAL IS AFFECTED.

   So every rule in this file is inside .boardbody, and there is not one rule
   that touches the top bar, the jackpot strip, the week bar, the round bar or
   the right rail. The balance, FASTBET, Recent Bets, Codes and the coupon all
   stay exactly where they are and keep working while Raptor is on.

   Everything Raptor needs — the seats, the money held, the shift, the
   movements, the flight lookup, the pairing — lives inside the board.

   Everything is prefixed rap- so it cannot collide with anything.
   ========================================================================== */

/* ---------- the host, and the board's own furniture standing down ----------
   These are the only rules outside .rap-*, and every one of them is a child of
   .boardbody. Football's three grids are hidden while Raptor has the board,
   exactly as they are for any other game that takes it. */
body[data-rp="true"] .boardbody > .grphead,
body[data-rp="true"] .boardbody > .colhead,
body[data-rp="true"] .boardbody > .bscroll,
body[data-rp="true"] .boardbody > .lvpanel,
body[data-rp="true"] .boardbody > .lbhost{ display:none !important }

#rpHost{ display:none }
body[data-rp="true"] #rpHost{
  display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:var(--panel)
}

/* ---------- Raptor's own bar, inside the board ----------
   The terminal's round bar above is football's and is left alone, so Raptor
   carries its own: which screen, which flight, and the pairing door. */
.rap-bar{
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;flex:0 0 auto;
  padding:.45rem .75rem;border-bottom:1px solid var(--line2);
  background:linear-gradient(90deg,#0F2C38 0%,#17404F 55%,#0F2C38 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
.rap-bar .lab{font-family:var(--disp);font-size:.62rem;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:#8FC4D4}
.rap-bar .val{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:1rem;
  font-weight:800;color:var(--accbright);letter-spacing:.02em}
.rap-bar .st{font-family:var(--disp);font-size:.68rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:#9FCBD9}
.rap-bar .st.bad{color:#FFB4AE}
.rap-bar .sp{flex:1 1 auto}
.rap-bar select{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#DCF3F9;
  border-radius:var(--r1);padding:.25rem .5rem;font-family:var(--disp);font-size:.72rem;font-weight:700
}
.rap-bar button{
  font-family:var(--disp);font-size:.62rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;
  color:#DCF3F9;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);
  border-radius:var(--r1);padding:.3rem .6rem;cursor:pointer
}
.rap-bar button:hover{background:rgba(255,255,255,.22)}

/* ---------- the two halves of the board ---------- */
.rap-body{display:flex;flex:1;min-height:0;min-width:0}
.rap-main{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;
  padding:.7rem .75rem .9rem}
.rap-side{
  width:19rem;flex:0 0 19rem;min-height:0;display:flex;flex-direction:column;
  border-left:1px solid var(--line2);background:var(--panel2)
}

/* ---------- the eight seat colours ---------- */
.rap-sc1{--sc:#D93A3A}.rap-sc2{--sc:#1F6FD0}.rap-sc3{--sc:#17864B}.rap-sc4{--sc:#C07A00}
.rap-sc5{--sc:#7A3DC4}.rap-sc6{--sc:#0A8E9B}.rap-sc7{--sc:#C63177}.rap-sc8{--sc:#5F8A0C}

.rap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:minmax(9.5rem,auto);gap:.6rem;flex:1 1 auto;min-height:0;align-content:start}

.rap-seat{display:flex;flex-direction:column;border-radius:var(--r2);border:1px solid var(--line2);
  background:var(--panel);box-shadow:var(--edge),var(--e1);overflow:hidden;min-width:0}
.rap-seat .cap{height:5px;background:var(--sc)}
.rap-seat.free .cap{background:var(--line2)}
.rap-seat .in{padding:.55rem .6rem .6rem;display:flex;flex-direction:column;gap:.42rem;flex:1}
.rap-who{display:flex;align-items:center;gap:.4rem;min-width:0}
.rap-no{width:1.7rem;height:1.7rem;border-radius:var(--r1);background:var(--sc);color:#fff;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:800;
  font-size:.95rem;box-shadow:var(--edge)}
.rap-seat.free .rap-no{background:var(--ink3)}
.rap-who .nm{font-family:var(--disp);font-size:.62rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rap-bal{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;font-size:1.5rem;
  letter-spacing:-.03em;color:var(--ink);line-height:1.05}
.rap-seat.free .rap-bal{color:var(--ink3)}
.rap-tags{display:flex;flex-wrap:wrap;gap:.25rem}
.badge.rp-live{background:#FFF3D8;color:#8A5D06}
.badge.rp-air{background:#FFE7D2;color:#9A4A06}
.badge.rp-lock{background:rgba(217,58,58,.13);color:var(--red)}
.badge.rp-gift{background:var(--accdim);color:var(--acc3)}
.rap-meta{font-family:var(--ui);font-size:.66rem;color:var(--ink3);line-height:1.35;margin-top:-.1rem}
.rap-seat .acts{grid-template-columns:1fr 1fr;margin-top:auto;padding-top:.15rem}
.rap-seat .act{height:2.9rem}
/* a seat's statement: small, under the two money buttons */
.rap-stmt{margin-top:.35rem;width:100%;padding:.35rem .4rem;border-radius:var(--r1);border:1px solid var(--line);
  background:var(--panel);color:var(--ink2);font-family:var(--ui);font-size:.66rem;font-weight:700;cursor:pointer}
.rap-stmt:hover{background:var(--surf3);color:var(--ink)}
.rap-book{max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:var(--r1)}
.rap-book .r{display:grid;grid-template-columns:3.2rem 1fr auto auto;gap:.6rem;align-items:baseline;
  padding:.45rem .6rem;border-bottom:1px solid var(--line);font-size:.78rem}
.rap-book .r:last-child{border-bottom:0}
.rap-book .t{font-family:var(--mono);color:var(--ink3);font-size:.7rem}
.rap-book .w{color:var(--ink2);line-height:1.35}
.rap-book .w i{color:var(--ink3);font-style:normal;font-size:.68rem}
.rap-book .c,.rap-book .h{font-family:var(--mono);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.rap-book .c .in{color:#137344}.rap-book .c .out{color:#1B4A83}
.rap-book .h{color:var(--ink)}
.rap-book .r.bad{background:rgba(217,58,58,.1)}
.rap-book .r.bad .w{color:var(--red);font-weight:800}
.rap-odd{margin-bottom:.7rem;padding:.6rem .75rem;border-radius:var(--r1);background:rgba(217,58,58,.12);
  border-left:3px solid var(--red);font-size:.78rem;color:var(--ink)}
/* GREEN PLUS IS MONEY IN, BLUE MINUS IS MONEY OUT. A cashier who does not read
   well still knows the colours. */
.act.rp-fund{background:linear-gradient(180deg,#3FBE7C 0%,#1E9459 48%,#137344 100%);
  color:#F0FFF6;border-color:#0F6139}
.act.rp-pay{background:linear-gradient(180deg,#3E85CE 0%,#2A66AC 48%,#1B4A83 100%);
  color:#E6F1FB;border-color:#17406F}

/* a seat that does not exist, because its mouse is not plugged in (§23) */
.rap-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  border:1px dashed var(--line2);border-radius:var(--r2);background:var(--surf3);
  padding:1rem .8rem;text-align:center;font-size:.72rem;color:var(--ink3);line-height:1.45}
/* the older way, out of the way: one quiet line that opens the six-number box
   (a PC installed to run Raptor and nothing else) */
.rap-oldway{display:block;width:100%;margin:.2rem 0 .1rem;padding:.5rem .2rem;background:none;border:0;
  color:var(--ink-3,#7c8ba1);font:inherit;font-size:.72rem;text-align:left;text-decoration:underline;cursor:pointer}
.rap-oldway:hover{color:var(--ink,#22303f)}
.rap-none b{font-family:var(--disp);font-size:.95rem;color:var(--ink2)}

/* the settings the back office holds, shown so the cashier never rings anybody */
.rap-set{margin-top:auto;border-top:1px solid var(--line);padding-top:.6rem}
.rap-set .h{font-family:var(--disp);font-size:.6rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink3);margin-bottom:.45rem}
.rap-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.rap-chip{background:var(--surf3);border:1px solid var(--line);border-radius:var(--r1);
  padding:.32rem .55rem;font-family:var(--ui);font-size:.66rem;color:var(--ink2);line-height:1.3}
.rap-chip b{display:block;font-family:var(--mono);font-weight:800;font-size:.85rem;color:var(--ink);
  font-variant-numeric:tabular-nums}
.rap-set .note{font-size:.64rem;color:var(--ink3);margin-top:.5rem}

/* ---------- the board's own side column ----------
   This is NOT the terminal's rail. The rail is untouched and still carries
   FASTBET, Recent Bets, Codes and the coupon. This lives inside the board. */
.rap-hold{padding:.7rem .8rem;background:#FFF7E4;border-bottom:1px solid var(--line2);flex:0 0 auto}
.rap-hold .k{font-family:var(--disp);font-size:.6rem;font-weight:800;letter-spacing:.13em;
  text-transform:uppercase;color:#8A5D06;display:block}
.rap-hold .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;
  font-size:1.6rem;color:#6B4A05;letter-spacing:-.03em;display:block;margin-top:.1rem}
.rap-hold .s{font-size:.66rem;color:#8A5D06;margin-top:.25rem;line-height:1.4}
.rap-side .kpis{grid-template-columns:repeat(2,1fr);flex:0 0 auto}
.rap-sec{padding:.6rem .8rem .3rem;font-family:var(--disp);font-size:.6rem;font-weight:800;
  letter-spacing:.13em;text-transform:uppercase;color:var(--ink3);flex:0 0 auto}
.rap-look{display:flex;gap:.4rem;padding:0 .8rem .6rem;flex:0 0 auto}
.rap-look input{flex:1;min-width:0;border:1.5px solid var(--line2);border-radius:var(--r1);
  padding:.5rem .6rem;font-family:var(--mono);font-weight:700;font-size:.95rem;background:#fff;
  color:var(--ink)}
.rap-look input:focus-visible{outline:2px solid var(--acc3);outline-offset:1px}
.rap-found{margin:0 .8rem .6rem;padding:.55rem .65rem;background:var(--surf3);border-radius:var(--r1);
  font-size:.72rem;color:var(--ink2);line-height:1.5;display:none;flex:0 0 auto}
.rap-found.on{display:block}
.rap-found b{font-family:var(--mono);color:var(--ink);font-variant-numeric:tabular-nums}
.rap-mv{flex:1 1 auto;min-height:4rem;overflow:auto;border-top:1px solid var(--line);
  background:var(--panel)}
.rap-mv .r{display:grid;grid-template-columns:2.9rem 1fr auto;gap:.45rem;align-items:baseline;
  padding:.45rem .8rem;border-bottom:1px solid var(--line);font-size:.72rem}
.rap-mv .t{font-family:var(--mono);color:var(--ink3);font-size:.68rem}
.rap-mv .w{color:var(--ink2);line-height:1.35}
.rap-mv .a{font-family:var(--mono);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.rap-mv .a.in{color:#137344}.rap-mv .a.out{color:#1B4A83}.rap-mv .a.n{color:var(--ink3)}
.rap-lockline{padding:.55rem .8rem .8rem;font-size:.63rem;color:var(--ink3);line-height:1.5;
  border-top:1px solid var(--line);background:var(--panel2);flex:0 0 auto}

/* ---------- pairing, funding and paying out ----------
   These use the terminal's own modal box, which is not an area of the
   terminal — it is a dialog over whatever is on screen. */
.rap-screens{display:grid;gap:.45rem;margin-bottom:.9rem}
.rap-screen{display:flex;align-items:center;gap:.6rem;padding:.6rem .7rem;border-radius:var(--r2);
  border:1px solid var(--line2);background:#fff;text-align:left;cursor:pointer;width:100%}
.rap-screen[aria-pressed="true"]{border-color:var(--acc3);background:var(--accdim)}
.rap-screen .dotl{width:.6rem;height:.6rem;border-radius:50%;background:#1E9459;flex:0 0 auto}
.rap-screen.down .dotl{background:var(--red)}
.rap-screen .tt{font-family:var(--disp);font-weight:800;font-size:.9rem;color:var(--ink)}
.rap-screen .ss{font-size:.7rem;color:var(--ink3);display:block;font-weight:600}

.rap-lines{margin:0 0 .3rem}
.rap-lines .l{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;
  padding:.5rem 0;border-top:1px solid var(--line)}
.rap-lines .l:first-child{border-top:0}
.rap-lines .l span{color:var(--ink2);font-size:.86rem}
.rap-lines .l b{font-family:var(--mono);font-weight:800;font-size:1.05rem;font-variant-numeric:tabular-nums}
.rap-lines .l.gift b{color:var(--acc3)}
.rap-big{font-family:var(--mono);font-weight:800;font-size:2.3rem;letter-spacing:-.03em;
  text-align:center;padding:.6rem 0 .2rem;color:var(--ink)}
.rap-bigk{text-align:center;font-family:var(--disp);font-size:.62rem;font-weight:800;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink3);margin-bottom:.6rem}

/* ---------- narrow counters ---------- */
@media (max-width:1400px){ .rap-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:1150px){
  .rap-body{flex-direction:column}
  /* its own scroll: at 1024x768 this column is taller than the 22rem it is given, and without one its foot (the pay-out lookup and Find) hung
     off the bottom of the screen where nothing could reach it (cashier tier-1, stage 5, 16 November 2026) */
  .rap-side{width:auto;flex:0 0 auto;border-left:0;border-top:1px solid var(--line2);max-height:22rem;overflow-y:auto}
  .rap-mv{max-height:9rem}
}

/* the pay-out amount: a box, and two quick answers beside it */
.rap-payamt{display:flex;gap:.4rem;align-items:stretch}
.rap-payamt input{flex:1 1 auto;min-width:0;font-family:var(--mono);font-weight:800;font-size:1.2rem;
  padding:.45rem .6rem;border:1px solid var(--line);border-radius:var(--r1);font-variant-numeric:tabular-nums}
.rap-payamt .mb{flex:0 0 auto;white-space:nowrap}

/* the stake steps a player can ask for, at top-up */
.rap-steps{display:flex;flex-wrap:wrap;gap:.35rem}
.rap-steps .mb{flex:1 1 auto;min-width:4.5rem}
.rap-steps .mb.on{background:var(--acc);color:var(--onacc);border-color:var(--acc)}
