.fh-hero { padding: 132px 0 40px; }
.fh-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.fh-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fh-early { display: inline-block; margin-top: 22px; padding: 6px 12px; color: #361c0d; background: linear-gradient(90deg, #ffd23f, #ff8a1f); box-shadow: 0 0 22px rgba(255, 210, 63, .45); letter-spacing: .2em; }
.fh-title { font-size: clamp(64px, 10vw, 170px); margin: 14px 0 0; line-height: .82; }
.fh-live { display: grid; gap: 10px; min-width: 260px; padding: 16px 18px; border: 1px solid rgba(255, 184, 92, .3); background: rgba(42, 22, 10, .55); }
.fh-live__row { display: flex; align-items: baseline; gap: 10px; }
.fh-live__row b { font-size: 46px; color: #fff7ea; line-height: .9; }
.fh-live__row .label { color: var(--ink-2); }
.fh-dot { width: 10px; height: 10px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 12px #3dff8a; align-self: center; animation: fhblink 1.6s ease-in-out infinite; }
@keyframes fhblink { 50% { opacity: .35; } }
.fh-surge { display: grid; gap: 6px; }
.fh-surge__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fh-surge__bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, #ffb85c, #ffcb4f); transition: width .6s var(--ease); }
.fh-surge__bar.is-hot i { box-shadow: 0 0 16px rgba(255, 203, 79, .8); }
.fh-surge .label { color: var(--pink); }
.fh-early-note { margin: 18px 0 0; max-width: 760px; color: var(--ink-2); font-size: 14.5px; }
.fh-early-note a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.fh-play { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 26px; }
.fh-frame { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(255, 184, 92, .35); background: #281509; box-shadow: 0 0 60px rgba(255, 184, 92, .25); }
.fh-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #281509; }
.fh-frame iframe { position: absolute; top: 0; left: 0; display: block; width: var(--fw, 100%); height: var(--fh, 100%); border: 0; background: #281509; transform: scale(var(--fs, 1)); transform-origin: 0 0; }
.fh-frame:fullscreen .fh-screen, .fh-frame:-webkit-full-screen .fh-screen { flex: 1; aspect-ratio: auto; }
.fh-frame:fullscreen iframe, .fh-frame:-webkit-full-screen iframe { width: 100%; height: 100%; transform: none; }
.fh-frame__bar { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid rgba(255, 184, 92, .25); }
.fh-frame__bar a, .fh-frame__bar button { color: var(--ink-2); }
.fh-frame__bar a:hover, .fh-frame__bar button:hover { color: #ffffff; }
.fh-frame:fullscreen .fh-frame__bar { display: none; }
.fh-chat { display: flex; flex-direction: column; min-height: 0; max-height: calc((100vw - 2 * var(--gutter) - 354px) * 9 / 16 + 37px); border: 1px solid rgba(255, 184, 92, .3); background: rgba(34, 17, 8, .75); }
.fh-chat__head { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 184, 92, .2); }
.fh-chat__head .label { color: var(--pink); }
.fh-chat__head b { font-size: 26px; color: #fff7ea; }
.fh-chat__list { flex: 1; min-height: 220px; overflow-y: auto; padding: 8px 12px; display: grid; align-content: start; gap: 6px; font-size: 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 197, 107, .45) transparent; }
.fh-chat__list::-webkit-scrollbar { width: 6px; }
.fh-chat__list::-webkit-scrollbar-track { background: transparent; }
.fh-chat__list::-webkit-scrollbar-thumb { background: rgba(255, 197, 107, .45); border-radius: 3px; }
.fh-chat__list::-webkit-scrollbar-button { display: none; }
.fh-msg { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; word-break: break-word; }
.fh-msg b { color: var(--pink); font-weight: 700; }
.fh-msg span { color: var(--ink); }
.fh-msg time { color: var(--ink-3); font-size: 11px; }
.fh-msg--feed { padding: 6px 8px; border-radius: 6px; background: rgba(255, 184, 92, .12); }
.fh-msg--feed span { color: #ffeed0; }
.fh-msg__icon { color: #ffd23f; }
.fh-chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255, 184, 92, .2); }
.fh-chat__form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .35); color: #ffffff; font: inherit; }
.fh-chat__form input:disabled { opacity: .5; }
.fh-chat__form .jam-cta { padding: 11px 14px; }
.fh-chat__form .jam-cta:disabled { opacity: .5; }
.fh-chat__note { margin: 0; padding: 0 12px 12px; color: var(--ink-3); font-size: 12px; }
.fh-mobile-play { display: none; margin-top: 14px; justify-content: center; }
.fh-empty { color: var(--ink-3); padding: 18px 0; }
.fh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fh-tabs button { padding: 9px 14px; border: 1px solid rgba(255, 184, 92, .3); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.fh-tabs button.is-on { color: #ffffff; background: linear-gradient(90deg, #ffaa3d, #ffb54d 55%, var(--pink)); border-color: transparent; }
.fh-tabs--sm button { padding: 6px 10px; font-size: 12px; }
.fh-rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(255, 184, 92, .22); }
.fh-rows li { display: grid; grid-template-columns: 56px 1fr auto 120px 48px; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(255, 184, 92, .14); }
.fh-rank { font-size: 30px; color: var(--ink-3); }
.fh-name { font-weight: 700; font-size: 16px; }
.fh-logs, .fh-when { color: var(--ink-3); }
.fh-score { font-size: 30px; text-align: right; color: #fff7ea; }
.fh-rows li.is-top .fh-rank { color: var(--pink); text-shadow: 0 0 16px rgba(255, 203, 79, .5); }
.fh-rows li.is-1 .fh-rank { color: #ffd23f; text-shadow: 0 0 18px rgba(255, 210, 63, .6); }
.fh-rows li.is-me { background: rgba(255, 184, 92, .14); }
.fh-how { margin-top: 6px; }
.fh-how a, .jam-grid a { color: var(--pink); }
.fh-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
.fh-mode { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(255, 184, 92, .22); }
.fh-mode b { color: #fff7ea; }
.fh-mode span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 980px) {
  .fh-play { grid-template-columns: 1fr; }
  .fh-chat { max-height: 420px; }
}
@media (max-width: 700px) {
  .fh-hero { padding-top: 110px; }
  .fh-frame { display: none; }
  .fh-mobile-play { display: flex; }
  .fh-play { margin-top: 14px; }
  .fh-rows li { grid-template-columns: 40px 1fr auto; }
  .fh-logs, .fh-when { display: none; }
  .fh-score { font-size: 24px; }
  .jam-grid { grid-template-columns: 1fr 1fr; }
  .jam-grid > div + div { border-left: 0; }
}
.fh-live { border-radius: 18px; border-color: var(--jline); background: var(--jbg-2); }
.fh-frame { border-radius: 20px; overflow: hidden; border-color: var(--jline); }
.fh-frame__bar { background: rgba(18, 10, 4, .95); }
.fh-frame__bar button, .fh-frame__bar a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--jline); }
.fh-frame__bar button:hover, .fh-frame__bar a:hover { border-color: var(--j2); background: rgba(255, 197, 107, .08); }
.fh-chat { border-radius: 20px; overflow: hidden; border-color: var(--jline); background: var(--jbg-2); }
.fh-chat__head { padding: 14px 16px; border-bottom-color: var(--jline); }
.fh-msg { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.fh-msg--feed { background: linear-gradient(90deg, rgba(255, 197, 107, .16), rgba(255, 172, 61, .06)); box-shadow: 0 0 0 1px var(--jline) inset; }
.fh-chat__form { border-top-color: var(--jline); }
.fh-chat__form input { border-radius: 999px; padding: 11px 16px; border-color: var(--jline-2); }
.fh-chat__form input:focus { outline: none; border-color: var(--j2); box-shadow: 0 0 0 3px rgba(255, 197, 107, .2); }
.fh-chat__form .jam-cta { border-radius: 999px; color: var(--jdark); background: linear-gradient(180deg, var(--j1), var(--j2) 60%, var(--j3)); box-shadow: 0 0 20px rgba(255, 197, 107, .35); }
#board .lb-chips { max-width: 820px; }
#board .lb-board { margin-top: 6px; }
.fh-mode { border-radius: 14px; border-color: var(--jline); background: var(--jbg); }
.jam-page .jam-grid { border-radius: 18px; overflow: hidden; border-color: var(--jline); background: rgba(18, 10, 4, .5); }
.fh-mobile-play { border-radius: 999px; color: var(--jdark); background: linear-gradient(180deg, var(--j1), var(--j2) 60%, var(--j3)); }
