/* TrailBlazers — warm paper, ink, and a little friendly competition. */
* { box-sizing: border-box; }
html { background: #f4ebdd; color: #26332d; font-family: Arial, Helvetica, sans-serif; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 1px solid #26332d; border-radius: 9px; padding: 14px 20px; font-weight: 700; }
button:disabled { cursor: default; opacity: .42; }
button:focus, a:focus, input:focus, select:focus { outline: 3px solid #287a78; outline-offset: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
a { color: inherit; text-decoration: none; }
input, select { min-width: 0; background: #fff9ef; border: 1px solid #8d9381; border-radius: 8px; color: #26332d; padding: 14px; width: 100%; }
label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 9px; }
input::placeholder { color: #74796b; }
.hidden { display: none !important; }
.mint { color: #b94e2b; }
.muted { color: #62695c; line-height: 1.6; }
.tiny { font-size: 12px; line-height: 1.6; }
.center { text-align: center; }
.wordmark, h1, h2 { font-family: Impact, 'Arial Narrow', 'Arial Black', Arial, sans-serif; font-weight: 900; }
.wordmark { font-style: italic; letter-spacing: -1px; }
.shell { max-width: 1800px; margin: auto; padding: 24px 3% 0; }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; border: 2px solid #26332d; border-radius: 17px; padding: 18px 24px; background: #bd512e; color: #fff4df; box-shadow: 0 4px 0 #26332d; }
.brand { display: flex; align-items: center; }
.brand .wordmark { font-size: 37px; line-height: 1; }
.brand-divider { font-size: 9px; letter-spacing: 1.4px; line-height: 1.65; margin-left: 22px; padding-left: 22px; border-left: 1px solid #e1a17d; font-weight: 700; }
.header-right { display: flex; align-items: center; }
.tag { font-size: 15px; font-style: italic; font-weight: 700; margin-right: 24px; }
.connection { color: #2c674b; font-size: 11px; line-height: 1.4; }
.topbar .connection { background: #f4ebdd; color: #26332d; padding: 7px 11px; border-radius: 20px; }
.connection.offline { color: #963d25; }
.quiet { background: #fff7e9; color: #26332d; border: 1px solid #78806f; }
.quiet:hover { background: #ebe0cc; }
.small { font-size: 11px; padding: 9px 12px; margin-left: 12px; }
.primary { background: #bf502c; border-color: #9d3d20; color: #fff6e4; box-shadow: 0 3px 0 #853a25; transition: background .15s; }
.primary:hover { background: #a64124; }
.big { min-width: 260px; font-size: 18px; margin-top: 20px; text-align: left; padding: 19px 23px; }
.big span { float: right; margin-left: 20px; }
.setup { display: flex; align-items: center; min-height: 690px; padding: 48px 12px; }
.hero-copy { width: 49%; position: relative; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.7px; color: #69715f; }
.hero-copy h1 { font-size: 100px; font-style: italic; line-height: .95; letter-spacing: -3px; margin: 26px 0; color: #26332d; }
.hero-copy h1 > span { display: block; color: #b94e2b; }
.title-dot { color: #c5a246; }
.hero-desc { font-size: 27px; line-height: 1.25; font-weight: 700; font-style: italic; letter-spacing: -.7px; }
.hero-copy .muted { font-size: 14px; }
.watch-form { max-width: 340px; margin: 28px 0 16px; }
.watch-form label { font-size: 12px; color: #62695c; font-weight: normal; }
.inline { display: flex; }
.inline input { width: 158px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-right: 8px; }
.inline button { font-size: 13px; white-space: nowrap; }
.text-link { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: #3e6254; }
.hero-art { width: 51%; padding-left: 24px; }
.hero-art canvas { width: 100%; border-radius: 16px; display: block; border: 2px solid #26332d; background: #28332e; box-shadow: 6px 7px 0 #d9ceb7; }
.art-caption, .art-bottom { color: #62695c; font-size: 10px; font-weight: bold; letter-spacing: 1.4px; display: flex; justify-content: space-between; padding: 20px 4px; }
.art-caption { justify-content: flex-start; align-items: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #bf502c; margin-right: 10px; }
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid #b7b8a3; padding: 22px 0; color: #68705f; font-size: 9px; letter-spacing: 1.5px; }
.site-footer .mint { font-size: 16px; margin-left: 8px; }
.tv.room-open .site-footer { display: none; }
.room-layout { display: flex; padding: 26px 0 16px; align-items: flex-start; }
.arena-column { flex: 1; min-width: 0; padding-right: 22px; }
.arena-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; min-height: 50px; }
.arena-heading h2 { font-size: 31px; font-style: italic; letter-spacing: -.7px; margin: 4px 0 0; }
.arena-heading .eyebrow { font-size: 9px; }
.arena-stats { font-size: 11px; color: #3b483c; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.arena-stats > span { margin-left: 15px; margin-top: 7px; }
.pill { border: 1px solid #b1b79f; padding: 8px 10px; border-radius: 20px; color: #4f6754; font-size: 9px; letter-spacing: 1px; }
.arena-frame { position: relative; width: 100%; border: 2px solid #26332d; border-radius: 13px; overflow: hidden; background: #28332e; }
.arena-frame canvas { display: block; width: 100%; height: auto; }
.arena-overlay { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 24px; background: rgba(33, 44, 37, .80); }
.arena-overlay .eyebrow { color: #dfc887; }
.arena-overlay h2 { font-size: 48px; font-style: italic; letter-spacing: -1px; margin: 18px 0; color: #fff1d7; }
.arena-overlay p { max-width: 470px; font-size: 16px; line-height: 1.6; color: #dbdecc; margin: 0; }
.arena-overlay.countdown { background: rgba(33, 44, 37, .35); }
.arena-overlay.countdown h2 { font-size: 124px; color: #f2c360; margin: 0; }
.arena-footer { display: flex; justify-content: space-between; padding: 20px 0 0; font-size: 12px; color: #4d5c4e; }
.arena-footer b { display: inline-block; font-size: 10px; color: #a54a2d; margin-right: 6px; }
.rule-note { font-size: 11px; color: #68705f; text-align: center; margin: 14px 0 0; }
.room-sidebar { width: 274px; flex-shrink: 0; display: flex; flex-direction: column; }
.score-panel { order: 0; padding: 17px 16px 12px; border: 1px solid #596453; border-radius: 12px; background: #f8efdf; margin-bottom: 15px; }
.join-panel { order: 1; border: 1px solid #596453; background: #ede2cd; border-radius: 12px; padding: 16px; text-align: center; }
.section-label { font-size: 11px; letter-spacing: 1.4px; font-weight: 700; color: #4b5949; }
.score-heading { display: flex; justify-content: space-between; padding: 0 3px 12px; }
.score-heading span:first-child { font-family: Impact, 'Arial Black', Arial, sans-serif; font-size: 22px; letter-spacing: -.2px; color: #26332d; }
.score-heading span:last-child { padding-top: 7px; font-size: 9px; }
.roster { list-style: none; padding: 0; margin: 0; }
.roster li { display: flex; align-items: center; padding: 9px 2px; border-top: 1px solid #c8c9b6; font-size: 14px; }
.rider-swatch { width: 32px; height: 32px; border: 1px solid #55604e; border-radius: 50%; margin-right: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rider-swatch img, .rider-badge img, .sample-badge img, .avatar-chip img, .knob img { display: block; width: 70%; height: 70%; pointer-events: none; }
.roster .rider-label { flex: 1; min-width: 0; overflow-wrap: break-word; font-weight: 700; }
.roster small { display: block; color: #6a725f; font-size: 8px; font-weight: 400; margin-top: 3px; }
.roster strong { margin-left: 8px; font-size: 15px; }
.roster li.out .rider-swatch { opacity: .42; }
.score-panel > p { font-size: 10px; margin: 10px 0 0; }
.qr { display: block; float: left; width: 104px; height: 104px; border-radius: 8px; margin: 12px 12px 12px 0; background: white; }
.code-label { font-size: 7px; color: #65705d; letter-spacing: 1px; padding-top: 30px; }
.room-code { font-size: 23px; font-weight: 900; letter-spacing: 2px; color: #99462b; margin: 9px 0; }
.join-url { clear: both; display: block; overflow-wrap: break-word; word-break: break-all; font-size: 10px; color: #53664f; line-height: 1.5; }
.lan-warning { font-size: 10px; line-height: 1.5; color: #914629; margin: 8px 0 0; }
.display-note { order: 2; font-size: 9px; color: #6c755f; line-height: 1.5; margin-top: 10px; }
.error { padding: 14px 18px; border: 1px solid #a95a39; background: #f9dec9; color: #803c25; border-radius: 9px; line-height: 1.5; font-size: 14px; }
/* Phone identity, avatar selection, and the real drag joystick. */
.phone { background: #f4ebdd; }
.phone-shell { max-width: 460px; padding: 22px 20px 28px; margin: auto; }
.phone-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; }
.phone-header .brand .wordmark { font-size: 26px; letter-spacing: -.8px; }
.phone-header .brand small { display: block; font-family: Arial, sans-serif; font-style: normal; font-size: 7px; letter-spacing: 1.5px; color: #65705d; margin-top: 7px; }
.phone-header .connection { max-width: 100px; text-align: right; font-size: 10px; }
.phone-card { padding: 25px 23px; background: #f9f1e3; border: 1px solid #8d9381; border-radius: 13px; }
.phone-card h1 { font-size: 49px; font-style: italic; line-height: 1; letter-spacing: -1px; margin: 22px 0; }
.phone-card .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
.phone-card > p { font-size: 13px; }
.phone-card .primary { width: 100%; margin-top: 22px; }
.phone-card .tiny { font-size: 10px; margin: 24px 0 16px; }
.phone-card .text-link { font-size: 11px; }
#room-input { text-transform: uppercase; font-weight: 900; letter-spacing: 4px; font-size: 22px; }
.rider-card { display: flex; align-items: center; padding: 14px; border: 1px solid #5b6653; border-radius: 10px; background: #f9f1e3; }
.rider-badge { width: 43px; height: 43px; border-radius: 50%; border: 1px solid #55604e; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.rider-card h1 { font-size: 23px; margin: 0 0 4px; max-width: 220px; overflow-wrap: break-word; }
.rider-card .muted { font-size: 9px; }
.wins { margin-left: auto; padding-left: 9px; text-align: center; font-size: 25px; font-weight: 900; }
.wins small { font-size: 8px; letter-spacing: 1px; display: block; margin-top: 3px; color: #65705d; }
.phone-status { text-align: center; padding: 25px 0 10px; min-height: 125px; }
.phone-status .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
.phone-status h2 { font-size: 37px; font-style: italic; letter-spacing: -.7px; margin: 10px 0; }
.phone-status p { font-size: 12px; line-height: 1.5; color: #626d5c; margin: 0; }
.avatar-fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.avatar-fieldset legend { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.avatar-grid { display: flex; flex-wrap: wrap; margin: -4px; }
.avatar-option { position: relative; width: calc(33.333% - 8px); margin: 4px; padding: 10px 3px 8px; min-height: 86px; border: 1px solid #929984; background: #fbf4e8; border-radius: 9px; display: flex; flex-direction: column; align-items: center; }
.avatar-option:hover { background: #eee2cc; }
.avatar-option.selected { border: 2px solid #ae4929; padding: 9px 2px 7px; background: #f5e3ca; }
.avatar-option.selected::after { content: '✓'; position: absolute; right: 4px; top: 4px; background: #ae4929; border-radius: 50%; color: #fff7e7; font-size: 10px; width: 17px; height: 17px; text-align: center; line-height: 17px; }
.avatar-chip { width: 44px; height: 44px; border: 1px solid #596453; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.avatar-label { text-transform: uppercase; font-size: 9px; font-weight: 700; margin-top: 7px; letter-spacing: .1px; }
.avatar-panel { margin: 20px 0; }
.picker-heading { margin-bottom: 14px; }
.picker-heading h2 { font-style: italic; font-size: 30px; margin: 0 0 5px; }
.picker-heading > span { color: #68705f; font-size: 12px; }
.avatar-panel > p { font-size: 10px; margin-bottom: 0; }
.trail-sample { display: flex; align-items: center; border-top: 1px solid #b5b9a2; margin-top: 18px; padding-top: 18px; }
.trail-sample > span { font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.sample-line { position: relative; margin: 0 16px 0 24px; height: 12px; border-radius: 6px; flex: 1; background: #eb7945; }
.sample-line::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 5px; background: #fff2db; opacity: .7; }
.sample-badge { position: absolute; right: -16px; top: -11px; width: 34px; height: 34px; border: 1px solid #55604e; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.compact { padding: 16px; margin: 18px 0 20px; }
.compact label { font-size: 12px; margin: 0 0 10px; }
.compact select { font-size: 13px; }
.compact .primary { margin-top: 12px; padding: 14px; }
.stick-section { margin-top: 16px; }
.stick-readout { display: flex; justify-content: space-between; color: #66745f; font-size: 8px; letter-spacing: 1px; }
.stick-readout strong { color: #984728; }
.joystick { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 18px auto 12px; border: 3px solid #6e8065; border-radius: 50%; background: #d7ddc9; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow: hidden; box-shadow: inset 0 0 0 6px #ecebdc; }
.stick-ring { position: absolute; top: 16%; left: 16%; width: 68%; height: 68%; border-radius: 50%; border: 1px solid #bbc7ac; background: #cdd7bd; }
.stick-cross { position: absolute; background: #a6b69b; }
.stick-cross.horizontal { height: 1px; width: 20px; left: calc(50% - 10px); top: 50%; }
.stick-cross.vertical { width: 1px; height: 20px; top: calc(50% - 10px); left: 50%; }
.stick-word { position: absolute; color: #3c513d; font-size: 10px; letter-spacing: 1px; font-weight: 700; pointer-events: none; }
.north { top: 18px; left: 0; right: 0; text-align: center; }
.south { bottom: 18px; left: 0; right: 0; text-align: center; }
.west { left: 12px; top: calc(50% - 5px); }
.east { right: 10px; top: calc(50% - 5px); }
.knob { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: #eb7945; box-shadow: 0 5px 0 #965a3f, 0 8px 15px rgba(39, 53, 36, .2); display: flex; align-items: center; justify-content: center; border: 3px solid #f9e0b5; pointer-events: none; }
.joystick.active { border-color: #a64c2e; }
.joystick.disabled { opacity: .45; }
.steer-help { text-align: center; font-size: 11px; line-height: 1.7; color: #626d5c; margin: 0 0 18px; }
.steer-help strong { font-size: 16px; color: #26332d; font-style: italic; }
.leave { display: block; margin: 18px auto 0; padding: 10px 18px; font-size: 11px; }
.phone-scoreboard { font-size: 12px; border-top: 1px solid #b5b9a2; padding-top: 12px; color: #4c5e48; }
.phone-scoreboard > div { display: flex; align-items: center; margin: 10px 0; }
.phone-scoreboard strong { margin-left: auto; }
.offline-slot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #68705f; margin-top: 12px; }
.offline-slot button { padding: 8px; font-size: 10px; margin-left: 8px; }
@media (min-width: 1700px) {
  .room-sidebar { width: 310px; }
  .roster li { font-size: 18px; padding: 10px 2px; }
  .roster small { font-size: 10px; }
  .rider-swatch { width: 36px; height: 36px; }
  .arena-heading h2 { font-size: 38px; }
  .arena-footer { font-size: 15px; }
  .arena-overlay h2 { font-size: 64px; }
  .arena-overlay p { font-size: 21px; }
  .arena-stats { font-size: 14px; }
  .pill { font-size: 11px; }
  .room-code { font-size: 30px; }
  .section-label { font-size: 12px; }
}
@media (min-width: 1000px) {
  .arena-frame { max-width: calc((100vh - 290px) * 1.636); margin: 0 auto; }
}
@media (max-width: 1150px) {
  .tag { display: none; }
  .brand .wordmark { font-size: 30px; }
  .hero-copy h1 { font-size: 78px; }
  .hero-desc { font-size: 23px; }
  .room-sidebar { width: 246px; }
  .arena-column { padding-right: 16px; }
  .arena-heading h2 { font-size: 25px; }
  .arena-stats { font-size: 9px; }
  .arena-stats > span { margin-left: 10px; }
  .pill { font-size: 8px; }
  .arena-overlay h2 { font-size: 36px; }
  .arena-overlay p { font-size: 14px; }
  .qr { width: 86px; height: 86px; margin-right: 8px; }
  .room-code { font-size: 22px; }
  .arena-footer { font-size: 10px; }
}
@media (max-height: 750px) and (min-width: 1000px) {
  .shell { padding-top: 16px; }
  .topbar { min-height: 72px; padding: 12px 20px; }
  .brand .wordmark { font-size: 32px; }
  .tag { font-size: 12px; }
  .room-layout { padding-top: 20px; }
  .room-sidebar { width: 270px; }
  .arena-heading { min-height: 40px; margin-bottom: 12px; }
  .arena-heading h2 { font-size: 25px; }
  .arena-frame { max-width: calc((100vh - 250px) * 1.636); }
  .arena-footer { padding-top: 15px; font-size: 11px; }
  .rule-note { font-size: 10px; margin-top: 10px; }
  .score-panel { padding: 11px 14px; margin-bottom: 10px; }
  .score-heading { padding-bottom: 8px; }
  .score-heading span:first-child { font-size: 19px; }
  .roster li { padding: 5px 2px; font-size: 13px; }
  .roster .rider-swatch { width: 26px; height: 26px; }
  .roster small { font-size: 8px; margin-top: 2px; }
  .score-panel > p { font-size: 9px; margin-top: 7px; }
  .join-panel { padding: 10px 14px; }
  .join-panel .section-label { font-size: 9px; }
  .qr { width: 80px; height: 80px; margin: 10px 15px 9px 0; }
  .code-label { padding-top: 22px; }
  .room-code { font-size: 25px; }
  .lan-warning { font-size: 9px; margin-top: 5px; }
  .join-url { font-size: 9px; }
  .display-note { font-size: 8px; margin-top: 7px; }
  .setup { padding: 30px 10px; min-height: 570px; }
  .hero-copy h1 { font-size: 82px; }
  .hero-art { max-width: 500px; }
  .hero-desc { font-size: 23px; }
}
@media (max-width: 760px) {
  .shell { padding: 12px 3% 0; }
  .topbar { min-height: 74px; padding: 12px; }
  .topbar .brand .wordmark { font-size: 23px; }
  .brand-divider { display: none; }
  .topbar .connection { font-size: 9px; padding: 6px 8px; }
  .small { margin-left: 7px; padding: 8px; font-size: 9px; }
  .setup { display: block; padding: 36px 8px; }
  .hero-copy, .hero-art { width: 100%; }
  .hero-copy h1 { font-size: 82px; }
  .hero-art { padding: 25px 0 0; }
  .hero-copy .eyebrow { font-size: 9px; }
  .room-layout { display: block; padding-top: 22px; }
  .arena-column { padding: 0; }
  .arena-heading h2 { font-size: 23px; }
  .arena-stats { max-width: 180px; }
  .arena-stats > span { margin-left: 8px; }
  .arena-overlay h2 { font-size: 30px; }
  .arena-overlay p { font-size: 12px; }
  .arena-overlay .eyebrow { font-size: 8px; }
  .arena-footer { font-size: 9px; }
  .arena-footer span { max-width: 31%; line-height: 1.7; }
  .room-sidebar { width: 100%; margin-top: 25px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .score-panel { width: 52%; margin-right: 3%; padding: 12px 9px; }
  .join-panel { width: 45%; padding: 14px 9px; }
  .qr { float: none; margin: 12px auto; width: 100px; height: 100px; }
  .code-label { padding-top: 0; }
  .room-code { font-size: 22px; }
  .join-panel .section-label { font-size: 8px; }
  .roster li { font-size: 12px; }
  .roster .rider-swatch { width: 25px; height: 25px; margin-right: 7px; }
  .display-note { margin: 12px 0; width: 100%; }
  .site-footer { font-size: 7px; }
}
@media (max-width: 350px) {
  .phone-shell { padding: 18px 12px; }
  .phone-card { padding: 20px 16px; }
  .phone-header .brand .wordmark { font-size: 23px; }
  .joystick { width: 260px; height: 260px; }
  .avatar-label { font-size: 8px; }
  .avatar-option { min-height: 80px; }
  .avatar-chip { width: 40px; height: 40px; }
  .rider-card h1 { font-size: 21px; max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Game-specific applications of the shared Happy Hardens identity. */

.topbar{background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:8px 0;min-height:80px}.phone-header{gap:8px}.tag{color:var(--teal)}.hero-copy h1{font-style:normal;letter-spacing:-.035em}.hero-copy h1>span,.mint{color:var(--orange)}.title-dot{color:var(--gold)}.hero-desc{color:var(--teal);font-style:normal}.phone-card,.join-panel,.score-panel{border:2px solid var(--ink);border-radius:22px;background:var(--paper)}.muted,.eyebrow,.text-link,.art-caption,.art-bottom{color:var(--muted)}
@media(max-width:760px){.topbar{flex-wrap:wrap;gap:8px}.topbar .hh-brand{margin-right:auto}.setup{flex-direction:column;min-height:0;padding:30px 0}.hero-copy,.hero-art{width:100%}.hero-art{padding-left:0;margin-top:20px}.hero-copy h1{font-size:65px}}

body.phone{background:var(--cream)}.phone-card h1,.phone-status h2,.picker-heading h2,.arena-heading h2,.arena-overlay h2{font-style:normal}.score-heading span:first-child{font-family:"Lilita One",Arial,sans-serif;font-weight:400}
