/* Bar Merch Challenge pages (/join, /my-code, /bar) */
.bm-page { padding-bottom: 60px; max-width: 1040px; }
.bm-two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .bm-two { grid-template-columns: 1fr; } }
.bm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bm-grid2 { grid-template-columns: 1fr; } }
.code-in { text-transform: uppercase; font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; }
.bm-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 12px; cursor: pointer; }
.bm-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.staff-card { background: #1d1d1b; color: #fff; border-radius: 18px; padding: 22px; text-align: center; max-width: 380px; margin: 0 auto; border: 5px solid #f5b335; }
.sc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .85rem; color: #e8e2d4; }
.sc-top b { font-size: 1.2rem; color: #fff; }
.sc-qr { background: #fff; border-radius: 12px; padding: 10px; margin: 14px auto; max-width: 240px; }
.sc-qr svg { display: block; width: 100%; height: auto; }
.sc-code { font-family: var(--display); font-size: 3rem; line-height: 1; color: #f5b335; letter-spacing: .06em; word-break: break-all; }
.sc-sub { margin: 6px 0 2px; }
.sc-url { margin: 0; font-size: .85rem; color: #cfc8b8; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.sc-save { background: var(--cream); border: 2px solid #f5b335; border-radius: 14px; padding: 18px; margin-top: 10px; }
.sc-save p { margin: 6px 0 12px; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.board li.top { background: #fff7e3; border-radius: 8px; }
.board li.me { outline: 2px solid var(--blue); border-radius: 8px; }
.board em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .9rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-row div { background: var(--soft); border-radius: 12px; padding: 14px; text-align: center; }
.stat-row b { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat-row span { font-size: .85rem; color: var(--muted); }
@media print {
  body > *:not(main), .no-print, .a11y-btn, .skip-link, .preview-bar, .toast { display: none !important; }
  main { padding: 0 !important; }
  .bm-two { display: block; }
  .staff-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; margin-top: 20px; }
}
.money-card { margin-bottom: 14px; }
.money-card .bal { display: block; font-size: 2.6rem; line-height: 1.1; margin: 2px 0 10px; color: #1a7f37; }
.meter { height: 14px; background: var(--soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: #f5b335; }
.cash-form .warn:empty { display: none; }
.draw-card { margin-bottom: 14px; background: #fff7e3; border-color: #f5b335; }
.draw-note { background: #fff7e3; border: 2px solid #f5b335; border-radius: 10px; padding: 10px 14px; display: inline-block; }
.rules h3 { margin: 22px 0 6px; }
.rules ul { margin: 0; padding-left: 22px; }
.rules li { margin: 4px 0; }
/* Bar Merch Challenge header (black + gold, matches /bars and the flier) */
.bm-head { background: #1d1d1b; color: #fff; border-radius: 18px; border-bottom: 6px solid #f5b335; padding: 28px 26px; margin: 10px 0 24px; }
.bm-head h1 { font-family: var(--display); font-weight: 400; color: #f5b335; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .92; margin: 0 0 10px; letter-spacing: .01em; }
.bm-head h1 span { display: block; color: #fff; font-size: .62em; }
.bm-head > p { color: #e8e2d4; margin: 0 0 16px; max-width: 640px; }
.bm-perks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .bm-perks { grid-template-columns: 1fr; } }
.bm-perks li { background: rgba(255,255,255,.07); border: 1px solid rgba(245,179,53,.4); border-radius: 12px; padding: 12px 14px; font-size: .9rem; color: #e8e2d4; }
.bm-perks b { display: block; font-size: 1.25rem; color: #f5b335; }
.bm-head .draw-note { color: #1d1d1b; margin: 10px 0 0; }
.bm-head .draw-note a { color: #1d1d1b; }
/* "Already have a code? Log in" — top-right of the challenge header (stacks on phones) */
.bm-head { position: relative; }
.bm-login { float: right; margin: 0 0 12px 16px; background: #f5b335; color: #1d1d1b; font-weight: 800; text-decoration: none; border-radius: 99px; padding: 10px 18px; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.bm-login span { font-weight: 600; }
.bm-login:hover { background: #ffc85a; }
@media (max-width: 640px) { .bm-login { float: none; display: block; text-align: center; margin: 0 0 16px; } }
