/* ===== 开奖记录 页面(三款游戏共用 .hp-*) ===== */
.history-page { position: fixed; inset: 0; background: #f5f5f5; z-index: 1050; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; box-shadow: 0 0 24px rgba(0,0,0,.15); }
.history-page[hidden] { display: none; }
.hp-topbar { display: flex; align-items: center; padding: 12px 14px; background: #ee5a3f; color: #fff; }
.hp-back, .hp-home { background: transparent; border: none; padding: 4px; cursor: pointer; display: flex; }
.hp-back svg, .hp-home svg { width: 22px; height: 22px; }
.hp-title { flex: 1; text-align: center; margin: 0; font-size: 16px; font-weight: 600; }
.hp-tabs { display: flex; align-items: center; background: #fff; padding: 10px 14px; gap: 8px; border-bottom: 1px solid #eee; position: relative; }
.hp-tab { flex: 1; padding: 7px 0; border: none; border-radius: 6px; background: transparent; color: #333; font-size: 15px; cursor: pointer; transition: background .15s, color .15s; }
.hp-tab.active { background: #ee5a3f; color: #fff; font-weight: 600; }
.hp-dropdown { position: absolute; right: 14px; color: #bbb; font-size: 18px; pointer-events: none; }
.hp-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 20px; }
.hp-item { background: #fff; margin: 8px 10px; border-radius: 6px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hp-period { font-size: 15px; font-weight: 600; color: #333; }
.hp-time { font-size: 13px; color: #b5b5b5; }
.hp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-num-ball {
    width: 30px; height: 30px; border-radius: 50%;
    color: #222; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; flex: 0 0 auto;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 40%, transparent 41%),
        radial-gradient(circle at 32% 32%, #adcdff, #3a82ff 65%, #1a4bb8);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.2),
        inset -3px -3px 6px rgba(0,0,0,0.22),
        inset 2px 2px 5px rgba(255,255,255,0.28);
}
.hp-num-ball::before {
    content: ""; position: absolute;
    top: 3px; left: 7px;
    width: 9px; height: 5px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hp-bs, .hp-oe { min-width: 36px; padding: 4px 10px; border-radius: 4px; font-size: 14px; color: #fff; text-align: center; }
.hp-bs.big,   .hp-oe.even { background: #d8a33c; }
.hp-bs.small, .hp-oe.odd  { background: #6b4226; }
.hp-sum { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 13px; color: #888; }
.hp-sum-ball { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.hp-sum-ball.w-red   { background: radial-gradient(circle at 30% 30%, #ffb27a, #e97a33 80%); }
.hp-sum-ball.w-green { background: radial-gradient(circle at 30% 30%, #aee2a3, #2f9e4d 80%); }
.hp-sum-ball.w-blue  { background: radial-gradient(circle at 30% 30%, #9fb6ff, #3b4ec8 80%); }
.hp-sum-ball.w-gray  { background: radial-gradient(circle at 30% 30%, #ccc, #888 80%); }
.hp-tag-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.hp-empty { text-align: center; color: #aaa; padding: 60px 0; font-size: 14px; }
