/* 火穴嗨置 · 比赛计时器 —— 设计尺寸 1920×1080，由 app.js 整体缩放铺满屏幕。
   兼容老电视 WebView：不用 CSS Grid、CSS 变量、backdrop-filter。 */

@font-face { font-family: "HXNum"; src: url("../fonts/roboto-500.woff2") format("woff2"); font-weight: 500; }
@font-face { font-family: "HXNum"; src: url("../fonts/roboto-700.woff2") format("woff2"); font-weight: 700; }
@font-face { font-family: "HXNum"; src: url("../fonts/roboto-900.woff2") format("woff2"); font-weight: 900; }

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0d0616; }
body { -webkit-user-select: none; user-select: none; cursor: default; -webkit-tap-highlight-color: transparent; }

#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  -webkit-transform-origin: 0 0; transform-origin: 0 0;
  color: #fff;
  font-family: "HXNum", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
}

.bg {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  background-color: #2a0d3d;
  background-image: url("../assets/bg.jpg"), linear-gradient(135deg, #140a20 0%, #3a0f45 55%, #c2187f 100%);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

/* ---------- 左上徽章 ---------- */
.badge {
  position: absolute; left: 44px; top: 26px; width: 300px; height: 300px;
  box-sizing: border-box; border-radius: 50%;
  border: 5px solid #ff86d3;
  background: rgba(30, 10, 42, 0.62);
  box-shadow: 0 0 26px rgba(255, 90, 200, 0.75), inset 0 0 30px rgba(255, 90, 200, 0.28);
  text-align: center;
}
.badge-top { position: absolute; left: 0; right: 0; top: 70px; font-size: 88px; line-height: 100px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.badge-bottom { position: absolute; left: 0; right: 0; top: 184px; font-size: 31px; line-height: 40px; font-weight: 500; color: #ff8fd8; white-space: nowrap; }

/* ---------- 右上吉祥物 ---------- */
.logo {
  position: absolute; right: 38px; top: 22px; width: 310px; height: 310px;
  box-sizing: border-box; border-radius: 50%; overflow: hidden;
  border: 6px solid #ff5fc0; background: #1a0a24;
  box-shadow: 0 0 28px rgba(255, 80, 190, 0.8);
}
.logo img { display: block; width: 100%; height: 100%; }

/* ---------- 标题区 ---------- */
.head { position: absolute; left: 400px; right: 400px; top: 40px; text-align: center; }
.title { font-size: 54px; line-height: 70px; font-weight: 700; white-space: nowrap; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.subtitle { margin-top: 4px; font-size: 25px; line-height: 34px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.pill {
  display: inline-block; margin-top: 22px; height: 62px; line-height: 58px; padding: 0 46px;
  box-sizing: border-box; border-radius: 31px;
  border: 2px solid #f264c4; background: rgba(196, 44, 150, 0.4);
  box-shadow: 0 0 16px rgba(240, 80, 180, 0.35);
  font-size: 31px; font-weight: 500; white-space: nowrap;
}

/* ---------- 倒计时 ---------- */
.clock {
  position: absolute; left: 0; right: 0; top: 262px; text-align: center;
  font-size: 280px; line-height: 280px; font-weight: 700; letter-spacing: -2px; white-space: nowrap;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.note { position: absolute; left: 400px; right: 400px; top: 530px; text-align: center; font-size: 28px; line-height: 40px; color: #ffd0ee; white-space: nowrap; }

.warn .clock { color: #ff8bd6; text-shadow: 0 0 44px rgba(255, 80, 190, 0.6); }
.st-paused .clock { -webkit-animation: hxblink 1.8s ease-in-out infinite; animation: hxblink 1.8s ease-in-out infinite; }
.st-ended .clock { color: rgba(255, 255, 255, 0.55); }
@-webkit-keyframes hxblink { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.35; } }
@keyframes hxblink { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.35; } }

/* ---------- 信息条 ---------- */
.infobar {
  position: absolute; left: 160px; top: 604px; width: 1600px; height: 122px;
  box-sizing: border-box; border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 8, 34, 0.5);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.cell { -webkit-flex: 1; flex: 1; height: 100%; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.cell .label { width: 38%; text-align: center; font-size: 29px; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.cell .value { width: 57%; text-align: center; font-size: 52px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.divider { width: 2px; height: 78px; background: rgba(255, 255, 255, 0.18); }
.onbreak .cell:first-child .value { color: #7fe3ff; }

/* ---------- 筹码卡片 ---------- */
.chips { position: absolute; left: 80px; top: 758px; width: 1760px; height: 172px; }
.chip {
  position: absolute; top: 0; width: 428px; height: 172px;
  box-sizing: border-box; border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 8, 34, 0.5);
  -webkit-transition: opacity 0.4s; transition: opacity 0.4s;
}
#chip10000 { left: 0; }
#chip5000 { left: 444px; }
#chip1000 { left: 888px; }
#chip100 { left: 1332px; }
.chip img { position: absolute; left: 22px; top: 23px; width: 124px; height: 124px; }
.chip .amt { position: absolute; left: 150px; right: 10px; top: 0; line-height: 168px; text-align: center; font-size: 40px; font-weight: 700; white-space: nowrap; }
.chip .amt span { font-weight: 700; }
.chip .tag { display: none; position: absolute; right: 14px; top: 12px; height: 34px; line-height: 34px; padding: 0 14px; border-radius: 17px; font-size: 21px; background: rgba(255, 255, 255, 0.2); }
.chip.off { opacity: 0.38; }
.chip.off .tag { display: block; }
.chip.now { border-color: #ff5fc0; box-shadow: 0 0 22px rgba(255, 80, 190, 0.55); }
.chip.now .tag { display: block; background: #ff4fb8; -webkit-animation: hxblink 1.2s ease-in-out infinite; animation: hxblink 1.2s ease-in-out infinite; }

/* ---------- 状态栏 ---------- */
.statusbar {
  position: absolute; left: 0; bottom: 0; width: 1920px; height: 76px;
  background: rgba(10, 4, 18, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.st-left { position: absolute; left: 128px; top: 0; height: 76px; line-height: 76px; white-space: nowrap; }
.st-left span { display: inline-block; vertical-align: middle; }
.st-state { font-size: 25px; font-weight: 700; color: #ffffff; }
.st-running .st-state { color: #3ee89a; }
.st-running.onbreak .st-state { color: #4fd8ff; }
.st-paused .st-state { color: #ffb020; }
.st-ended .st-state { color: #ff7ccf; }
.st-sep { width: 2px; height: 34px; margin: 0 32px; background: rgba(255, 255, 255, 0.4); }
.st-brand { font-size: 27px; font-weight: 700; }
.st-legal { margin-left: 46px; font-size: 19px; color: rgba(255, 255, 255, 0.45); }
.st-right { position: absolute; right: 52px; top: 0; height: 76px; line-height: 76px; font-size: 23px; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.st-right span { margin-left: 34px; }
.st-right span:empty { display: none; }
#wallClock { font-weight: 700; color: #fff; }

/* ---------- 叫时圆环 ---------- */
.shot { display: none; position: absolute; left: 84px; top: 360px; width: 220px; height: 220px; text-align: center; }
.shot.on { display: block; }
.shot svg { position: absolute; left: 0; top: 0; }
.shot-track { fill: rgba(20, 6, 30, 0.7); stroke: rgba(255, 255, 255, 0.15); stroke-width: 12; }
.shot-ring { fill: none; stroke: #ff5fc0; stroke-width: 12; stroke-linecap: round; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); -webkit-transform-origin: 110px 110px; transform-origin: 110px 110px; -webkit-transition: stroke-dashoffset 0.25s linear; transition: stroke-dashoffset 0.25s linear; }
.shot.urgent .shot-ring { stroke: #ff3b5c; }
.shot-num { position: absolute; left: 0; right: 0; top: 46px; font-size: 92px; line-height: 100px; font-weight: 700; }
.shot-label { position: absolute; left: 0; right: 0; top: 146px; font-size: 26px; color: #ffb3e3; }
.shot.urgent .shot-num { color: #ff6d86; }

/* ---------- 提示气泡 ---------- */
.toast {
  position: absolute; left: 960px; top: 938px; height: 58px; line-height: 54px; padding: 0 36px;
  box-sizing: border-box; border-radius: 29px; white-space: nowrap;
  border: 2px solid rgba(255, 95, 192, 0.75); background: rgba(20, 6, 30, 0.92);
  box-shadow: 0 0 24px rgba(255, 80, 190, 0.45);
  font-size: 28px; opacity: 0; z-index: 95;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  -webkit-transition: opacity 0.2s; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

/* ---------- 设置菜单（右侧抽屉） ---------- */
.drawer {
  position: absolute; top: 0; right: 0; width: 760px; height: 1080px; z-index: 60;
  background: #0f0519; border-left: 2px solid rgba(255, 95, 192, 0.55);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  -webkit-transform: translateX(800px); transform: translateX(800px);
  -webkit-transition: -webkit-transform 0.22s ease; transition: transform 0.22s ease;
}
.drawer.open { -webkit-transform: translateX(0); transform: translateX(0); }
.drawer-head { height: 110px; line-height: 110px; padding: 0 44px; font-size: 40px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.drawer-head span { margin-left: 18px; font-size: 22px; font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.drawer-list { position: absolute; left: 0; right: 0; top: 111px; bottom: 86px; overflow: hidden; }
.drawer-scroll { position: absolute; left: 0; right: 0; top: 0; -webkit-transition: -webkit-transform 0.15s; transition: transform 0.15s; }
.mi { height: 74px; padding: 0 36px 0 38px; border-left: 6px solid transparent; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 30px; }
.mi .k { -webkit-flex: 1; flex: 1; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; }
.mi .v { max-width: 400px; color: #ffb3e3; font-weight: 500; white-space: nowrap; overflow: hidden; }
.mi .v i { font-style: normal; font-size: 24px; color: rgba(255, 255, 255, 0.3); margin: 0 12px; }
.mi.sel { background: linear-gradient(90deg, rgba(255, 95, 192, 0.38), rgba(255, 95, 192, 0.06)); border-left-color: #ff5fc0; }
.mi.sel .v i { color: #ffffff; }
.mi.danger .k { color: #ff9c9c; }
.drawer-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; line-height: 86px; text-align: center; font-size: 24px; color: rgba(255, 255, 255, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- 全屏面板（盲注表 / 说明） ---------- */
.sheet { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 70; background: #0c0414; }
.sheet.open { display: block; }
.sheet-head { height: 130px; line-height: 130px; padding: 0 90px; font-size: 46px; font-weight: 700; white-space: nowrap; }
.sheet-head em { margin-left: 26px; font-style: normal; font-size: 26px; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.sheet-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; line-height: 100px; text-align: center; font-size: 26px; color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.08); }

.tbl-row { height: 62px; padding: 0 90px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 30px; white-space: nowrap; }
.tbl-th { height: 50px; font-size: 24px; color: rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tbl-body { position: absolute; left: 0; right: 0; top: 181px; bottom: 100px; overflow: hidden; }
.tbl-scroll { position: absolute; left: 0; right: 0; top: 0; }
.c-no { width: 230px; }
.c-n { width: 250px; text-align: right; padding-right: 40px; box-sizing: border-box; }
.c-min { width: 190px; text-align: right; padding-right: 30px; box-sizing: border-box; }
.c-note { -webkit-flex: 1; flex: 1; padding-left: 50px; font-size: 26px; color: rgba(255, 255, 255, 0.55); }
.tbl-row span { display: inline-block; padding: 0 12px; border-radius: 10px; }
.tbl-row.brk { color: #7fe3ff; }
.tbl-row.cur { color: #ff9fdc; font-weight: 700; }
.tbl-row.sel { background: rgba(255, 95, 192, 0.2); box-shadow: inset 6px 0 0 #ff5fc0; }
.tbl-row span.edit { background: #ff4fb8; color: #fff; }
.tbl-row span.edit:after { content: " ▲▼"; font-size: 18px; }

.popup { display: none; position: absolute; left: 660px; top: 300px; width: 600px; z-index: 75; padding: 16px 0; border-radius: 22px; background: rgba(28, 10, 42, 0.98); border: 2px solid rgba(255, 95, 192, 0.7); box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6); }
.popup.open { display: block; }
.popup div { height: 72px; line-height: 72px; padding: 0 40px; font-size: 30px; }
.popup div.sel { background: rgba(255, 95, 192, 0.35); }
.popup div.title { height: 60px; line-height: 60px; font-size: 24px; color: rgba(255, 255, 255, 0.5); }

.help-grid { position: absolute; left: 90px; right: 90px; top: 150px; display: -webkit-flex; display: flex; }
.help-col { -webkit-flex: 1; flex: 1; padding-right: 60px; }
.help-col h3 { margin: 0 0 18px; font-size: 32px; color: #ff9fdc; }
.help-col p { margin: 0 0 18px; font-size: 30px; line-height: 44px; color: rgba(255, 255, 255, 0.88); }
.help-col b { display: inline-block; min-width: 170px; margin-right: 18px; color: #fff; }
.help-col .web-only { margin-top: 34px; }
.tv .web-only { display: none; }

/* ---------- 确认框 ---------- */
.dialog { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 90; background: rgba(0, 0, 0, 0.55); }
.dialog.open { display: block; }
.dialog-box { position: absolute; left: 470px; top: 330px; width: 980px; padding: 56px 60px 48px; box-sizing: border-box; border-radius: 28px; background: rgba(28, 10, 42, 0.98); border: 2px solid rgba(255, 95, 192, 0.75); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6); text-align: center; }
.dialog-msg { font-size: 36px; line-height: 54px; }
.dialog-btns { margin-top: 44px; }
.dialog-btns span { display: inline-block; width: 260px; height: 76px; line-height: 72px; margin: 0 24px; box-sizing: border-box; border-radius: 38px; border: 2px solid rgba(255, 255, 255, 0.25); font-size: 32px; }
.dialog-btns span.sel { background: #ff4fb8; border-color: #ff4fb8; }

/* ---------- 出错提示（?debug=1 或启动失败时显示） ---------- */
#hxerr { position: fixed; left: 0; top: 0; right: 0; z-index: 9999; padding: 12px 18px; background: #b00020; color: #fff; font: 20px/1.5 monospace; white-space: pre-wrap; }
