/* Habanero lesson. Everything scoped under .hbn-*. */
.hbn-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hbn-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 320px; }
.hbn-hero img { width: 300px; max-width: 100%; max-height: 30vh; object-fit: contain; display: block; filter: drop-shadow(0 16px 28px rgba(123,92,253,.3)); }

/* the head */
.hbn-headbox { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.hbn-head { width: 100%; max-height: 220px; display: block; }
.hbn-face { fill: #2a2f45; stroke: #49506e; stroke-width: 2; }
.hbn-cav { fill: none; stroke: #0f1322; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.hbn-tongue { fill: #d8657f; }
.hbn-patch { fill: #FCC050; opacity: .55; transition: opacity .3s; }
.hbn-nerve { fill: none; stroke: #ff8a8a; stroke-width: 3; stroke-dasharray: 5 5; opacity: .6; }
.hbn-brain { fill: #3a3553; stroke: #6c5fa6; stroke-width: 2; }
.hbn-bite path { fill: #FF8A2A; opacity: 0; }
.hbn-head.bit .hbn-bite path { animation: hbnBite 1.8s ease-out 1 forwards; }
@keyframes hbnBite { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: .2; } }
.hbn-dots circle { fill: #FFB347; }
.hbn-sparks circle { fill: #ff5a5a; }
.hbn-pinch rect { fill: #e7b98f; stroke: #8b5e3c; stroke-width: 2; opacity: 0; transition: opacity .3s; }
.hbn-head.pinched .hbn-pinch rect { opacity: 1; }
.hbn-head.pinched .hbn-patch { opacity: .15; }
.hbn-lb { font: 700 17px var(--sans); fill: var(--dim); }
.hbn-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gauge.hbn-on .gt i { background: #FFB347; }

/* the map */
.hbn-plane { width: 100%; max-width: 300px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr auto; gap: 4px; }
.hbn-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 12.5px; font-weight: 800; color: #FFB347; letter-spacing: .04em; text-transform: uppercase; }
.hbn-y::after { content: ' \2192'; }
.hbn-x { grid-row: 2; grid-column: 2; text-align: center; font-size: 12.5px; font-weight: 800; color: #ff8a8a; letter-spacing: .04em; text-transform: uppercase; }
.hbn-x::after { content: ' \2192'; }
.hbn-grid { grid-row: 1; grid-column: 2; position: relative; aspect-ratio: 1; max-height: 250px; border-radius: 14px; overflow: hidden; background: linear-gradient(to top, rgba(255,179,71,0) 0%, rgba(255,179,71,.14) 100%), linear-gradient(to right, rgba(255,90,90,0) 0%, rgba(255,90,90,.16) 100%), var(--surface); border: 1px solid var(--line); }
.hbn-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hbn-z { border: 1px dashed rgba(234,227,215,.12); transition: background .3s; min-height: 44px; }
.hbn-plane.asking .hbn-z:hover { background: rgba(169,155,255,.12); }
.hbn-z.right { background: rgba(63,214,154,.2); }
.hbn-z.wrong { background: rgba(216,85,85,.22); }
.hbn-dots2 { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hbn-pt { position: absolute; display: flex; align-items: center; gap: 5px; transform: translate(-9px, -9px) scale(.3); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .3s; white-space: nowrap; }
.hbn-pt.in { transform: translate(-9px, -9px) scale(1); opacity: 1; }
.hbn-pt.left { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -9px) scale(.3); }
.hbn-pt.left.in { transform: translate(calc(-100% + 9px), -9px) scale(1); }
.hbn-pt i { width: 18px; height: 18px; border-radius: 50%; background: #FF8A2A; border: 2px solid #3a1a05; flex: none; }
.hbn-pt.bell i { background: #6fcf5a; border-color: #1b3a12; }
.hbn-pt.pin i { background: #ff5a5a; border-color: #3a0808; }
.hbn-pt span { font-size: 12.5px; font-weight: 800; color: var(--text); background: rgba(10,14,26,.75); padding: 2px 6px; border-radius: 6px; }

@media (max-height: 700px) {
  .hbn-hero img { max-height: 24vh; }
  .hbn-head { max-height: 175px; }
  .hbn-grid { max-height: 230px; }
  .hbn-plane { max-width: 260px; }
}
