
    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    html, body {
      overscroll-behavior: none;
      touch-action: manipulation;
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #5a341e;
      color: #2b1a0d;
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
      min-height: 100vh;
      background-image: linear-gradient(180deg, #6b3f24 0%, #4e2d18 100%);
      -webkit-text-size-adjust: 100%;
      user-select: none;
      -webkit-user-select: none;
    }

    button, input {
      font-family: inherit;
    }

    input, textarea, select {
      font-size: 16px;
    }

    .page {
      padding: 10px 10px 16px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .balance-box {
      flex: 1;
      position: relative;
      background: linear-gradient(180deg, #2e1a0f 0%, #1d0f08 100%);
      color: #f7e6b6;
      border: 2px solid #d7a552;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 16px;
      font-weight: 700;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
      overflow: hidden;
    }

    .balance-box.balance-flash-win {
      animation: balanceFlashWin 0.9s ease;
    }

    .balance-box.balance-flash-lose {
      animation: balanceFlashLose 0.9s ease;
    }

    @keyframes balanceFlashWin {
      0%   { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 rgba(255,215,0,0); }
      50%  { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 24px rgba(255,215,0,0.75); }
      100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 rgba(255,215,0,0); }
    }

    @keyframes balanceFlashLose {
      0%   { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 rgba(255,90,90,0); }
      50%  { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 18px rgba(255,90,90,0.65); }
      100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 rgba(255,90,90,0); }
    }

    .balance-coin-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: visible;
      z-index: 20;
    }

    .fly-coin{
    position:fixed;
    width:24px;
    height:24px;
    border-radius:50%;
    background:
    radial-gradient(circle,#ffffff 0%,#ffffff 25%,#d60000 25%,#d60000 40%,#ffffff 40%,#ffffff 55%,#d60000 55%,#d60000 100%);
    border:2px solid #ffffff;
    box-shadow:0 0 10px rgba(255,0,0,0.5);
    pointer-events:none;
    z-index:10050;
    will-change:transform,opacity;
}

    .top-actions {
      display: flex;
      gap: 6px;
    }

    .top-btn {
      min-width: 58px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(180deg, #f9e0a8 0%, #dba55a 100%);
      color: #4b260f;
      font-size: 14px;
      font-weight: 700;
      box-shadow: 0 2px 0 #9e6230;
      cursor: pointer;
    }

    .panel {
      background: linear-gradient(180deg, #f3dfb7 0%, #e1c188 100%);
      border: 2px solid #c7924f;
      border-radius: 14px;
      margin-bottom: 10px;
      overflow: hidden;
      box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    }

    .panel-title {
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      color: #4d2b10;
      padding: 10px 10px 2px;
    }

    .game-main-panel {
      padding: 10px;
      background: transparent;
      border: none;
      box-shadow: none;
      overflow: visible;
      
    }
    .game-main{
    display:grid !important;
    grid-template-columns:60% 40% !important;
    width:100% !important;
    gap:12px !important;
    align-items:stretch !important;
}
.game-history-left{
    min-width:0 !important;
    width:100% !important;
}

.game-left{
    min-width:0 !important;
    width:100% !important;
    display:flex;
    display:flex;
    justify-content:center;
}
.top-info-bar{
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:center !important;

    width:100%;
    margin-bottom:8px;
    padding:8px 12px;

    font-size:24px;
    font-weight:900;
    color:#ffffff;
}

.top-issue{
    font-size:28px;
    font-weight:900;
}
    font-size:20px;
    margin-bottom:6px;
}

.top-time{
    font-size:28px;
    font-weight:900;
}
    font-size:18px;
}
.top-time{
    font-size:28px;
    font-weight:900;
}
  display: grid;
  grid-template-columns:140px 1fr;
  gap: 8px;
  align-items: stretch;
}
.game-history-left {
    flex: 1;
  height: 230px;
  background: linear-gradient(180deg, #2a160c 0%, #1d1009 100%);
  border: 4px solid #d4a15a;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px;
}

/* ===== 左侧点数 九宫格 ===== */
.game-history-left {
  height: 420px !important;
  width: 100% !important;
  padding: 8px !important;
   background-color: rgb(54, 29, 17) !important;
}

.left-history-grid{
    display:block !important;
    width:100% !important;
    height:auto !important;
    overflow:hidden !important;
}

.dice-cell {
  display:block !important;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 70%;

  border-radius: 30px;              /* 原来更大 → 稍微小一点 */
  border: 2px solid #d24b3f;        /* 保留边框但变细 */

  background: #fff;                 /* 保持原来的白底 */

  font-size: 16px;                  /* 数字稍微小一点 */
  font-weight: 900;
  color: #d61f18;

  box-shadow: none;                 /* 去掉厚重感（更清爽） */
}

/* 最后一个“更多”按钮 */
.more-cell {
  background: linear-gradient(180deg, #ffe7a9 0%, #e2b86b 100%);
  color: #5a3512;
  font-size: 14px;
  cursor: pointer;
}



.left-history-table th:last-child,
.left-history-table td:last-child {
  border-right: none;
}

.left-history-table th {
  height: 38px;
  background: rgba(255,255,255,0.72);
  font-size: 13px;
}

.left-history-table td {
  height: 54px;
  font-size: 14px;
}

.left-history-table th:nth-child(1),
.left-history-table td:nth-child(1) {
  width: 48%;
}

.left-history-table th:nth-child(2),
.left-history-table td:nth-child(2) {
  width: 20%;
}

.left-history-table th:nth-child(3),
.left-history-table td:nth-child(3) {
  width: 16%;
}

.left-history-table th:nth-child(4),
.left-history-table td:nth-child(4) {
  width: 16%;
}

.left-history-table .dice-result {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 30px !important;   /* 原来42 → 缩小 */
  height: 30px !important;

  border-radius: 50% !important; /* 👉 改成圆球 */
  border: 2px solid #d24b3f !important; /* 原来3px → 细一点 */

  color: #d61f18 !important;
  background: #fff !important;

  font-size: 16px !important;  /* 字体稍微小一点 */
  font-weight: 900 !important;

  line-height: 30px !important;
  padding: 0 !important;
}
.more-record-btn {
  display: block;
}
    .game-left {
  position: relative;
  flex: 1;
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  background-color: rgb(54, 29, 17);
  border: 4px solid #d4a15a;
  border-radius: 16px;
  color: #fff5dc;
  box-shadow: inset 0 0 20px rgba(255, 190, 120, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

    .game-right {
      background: linear-gradient(180deg, #2a160c 0%, #1d1009 100%);
      border: 4px solid #d4a15a;
      border-radius: 16px;
      padding: 10px 8px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      color: #fff2c6;
      overflow: hidden;
      min-width: 0;
    }

    .dice-tip {
      position: absolute;
      top: 14px;
      left: 12px;
      right: 12px;
      text-align: center;
      font-size: 14px;
      font-weight: 700;
      color: #fff1ce;
      z-index: 6;
    }
  .dice-stage {
  position: relative;
  width: 170px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

    .dice-box {
    width: 260px;
    height: 300px;
      position: relative;
      transition: transform 0.2s ease, opacity 0.2s ease;
      border-radius: 16px;
      opacity: 1;
      will-change: transform, opacity;
      transform: translateZ(0);
      backface-visibility: hidden;
      z-index: 2;
      overflow: hidden;
      background: transparent;
    }

    .dice-media{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    object-fit:contain;
    border-radius:16px;
    background:transparent;
    pointer-events:none;
}

    #diceStaticImg {
      z-index: 1;
      opacity: 1;
      display: block;
    }

    .dice-video {
      z-index: 2;
      opacity: 0;
      transition: opacity 0.08s linear;
      display: block;
    }

    .dice-video.show {
      opacity: 1;
    }

    .dice-box.opened {
      animation: diceOpened 0.45s ease;
    }
    @keyframes diceOpened {
      0%   { transform: scale(0.7); opacity: 0.4; }
      60%  { transform: scale(1.12); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    .dice-cover-wrap {
      display: none;
      position: absolute;
      width: 122px;
      height: 122px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: 4;
    }

    .dice-cover {
      width: 122px;
      height: 122px;
      background: url("/user/img/dice-hand-cover.png") no-repeat center/contain;
      transition: transform 0.45s ease, opacity 0.45s ease;
      will-change: transform, opacity;
      position: relative;
    }
    .dice-cover.open {
    transform: translateY(-90px) scale(0.85) !important;
    opacity: 0 !important;
}

    .dice-cover.open {
      transform: translateY(-52px) scale(0.92);
      opacity: 0;
      pointer-events: none;
    }

    /*.settle-toast {*/
    /*  position: absolute;*/
    /*  right: 10px;*/
    /*  top: 44px;*/
    /*  min-width: 156px;*/
    /*  max-width: 172px;*/
    /*  padding: 12px 14px;*/
    /*  border-radius: 14px;*/
    /*  background: linear-gradient(180deg, #d93c2f 0%, #9f130b 100%);*/
    /*  color: #ffe8a3;*/
    /*  font-size: 16px;*/
    /*  font-weight: 800;*/
    /*  text-align: center;*/
    /*  line-height: 1.45;*/
    /*  box-shadow: 0 10px 25px rgba(0,0,0,0.28);*/
    /*  opacity: 0;*/
    /*  transform: translateY(-10px) scale(0.92);*/
    /*  pointer-events: none;*/
    /*  z-index: 8;*/
    /*}*/

    /*.settle-toast.show {*/
    /*  animation: toastInOut 2.2s ease forwards;*/
    /*}*/

    .settle-toast.lose {
      background: linear-gradient(180deg, #575757 0%, #252525 100%);
      color: #ffe4e4;
    }

    @keyframes toastInOut {
      0% { opacity: 0; transform: translateY(-10px) scale(0.92); }
      12% { opacity: 1; transform: translateY(0) scale(1); }
      84% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-8px) scale(0.95); }
    }

    .coin-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 7;
    }

    .side-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2px;
      padding: 8px 2px;
      border-bottom: 1px solid rgba(255,232,180,0.12);
      text-align: center;
      min-width: 0;
    }

    .side-row:last-child {
      border-bottom: none;
    }

    .side-label {
      font-size: 13px;
      color: #f1dfb1;
      font-weight: 700;
    }

    .side-value {
      font-size: 22px;
      line-height: 1.2;
      font-weight: 800;
      color: #fff;
      min-width: 0;
      word-break: break-all;
      overflow-wrap: break-word;
    }

    .side-value.red {
      color: #ff453a;
      text-shadow: 0 0 8px rgba(255,69,58,0.2);
    }

    .side-inline {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .side-issue-value {
      font-size: 16px !important;
      letter-spacing: 0;
      word-break: break-all;
    }

    .choice-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 10px;
      padding-top: 4px;
    }

    .choice-card {
      background: rgba(255,255,255,0.45);
      border: 1px solid #d7ba8a;
      border-radius: 12px;
      padding: 10px;
      transition: all 0.15s ease;
    }

    .choice-card.active-group {
      border: 2px solid #ff8a00;
      box-shadow: 0 0 0 3px rgba(255,138,0,0.12);
      background: rgba(255, 246, 228, 0.88);
    }

    .choice-head {
      text-align: center;
      margin-bottom: 10px;
    }

    .choice-head span {
      display: inline-block;
      min-width: 90px;
      padding: 8px 14px;
      border-radius: 999px;
      background: linear-gradient(180deg, #ffb64a 0%, #f06c1b 100%);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      box-shadow: 0 2px 0 #b64d10;
    }

    .bet-btn-row {
      display: flex;
      gap: 8px;
      justify-content: center;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }

    .bet-btn {
      min-width: 72px;
      border: none;
      border-radius: 12px;
      padding: 10px 0;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(180deg, #ff6d58 0%, #d91d17 100%);
      box-shadow: 0 2px 0 #99130f;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .bet-desc {
      text-align: center;
      font-size: 14px;
      color: #5a3418;
      font-weight: 700;
    }

    .section-block {
      padding: 0 10px 10px;
    }

    .sub-title {
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      color: #4d2b10;
      margin: 2px 0 10px;
    }

    .pos-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
    }
    .pos-btn {
        .pos-btn {
    height: 60px !important;
    border: 1px solid #c9b089;
    background: linear-gradient(180deg, #ffffff 0%, #ece7df 100%);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #4b2d13;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 18px !important;
    white-space: normal !important;
    overflow: visible !important;
    padding: 4px 0 !important;
}

    .pos-btn.active,
    .bet-btn.active,
    .quick-money.active {
      outline: none;
      transform: translateY(-1px) scale(1.03);
    }

    .bet-btn.active {
      background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%) !important;
      color: #fff !important;
      border: 2px solid #facc15 !important;
      box-shadow:
        0 0 0 2px rgba(250,204,21,0.45),
        0 0 18px rgba(124,58,237,0.45),
        0 6px 16px rgba(76,29,149,0.38);
    }

    .pos-btn.active {
    background: linear-gradient(180deg, #06b6d4 0%, #0f766e 100%) !important;
    color: #fff !important;
    border: 2px solid #fef08a !important;
    box-shadow:
        0 0 2px rgba(254,240,138,0.38),
        0 0 16px rgba(6,182,212,0.35),
        0 5px 14px rgba(15,118,110,0.35);
}
button.pos-btn.odd-even-btn.active,
button.pos-btn.big-small-btn.active {
    background: linear-gradient(180deg,#06b6d4 0%,#0f766e 100%) !important;
    color: #fff !important;
    border: 2px solid #fef08a !important;
    box-shadow: 0 0 16px rgba(6,182,212,.45) !important;
}
    .quick-money.active {
      background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
      color: #fff !important;
      border: 2px solid #fff3c4 !important;
      box-shadow:
        0 0 0 2px rgba(255,243,196,0.34),
        0 0 16px rgba(245,158,11,0.35),
        0 5px 14px rgba(180,83,9,0.32);
    }

    .money-row {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 10px;
    }

    .money-label {
      flex: 0 0 auto;
      font-size: 16px;
      font-weight: 700;
      color: #4b2c12;
    }

    .money-input {
      flex: 1;
      height: 42px;
      border: 1px solid #c9b089;
      border-radius: 8px;
      padding: 0 12px;
      font-size: 16px;
      background: #fff;
    }

    .fast-btn {
      flex: 0 0 70px;
      height: 42px;
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      background: linear-gradient(180deg, #73d84d 0%, #2ea92b 100%);
      box-shadow: 0 2px 0 #1b6f1f;
      cursor: pointer;
    }

    .quick-money-row {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .quick-money{
    min-width:48px;
    height:26px;
    border:none;
    border-radius:14px;
    background:linear-gradient(180deg,#fff7eb 0%,#f1dcc1 100%);
    color:#a84318;
    font-size:14px;
    font-weight:700;
    box-shadow:inset 0 0 0 1px #d8bc92;
    cursor:pointer;
    transition:all .15s ease;
    padding:0 12px;
    }

    .action-row {
      display: flex;
      gap: 10px;
    }

    .submit-btn,
    .reset-btn {
      flex: 1;
      height: 46px;
      border: none;
      border-radius: 12px;
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
    }

    .submit-btn {
      background: linear-gradient(180deg, #ff6a5f 0%, #c91c15 100%);
      box-shadow: 0 2px 0 #8f1410;
    }

    .reset-btn {
      background: linear-gradient(180deg, #7adf54 0%, #31ab2f 100%);
      box-shadow: 0 2px 0 #1f7521;
    }

    .history-panel {
      padding-bottom: 10px;
    }

    .history-head {
      background: linear-gradient(180deg, #b96d2f 0%, #99602b 100%);
      color: #fff6df;
      font-size: 16px;
      font-weight: 700;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .history-record-btn {
      padding: 6px 14px;
      font-size: 14px;
      flex: 0 0 auto;
    }

    .history-table-wrap {
      padding: 10px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: rgba(255,255,255,0.4);
      border-radius: 10px;
      overflow: hidden;
    }

    th, td {
      border: 1px solid #d6bb8d;
      padding: 10px 6px;
      text-align: center;
      font-size: 15px;
      color: #4c2a10;
      font-weight: 700;
    }

    th {
      background: rgba(255,255,255,0.55);
    }

    .dice-result {
      color: #d61f18;
      border: 2px solid #d84a33;
      border-radius: 4px;
      padding: 0 6px;
      display: inline-block;
      background: #fff7f5;
    }

    .more-btn {
      display: inline-block;
      border: none;
      border-radius: 999px;
      padding: 8px 16px;
      background: linear-gradient(180deg, #ffe7a9 0%, #e2b86b 100%);
      color: #5a3512;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 2px 0 #ab7740;
    }

    .footer-gap {
      height: 10px;
    }

    .notice-mask{
    position:fixed !important;
    z-index:99999 !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    background:rgba(0,0,0,0.75) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:18px !important;
}

.notice-box {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, #fff7df 0%, #ead19b 100%);
  border: 3px solid #d7a552;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0,0,0,0.38);
}

.notice-title {
  font-size: 20px;
  font-weight: 900;
  color: #4b260f;
  margin-bottom: 12px;
}

.notice-content {
  font-size: 15px;
  color: #3b2111;
  margin-bottom: 18px;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.6;
  text-align: left;
  word-break: break-word;
  background: rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: 12px;
}

.notice-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb64a 0%, #d65b12 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #92370b;
}
.logo-fixed {
    width:170px !important;
    height:43px !important;
    overflow:hidden !important;
    pointer-events:none;
}
.logo-fixed img {
    width:170px !important;
    height:43px !important;
    max-width:170px !important;
    max-height:43px !important;
    object-fit:contain !important;
    display:block !important;
}

.lang-fixed {
  position: static;
}

.top-logo-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lang-select{
    height:42px;
    min-width:140px;
    border:2px solid #b8842d;
    background:linear-gradient(#f7df7d,#d9b55a);
    color:#4b260f;
    border-radius:10px;
    font-size:16px;
    font-weight:900;
    padding:0 12px;
    outline:none;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
    cursor:pointer;
}

.top-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}

.top-info-row .balance-box,
.online-box {
  height: 40px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.online-box {
  position: relative;
  background: linear-gradient(180deg, #2e1a0f 0%, #1d0f08 100%);
  color: #f7e6b6;
  border: 2px solid #d7a552;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.room-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.room-menu-grid .top-btn {
  width: 100%;
  min-width: 0;
  height: 300pxpx;
  font-size: 12px;
  padding: 0 2px;
}

.game-history-left {
    position: relative !important;
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  background: #f3e7cf;
  border: 2px solid #d0ad78;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.left-history-table {
  width: 100%;
  border-collapse: collapse;
  background: #f3e7cf;
}

.left-history-table th,
.left-history-table td {
  border: 1px solid #d0ad78;
  text-align: center;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 800;
  color: #3b2111;
}

.left-history-table th {
  background: #fffaf1;
  font-size: 14px;
}

.left-history-table .dice-result {
  color: #d23a2e;
  border: 2px solid #d24b3f;
  border-radius: 6px;
  padding: 1px 7px;
  background: #fffaf1;
  display: inline-block;
  font-weight: 900;
}

.more-record-btn {
  margin: 8px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe7a9 0%, #e2b86b 100%);
  color: #5a3512;
}
.game-history-left {
  height: 230px;
  background: linear-gradient(180deg, #f4ead6 0%, #e8d7b8 100%);
  border: 4px solid #d4a15a;
  border-radius: 16px;
  overflow:auto;
  display: flex;
  flex-direction: column;
}

/* 表格整体 */
.left-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 表头 */
.left-history-table th {
  background: rgba(255,255,255,0.7);
  color: #4b2a12;
  font-size: 14px;
  font-weight: 800;
  height: 42px;
}

/* 单元格 */
.left-history-table td {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #3a1f0f;
  height: 54px;
}

/* 只保留横线（去掉竖线） */
.left-history-table th,
.left-history-table td {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* 去掉最后一行边框 */
.left-history-table tr:last-child td {
  border-bottom: none;
}

/* 点数样式（重点） */
.left-history-table .dice-result {
  display: inline-block;
  min-width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 6px;
  border: 2px solid #d24b3f;
  color: #d61f18;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

/* 列宽优化 */
.left-history-table th:nth-child(1),
.left-history-table td:nth-child(1) {
  width: 20%;
}

.left-history-table th:nth-child(2),
.left-history-table td:nth-child(2) {
  width: 20%;
}

.left-history-table th:nth-child(3),
.left-history-table td:nth-child(3),
.left-history-table th:nth-child(4),
.left-history-table td:nth-child(4) {
  width: 17.5%;
}

  .tabbar {
          position: fixed;
          left: 50%;
          transform: translateX(-50%);
          bottom: 0;
          width: 100%;
          max-width: 480px;
          height: 60px;
          background: #ffffff;
          border-top: 1px solid #e5e7eb;
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          z-index: 100;
        }

        .tab-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          font-size: 12px;
          color: #64748b;
          cursor: pointer;
        }

        .tab-item.active {
          color: #2563eb;
          font-weight: 700;
        }

        .tab-icon {
          font-size: 20px;
          margin-bottom: 2px;
        }


/* ===== 页面加载遮罩：防闪图 ===== */
#loadingPage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #2b1a0d;
  color: #fff3c4;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-size: 18px;
  font-weight: 900;
}

/* ===== 左侧开奖记录最终版：只显示点数 ===== */
.game-history-left {
  height: 230px !important;
  background: rgb(54, 29, 17) !important;
  background-color: rgb(54, 29, 17) !important;
  border: 4px solid #d4a15a !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px !important;
}
.left-history-table {
  width: 100% !important;
  height: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  background: rgba(255,255,255,0.22) !important;
}
.left-history-table th,
.left-history-table td {
  width: 100% !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.15) !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: #32190b !important;
}
.left-history-table th {
  height: 42px !important;
  background: rgba(255,255,255,0.72) !important;
  font-size: 16px !important;
}
.left-history-table td {
  height: 58px !important;
}
.left-history-table .dice-result {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  border-radius: 10px !important;
  border: 3px solid #d24b3f !important;
  color: #d61f18 !important;
  background: #fff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  padding: 0 !important;
}
.more-record-btn {
  display: block !important;
}
/* 让“更多”单独撑满一格并更明显 */
.more-cell {
  grid-column: span 1;   /* 占一个格子（保持九宫格结构） */
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 800;

  background: linear-gradient(180deg, #ffe7a9 0%, #e2b86b 100%);
  color: #5a3512;

  border: 2px solid #d4a15a;
  border-radius: 10px;

  cursor: pointer;
}

/* 👉 如果你想“更多”更宽（占2格），用这个 */
.more-cell.wide {
    grid-column: auto !important;
    width: 110px !important;
    height: 24px !important;
    margin-left: auto !important;
    margin-right: 10px !important;
    margin-top: 4px !important;
}
.dice-cell.latest {
    border: 3px solid #ffcc00 !important;
    box-shadow:
        0 0 12px #ffcc00,
        0 0 20px #ff9900,
        0 0 30px rgba(255, 153, 0, 0.8);
    background: linear-gradient(135deg, #fff8c6, #ffe066);
}
.game-history-left,
.game-left,
.game-right {
  height: 230px !important;
}
.history-table-wrap,
.history-panel table{
  display:none !important;
}

.home-record-list{
  padding:10px;
}

.home-record-item{
  background:#eadbb8;
  border:1px solid #d2ba84;
  border-radius:14px;
  padding:10px;
  margin-bottom:10px;
}

.home-record-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:8px;
  border-bottom:1px solid #d2ba84;
}

.home-record-issue{
  font-size:16px;
  font-weight:800;
  color:#4f2f0a;
  word-break:break-all;
}

.home-record-point{
  min-width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #ef4444;
  border-radius:8px;
  color:#ef4444;
  background:#fff7f3;
  font-size:20px;
  font-weight:800;
}

.home-record-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}

.home-record-box{
  background:rgba(255,255,255,.35);
  border:1px solid #d2ba84;
  border-radius:10px;
  padding:7px 5px;
  text-align:center;
}

.home-record-label{
  font-size:12px;
  color:#8a5b1f;
  font-weight:700;
  margin-bottom:3px;
}

.home-record-value{
  font-size:16px;
  color:#4f2f0a;
  font-weight:800;
}

.home-record-btn{
  width:100%;
  height:38px;
  margin-top:8px;
  border:none;
  border-radius:19px;
  background:linear-gradient(180deg,#f6da93,#ddb35c);
  color:#6c3c08;
  font-size:15px;
  font-weight:800;
}

.home-record-empty{
  padding:16px;
  text-align:center;
  color:#fff7df;
  font-weight:700;
}
.global-anim-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: visible;
  z-index: 999999;
}

.global-settle-toast {
  position: absolute;
  min-width: 260px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #d93c2f 0%, #9f130b 100%);
  color: #ffe8a3;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) scale(.85);
  opacity: 0;
  will-change: transform, opacity;
  animation: globalToastAnim 5.2s ease forwards;
  z-index:999999;
}

.global-settle-toast.lose {
  background: linear-gradient(180deg, #575757 0%, #252525 100%);
  color: #ffe4e4;
}

@keyframes globalToastAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(.85);
  }
  12% {
    transform: translate(-50%, -50%) scale(1.05);
}
  25% {
    transform: translate(-50%, -50%) scale(1);
  }
  82% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -75%) scale(.95);
  }
}
.cs{
  position:fixed;
  right:16px;
  bottom:120px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:999;
  font-size:12px;
  touch-action:none;
}
.cs span{
  font-size:20px;
}

.pool-box {
  grid-column: 1 / 3;
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: 2px solid #d7a552;
  border-radius: 12px;
  background: linear-gradient(180deg, #2e1a0f 0%, #1d0f08 100%);
  color: #f7e6b6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  white-space: nowrap;
}

#poolAmount {
  color: #ff3b3b;
  margin-left: 8px;
  font-size: 20px;
  font-weight: 900;
}
.game-main {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
    align-items: stretch !important;}
.game-history-left,
.game-left {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
/* 0615 强制左侧开奖记录单列显示 */
.game-history-left #leftHistoryList {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
}

.game-history-left #leftHistoryList > div {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
}
/* 0615 更多记录固定在左侧底部 */
.game-history-left {
    position: relative !important;
    padding-bottom:8px !important;
    overflow: hidden !important;
}
.game-left .dice-stage{
    width:170px !important;
    height:220px !important;
}
.game-left .dice-box{
    width:240px !important;
    height:160px !important;
    overflow:visible !important;
}

.game-left .dice-media{
    width:100% !important;
    height:100% !important;
    top:-10px !important;
    left:0 !important;
    object-fit:contain !important;
}/* 0615 fix More position */
.game-history-left{
    position:relative !important;
    height:180px !important;
    min-height:180px !important;
    max-height:180px !important;
}

.game-history-left #leftHistoryList .more-cell,
.game-history-left #leftHistoryList .more-cell.wide{
    position:absolute !important;
    right:12px !important;
    bottom:12px !important;
    width:58px !important;
    height:18px !important;
    line-height:18px !important;
    margin:0 !important;
    border-radius:11px !important;
    font-size:14px !important;
    padding:0 !important;
}
}
.bet-popup-mask{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bet-popup-box{
    width:300px;
    background:#f7e6b5;
    border:2px solid #b77a18;
    border-radius:14px;
    padding:18px;
    text-align:center;
}

.bet-popup-title{
    font-size:20px;
    font-weight:bold;
    color:#3b2108;
    margin-bottom:12px;
}

.bet-popup-input{
    width:100%;
    height:42px;
    font-size:18px;
    border-radius:8px;
    border:1px solid #c9a45d;
    padding:0 10px;
    box-sizing:border-box;
    margin-bottom:14px;
}

.bet-popup-actions{
    display:flex;
    gap:12px;
}

.bet-popup-cancel,
.bet-popup-confirm{
    flex:1;
    height:42px;
    border:0;
    border-radius:10px;
    font-size:17px;
    font-weight:bold;
    color:#fff;
}

.bet-popup-cancel{
    background:#777;
}

.bet-popup-confirm{
    background:#e33126;
.place-bet-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:10px 0 12px 0;
}
.place-bet-btn{
    width:60%;
    height:52px;
    border:0;
    border-radius:14px;
    font-size:22px;
    font-weight:bold;
    color:#fff;
    background:linear-gradient(#ff5a4f,#d71919);
    box-shadow:0 4px 0 #8b0f0f;
}
