/* The Happy Bean Bonus (homepage daily game). Uses the brand tokens from site.css. */
.hbb { background: radial-gradient(120% 80% at 0% 0%, #1d1813 0%, var(--black) 60%); color: var(--white); overflow: hidden; }
.hbb .eyebrow { color: var(--gold-light); }
.hbb .lead { color: #d8d2c8; max-width: 52ch; }
.hbb-head { text-align: center; margin: 0 auto 18px; max-width: 760px; }
.hbb-head h2 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: .02em; margin: .2em 0 .3em; color: var(--white); }
.hbb-head .lead { margin: 0 auto; }


.hbb-stage { position: relative; background: #15110e; border: 1px solid #2c251e; border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hbb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #0b0908; border-radius: 999px; padding: 5px; margin-bottom: 12px; }
.hbb-tabs button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: .7em 1em; background: transparent; color: #cfc6b8; cursor: pointer; min-height: 44px; }
.hbb-tabs button[aria-selected="true"] { background: var(--gold); color: var(--black); }
.hbb-tabs button:focus-visible, .hbb-sound:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.hbb-tabs button:disabled { cursor: not-allowed; opacity: .6; }
.hbb-board > canvas { display: block; width: 100%; height: auto; aspect-ratio: 560 / 520; border-radius: 14px; background: linear-gradient(#211a14, #17120e); }
.hbb-stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 0 4px; }
.hbb-stage-foot a { color: var(--gold-light); font-weight: 700; font-size: .88rem; padding: 10px 0; }
.hbb-sound { font: inherit; font-size: .8rem; font-weight: 700; border: 1px solid #3a3129; background: rgba(11,11,11,.75); color: #cfc6b8; border-radius: 999px; padding: .55em 1em; min-height: 40px; cursor: pointer; }
.hbb-sound[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold); }

.hbb-panel { background: var(--white); color: var(--ink, #161412); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.hbb-panel h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0 0 .4em; }
.hbb-panel p { margin: 0 0 .9em; line-height: 1.55; }
.hbb-panel .btn { width: 100%; justify-content: center; }
.hbb-panel .btn + .btn { margin-top: 10px; }
.hbb-panel .muted { color: var(--muted); font-size: .92rem; }
.hbb-loading { color: var(--muted); }
.hbb-demo { background: #fff3cd; border: 1px solid var(--gold-light); border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 16px; color: #4a3a12; }
.hbb-field { display: grid; gap: 6px; margin: 0 0 14px; }
.hbb-field label { font-weight: 700; font-size: .92rem; }
.hbb-field input { font: inherit; font-size: 1.05rem; padding: .8em 1em; border: 2px solid #ddd2c1; border-radius: 12px; min-height: 48px; width: 100%; }
.hbb-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,134,42,.25); }
.hbb-field input.code { letter-spacing: .4em; font-family: 'Courier New', monospace; font-weight: 800; text-align: center; font-size: 1.4rem; }
.hbb-error { color: #a12a1b; font-weight: 700; font-size: .92rem; margin: 0 0 12px; }
.hbb-error:empty { display: none; }
.hbb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-dark); font-weight: 700; text-decoration: underline; cursor: pointer; }

.hbb-win { text-align: center; }
.hbb-win h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
.hbb-badge { display: inline-block; background: var(--black); color: var(--gold-light); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.hbb-code { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--sand-light); border: 2px dashed var(--gold); border-radius: 14px; padding: 14px; margin: 6px 0 14px; }
.hbb-code strong { font-family: 'Courier New', monospace; font-size: clamp(1.3rem, 4vw, 1.75rem); letter-spacing: .08em; word-break: break-all; }
.hbb-code button { font: inherit; font-weight: 700; font-size: .85rem; border: 1px solid var(--gold-dark); background: var(--white); color: var(--gold-dark); border-radius: 999px; padding: .45em .9em; cursor: pointer; min-height: 36px; }
.hbb-code { flex-direction: column; gap: 4px; }
.hbb-code-k { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.hbb-code.is-promo strong { font-size: clamp(1.1rem, 5vw, 2.1rem); letter-spacing: .03em; }
.hbb-copy { background: var(--white) !important; color: var(--gold-dark) !important; border: 2px solid var(--gold-dark) !important; display: flex; width: 100%; max-width: 360px; margin: 0 auto 14px; justify-content: center; min-height: 52px; font-size: 1.05rem; }
.hbb-ways { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; margin: 4px 0 10px; }
.hbb-order { font-size: 1.08rem; box-shadow: 0 6px 18px rgba(184,134,11,.35); }
.hbb-save { font-size: .95rem; }
.hbb-enter { font-weight: 800; font-size: 1.05rem; margin: 2px 0 10px; }
.hbb-copied { min-height: 1.2em; margin: 0 0 8px; font-weight: 700; color: #1d5a2a; font-size: .95rem; }
.hbb-copied:empty { min-height: 0; margin: 0; }
.hbb-unverified { text-align: left; background: #fff4e5; border-left: 4px solid #d98a00; color: #5a3a00; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: .92rem; line-height: 1.45; }
.hbb-savednote { text-align: left; background: #e8f4ea; color: #1d5a2a; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: .92rem; }
.hbb-upsell { text-align: left; border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; margin: 12px 0 0; font-size: .92rem; }
.hbb-upsell p { margin: 0 0 6px; }
.hbb-upsell-k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.hbb-saved { background: var(--white); border: 2px solid var(--gold); border-radius: 16px; padding: 14px; margin: 0 0 16px; text-align: center; }
.hbb-saved-k { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.hbb-saved-t { margin: 0 0 8px; }
.hbb-way { justify-content: center; min-height: 52px; text-align: center; }
@media (max-width: 420px) { .hbb-ways { grid-template-columns: 1fr; } }
.hbb-steps { text-align: left; margin: 6px 0 14px; padding-left: 1.2em; font-size: .92rem; line-height: 1.5; }
.hbb-steps li { margin: 0 0 6px; }
.hbb-mail { font-size: .92rem; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; text-align: left; }
.hbb-mail.ok { background: #e8f4ea; color: #1d5a2a; }
.hbb-mail.warn { background: #fdf0e3; color: #7a4a10; }
/* Play first, then claim */
.hbb-claim { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--sand-light, #eee4d3); }
.hbb-claim .hbb-badge { margin-bottom: 0; }
.hbb-ask { font-size: 1.15rem; margin: 0 0 8px; }
.hbb-spam { font-size: .82rem; color: var(--muted); margin: -4px 0 10px; }
.hbb-notice { background: var(--sand-light, #f6efe3); border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin: 0 0 14px; }
.hbb-mail:not(.ok):not(.warn) { background: var(--sand-light, #f6efe3); color: var(--muted); }
.hbb-redeemed { background: #eee; border-radius: 10px; padding: 10px; font-weight: 700; }
.hbb-tomorrow { margin-top: 14px; font-weight: 700; }

.hbb-optin { border-top: 1px solid #eee4d6; margin-top: 18px; padding-top: 16px; text-align: left; }
.hbb-optin h4 { margin: 0 0 4px; font-size: 1.02rem; }
.hbb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; margin-top: 8px; }
.hbb-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold-dark); flex: none; }

.hbb-loyal { border-radius: 16px; padding: 16px; margin-top: 18px; text-align: left; background: var(--sand-light); }
.hbb-loyal.is-member { background: linear-gradient(135deg, #2a1d0e, #0b0b0b); color: var(--white); }
.hbb-loyal h4 { margin: 0 0 6px; font-size: 1.02rem; }
.hbb-loyal p { font-size: .93rem; margin-bottom: .7em; }
.hbb-streak { font-size: 1.15rem; font-weight: 800; color: var(--gold-light); margin: 0 0 4px; }
.hbb-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin: 8px 0 6px; }
.hbb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: inherit; transition: width .8s var(--ease, ease); }
.hbb-loyal .btn { width: auto; }
.hbb-loyal form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hbb-loyal input { font: inherit; flex: 1 1 160px; padding: .6em .8em; border: 2px solid #ddd2c1; border-radius: 10px; min-height: 44px; }

.hbb-fine { margin: 26px auto 0; text-align: center; color: #b6ad9f; font-size: .85rem; max-width: 70ch; }
.hbb-fine a { color: var(--gold-light); }
.hbb-odds-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.hbb-odds-list li { background: var(--sand-light); border-radius: 10px; padding: 8px 4px; font-size: .8rem; color: var(--muted); }
.hbb-odds-list b { display: block; color: var(--black); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .hbb-bar span { transition: none; }
}

.hbb-congrats { font-weight: 800; letter-spacing: .16em; color: var(--gold-dark); margin: 0 0 4px !important; font-size: .9rem; }
.hbb-countdown { font-weight: 700; color: var(--gold-dark); margin: 0 0 10px !important; }
.hbb-countdown:empty { display: none; }
.hbb-odds-cap { font-size: .82rem; color: var(--muted); margin: 0 0 6px !important; }
.hbb-odds-cap a { color: var(--gold-dark); font-weight: 700; }
.hbb-merch { text-align: center; margin: 18px 0 0 !important; font-size: .92rem; }
.hbb-merch a { color: var(--gold-dark); font-weight: 700; }
.hbb-board > canvas { touch-action: manipulation; }
@media (max-width: 420px) {
  .hbb-stage { padding: 10px; border-radius: 18px; }
  .hbb-panel { padding: 18px 16px; }
  .hbb-odds-list li { font-size: .74rem; padding: 6px 2px; }
  .hbb-badge { font-size: .7rem; letter-spacing: .08em; }
}

/* Mobile audit fixes (Nov 2026) */
.hbb-panel { scroll-margin-top: calc(var(--header-h, 72px) + 12px); }
.hbb-stage { scroll-margin-top: calc(var(--header-h, 72px) + 8px); }
/* 44px touch targets */
.hbb-stage-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.hbb-sound, .hbb-code button, .hbb-loyal .btn { min-height: 44px; }
.hbb-check { min-height: 44px; align-items: center; }
.hbb-check input { width: 24px; height: 24px; margin: 0; }
.hbb-panel .hbb-link { display: inline-flex; align-items: center; min-height: 44px; }
/* Phone landscape: keep the whole board and ticket on screen */
@media (orientation: landscape) and (max-height: 600px) {
  .hbb-board > canvas { max-width: calc((100svh - 140px) * 560 / 520); margin: 0 auto; }
}
@media (max-width: 420px) {
  .hbb-tabs button { font-size: .92rem; padding: .6em .5em; }
}

/* Sandbox Scratch & Win ticket */
.hbb-tab-long { display: inline; }
@media (max-width: 420px) { .hbb-tab-long { display: none; } }
.hbb-ticket { position: relative; max-width: 440px; margin: 0 auto; padding: 0 12px 12px; border-radius: 16px; color: #2b2219; overflow: hidden;
  background: radial-gradient(circle at 0 50%, transparent 9px, #fbf5ea 10px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #fbf5ea 10px) right / 51% 100% no-repeat;
  box-shadow: 0 18px 36px rgba(0,0,0,.35); }
.hbb-ticket::before { content: ""; display: block; height: 10px; margin: 0 -12px 10px; background: repeating-linear-gradient(-45deg, #f2b632 0 12px, #2b2219 12px 24px); }
.hbb-ticket-head { display: grid; justify-items: center; text-align: center; gap: 1px; margin-bottom: 10px; }
.hbb-ticket-brand { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #8a5f1c; }
.hbb-ticket-head strong { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.05; font-weight: 900; letter-spacing: .02em; color: #2b2219; text-transform: uppercase; }
.hbb-ticket-rule { font-size: .85rem; font-weight: 700; color: #5f4a33; }
.hbb-ticket-play { position: relative; aspect-ratio: 1 / .86; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 2px #e6d8bf; }
.hbb-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; padding: 8px; }
.hbb-cell { display: grid; place-items: center; border-radius: 10px; background: #f6efe2; transition: background .3s, box-shadow .3s; }
.hbb-cell svg { width: 74%; height: 74%; }
.hbb-cell.win { background: #ffe7a8; box-shadow: inset 0 0 0 3px #c0862a; animation: hbb-pop .6s var(--ease, ease) both; }
.hbb-cells.is-full-house .hbb-cell.win { background: linear-gradient(135deg, #ffd66b, #f2b632); box-shadow: inset 0 0 0 3px #2b2219; }
@keyframes hbb-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.hbb-foil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 12px; touch-action: pan-y; transition: opacity .45s ease; }
.hbb-foil.is-live { touch-action: none; cursor: crosshair; }
.hbb-foil.is-fading { opacity: 0; }
.hbb-foil.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.hbb-ticket-key { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hbb-ticket-key li { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: .82rem; font-weight: 700; color: #2b2219; min-height: 36px; }
.hbb-ticket-key li.is-top { background: #2b2219; color: #f2b632; }
.hbb-ticket-key svg { width: 26px; height: 26px; flex: none; }
.hbb-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hbb-cell.win { animation: none; } .hbb-foil { transition: none; } }
@media (max-width: 420px) { .hbb-ticket { padding: 0 8px 8px; } .hbb-ticket::before { margin: 0 -8px 8px; } .hbb-cells { gap: 4px; padding: 6px; } .hbb-ticket-key li { font-size: .78rem; padding: 4px 6px; } }
/* Phone landscape: ticket goes wide (prize key beside the scratch area) so it fits the short screen */
@media (orientation: landscape) and (max-height: 600px) {
  .hbb-ticket { max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; column-gap: 10px; align-items: center; }
  .hbb-ticket::before, .hbb-ticket-head { grid-column: 1 / -1; }
  .hbb-ticket-head { grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 10px; margin-bottom: 6px; }
  .hbb-ticket-head strong { font-size: 1.3rem; }
  .hbb-ticket-play { width: min(100%, calc((100svh - 170px) / .86)); justify-self: center; }
  .hbb-ticket-key { grid-template-columns: 1fr; margin: 0; }
  .hbb-scratch-foot { grid-auto-flow: column; justify-content: center; align-items: center; margin-top: 6px; }
}

/* Streak panel + milestone badges (members). Badges are recognition only. */
.hbb-verified { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fd6a8; }
.hbb-odds-next { margin: 6px 0 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hbb-tomax { margin: 10px 0 12px; font-size: .88rem; color: rgba(255,255,255,.8); }
.hbb-badges { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hbb-badges li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; opacity: .45; }
.hbb-badges li.is-earned { opacity: 1; }
.hbb-medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: .9rem;
  background: #2b2520; color: rgba(255,255,255,.7); border: 2px dashed rgba(255,255,255,.35); }
.hbb-badges li.is-earned .hbb-medal { background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark)); color: var(--black); border: 2px solid #f3d9a4; }
.hbb-medal-name { font-size: .64rem; line-height: 1.2; font-weight: 700; color: rgba(255,255,255,.9); }
.hbb-next-badge, .hbb-streak-rule { color: rgba(255,255,255,.72) !important; font-size: .82rem !important; margin: 6px 0 0; }
.hbb-newbadge { display: flex; align-items: center; gap: 12px; text-align: left; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #2a1d0e, #0b0b0b); color: var(--white); }
.hbb-newbadge p { margin: 0; font-size: .92rem; }
.hbb-newbadge .hbb-medal { flex: none; width: 48px; height: 48px; background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark)); color: var(--black); border: 2px solid #f3d9a4; }
@media (prefers-reduced-motion: no-preference) {
  .hbb-badges li.is-new .hbb-medal, .hbb-newbadge .hbb-medal { animation: hbb-medal-pop .9s cubic-bezier(.2,1.4,.4,1) both; }
  @keyframes hbb-medal-pop { 0% { transform: scale(.3) rotate(-25deg); } 70% { transform: scale(1.12) rotate(6deg); } 100% { transform: none; } }
}
@media (max-width: 420px) { .hbb-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; } }

/* Drop the Bean button under the Plinko board */

/* Show My Reward (full-screen code for the barista) */
.hbb-show { min-width: 220px; }
.hbb-showcode { position: fixed; inset: 0; z-index: 1000; background: #0b0b0b; color: var(--white); display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.hbb-showcode-in { max-width: 520px; width: 100%; }
.hbb-showcode-k { color: var(--gold-light); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 18px; }
.hbb-showcode-r { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 800; margin: 0 0 18px; }
.hbb-showcode-c { font-family: 'Courier New', monospace; font-weight: 800; font-size: clamp(2.2rem, 11vw, 4rem); letter-spacing: .06em; background: var(--white); color: var(--black); border-radius: 18px; padding: 18px 10px; margin: 0 0 16px; word-break: break-all; }
.hbb-showcode-u { font-weight: 800; color: var(--gold-light); margin: 0 0 8px; }
.hbb-showcode-h { color: rgba(255,255,255,.8); margin: 14px 0 22px; }
/* Featured drink: below the code and actions, never covering them */
.hbb-featured { text-align: left; border: 1px solid #eee4d6; border-radius: 14px; padding: 12px 14px; margin: 16px 0 0; }
.hbb-featured p { margin: 0; }
.hbb-featured-k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.hbb-featured-n { font-weight: 800; font-size: 1.05rem; margin-top: 2px !important; }
.hbb-featured-n span { font-weight: 600; color: var(--muted); font-size: .9rem; }
.hbb-featured-d { font-size: .9rem; color: var(--muted); }
/* One-coffee limit: right under every standard % prize, never fine print (owner addendum) */
.hbb-onecoffee { display: inline-block; background: #fff6dc; border: 2px solid var(--gold); color: #4a3a12; font-weight: 800; font-size: .98rem; line-height: 1.35; border-radius: 12px; padding: 8px 12px; margin: 0 0 12px !important; }
.hbb-odds-list li.is-jp { background: linear-gradient(135deg, #fff1b8, #f2b632); color: #0b0b0b; }
/* Pick Your Jackpot */
.hbb-jp h3 { color: #8a5f1c; }
.hbb-jp-sub { font-weight: 700; font-size: 1.05rem; }
.hbb-jp-opts { border: 0; margin: 4px 0 10px; padding: 0; display: grid; gap: 10px; text-align: left; }
.hbb-jp-opt { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; border: 2px solid #e4d8c4; border-radius: 16px; padding: 14px 14px 14px 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; min-height: 48px; }
.hbb-jp-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hbb-jp-opt:hover { border-color: var(--gold-light); }
.hbb-jp-opt.is-picked { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,134,42,.28); background: #fffaf0; }
.hbb-jp-opt.is-picked::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #0b0b0b; font-weight: 900; display: grid; place-items: center; }
.hbb-jp-opt:focus-within { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.hbb-jp-opt.is-off { opacity: .55; cursor: not-allowed; }
.hbb-jp-ico { grid-row: span 3; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #fff1b8, #f2b632); display: grid; place-items: center; font-size: 26px; }
.hbb-jp-ico svg { width: 38px; height: 38px; }
.hbb-jp-t { font-weight: 900; font-size: 1.05rem; padding-right: 30px; }
.hbb-jp-b { font-weight: 600; font-size: .92rem; }
.hbb-jp-c { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.hbb-jp-tag { grid-column: 2; justify-self: start; margin-top: 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #fdf0e3; color: #7a4a10; border-radius: 999px; padding: 3px 9px; }
.hbb-jp-note { text-align: left; }
.hbb-jp-claim:disabled { opacity: .5; cursor: not-allowed; }
.hbb-how { font-size: 1.05rem; }


/* ===== Game-first layout (Nov 22): heading, one line, game selector, big game, prize chips, then the result ===== */
.hbb-play { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.hbb-stage { padding: 12px; background: linear-gradient(180deg, #1b1510, #120e0b); border-color: #3a2f24; }
.hbb-stage-note { margin: 0 0 8px; text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #f3d9a4; opacity: .8; }
.hbb-stage-note[hidden] { display: none; }
.hbb-board { position: relative; }
.hbb-board > canvas { background: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.hbb-action { display: grid; justify-items: center; gap: 6px; margin-top: 12px; }
.hbb-go { min-height: 52px; min-width: min(100%, 260px); font-size: 1.1rem; box-shadow: 0 8px 22px rgba(192,134,42,.35); }
.hbb-go[hidden], .hbb-reveal[hidden] { display: none; }
.hbb-reveal { font: inherit; font-weight: 700; font-size: .92rem; background: none; border: 1px solid #5a4a3b; color: #f3d9a4; border-radius: 999px; padding: .5em 1.2em; min-height: 44px; cursor: pointer; }
.hbb-reveal:focus-visible, .hbb-go:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.hbb-dir { margin: 0; text-align: center; font-weight: 800; color: #f6e7c6; font-size: 1rem; min-height: 1.4em; }
.hbb-dir:empty { display: none; }
[data-hbb-phase="ready"] #hbb-scratch:not([hidden]) ~ .hbb-action .hbb-dir, [data-hbb-phase="locked"] #hbb-scratch:not([hidden]) ~ .hbb-action .hbb-dir { font-size: 1.25rem; color: var(--gold-light); letter-spacing: .02em; }
/* compact prize info */
.hbb-prizes { margin-top: 12px; }
.hbb-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hbb-chips li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; background: #241c15; border: 1px solid #3a2f24; border-radius: 12px; padding: 6px 10px 6px 6px; min-height: 44px; }
.hbb-chips li.is-jp { background: linear-gradient(135deg, #fff1b8, #f2b632 60%, #c88a1c); border-color: #ffe7a0; color: #1b1206; }
.hbb-chip-ico { width: 30px; height: 30px; }
.hbb-chip-t { font-weight: 800; font-size: .74rem; line-height: 1.15; letter-spacing: .01em; color: #f6f1e9; }
.hbb-chip-o { font-weight: 800; font-size: .82rem; color: var(--gold-light); }
.hbb-chips li.is-jp .hbb-chip-t, .hbb-chips li.is-jp .hbb-chip-o { color: #1b1206; }
.hbb-jp-line { margin: 8px 2px 0; font-size: .82rem; color: #cfc6b8; line-height: 1.45; text-align: center; }
.hbb-jp-line b { color: var(--gold-light); }
.hbb-member { margin: 6px 0 0; text-align: center; font-size: .85rem; color: #cfc6b8; }
.hbb-member[hidden] { display: none; }
.hbb-member .hbb-link { color: var(--gold-light); min-height: 44px; }
[data-hbb-phase="won"] .hbb-prizes, [data-hbb-phase="returning"] .hbb-prizes, [data-hbb-phase="claimed"] .hbb-prizes { display: none; }
.hbb-stage-foot { margin-top: 6px; }
/* result card inside the game area (State C / returning) */
.hbb-result { margin-top: 12px; }
.hbb-result[hidden] { display: none; }
.hbb-reveal-card { position: relative; text-align: center; background: linear-gradient(180deg, #fffaf0, #fff3d9); color: #1b1206; border-radius: 18px; padding: 18px 16px 16px; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(242,182,50,.18), 0 18px 40px rgba(0,0,0,.4); overflow: hidden; }
.hbb-reveal-card h3 { font-size: clamp(1.45rem, 6.4vw, 2rem); line-height: 1.12; margin: 2px 0 10px; letter-spacing: .01em; }
.hbb-reveal-card p { margin: 0 0 10px; }
.hbb-reveal-card .hbb-congrats { color: var(--gold-dark); }
.hbb-reveal-card .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 1.08rem; }
.hbb-reveal-card .hbb-onecoffee { display: block; }
.hbb-held { font-size: .9rem; color: #5f4a33; }
.hbb-next { font-size: .88rem; color: #5f4a33; margin: 10px 0 0 !important; }
.hbb-reveal-card.is-back { border-color: #d8c49c; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hbb-reveal-card.is-jp { background: radial-gradient(120% 80% at 50% 0%, #fff8d6, #ffe08a 45%, #f2b632); border-color: #fff1b8; }
.hbb-reveal-card.is-jp h3 { color: #4a2c05; }
.hbb-reveal-card.is-jp .hbb-jp-sub { font-weight: 700; color: #4a2c05; }
.hbb-jp-art { position: relative; width: 120px; height: 120px; margin: -4px auto 4px; display: grid; place-items: center; }
.hbb-jp-art svg { position: relative; width: 104px; height: 104px; filter: drop-shadow(0 6px 10px rgba(120,70,0,.35)); }
.hbb-rays { position: absolute; inset: -20px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 10deg, rgba(255,255,255,0) 10deg 24deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .hbb-rays { animation: hbb-spin 9s linear infinite; }
  .hbb-reveal-card { animation: hbb-rise .45s cubic-bezier(.2,1.2,.4,1) both; }
  .hbb-reveal-card.is-jp .hbb-jp-art svg { animation: hbb-bob 2.4s ease-in-out infinite; }
}
@keyframes hbb-spin { to { transform: rotate(360deg); } }
@keyframes hbb-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hbb-bob { 50% { transform: translateY(-4px); } }
/* gentle gold glow on a win, a stronger one on the jackpot */
.hbb-glow, .hbb-glow-jp { animation: hbb-glow 1.5s ease-out; }
.hbb-glow-jp { animation-name: hbb-glow-jp; }
@keyframes hbb-glow { 0% { box-shadow: 0 0 0 0 rgba(255,214,120,0); } 25% { box-shadow: 0 0 0 4px rgba(255,214,120,.65), 0 0 32px rgba(255,200,90,.55); } 100% { box-shadow: 0 0 0 0 rgba(255,214,120,0); } }
@keyframes hbb-glow-jp { 0% { box-shadow: 0 0 0 0 rgba(255,214,120,0); } 20% { box-shadow: 0 0 0 6px rgba(255,226,140,.9), 0 0 60px rgba(255,200,90,.9); } 100% { box-shadow: 0 0 0 0 rgba(255,214,120,0); } }
#hbb-plinko, .hbb-ticket-play { border-radius: 14px; }
/* panel under the game (State D/E) */
.hbb-panel[hidden] { display: none; }
.hbb-panel .hbb-demo { padding: 6px 10px; font-size: .8rem; margin-bottom: 12px; }
.hbb-why { margin-top: 10px !important; }
.hbb-small { font-size: .84rem !important; margin-top: 10px !important; }
.hbb-signout { margin: 16px 0 0 !important; text-align: center; }
.hbb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hbb-panel .hbb-row .btn + .btn { margin-top: 0; }
.hbb-jp-h { color: #8a5f1c; }
/* ===== Premium Scratch & Win ticket ===== */
.hbb-ticket { max-width: 460px; background: linear-gradient(180deg, #fffaf0, #f6ead2); border: 3px solid #c0862a; box-shadow: 0 0 0 3px #2b2219, 0 22px 40px rgba(0,0,0,.45); padding: 0 12px 12px; }
.hbb-ticket::before { height: 12px; background: repeating-linear-gradient(-45deg, #f2b632 0 12px, #2b2219 12px 24px); }
.hbb-ticket-head strong { background: linear-gradient(180deg, #8a5f1c, #2b2219); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hbb-ticket-rule { font-size: .92rem; font-weight: 800; color: #3d2c18; }
.hbb-ticket-play { box-shadow: inset 0 0 0 2px #c0862a, inset 0 3px 8px rgba(0,0,0,.12); background: linear-gradient(180deg, #fff, #fbf3e3); }
.hbb-cell { background: radial-gradient(circle at 50% 40%, #ffffff, #f3e8d4); box-shadow: inset 0 0 0 1px #eadbc0; }
.hbb-cell svg { width: 82%; height: 82%; }
.hbb-cell.dim { opacity: .55; filter: saturate(.7); }
.hbb-cell.win { background: radial-gradient(circle at 50% 40%, #fffbe8, #ffe39a); box-shadow: inset 0 0 0 3px #c0862a, 0 0 18px rgba(242,182,50,.55); }
.hbb-cells { position: absolute; }
.hbb-winline { position: absolute; left: 4px; right: 4px; height: 33.333%; border-radius: 14px; border: 3px solid #f2b632; box-shadow: 0 0 0 2px rgba(255,243,189,.8), 0 0 22px rgba(242,182,50,.75); pointer-events: none; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .hbb-winline { animation: hbb-line .45s .1s ease-out both; } }
@keyframes hbb-line { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.hbb-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hbb-foil { touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.hbb-ticket-play { overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
[data-hbb-phase="won"] .hbb-foil, [data-hbb-phase="returning"] .hbb-foil { touch-action: pan-y; }
/* finger-swipe hint over the coating before the first scratch */
.hbb-swipe { position: absolute; left: 50%; top: 68%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(255,255,255,.3), 0 4px 10px rgba(0,0,0,.25); pointer-events: none; opacity: 0; }
[data-hbb-phase="ready"] #hbb-scratch .hbb-swipe, [data-hbb-phase="locked"] #hbb-scratch .hbb-swipe, .hbb-foil.is-live ~ .hbb-swipe { opacity: 1; }
.hbb-ticket.is-scratching .hbb-swipe, .hbb-foil.is-gone ~ .hbb-swipe { opacity: 0 !important; }
@media (prefers-reduced-motion: no-preference) { .hbb-swipe { animation: hbb-swipe 1.8s ease-in-out infinite; } }
@keyframes hbb-swipe { 0% { transform: translateX(-60px) rotate(-8deg); } 50% { transform: translateX(60px) rotate(8deg); } 100% { transform: translateX(-60px) rotate(-8deg); } }
.hbb-ticket-key { grid-template-columns: 1fr 1fr; gap: 6px; }
.hbb-ticket-key li { background: #fff; border: 1px solid #eadbc0; font-size: .86rem; font-weight: 800; padding: 4px 8px 4px 4px; min-height: 42px; gap: 6px; line-height: 1.2; }
.hbb-ticket-key li.is-top { background: linear-gradient(135deg, #2b2219, #4a3520); color: #ffd85c; border-color: #2b2219; }
.hbb-ticket-key svg { width: 34px; height: 34px; }
@media (max-width: 360px) { .hbb-ticket-key li { font-size: .76rem; } .hbb-ticket-key svg { width: 28px; height: 28px; } .hbb-chip-t { font-size: .68rem; } }
@media (max-width: 420px) { .hbb-stage { padding: 8px; } .hbb-chips li { padding: 5px 8px 5px 5px; gap: 6px; } }
/* jackpot chooser icons use the same artwork */
.hbb-jp-ico svg { width: 42px; height: 42px; }
/* keep the game on screen: compact heading, and on wide screens size the game to the window height */
.section.hbb { padding-top: clamp(28px, 6vw, 56px); }
@media (max-width: 600px) {
  .hbb-head { margin-bottom: 12px; }
  .hbb-head h2 { font-size: clamp(1.6rem, 8vw, 2.1rem); margin: .1em 0 .2em; }
  .hbb-head .lead { font-size: .98rem; line-height: 1.45; }
  .hbb .eyebrow { font-size: .72rem; }
  .hbb-tabs { margin-bottom: 8px; }
}
@media (min-width: 900px) { .hbb-play { max-width: min(640px, max(420px, calc((100vh - 300px) * 1.08 + 24px))); } }
.hbb-reveal-card h3:focus, .hbb-panel h3:focus, .hbb-panel h4:focus { outline: none; }
