/* evhub1 */
.eh-bar { position: fixed; left: 8px; bottom: 8px; z-index: 40; display: flex; gap: 6px; }
.eh-btn { font: 600 14px/1 system-ui, sans-serif; padding: 9px 12px; border-radius: 999px; border: 2px solid #c99a3c; background: #2b1b0d; color: #f1c96a; box-shadow: 0 3px 10px rgba(0,0,0,.45); cursor: pointer; }
.eh-wrap { position: fixed; inset: 0; z-index: 99996; background: rgba(10,6,2,.6); display: flex; align-items: center; justify-content: center; padding: 14px; }
.eh-card { position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; background: linear-gradient(#3b2614, #24160b); border: 2px solid #c99a3c; border-radius: 16px; padding: 14px 16px 16px; color: #f3e6c8; font: 15px/1.4 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.eh-card h3 { margin: 26px 0 8px; color: #f1c96a; font-size: 19px; }
.eh-card h4 { margin: 12px 0 4px; color: #f1c96a; font-size: 15px; }
.eh-x { position: absolute; left: 10px; top: 8px; border: 1px solid #c99a3c; background: #2b1b0d; color: #f1c96a; border-radius: 999px; padding: 3px 10px; font: 600 13px system-ui; cursor: pointer; }
.eh-why { margin: 0 0 8px; font-weight: 600; }
.eh-tab { width: 100%; border-collapse: collapse; }
.eh-tab th, .eh-tab td { text-align: left; padding: 5px 6px; border-bottom: 1px solid rgba(201,154,60,.3); vertical-align: top; }
.eh-tab th { color: #f1c96a; white-space: nowrap; width: 1%; }
.eh-small { font-size: 13px; color: #d9c79e; margin: 6px 0; }
.eh-flag { background: rgba(255,170,60,.12); border: 1px dashed #e0a040; border-radius: 8px; padding: 8px; color: #ffd38a; }
.eh-boosts { display: grid; gap: 8px; }
.eh-boost { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #2b1b0d; color: #f3e6c8; border: 1px solid #c99a3c; border-radius: 10px; padding: 8px; font: 14px/1.35 system-ui; cursor: pointer; }
.eh-bi { font-size: 26px; min-width: 32px; text-align: center; }
.eh-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.eh-dots { color: #f1c96a; letter-spacing: 3px; }
.eh-how { margin: 0; padding-left: 20px; } .eh-how li { margin: 4px 0; }
.eh-two { display: grid; gap: 12px; } @media (min-width: 640px) { .eh-two { grid-template-columns: 1fr 1fr; } }
.eh-board { margin: 0; padding-left: 26px; } .eh-board li { padding: 4px 0; border-bottom: 1px solid rgba(201,154,60,.2); }
.eh-board li span { display: inline-block; min-width: 45%; } .eh-board li b { margin-right: 8px; color: #f1c96a; } .eh-board li small { color: #d9c79e; }
.eh-board li.me { background: rgba(241,201,106,.15); font-weight: 700; }
.eh-tip { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 99998; background: #fff4d6; color: #3a2410; border: 2px solid #c99a3c; border-radius: 12px; padding: 10px 14px; max-width: 320px; font: 14px/1.35 system-ui; }

/* mbar1: small header buttons on phones; a side leaderboard on wide screens */
body:has(#ehSide) .eh-bar { left: 50%; bottom: auto; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top)); z-index: 45; gap: 4px; }
body:has(#ehSide) .eh-bar .eh-btn { font-size: 11.5px; padding: 6px 8px; white-space: nowrap; }
.eh-side { display: none; }
@media (min-width: 900px) {
  body:has(#ehSide) .eh-bar { display: none; }
  .eh-side { display: block; position: fixed; top: 76px; left: calc(50% + 290px); width: min(340px, calc(50vw - 310px)); max-height: calc(100vh - 100px); overflow: auto; z-index: 30; }
  .eh-side .eh-card { position: static; width: auto; max-width: none; max-height: none; margin: 0; }
  .eh-side .eh-two { display: block; }
  .eh-side .eh-card h3 { margin-top: 0; }
  .eh-side h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .eh-mini { font-size: 12px !important; padding: 5px 9px !important; }
}

/* ovn3: prize details behind a tap */
.eh-more { margin-top: 6px; } .eh-more > summary { cursor: pointer; font-weight: 700; color: #e8c050; padding: 6px 0; list-style: none; } .eh-more > summary::after { content: " ▾"; } .eh-more[open] > summary::after { content: " ▴"; }
/* crrw1: live standing + top runs on the rewards panel */
.eh-stand { margin: 2px 0 8px; padding: 8px 10px; border: 1px solid rgba(201,154,60,.5); border-radius: 10px; background: rgba(0,0,0,.25); text-align: center; }
.eh-stand b { color: #f1c96a; }
.eh-top { margin: 4px 0 6px; padding-left: 0; list-style: none; }
.eh-top li { display: flex; gap: 8px; padding: 3px 4px; border-bottom: 1px solid rgba(201,154,60,.2); }
.eh-top li span { color: #f1c96a; width: 28px; } .eh-top li em { margin-left: auto; font-style: normal; color: #f1c96a; }
