/* ============================================================
   风花国际 · 28 类房间照同行样式（1.0.41：在 1.0.40 颜色基础上加历史开奖表 / 号码条的字号和布局）
   同行用的是同一套问鼎模板的原始配色；本站被 zaka-skin.v7.css 覆盖成了别的颜色。
   这里把 28 模板房间的颜色按模板原始值（assets/wendingHallStyles 里的值）恢复，叠加在 zaka-skin.v7.css 之上。
   只作用于 28 模板房间，别的模板不受影响。删掉 index.html 里引用本文件的那一行即可回到原样。
   ============================================================ */

/* 顶栏：模板原值 */
html body .game28RoomHeader,
html body .game28RoomHeader.game28FullHeader{
  background:linear-gradient(180deg,#55c8ff,#3aabef) !important;box-shadow:none !important;color:#fff !important;
}

/* 期号 / 倒计时 / 余额 */
html body .game28FullInfo,html body .game28LotteryStatus{background:#fff !important;box-shadow:none !important}
html body .game28IssueBlock span,html body .game28BalanceLabel,html body .game28BalanceBlock span{color:#000 !important}
html body .game28IssueBlock b{color:#68a6f7 !important}
html body .game28IssueBlock strong:not(.zaka-seal-cd){
  background:#545974 !important;color:#fff !important;border-radius:1.0667cqw !important;
}
html body .game28IssueBlock strong:not(.zaka-seal-cd) *{color:#fff !important}
html body .game28BalanceBlock{border-left-color:#cdd1df !important}
html body .game28BalanceBlock strong{color:#e4593e !important}

/* 上期开奖号码条 */
html body .game28FullDivider{background:#fff !important;border-top:0 !important;border-bottom:1px solid #edf0f7 !important}
html body .game28OpenNumberBar{background:#fff !important;border-bottom:0 !important;box-shadow:none !important}
html body .game28OpenNumberBar > span{color:#1c263d !important}
html body .game28OpenNumberBar > span b{color:#68a6f7 !important}
html body .game28OpenBalls em{
  background:linear-gradient(180deg,#1fc4ff,#08a6f0) !important;border:none !important;border-radius:50% !important;color:#fff !important;
  box-shadow:inset 0 .2cqw .4cqw rgba(255,255,255,.6) !important;
}
html body .game28OpenBalls b{
  background:linear-gradient(180deg,#ff7a8d,#e95873) !important;color:#fff !important;border-radius:50% !important;
  box-shadow:inset 0 .2cqw .4cqw rgba(255,255,255,.56) !important;
}
html body .game28OpenBalls i{color:#1c263d !important}
html body .game28OpenNumberBar > strong{color:#1c263d !important}
html body .game28ResultCaret{border-bottom-color:#8b93aa !important}

/* 聊天区 */
html body .game28RoomPage{background:#ebecf5 !important}
html body .game28RoomPage .game28FullBody,html body .game28RoomPage .wendingChatFeed{background:#ebecf5 !important}
html body .game28RoomPage .wendingChatBubble{
  background:#fff !important;color:#333 !important;border-radius:2.2cqw !important;
  box-shadow:0 .4cqw 1.2cqw rgba(75,106,184,.1) !important;overflow:visible !important;position:relative;
}
html body .game28RoomPage .wendingChatMsg:not(.self) .wendingChatBubble:not(:has(.zkbm-card))::before{
  content:"";position:absolute;left:-6px;top:12px;width:0;height:0;
  border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:7px solid #fff;
}
html body .game28RoomPage .wendingChatMsg.self .wendingChatBubble{background:linear-gradient(135deg,#8e30e8,#b15cf0) !important;color:#fff !important}
html body .game28RoomPage .wendingChatMsg.system .wendingChatBubble{background:#fff !important;color:#333 !important}
html body .game28RoomPage .wendingChatBubble:has(.zkbm-card){background:transparent !important;padding:0 !important;box-shadow:none !important}
html body .game28RoomPage .wendingChatMeta{color:#8a93ab !important}
html body .game28RoomPage .wendingChatMeta time{color:#aab1c6 !important}
html body .game28RoomPage .wendingChatAvatar{box-shadow:0 .9cqw 2.4cqw rgba(88,69,168,.22) !important}

/* 官方机器人：不显示昵称（昵称就是「在线」），只留「官方机器人」标签 */
html body .wendingChatMeta b:has(+ .zaka-official-tag){display:none !important}

/* 输入栏 + 发送按钮 */
html body .game28FullInput{background:#ebecf5 !important;border-top:0 !important}
html body .game28ChatCommandBox{background:#fff !important;border:none !important;box-shadow:none !important}
html body .game28InputPill input::placeholder{color:#b8bdc8 !important}
html body .game28FullInput > button[aria-label="发送"]{background:#b1effe !important;color:#fff !important;border:none !important;box-shadow:none !important}
html body .game28FullInput > button[aria-label="发送"]:disabled{background:#b1effe !important}
html body .game28FullInput .game28SendIconBtn{background:#1d9bf0 !important;color:#fff !important}

/* 底部模式导航 */
html body .game28FullModeNav{background:#fff !important;border-top:1px solid #eef1f7 !important;box-shadow:none !important}
html body .game28FullModeNav .game28MoreMode,html body .game28FullModeNav .game28ModeActive{color:#58c9ef !important}

/* ---------- 1.0.41 顶部上期号码条：号码之间加「+」，结果文字常规粗细 ---------- */
html body .game28OpenBalls{gap:1cqw !important}
html body .game28OpenBalls i{color:#1c263d !important;font-size:2.4cqw !important;font-weight:400 !important}
html body .game28OpenBalls em,html body .game28OpenBalls b{font-weight:400 !important;font-size:2.9cqw !important}
html body .game28OpenNumberBar > span{font-size:3.4cqw !important}
html body .game28OpenNumberBar > strong{font-size:2.9cqw !important;font-weight:400 !important}

/* ---------- 1.0.41 历史开奖下拉表：期号 | 开奖时间 | 开奖结果 ---------- */
html body .fh41Hist{max-height:min(calc(9cqw + var(--wending-history-visible-rows, 6) * 9.2cqw + 11cqw), calc(var(--app-vh, 100vh) - 46cqw)) !important}
html body .fh41Hist.fh41All{max-height:calc(var(--app-vh, 100vh) - 46cqw) !important}
html body .fh41Hist.fh41All .fh41More{display:none !important}
html body .fh41Hist .wendingHistoryTableHead,
html body .fh41Hist .wendingHistoryTableRow{grid-template-columns:22cqw 24cqw 1fr !important;padding-left:2cqw !important;padding-right:2cqw !important}
html body .fh41Hist .wendingHistoryTableHead{background:#ebecf5 !important;border-bottom:0 !important;padding-top:3cqw !important;padding-bottom:3cqw !important}
html body .fh41Hist .wendingHistoryTableHead span,
html body .fh41Hist .wendingHistoryTableHead span:first-child{color:#333 !important;font-size:2.75cqw !important;font-weight:400 !important;text-align:center !important}
html body .fh41Hist .wendingHistoryTableBody{padding:1.6cqw 0 !important}
html body .fh41Hist .wendingHistoryTableRow,
html body .fh41Hist .wendingHistoryTableRow:nth-child(even){min-height:9.2cqw !important;background:#fff !important;border-bottom:0 !important}
html body .fh41Hist .wendingHistoryTableRow .period{color:#68a6f7 !important;font-size:2.85cqw !important;font-weight:400 !important;text-align:center !important}
html body .fh41Hist .wendingHistoryTableRow .time{color:#333;font-size:2.7cqw;text-align:center;white-space:nowrap}
html body .fh41Hist .wendingHistoryTableRow .result{justify-content:flex-start !important;gap:1.1cqw !important}
html body .fh41Hist .wendingHistoryTableRow .result em,
html body .fh41Hist .wendingHistoryTableRow .result b{
  width:5.8cqw !important;height:5.8cqw !important;border-radius:50% !important;color:#fff !important;
  font-size:3cqw !important;font-weight:400 !important;box-shadow:none !important;
}
html body .fh41Hist .wendingHistoryTableRow .result em{background:linear-gradient(180deg,#1fc4ff,#08a6f0) !important}
html body .fh41Hist .wendingHistoryTableRow .result b{background:linear-gradient(180deg,#f2798b,#e8566e) !important}
html body .fh41Hist .wendingHistoryTableRow .result i{color:#333 !important;font-size:2.4cqw !important;font-weight:400 !important}
html body .fh41Hist .wendingHistoryTableRow .result strong{
  width:auto !important;height:auto !important;background:none !important;box-shadow:none !important;border-radius:0 !important;
  color:#1c263d !important;font-size:2.9cqw !important;font-weight:400 !important;margin-left:1.4cqw !important;
}
html body .fh41Hist .fh41More{
  position:sticky;bottom:0;width:100%;height:11cqw;display:flex;align-items:center;justify-content:center;gap:2cqw;
  border:0;border-top:1px solid #eef0f5;background:#fff;color:#64a8ff;font-size:3.8cqw;font-weight:400;cursor:pointer;
}

html body .game28FullInput > button[aria-label="发送"]:enabled{background:#168ce4!important;color:#fff!important}

/* Keep room chat and the draw strip in the same typographic scale. */
.game28RoomPage .wendingChatMeta b { font-weight: 500 !important; }
.game28RoomPage .wendingChatBubble { font-weight: 400 !important; }
.game28RoomPage .game28TitleToggle,
.game28RoomPage .game28FullHeader .game28LhcHeaderTitle strong { font-weight: 600 !important; }
.game28RoomPage .game28OpenNumberBar strong,
.game28RoomPage .game28OpenNumberBar span b { font-weight: 500 !important; }

/* A lighter message hierarchy, with space between the player's bubble and avatar badge. */
html body .game28RoomPage .game28TitleToggle {
  font-size: clamp(14px, 3.8cqw, 16px) !important;
  font-weight: 500 !important;
}

html body .game28RoomPage .wendingChatMeta b {
  font-size: clamp(10px, 2.8cqw, 12px) !important;
  font-weight: 400 !important;
  line-height: 1.35;
}

html body .game28RoomPage .wendingChatMsg:not(.system) .wendingChatBubble {
  font-size: clamp(12px, 3.45cqw, 14px) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  padding: 5px 9px !important;
}

html body .game28RoomPage .wendingChatMsg.self .wendingChatContent {
  min-width: 0;
  margin-inline-end: 10px !important;
}

.fh-room-win {
  position: fixed;
  inset: 0;
  z-index: 3020;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #21142948;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fh-win-scene {
  position: relative;
  width: 128px;
  max-width: 86vw;
  max-width: min(86vw, 80dvh);
  text-align: center;
}

.fh-win-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
}

.fh-win-animation {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fh-win-caption {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 13px 12px 16px;
  color: #fff4d6;
  text-shadow: 0 1px 4px #110711cf;
}

.fh-win-amount {
  font-size: clamp(26px, 8vw, 36px);
  line-height: 1.18;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.fh-win-issue { font-size: 11px; color: #edd2cd; }

/* The transparent GIF is played uncropped. Only its printed sample amount is covered. */
.fh-win-red-envelope183 { container-type: inline-size; }
.fh-win-amount-slot183 {
  position: absolute;
  left: 50%;
  top: 46.1%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #812507;
  font-size: 10px;
  font-size: clamp(8px, 8.2cqw, 11px);
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  animation: fh-win-slot-position183 4760ms steps(1,end) both;
}
.fh-win-amount-slot183::before {
  content: '';
  position: absolute;
  width: 7cqw;
  height: 6.2cqw;
  border-radius: 1px;
  background: linear-gradient(#ffe49a, #ffd078);
  z-index: -1;
}
.fh-win-amount-slot183.fh-win-long-prize { font-size: 8.5px; font-size: clamp(7px, 6.7cqw, 9px); }
@keyframes fh-win-slot-position183 {
  0% { visibility: hidden; }
  18.48% { visibility: visible; top: 31.15%; clip-path: inset(20% 0 15%); }
  19.32% { top: 29.7%; clip-path: none; }
  20.16% { top: 28.1%; }
  21% { top: 27.4%; }
  21.85% { top: 27.9%; }
  22.69% { top: 29.3%; }
  23.53% { top: 31.5%; }
  24.37% { top: 34%; }
  25.21% { top: 36.7%; }
  26.05% { top: 39.4%; }
  26.89% { top: 42.2%; }
  27.73% { top: 44%; }
  28.57% { top: 45.6%; }
  29.41% { top: 46.1%; transform: translate(-50%, -50%); }
  90.76% { top: 46.3%; transform: translate(-50%, -50%) scale(.91); }
  91.6% { top: 46.7%; transform: translate(-50%, -50%) scale(.76); }
  92.44% { top: 46.7%; transform: translate(-50%, -50%) scale(.63); }
  93.28% { top: 47.2%; transform: translate(-50%, -50%) scale(.48); }
  94.12% { top: 47.46%; transform: translate(-50%, -50%) scale(.35); }
  94.96% { top: 47.66%; transform: translate(-50%, -50%) scale(.24); }
  95.8%, 100% { visibility: hidden; }
}

.fh-win-native186 {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1;
  text-align: center;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fh-win-envelope186 {
  position: absolute;
  z-index: 1;
  inset: 33px 5px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 7px 7px;
  border: 1px solid #ffb246;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 24% 0, #fff3a745, transparent 55%),
    linear-gradient(165deg, #fa3821 1%, #e11312 42%, #a30c15 100%);
  box-shadow: inset 0 1px 2px #fff6ab99, inset 0 -3px 4px #72051352, 0 3px 8px #3d0b1659;
  animation: fh-win-pop186 620ms both;
}

.fh-win-envelope186::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 36px;
  border-radius: 12px 12px 45% 45%;
  border-bottom: 1px solid #ff9e29a8;
  background: linear-gradient(165deg, #ffad4c5e 0%, #fa441e4f 55%, #c31411a1);
}

.fh-win-title186 {
  position: absolute;
  bottom: calc(100% - 7px);
  left: 0;
  right: 0;
  color: #ffe18a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .5px;
  white-space: nowrap;
  -webkit-text-stroke: .25px #fff6bb;
  text-shadow: 0 1px #a4490f, 0 2px #9a380b, 0 3px 3px #5b160b80;
}

.fh-win-payout186 {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 27px;
  box-sizing: border-box;
  padding: 0 2px;
  border: 1px solid #ffe9a2;
  border-radius: 6px;
  background: linear-gradient(#fff3b7 3%, #ffdb78 57%, #ffba3e);
  box-shadow: inset 0 -1px 2px #d9691370, 0 1px 3px #64081366;
  color: #631b00;
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fh-win-note186 {
  color: #fff4ca;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.fh-win-decoration186 {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fh-win-decoration186 span {
  position: absolute;
  opacity: 0;
  animation: fh-win-coin-flight186 1460ms var(--win-delay) cubic-bezier(.12,.67,.51,1) both;
}

.fh-win-coin186 {
  display: grid;
  place-items: center;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #ffcf65;
  background: linear-gradient(125deg, #fff5b4 13%, #f8bd38 54%, #f18b17);
  box-shadow: inset 0 0 0 1px #d98b2399;
}

.fh-win-coin186::after {
  content: "";
  width: 3px;
  height: 5px;
  border: 1px solid #ffed9d;
  transform: rotate(25deg);
}

.fh-win-star186 {
  width: 9px;
  height: 9px;
  background: #fff0a6;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

@keyframes fh-win-pop186 {
  0% { transform: translateY(13px) scale(.65); opacity: 0; }
  57% { transform: translateY(-3px) scale(1.035); opacity: 1; }
  78% { transform: translateY(1px) scale(.99); }
  100% { transform: none; opacity: 1; }
}

@keyframes fh-win-coin-flight186 {
  0% { opacity: 0; transform: translate(0, 22px) rotate(-95deg) scale(.3); }
  27% { opacity: 1; transform: translate(0, calc(var(--win-drift-y) * .32)) rotate(25deg) scale(1); }
  64% { opacity: .9; transform: translate(0, 4px) rotate(105deg) scale(.9); }
  100% { opacity: 0; transform: translate(var(--win-drift-x), 35px) rotate(245deg) scale(.55); }
}

@media (prefers-reduced-motion: reduce) {
  .fh-win-envelope186 { animation: none; }
  .fh-win-decoration186 { display: none; }
}

.game28RoomPage .fh-confirmed-draw {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e9edfb;
  border-radius: 10px;
  background: #fff;
  color: #26364f;
  font-size: 12px;
}
.game28RoomPage .fh-confirmed-draw .fh-confirmed-numbers {
  color: #126aa1;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Hide the transport text until the shared draw renderer builds the card. */
.game28RoomPage .fh-fast-draw182 { background: transparent; border: 0; box-shadow: none; padding: 0; }
.game28RoomPage .fh-fast-draw182 > .wendingSystemRawNotice { display: none; }

/* Align the room gradient with the part painted behind the Android status bar. */
html.jd-bars50 body .game28RoomHeader[data-jd-bar-art],
html.jd-bars50 body .game28RoomHeader.game28FullHeader[data-jd-bar-art] {
  background-size: 100% calc(100% + var(--jd-art-extend, 0px)) !important;
  background-position: center bottom !important;
}
