/* HustlCraft feel kit styles (HCFeel). Shared by Craft the Chart and Craft Arena, so every colour has a fallback
   and nothing depends on play.css. Brand tokens: stage #1A1512, accent #E8722B, gold #D4A94E. */

/* mute button: HCFeel.muteButton(host) */
.hcf-mute{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:0 14px 0 10px;
  border:1px solid var(--line-2,#3A312B);background:var(--stage-2,#141110);color:var(--ink,#FBF7F1);border-radius:999px;
  font:700 15px/1 var(--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);cursor:pointer;-webkit-tap-highlight-color:transparent}
.hcf-mute[aria-pressed="true"]{border-color:var(--brand,#E8722B)}
.hcf-mute:focus-visible{outline:2px solid var(--brand-hot,#E8722B);outline-offset:2px}
.hcf-mute-ic{display:inline-flex;width:24px;height:24px;flex:none}
.hcf-mute-ic svg{width:24px;height:24px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hcf-mute-ic .hcf-on,.hcf-mute-ic .hcf-off{fill:none}
.hcf-mute[aria-pressed="true"] .hcf-mute-ic{color:var(--brand,#E8722B)}
.hcf-mute[aria-pressed="true"] .hcf-off,.hcf-mute[aria-pressed="false"] .hcf-on{display:none}
.hcf-mute[aria-pressed="false"] .hcf-mute-ic{color:var(--muted,#B4A79C)}

/* ---- level end: HCFeel.confetti and HCFeel.endCard ----
   Layers on <body>, bottom to top: .hcf-end-back (dim, 70), .hcf-confetti (72), .hcf-end (the dialog, 74). All sit above
   toasts and the rank-up dialog (60). */
.hcf-end-back{position:fixed;top:0;left:0;width:100%;height:100%;z-index:70;background:rgba(20,17,16,.86)}
.hcf-confetti{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:72}
.hcf-end{position:fixed;top:0;left:0;width:100%;height:100%;z-index:74;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.hcf-end-card{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;
  padding:18px 18px 0;background:var(--card,#262019);border:1.5px solid var(--gold,#D4A94E);border-radius:18px;color:var(--ink,#FBF7F1);text-align:center;box-shadow:0 20px 70px rgba(0,0,0,.6);
  font-family:var(--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);font-size:16px;line-height:1.5}

/* Femi and his speech bubble: Perfect and Strong use the wide celebration picture above the bubble, Solid and Building the portrait beside it */
.hcf-end-femi{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px}
.hcf-end-img{display:block;flex:none;width:auto;height:120px;border-radius:12px}
.hcf-end-femi.hcf-wide{flex-direction:column;align-items:stretch;gap:10px}
.hcf-end-femi.hcf-wide .hcf-end-img{width:100%;height:auto;max-height:150px;object-fit:cover;object-position:50% 25%}
.hcf-end-bubble{position:relative;flex:1 1 auto;min-width:0;padding:10px 12px;background:var(--stage-2,#141110);border:1px solid var(--gold,#D4A94E);border-radius:12px;text-align:left}
.hcf-end-bubble::before{content:"";position:absolute;left:-7px;top:22px;width:11px;height:11px;background:var(--stage-2,#141110);border-left:1px solid var(--gold,#D4A94E);border-bottom:1px solid var(--gold,#D4A94E);transform:rotate(45deg)}
.hcf-end-femi.hcf-wide .hcf-end-bubble::before{left:28px;top:-7px;border-bottom:0;border-top:1px solid var(--gold,#D4A94E)}
.hcf-end-say{margin:0;font-weight:800;font-size:17px;line-height:1.25;color:var(--ink,#FBF7F1)}
.hcf-end-name{display:block;margin-top:4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#B4A79C)}

.hcf-end-eyebrow{margin:0;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#B4A79C)}
.hcf-end-title{margin:4px 0 0;font-family:var(--display,"Archivo","Arial Black",system-ui,sans-serif);font-weight:800;font-size:clamp(24px,6.5vw,30px);line-height:1.1;letter-spacing:-.01em}
.hcf-end-line{margin:8px 0 0;color:var(--ink-2,#DED5CB);font-size:16px}

/* the four tiles: a value over a label */
.hcf-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0}
.hcf-tile{min-width:0;padding:10px 8px;border:1px solid var(--line,#3A312B);background:var(--stage-2,#141110);border-radius:12px}
.hcf-tile-v{display:block;font-family:var(--display,"Archivo","Arial Black",system-ui,sans-serif);font-weight:800;font-size:22px;line-height:1.15;color:var(--gold,#D4A94E);overflow-wrap:anywhere}
.hcf-tile-l{display:block;margin-top:2px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#B4A79C)}
.hcf-end-extra{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:6px;color:var(--gold,#D4A94E);font-size:15px;font-weight:700;text-decoration:underline;width:100%;padding:0;border:0;background:none;font-family:inherit;cursor:pointer}

/* the buttons stay in view at the foot of the card, even when a short screen makes the card scroll */
.hcf-end-actions{position:sticky;bottom:0;display:flex;flex-direction:column;gap:8px;margin:14px -18px 0;padding:12px 18px 18px;background:var(--card,#262019)}
.hcf-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;box-sizing:border-box;padding:10px 14px;border:1px solid var(--line-2,#3A312B);background:var(--stage-2,#141110);color:var(--ink,#FBF7F1);border-radius:14px;
  font:700 17px/1.2 var(--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hcf-btn:hover{border-color:var(--line-hi,#4A4036)}
.hcf-btn-primary{min-height:56px;background:var(--brand,#E8722B);border-color:var(--brand,#E8722B);color:#1A1512;font-size:18px}
.hcf-btn-primary:hover{background:var(--brand-lite,#F0975D);border-color:var(--brand-lite,#F0975D)}
.hcf-btn:focus-visible,.hcf-end-extra:focus-visible{outline:2px solid var(--brand-hot,#E8722B);outline-offset:2px}
.hcf-btn-primary:focus-visible{outline-color:var(--ink,#FBF7F1)}
@media (min-width:480px){.hcf-end-card{padding:22px 22px 0}.hcf-end-actions{margin:16px -22px 0;padding:12px 22px 22px}}
@media (prefers-reduced-motion:no-preference){
  .hcf-end-card{animation:hcf-pop .28s ease-out both}
  .hcf-end-femi{animation:hcf-bounce .55s cubic-bezier(.2,.9,.25,1.3) .1s both}
}
@keyframes hcf-pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@keyframes hcf-bounce{0%{opacity:0;transform:translateY(16px) scale(.6)}70%{opacity:1;transform:translateY(-3px) scale(1.04)}100%{opacity:1;transform:none}}

/* ---- the coach panel: HCFeel.coach(host, opts) ----
   A card: Femi and his speech bubble (the tip), then the Quick read, the progress line and an empty slot for the clue button.
   It styles the card only; where it sits (a side column on wide screens, below the play on phones) is up to the page (play.css). */
.hcf-coach{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px;background:var(--card,#262019);border:1px solid var(--line,#3A312B);border-radius:16px;color:var(--ink,#FBF7F1);
  font-family:var(--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);font-size:16px;line-height:1.5}
.hcf-coach [hidden]{display:none!important}
.hcf-coach-top{display:flex;align-items:flex-start;gap:14px}
.hcf-coach-img{display:block;flex:none;width:64px;height:102px;object-fit:cover;object-position:50% 20%;border-radius:12px;background:var(--stage-2,#141110)}
.hcf-coach-talk{flex:1 1 auto;min-width:0}
.hcf-coach-name,.hcf-coach-tip,.hcf-coach-label,.hcf-coach-text,.hcf-coach-progress{margin:0}
.hcf-coach-name{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#B4A79C)}
.hcf-coach-tip{position:relative;margin-top:8px;padding:10px 12px;background:var(--stage-2,#141110);border:1px solid var(--gold,#D4A94E);border-radius:12px;font-size:15px;line-height:1.4;color:var(--ink,#FBF7F1);overflow-wrap:anywhere}
.hcf-coach-tip::before{content:"";position:absolute;left:-7px;top:16px;width:11px;height:11px;background:var(--stage-2,#141110);border-left:1px solid var(--gold,#D4A94E);border-bottom:1px solid var(--gold,#D4A94E);transform:rotate(45deg)}
.hcf-coach-quick{padding-top:12px;border-top:1px solid var(--line,#3A312B)}
.hcf-coach-label{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold,#D4A94E)}
.hcf-coach-text{margin-top:4px;font-size:15px;line-height:1.4;color:var(--ink-2,#DED5CB);overflow-wrap:anywhere}
.hcf-coach-progress{font-size:14px;line-height:1.4;color:var(--muted,#B4A79C);overflow-wrap:anywhere}
.hcf-coach-clue:empty{display:none}

/* ---- the clue control: HCFeel.clueControl(slot, source) fills .hcf-coach-clue with this button, then the clue text under it ---- */
.hcf-clue{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;box-sizing:border-box;padding:10px 14px;border:1px dashed var(--gold,#D4A94E);background:transparent;color:var(--gold,#D4A94E);border-radius:12px;
  font:700 14px/1.25 var(--body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);text-align:center;text-wrap:balance;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hcf-clue:hover{background:rgba(212,169,78,.1)}
.hcf-clue:focus-visible{outline:2px solid var(--brand-hot,#E8722B);outline-offset:2px}
.hcf-clue:disabled{border-style:solid;opacity:.7;background:transparent;cursor:default}
.hcf-clue-text{margin:10px 0 0;padding:10px 12px;background:var(--stage-2,#141110);border-left:3px solid var(--gold,#D4A94E);border-radius:8px;font-size:15px;line-height:1.4;color:var(--ink,#FBF7F1);overflow-wrap:anywhere}
.hcf-clue-text:focus{outline:none}
