/* The bar's PLAYERS section (/bar/players, Jesse 2026-10-09): the bar tablet, 1180×820 landscape
   first; 1024×768 and 820×1180 keep two columns, a phone stacks them. Uses bar.css's tokens,
   header and sheet. Touch targets 48px and up, no hover-only affordances. */

.bp-main { display: grid; flex: 1; grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr); min-height: 0; }
.bp-label { color: var(--bar-blue); display: block; font: 400 .66rem/1.3 var(--bar-pixel); letter-spacing: .12em; }

/* faces: the initial underneath, the portrait over it (a broken picture removes itself) */
.bp-face { background: #1b2a5a; border-radius: 50%; color: #fff; display: grid; flex: none; font-size: 1.7rem; height: 56px; overflow: hidden; place-items: center; position: relative; width: 56px; }
.bp-face img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.bp-face.is-big { box-shadow: 0 0 0 3px var(--bar-blue), 0 0 22px rgba(83,224,255,.45); font-size: 3.4rem; height: 124px; width: 124px; }

/* left column */
.bp-list { border-right: 1px solid #1d2747; display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding: .8rem; }
.bp-shift { background: var(--bar-panel); border: 1.5px solid var(--bar-line2); border-radius: 16px; display: grid; gap: .5rem .7rem; grid-template-columns: minmax(0, 1fr) auto; padding: .7rem .8rem; }
.bp-shift.is-on { border-color: var(--bar-mint); box-shadow: inset 0 0 0 1px rgba(159,240,192,.15); }
.bp-shift-me { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bp-shift-me b { color: #fff; font: 400 .7rem/1.4 var(--bar-pixel); letter-spacing: .08em; }
.bp-shift.is-on .bp-shift-me b { color: var(--bar-mint); }
.bp-shift-me span { color: var(--bar-muted); font-size: 1.2rem; }
.loyalty-main .bar .bp-shift form { align-self: center; margin: 0; }
.loyalty-main .bar button.bp-clock, .bar .bp-clock { align-items: center; background: var(--bar-mint); border: 0; border-radius: 14px; box-shadow: 0 0 14px rgba(159,240,192,.35); color: #04140c; cursor: pointer; display: flex; flex-direction: column; font: 400 .66rem var(--bar-pixel); justify-content: center; letter-spacing: .08em; margin: 0; min-height: 52px; min-width: 8.5rem; padding: .2rem .8rem; text-shadow: none; }
.loyalty-main .bar button.bp-clock.is-out { background: transparent; border: 1.5px solid #fff; box-shadow: none; color: #fff; }
.bar .bp-clock.is-off { background: transparent; border: 1.5px dashed var(--bar-line2); box-shadow: none; color: var(--bar-dim); cursor: not-allowed; }
.bp-clock small { font: 400 1.1rem var(--bar-lcd); letter-spacing: 0; margin-top: .1rem; }
.bp-onshift { border-top: 1px solid var(--bar-row); color: var(--bar-body); display: flex; flex-direction: column; font-size: 1.3rem; gap: .1rem; grid-column: 1 / -1; line-height: 1.15; padding-top: .45rem; }
.bp-onshift .bp-label { color: #8fa0cc; margin-bottom: .15rem; }

.loyalty-main .bar form.bp-search { margin: 0; max-width: none; }
.bp-search .player-pick-label { color: var(--bar-blue); font: 400 .66rem var(--bar-pixel); letter-spacing: .12em; }
.loyalty-main .bar .bp-search .player-pick-field input { background: #070b18; border: 1.5px solid var(--bar-line2); border-radius: 14px; box-sizing: border-box; color: #fff; font: 400 1.3rem var(--bar-lcd); min-height: 54px; padding: 0 .9rem; width: 100%; }
.bp-search .player-pick-field { margin-top: .35rem; }
.bp-search .player-pick-results { left: 0; position: absolute; right: 0; top: 100%; z-index: 20; }
.bp-label.is-here { margin-top: .2rem; }
.bp-rows { display: flex; flex-direction: column; gap: .45rem; }
.bar .bp-row { align-items: center; background: var(--bar-panel); border: 1.5px solid var(--bar-line); border-radius: 16px; display: flex; gap: .7rem; min-height: 72px; padding: .45rem .7rem; }
.bar .bp-row.is-on { background: rgba(83,224,255,.12); border-color: var(--bar-blue); }
.bp-row.is-wifi .bp-face { box-shadow: 0 0 0 2px var(--bar-blue), 0 0 12px rgba(83,224,255,.45); }
.bp-row.is-demo .bp-face { box-shadow: 0 0 0 2px var(--bar-purple), 0 0 12px rgba(180,140,255,.4); }
.bp-row-who { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bp-row-who b { color: #fff; font-size: 1.65rem; font-weight: 400; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.bp-tags i { border: 1px solid var(--bar-line2); border-radius: 999px; color: var(--bar-muted); font: 400 .62rem/1 var(--bar-pixel); font-style: normal; letter-spacing: .08em; padding: .3rem .5rem; }
.bp-tags i.is-wifi { border-color: var(--bar-blue); color: var(--bar-blue); }
.bp-tags i.is-demo { border-color: var(--bar-purple); color: var(--bar-purple); }
.bp-tags i.is-tab { border-color: var(--bar-amber); color: var(--bar-amber-soft); }
.bp-tags.is-big i { font-size: .68rem; padding: .45rem .7rem; }

/* right column: the card */
.bp-detail { display: flex; flex-direction: column; gap: .9rem; min-width: 0; padding: .9rem 1.1rem 1.4rem; }
.bp-card { align-items: center; display: grid; gap: 1.1rem; grid-template-columns: auto minmax(0, 1fr) auto; }
.bp-card-who { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bp-card-who h1 { color: #fff; font: 400 2.8rem/1 var(--bar-lcd); margin: 0; overflow-wrap: anywhere; text-shadow: 0 0 12px rgba(180,140,255,.35); }
.bp-handle { color: var(--bar-muted); font-size: 1.5rem; }
.bar .bp-tab { align-items: flex-end; background: rgba(255,191,63,.08); border: 1.5px solid var(--bar-amber); border-radius: 16px; display: flex; flex-direction: column; justify-content: center; min-height: 92px; min-width: 10rem; padding: .5rem .9rem; }
.bp-tab small { color: var(--bar-amber-soft); font: 400 .58rem var(--bar-pixel); letter-spacing: .1em; }
.bp-tab b { color: #fff; font-size: 2.2rem; font-weight: 400; line-height: 1; }
.bp-tab span { color: var(--bar-amber-soft); font: 400 .6rem var(--bar-pixel); letter-spacing: .08em; margin-top: .25rem; }
.bar .bp-tab.is-none { background: none; border: 1.5px dashed var(--bar-line2); min-height: 56px; }
.bp-tab.is-none small { color: var(--bar-dim); }
.bp-facts { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-facts span { background: var(--bar-panel); border: 1px solid var(--bar-line); border-radius: 14px; display: flex; flex-direction: column; gap: .15rem; padding: .55rem .85rem; }
.bp-facts small { color: #8fa0cc; font: 400 .62rem var(--bar-pixel); letter-spacing: .1em; }
.bp-facts b { color: #fff; font-size: 1.8rem; font-weight: 400; line-height: 1; }
.bp-why { background: rgba(255,191,63,.08); border: 1.5px solid var(--bar-amber); border-radius: 14px; color: var(--bar-amber-soft); font-size: 1.35rem; margin: 0; padding: .6rem .85rem; }

.bp-give { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bp-give-group { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.bp-tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.bar .bp-tile { align-items: center; background: var(--bar-panel); border: 1.5px solid var(--bar-line2); border-radius: 16px; color: #fff; display: flex; flex-direction: column; gap: .3rem; justify-content: center; min-height: 116px; padding: .55rem .5rem; text-align: center; }
.bar .bp-tile.is-award { background: linear-gradient(180deg, rgba(180,140,255,.16), rgba(83,224,255,.06)); border-color: var(--bar-purple); }
.bar .bp-tile.is-item { border-color: var(--bar-blue); }
.bp-tile b { font: 400 .7rem/1.3 var(--bar-pixel); letter-spacing: .06em; }
.bp-tile small { color: var(--bar-blue-soft); font-size: 1.2rem; line-height: 1.05; }
.bp-art { color: var(--bar-blue); display: grid; height: 56px; place-items: center; position: relative; width: 56px; }
.bp-art svg { height: 70%; width: 70%; }
.bp-art img { height: 100%; inset: 0; object-fit: contain; position: absolute; width: 100%; }
.bp-art.is-big { flex: none; height: 84px; width: 84px; }
.bp-mark { color: var(--bar-amber); filter: drop-shadow(0 0 8px rgba(255,191,63,.55)); flex: none; height: 44px; width: 44px; }
.bp-mark.is-big { height: 72px; width: 72px; }
.bar .bp-tile.is-off, .bar .bp-act.is-off, .bar .bp-act.is-ask.is-off, .bar .bp-tile.is-award.is-off { background: none; border-color: var(--bar-line); border-style: dashed; box-shadow: none; color: var(--bar-dim); cursor: not-allowed; }
.bp-tile.is-off small, .bp-act.is-off small, .bp-tile.is-off .bp-mark, .bp-tile.is-off .bp-art { color: var(--bar-dim); filter: none; }
.bp-tile.is-off img { filter: grayscale(1); opacity: .45; }

.bp-acts { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); margin-top: .15rem; }
.bar .bp-act { align-items: center; border: 1.5px solid #fff; border-radius: 16px; color: #fff; display: flex; flex-direction: column; font: 400 .74rem var(--bar-pixel); gap: .2rem; justify-content: center; letter-spacing: .08em; min-height: 76px; padding: .4rem .8rem; text-align: center; }
.bar .bp-act.is-ask { background: rgba(180,140,255,.12); border-color: var(--bar-purple); color: #e9ddff; }
.bp-act small { color: var(--bar-muted); font: 400 1.2rem/1.1 var(--bar-lcd); letter-spacing: 0; }

.bp-panel { background: var(--bar-panel); border: 1px solid var(--bar-line); border-radius: 16px; display: flex; flex-direction: column; gap: .4rem; padding: .7rem .9rem; }
.bp-note { border-top: 1px solid var(--bar-row); padding-top: .4rem; }
.bp-note p { color: #fff; font-size: 1.4rem; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.bp-note small, .bp-request small { color: var(--bar-muted); display: block; font-size: 1.15rem; }
.bp-request { align-items: center; border-top: 1px solid var(--bar-row); display: flex; gap: .8rem; justify-content: space-between; min-height: 52px; padding-top: .35rem; }
.bp-request > span { color: var(--bar-body); font-size: 1.35rem; min-width: 0; overflow-wrap: anywhere; }
.bp-request i { border-radius: 999px; flex: none; font: 400 .6rem var(--bar-pixel); font-style: normal; letter-spacing: .08em; padding: .4rem .6rem; }
.bp-request i.is-wait { border: 1px solid var(--bar-amber); color: var(--bar-amber-soft); }
.bp-request i.is-yes { border: 1px solid var(--bar-mint); color: var(--bar-mint); }
.bp-request i.is-no { border: 1px solid var(--bar-pink); color: var(--bar-pink); }
.bp-none { background: var(--bar-panel); border: 1.5px dashed var(--bar-line2); border-radius: 18px; padding: 1.6rem 1.4rem; }
.bp-none h1 { color: #fff; font: 400 2.4rem/1 var(--bar-lcd); margin: 0 0 .5rem; }
.bp-none p { color: var(--bar-body); font-size: 1.5rem; margin: 0; max-width: 34rem; }

/* sheets */
.bp-sheet { max-width: min(40rem, calc(100vw - 1.5rem)); }
.bp-sheet .bar-sheet-head h2 { flex: 1; min-width: 0; }
.loyalty-main .bar form.bp-sheet-form { display: flex; flex-direction: column; gap: .9rem; margin: .9rem 0 0; max-width: none; }
.bp-confirm { align-items: center; display: flex; gap: 1rem; }
.bp-confirm p { color: #fff; font-size: 1.6rem; line-height: 1.2; margin: 0; }
.bp-confirm b { color: var(--bar-blue-soft); font-weight: 400; }
.bp-field { display: flex; flex-direction: column; gap: .4rem; }
.bp-field[hidden] { display: none; }
.loyalty-main .bar textarea.bp-textarea { line-height: 1.2; min-height: 8rem; padding: .6rem .9rem; resize: vertical; }
.loyalty-main .bar .bp-num { max-width: 12rem; }
.bp-sheet-note { color: var(--bar-amber-soft); font-size: 1.35rem; margin: 0; }
.bp-sheet-buttons { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.bar .bp-cancel { align-items: center; border: 1.5px solid #3a4778; border-radius: 16px; color: var(--bar-body); display: flex; font: 400 .74rem var(--bar-pixel); justify-content: center; letter-spacing: .1em; min-height: 60px; }
.loyalty-main .bar .bp-sheet button.bar-submit:disabled { opacity: .55; }

/* portrait tablets: the gifts stack, the tab box drops under the name */
@media (max-width: 900px) {
  .bp-give { display: flex; flex-direction: column; gap: .45rem; }
  .bp-give-group { display: contents; }
  .bp-give-group + .bp-give-group > .bp-label { margin-top: .5rem; }
  .bp-give .bp-acts { margin-top: .6rem; order: 1; }
  .bp-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-shift { grid-template-columns: minmax(0, 1fr); }
  .loyalty-main .bar button.bp-clock, .bar .bp-clock { width: 100%; }
  .bp-row-who b { font-size: 1.5rem; }
  .bp-main { grid-template-columns: minmax(17rem, 19rem) minmax(0, 1fr); }
  .bp-card { grid-template-columns: auto minmax(0, 1fr); }
  .bar .bp-tab { align-items: center; flex-direction: row; gap: .8rem; grid-column: 1 / -1; justify-content: space-between; min-height: 64px; }
  .bp-face.is-big { font-size: 2.8rem; height: 100px; width: 100px; }
  .bp-card-who h1 { font-size: 2.3rem; }
}
/* phone: the list above the card */
@media (max-width: 760px) {
  .bp-main { grid-template-columns: minmax(0, 1fr); }
  .bp-list { border-bottom: 1px solid #1d2747; border-right: 0; }
  .bp-acts, .bp-facts { grid-template-columns: minmax(0, 1fr); }
  .bp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
