/* ==== JPM KIT v1 — base visual dos jogos (sincronizado; regras do jogo vêm depois do "fim da base") ==== */
.jpm-game[data-game="barbeiro"] {
  --g-glass: rgba(23, 27, 52, .72);
  --g-accent: var(--primary, #6046FF);
  font-family: inherit;
  color: var(--ink, #172033);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  container-type: size;
  font-size: clamp(11px, 2.1cqw, 17px);
}
.jpm-game[data-game="barbeiro"] [hidden] { display: none; }
.jpm-game[data-game="barbeiro"] button { font: inherit; color: inherit; cursor: pointer; }
.jpm-game[data-game="barbeiro"] button:focus-visible { outline: 3px solid var(--ink, #172033); outline-offset: 2px; }
.jpm-game[data-game="barbeiro"] .g-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.jpm-game[data-game="barbeiro"] .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* HUD numa faixa só */
.jpm-game[data-game="barbeiro"] .g-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; pointer-events: none; }
.jpm-game[data-game="barbeiro"] .g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: var(--surface, #fff); font-weight: 900; font-size: clamp(13px, 2.3cqw, 19px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jpm-game[data-game="barbeiro"] .g-chip--right { margin-left: auto; }
.jpm-game[data-game="barbeiro"] .g-chip--warn { background: var(--coral, #FF6868); }
.jpm-game[data-game="barbeiro"] .g-ico { width: 1.2em; height: 1.2em; flex: none; }
.jpm-game[data-game="barbeiro"] .g-bar { position: relative; width: clamp(70px, 18cqw, 180px); height: .7em; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .25); overflow: hidden; }
.jpm-game[data-game="barbeiro"] .g-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--yellow, #FFD43B); transition: width .2s linear; }
.jpm-game[data-game="barbeiro"] .g-hearts { display: flex; gap: 4px; padding: 6px 10px; border-radius: var(--r-pill, 999px); background: var(--g-glass); }
.jpm-game[data-game="barbeiro"] .g-heart { width: clamp(16px, 3cqw, 26px); height: clamp(16px, 3cqw, 26px); color: var(--coral, #FF6868); transition: transform .2s, opacity .2s; }
.jpm-game[data-game="barbeiro"] .g-heart.is-lost { color: rgba(255, 255, 255, .35); transform: scale(.85); }

/* telas */
.jpm-game[data-game="barbeiro"] .g-screen { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 12px; }
.jpm-game[data-game="barbeiro"] .g-intro, .jpm-game[data-game="barbeiro"] .g-over, .jpm-game[data-game="barbeiro"] .g-paused { background: rgba(23, 27, 52, .32); }
.jpm-game[data-game="barbeiro"] .g-intro { background: linear-gradient(90deg, rgba(23, 27, 52, .38), rgba(23, 27, 52, .05) 70%); justify-items: start; padding-left: 6cqw; }
.jpm-game[data-game="barbeiro"] .g-card { width: min(92%, 420px); padding: clamp(14px, 3.4cqw, 28px); border-radius: var(--r-card, 16px); background: var(--surface, #fff); color: var(--ink, #172033); text-align: center; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); }
.jpm-game[data-game="barbeiro"] .g-intro .g-card { width: min(56%, 400px); }
.jpm-game[data-game="barbeiro"] .g-card--small { width: auto; padding: 16px 22px; }
.jpm-game[data-game="barbeiro"] .g-kicker { margin: 0; font-size: clamp(10px, 1.8cqw, 13px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #606B80); }
.jpm-game[data-game="barbeiro"] .g-title { margin: 4px 0 6px; font-size: clamp(20px, 4.6cqw, 34px); line-height: 1.05; letter-spacing: -.04em; font-weight: 900; }
.jpm-game[data-game="barbeiro"] .g-text { margin: 0 0 14px; color: var(--muted, #606B80); font-weight: 600; font-size: clamp(12px, 2.2cqw, 16px); }
.jpm-game[data-game="barbeiro"] .g-btn { min-height: 46px; padding: 0 26px; border: 0; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(15px, 2.6cqw, 19px); box-shadow: 0 8px 18px rgba(23, 32, 51, .22); transition: transform .12s; }
.jpm-game[data-game="barbeiro"] .g-btn:active { transform: scale(.96); }
.jpm-game[data-game="barbeiro"] .g-btn--ghost { background: var(--bg, #F3F6FA); color: var(--ink, #172033); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="barbeiro"] .g-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.jpm-game[data-game="barbeiro"] .g-results { display: flex; justify-content: center; gap: clamp(12px, 4cqw, 30px); margin: 10px 0; }
.jpm-game[data-game="barbeiro"] .g-num { display: block; font-size: clamp(20px, 4.4cqw, 32px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.jpm-game[data-game="barbeiro"] .g-lbl { font-size: clamp(11px, 1.8cqw, 13px); color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="barbeiro"] .g-best { margin: 0 0 14px; font-weight: 800; color: var(--g-accent); min-height: 1.2em; }
.jpm-game[data-game="barbeiro"] .g-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; font-size: clamp(22px, 5cqw, 36px); }
.jpm-game[data-game="barbeiro"] .g-star { width: 1em; height: 1em; color: var(--line, #E3E8EF); }
.jpm-game[data-game="barbeiro"] .g-star.is-on { color: var(--yellow, #FFD43B); }

.jpm-game[data-game="barbeiro"] .g-ready { pointer-events: none; align-content: center; gap: 12px; }
.jpm-game[data-game="barbeiro"] .g-howto { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jpm-game[data-game="barbeiro"] .g-howto-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: var(--surface, #fff); font-weight: 700; font-size: clamp(12px, 2.1cqw, 16px); }
.jpm-game[data-game="barbeiro"] .g-key { padding: 3px 9px; border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #172033); font-weight: 900; }
.jpm-game[data-game="barbeiro"] .g-touch-only { display: none; }
.jpm-game[data-game="barbeiro"] .g-count { font-size: clamp(48px, 14cqw, 120px); font-weight: 900; color: var(--surface, #fff); text-shadow: 0 6px 0 rgba(23, 27, 52, .35); line-height: 1; animation: barbeiro-pop .8s ease-out infinite; }
@keyframes barbeiro-pop { from { transform: scale(1.25); opacity: .4; } 30% { transform: scale(1); opacity: 1; } }

/* botões de toque */
.jpm-game[data-game="barbeiro"] .g-touch { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 10px; pointer-events: none; }
.jpm-game[data-game="barbeiro"] .g-touch-group { display: flex; gap: 10px; align-items: flex-end; }
.jpm-game[data-game="barbeiro"] .g-tbtn { pointer-events: auto; width: clamp(52px, 13cqw, 80px); height: clamp(52px, 13cqw, 80px); border: 0; border-radius: 50%; background: rgba(23, 27, 52, .45); color: var(--surface, #fff); display: grid; place-items: center; touch-action: none; font-weight: 900; font-size: clamp(11px, 2cqw, 14px); }
.jpm-game[data-game="barbeiro"] .g-tbtn svg { width: 55%; height: 55%; }
.jpm-game[data-game="barbeiro"] .g-tbtn--action { background: rgba(96, 70, 255, .78); }
.jpm-game[data-game="barbeiro"] .g-tbtn.is-on, .jpm-game[data-game="barbeiro"] .g-tbtn:active { transform: scale(.94); background: rgba(96, 70, 255, .9); }

/* aviso curto no meio da tela (+10, Combo!, Errou) */
.jpm-game[data-game="barbeiro"] .g-toast { position: absolute; left: 50%; top: 22%; z-index: 3; transform: translateX(-50%); padding: .4em 1em; border-radius: var(--r-pill, 999px); background: var(--surface, #fff); color: var(--ink, #172033); font-weight: 900; font-size: clamp(14px, 3cqw, 24px); white-space: nowrap; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); pointer-events: none; animation: barbeiro-toast .9s ease-out forwards; }
.jpm-game[data-game="barbeiro"] .g-toast.is-good { background: var(--green, #46D68C); color: var(--surface, #fff); }
.jpm-game[data-game="barbeiro"] .g-toast.is-bad { background: var(--coral, #FF6868); color: var(--surface, #fff); }
@keyframes barbeiro-toast { from { opacity: 0; transform: translate(-50%, 10px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -12px) scale(1); } }

@media (pointer: coarse) {
  .jpm-game[data-game="barbeiro"] .g-touch-only { display: inline-flex; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="barbeiro"] .g-intro { justify-items: center; padding-left: 12px; background: rgba(23, 27, 52, .3); }
  .jpm-game[data-game="barbeiro"] .g-intro .g-card { width: min(92%, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="barbeiro"] .g-count, .jpm-game[data-game="barbeiro"] .g-toast { animation: none; }
}
/* ==== fim da base ==== */

/* jogo */
.jpm-game[data-game="barbeiro"] { --g-accent: #6046FF; --bb-green: #2FBF71; --bb-ink: #172033; }

/* HUD: pedido, barra de parecido, desfazer e pronto */
.jpm-game[data-game="barbeiro"] .g-hud { align-items: flex-start; flex-wrap: nowrap; }
.jpm-game[data-game="barbeiro"] .bb-order { flex: none; display: flex; flex-direction: column; align-items: center; }
.jpm-game[data-game="barbeiro"] .bb-order-k { position: relative; z-index: 1; margin: 0 0 -.75em; padding: .18em .9em; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(10px, 1.6cqw, 14px); letter-spacing: .08em; text-transform: uppercase; }
.jpm-game[data-game="barbeiro"] .bb-order-view { width: clamp(74px, 16.5cqw, 176px); aspect-ratio: 1 / .96; border: clamp(3px, .7cqw, 6px) solid var(--surface, #fff); border-radius: clamp(12px, 2.4cqw, 20px); box-shadow: 0 8px 20px rgba(23, 32, 51, .22); }
.jpm-game[data-game="barbeiro"] .bb-order-name { position: relative; z-index: 1; margin: -.8em 0 0; max-width: clamp(90px, 20cqw, 210px); padding: .22em .85em; border-radius: var(--r-pill, 999px); background: var(--surface, #fff); color: var(--bb-ink); font-weight: 900; font-size: clamp(10px, 1.75cqw, 15px); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 10px rgba(23, 32, 51, .16); }
.jpm-game[data-game="barbeiro"] .bb-match { position: absolute; left: 50%; top: clamp(8px, 1.6cqw, 14px); transform: translateX(-50%); }
.jpm-game[data-game="barbeiro"] .bb-match .g-bar { width: clamp(60px, 17cqw, 170px); }
.jpm-game[data-game="barbeiro"] .bb-pct { min-width: 2.6em; text-align: right; }
.jpm-game[data-game="barbeiro"] .g-fill { background: #FF6868; transition: width .25s ease-out, background-color .3s; }
.jpm-game[data-game="barbeiro"] .g-fill[data-lv="1"] { background: #FFC23C; }
.jpm-game[data-game="barbeiro"] .g-fill[data-lv="2"] { background: #8BD450; }
.jpm-game[data-game="barbeiro"] .g-fill[data-lv="3"] { background: var(--bb-green); }
.jpm-game[data-game="barbeiro"] .bb-acts { margin-left: auto; display: flex; gap: clamp(6px, 1.2cqw, 10px); align-items: center; }
.jpm-game[data-game="barbeiro"] .bb-undo { pointer-events: auto; position: relative; width: clamp(44px, 7.2cqw, 60px); height: clamp(44px, 7.2cqw, 60px); border: 0; border-radius: 50%; background: var(--surface, #fff); color: var(--bb-ink); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(23, 27, 52, .18); transition: transform .12s, opacity .2s; }
.jpm-game[data-game="barbeiro"] .bb-undo svg { width: 52%; height: 52%; }
.jpm-game[data-game="barbeiro"] .bb-undo:disabled { opacity: .5; cursor: default; }
.jpm-game[data-game="barbeiro"] .bb-badge { position: absolute; top: -4px; right: -4px; min-width: 1.5em; height: 1.5em; padding: 0 .3em; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(10px, 1.6cqw, 13px); display: grid; place-items: center; }
.jpm-game[data-game="barbeiro"] .bb-done { pointer-events: auto; min-height: clamp(44px, 7.2cqw, 60px); padding: 0 1.1em 0 .8em; border: 0; border-radius: var(--r-pill, 999px); background: var(--bb-green); color: var(--surface, #fff); display: inline-flex; align-items: center; gap: .35em; font-weight: 900; font-size: clamp(14px, 2.4cqw, 20px); box-shadow: 0 4px 0 #1F8F52, 0 8px 18px rgba(23, 32, 51, .2); transition: transform .12s; }
.jpm-game[data-game="barbeiro"] .bb-done svg { width: 1.4em; height: 1.4em; }
.jpm-game[data-game="barbeiro"] .bb-done:active, .jpm-game[data-game="barbeiro"] .bb-undo:active { transform: translateY(2px) scale(.96); }

/* girar a cadeira */
.jpm-game[data-game="barbeiro"] .bb-rot { position: absolute; left: 0; right: 0; top: 50%; z-index: 2; display: flex; justify-content: space-between; padding: 0 clamp(8px, 2cqw, 20px); pointer-events: none; transform: translateY(-50%); }
.jpm-game[data-game="barbeiro"] .bb-rbtn { pointer-events: auto; width: clamp(48px, 7cqw, 60px); height: clamp(48px, 7cqw, 60px); border: 0; border-radius: 50%; background: rgba(23, 27, 52, .42); color: var(--surface, #fff); display: grid; place-items: center; transition: transform .12s; }
.jpm-game[data-game="barbeiro"] .bb-rbtn svg { width: 56%; height: 56%; }
.jpm-game[data-game="barbeiro"] .bb-rbtn:active { transform: scale(.92); }

/* dica do primeiro cliente */
.jpm-game[data-game="barbeiro"] .bb-hint { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: .5em; pointer-events: none; transform: translate(-1.3em, -60%); }
.jpm-game[data-game="barbeiro"] .bb-hint-dot { width: clamp(22px, 4cqw, 40px); height: clamp(22px, 4cqw, 40px); border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 clamp(4px, .8cqw, 8px) rgba(255, 255, 255, .45), 0 6px 14px rgba(23, 27, 52, .3); animation: barbeiro-drag 1.5s ease-in-out infinite; }
.jpm-game[data-game="barbeiro"] .bb-hint-txt { padding: .2em .8em; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(11px, 1.8cqw, 15px); white-space: nowrap; }
@keyframes barbeiro-drag { 0% { transform: translateY(-1.2em); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(2.6em); opacity: 1; } 100% { transform: translateY(2.8em); opacity: 0; } }

/* ferramentas */
.jpm-game[data-game="barbeiro"] .bb-tools { flex-direction: row; justify-content: center; align-items: flex-end; gap: clamp(6px, 1.2cqw, 12px); padding: clamp(6px, 1.4cqw, 12px); }
.jpm-game[data-game="barbeiro"] .bb-tray { order: 2; margin-bottom: clamp(4px, .8cqw, 8px); }
.jpm-game[data-game="barbeiro"] .bb-toolrow { pointer-events: auto; display: flex; gap: clamp(5px, 1.1cqw, 10px); padding: clamp(4px, .8cqw, 8px); border-radius: clamp(18px, 3cqw, 26px); background: rgba(23, 27, 52, .38); }
.jpm-game[data-game="barbeiro"] .bb-tool { position: relative; width: clamp(52px, 8.4cqw, 76px); height: clamp(52px, 8.4cqw, 76px); border: 0; border-radius: clamp(14px, 2.2cqw, 20px); background: var(--surface, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; box-shadow: 0 4px 0 rgba(23, 27, 52, .2); transition: transform .14s, box-shadow .14s, background-color .14s; }
.jpm-game[data-game="barbeiro"] .bb-tool svg { width: 54%; height: 54%; }
.jpm-game[data-game="barbeiro"] .bb-tl { font-size: clamp(9px, 1.25cqw, 12px); font-weight: 900; color: var(--bb-ink); line-height: 1; }
.jpm-game[data-game="barbeiro"] .bb-tool.is-on { background: #FFF4C7; transform: translateY(-5px); box-shadow: 0 0 0 3px var(--g-accent), 0 7px 0 rgba(23, 27, 52, .2); }
.jpm-game[data-game="barbeiro"] .bb-tool:active { transform: translateY(1px) scale(.95); }
.jpm-game[data-game="barbeiro"] .bb-opt { position: absolute; top: -6px; right: -6px; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(10px, 1.5cqw, 13px); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface, #fff); }
.jpm-game[data-game="barbeiro"] .bb-opt:empty { display: none; }
.jpm-game[data-game="barbeiro"] .bb-opt svg { width: 1.1em; height: 1.1em; }
.jpm-game[data-game="barbeiro"] .bb-opt--dot { min-width: 1.4em; height: 1.4em; }
.jpm-game[data-game="barbeiro"] .bb-tray { pointer-events: auto; display: flex; gap: clamp(5px, 1cqw, 8px); padding: clamp(4px, .7cqw, 7px); border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px rgba(23, 32, 51, .2); }
.jpm-game[data-game="barbeiro"] .bb-ob { min-width: clamp(44px, 6.6cqw, 56px); height: clamp(44px, 6.6cqw, 56px); padding: 0 .8em; border: 0; border-radius: var(--r-pill, 999px); background: #EEF1F7; color: var(--bb-ink); display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-weight: 900; font-size: clamp(11px, 1.6cqw, 14px); transition: transform .12s; }
.jpm-game[data-game="barbeiro"] .bb-ob { position: relative; }
.jpm-game[data-game="barbeiro"] .bb-ob svg { width: 1.6em; height: 1.6em; flex: none; }
.jpm-game[data-game="barbeiro"] .bb-on { display: none; }
.jpm-game[data-game="barbeiro"] .bb-ob.is-on { background: var(--g-accent); color: var(--surface, #fff); }
.jpm-game[data-game="barbeiro"] .bb-ob:active { transform: scale(.94); }
.jpm-game[data-game="barbeiro"] .bb-swatch { width: 1.6em; height: 1.6em; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface, #fff), 0 2px 6px rgba(23, 27, 52, .3); }
.jpm-game[data-game="barbeiro"] [data-c="1"] { background: #3A86FF; }
.jpm-game[data-game="barbeiro"] [data-c="2"] { background: #FF5FA8; }
.jpm-game[data-game="barbeiro"] [data-c="3"] { background: #2FD17E; }

/* telas */
.jpm-game[data-game="barbeiro"] .g-ready { align-content: center; justify-items: end; padding: 0 3cqw 0 0; gap: 8px; text-align: right; }
.jpm-game[data-game="barbeiro"] .g-ready .g-howto { flex-direction: column; align-items: flex-end; }
.jpm-game[data-game="barbeiro"] .g-level { margin: 0; padding: .3em 1em; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: var(--surface, #fff); font-weight: 900; font-size: clamp(12px, 2.2cqw, 18px); }
.jpm-game[data-game="barbeiro"] .bb-ready-name { margin: 0; color: var(--surface, #fff); font-weight: 900; font-size: clamp(22px, 4.6cqw, 42px); letter-spacing: -.03em; line-height: 1; text-shadow: 0 4px 0 rgba(23, 27, 52, .4); animation: barbeiro-in .5s ease-out both; }
.jpm-game[data-game="barbeiro"] .bb-ready-tip { margin: 0 0 4px; padding: .35em 1em; border-radius: var(--r-pill, 999px); background: var(--surface, #fff); color: var(--bb-ink); font-weight: 800; font-size: clamp(12px, 2.1cqw, 18px); text-align: center; }
@keyframes barbeiro-in { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } to { transform: scale(1); } }
.jpm-game[data-game="barbeiro"] .bb-levels { background: rgba(23, 27, 52, .34); }
.jpm-game[data-game="barbeiro"] .bb-lv-card { width: min(94%, 680px); max-height: calc(100cqh - 20px); display: flex; flex-direction: column; padding: clamp(10px, 2.4cqw, 22px); }
.jpm-game[data-game="barbeiro"] .bb-lv-card .g-title { margin: 0 0 clamp(6px, 1.4cqw, 12px); font-size: clamp(16px, 3.6cqw, 30px); }
.jpm-game[data-game="barbeiro"] .bb-lv-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1.3cqw, 12px); padding: 2px; }
.jpm-game[data-game="barbeiro"] .bb-lv { min-height: 52px; border: 0; border-radius: clamp(12px, 2cqw, 18px); background: #F1EEFF; color: var(--bb-ink); display: flex; flex-direction: column; align-items: center; gap: .2em; padding: .55em .3em; font-weight: 900; transition: transform .12s; }
.jpm-game[data-game="barbeiro"] .bb-lv:active { transform: scale(.96); }
.jpm-game[data-game="barbeiro"] .bb-lv-n { width: 2em; height: 2em; border-radius: 50%; background: var(--g-accent); color: var(--surface, #fff); display: grid; place-items: center; font-size: clamp(12px, 2cqw, 17px); }
.jpm-game[data-game="barbeiro"] .bb-lv-n svg { width: 1.1em; height: 1.1em; }
.jpm-game[data-game="barbeiro"] .bb-lv-name { font-size: clamp(11px, 1.7cqw, 15px); line-height: 1.1; text-align: center; }
.jpm-game[data-game="barbeiro"] .bb-lv-who { font-size: clamp(9px, 1.3cqw, 12px); color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="barbeiro"] .bb-lv-stars { display: flex; gap: 2px; }
.jpm-game[data-game="barbeiro"] .bb-lv-star { width: clamp(12px, 2cqw, 18px); height: clamp(12px, 2cqw, 18px); color: #D9DEE8; }
.jpm-game[data-game="barbeiro"] .bb-lv-star.is-on { color: #FFC23C; }
.jpm-game[data-game="barbeiro"] .bb-lv.is-locked { opacity: .5; cursor: default; }
.jpm-game[data-game="barbeiro"] .bb-lv.is-locked .bb-lv-n { background: #8C96A8; }
.jpm-game[data-game="barbeiro"] .bb-over { justify-items: end; padding-right: 5cqw; background: linear-gradient(270deg, rgba(23, 27, 52, .38), rgba(23, 27, 52, 0) 72%); }
.jpm-game[data-game="barbeiro"] .bb-over .g-card { width: min(48%, 420px); max-height: calc(100cqh - 20px); overflow-y: auto; }
.jpm-game[data-game="barbeiro"] .bb-over .g-title { margin-bottom: 2px; }
.jpm-game[data-game="barbeiro"] .bb-over .g-btn { min-height: 44px; padding: 0 18px; }
.jpm-game[data-game="barbeiro"] .bb-bonus { margin: 0 0 6px; min-height: 1.1em; color: var(--muted, #606B80); font-weight: 800; font-size: clamp(11px, 1.7cqw, 14px); }

@container (max-width: 860px) {
  .jpm-game[data-game="barbeiro"] .bb-ol { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-ob { padding: 0; }
}
@container (max-width: 600px) {
  .jpm-game[data-game="barbeiro"] .bb-rot { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-tl, .jpm-game[data-game="barbeiro"] .bb-ol { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-ob { padding: 0; width: 52px; height: 52px; }
  .jpm-game[data-game="barbeiro"] .bb-done { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .jpm-game[data-game="barbeiro"] .bb-done span { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-undo { width: 46px; height: 46px; }
  .jpm-game[data-game="barbeiro"] .bb-match { left: 8px; top: 56cqh; transform: none; padding: 4px 8px; gap: 4px; }
  .jpm-game[data-game="barbeiro"] .bb-on { display: grid; position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--surface, #fff); color: var(--bb-ink); font-size: 11px; box-shadow: 0 1px 3px rgba(23, 27, 52, .3); }
  .jpm-game[data-game="barbeiro"] .bb-order-name { white-space: normal; line-height: 1.05; max-width: 84px; }
  .jpm-game[data-game="barbeiro"] .bb-match .g-ico { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-match .g-bar { width: 46px; }
  .jpm-game[data-game="barbeiro"] .g-hud { padding: 6px 8px; }
  .jpm-game[data-game="barbeiro"] .bb-tools { padding: 4px; }
  .jpm-game[data-game="barbeiro"] .bb-toolrow { padding: 0; gap: 5px; background: none; }
  .jpm-game[data-game="barbeiro"] .bb-tool { box-shadow: 0 3px 0 rgba(23, 27, 52, .25), 0 4px 10px rgba(23, 27, 52, .18); }
  .jpm-game[data-game="barbeiro"] .bb-tray { margin-bottom: 0; padding: 3px; }
  .jpm-game[data-game="barbeiro"] .bb-tool.is-on { transform: translateY(-2px); }
  .jpm-game[data-game="barbeiro"].bb-tray-open .bb-toolrow { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-over { justify-items: center; padding: 8px; background: rgba(23, 27, 52, .3); }
  .jpm-game[data-game="barbeiro"] .bb-over .g-card { width: min(96%, 420px); }
  .jpm-game[data-game="barbeiro"] .g-howto { display: none; }
  .jpm-game[data-game="barbeiro"] .g-ready { justify-items: center; align-content: end; padding: 0 8px 64px; text-align: center; }
}
@container (max-height: 340px) {
  .jpm-game[data-game="barbeiro"] .bb-over .g-card { padding: 8px 12px; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-kicker, .jpm-game[data-game="barbeiro"] .bb-bonus, .jpm-game[data-game="barbeiro"] .bb-over .g-best { display: none; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-title { font-size: 18px; margin: 0; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-stars { margin: 2px 0; font-size: 20px; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-results { margin: 2px 0 6px; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-num { font-size: 16px; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-btn { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .jpm-game[data-game="barbeiro"] .bb-over .g-row { gap: 5px; }
  .jpm-game[data-game="barbeiro"] .bb-lv { padding: .3em .2em; gap: .1em; }
  .jpm-game[data-game="barbeiro"] .bb-lv-who { display: none; }
  .jpm-game[data-game="barbeiro"] .g-ready { padding-bottom: 10px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="barbeiro"] .bb-hint-dot, .jpm-game[data-game="barbeiro"] .bb-ready-name { animation: none; }
}
