:root {
  --game-scale: 1;
  color: #323233;
  font-synthesis: none;
  background: #eff2fb;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Helvetica,
    "Segoe UI",
    Arial,
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@font-face {
  font-family: DINAlternate;
  src: url(/assets/DINAlternate-Bold.woff2) format("woff2");
  font-display: block;
}
@font-face {
  font-family: LcdD;
  src: url(/assets/LcdD.woff2) format("woff2");
  font-display: block;
}
@keyframes packet-sprite-cycle {
  0%,
  60% {
    background-position: center 0;
  }
  60.01%,
  70% {
    background-position: center -85.4px;
  }
  70.01%,
  85% {
    background-position: center -170.8px;
  }
  85.01%,
  99.99% {
    background-position: center -256.2px;
  }
  100% {
    background-position: center 0;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  background: #eff2fb;
  width: 390px;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}
body {
  transform-origin: 0 0;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
}
button:focus-visible,
input:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #4f7ee8;
}
.composer button:focus-visible,
.composer input:focus-visible {
  outline: 0;
}
#app {
  width: 390px;
  min-height: 100vh;
  min-height: 100dvh;
}
.game-shell,
.route-page,
.lobby {
  background: #f1f3ff;
  width: 390px;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}
.game-header {
  z-index: 4;
  background: #fefefe;
  border-bottom: 2px solid #f0f1fa;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  height: 50px;
  display: grid;
  position: relative;
}
.game-header h1 {
  text-align: center;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  transform: translateY(-1px);
}
.game-header button {
  text-align: center;
  height: 50px;
  font-size: 0;
  transform: translateX(2px);
}
.game-header button:before {
  content: "\ea64";
  font-family: remixicon;
  font-size: 24px;
}
.draw-panel {
  color: #fff;
  background: #5676df url(/assets/header-bg.png) 50% / cover no-repeat;
  height: 160px;
  padding: 13px 16px 8px;
  position: relative;
}
.draw-panel:before {
  content: "";
  background: rgb(238 127 120 / 5.6%);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sandbox-draw-label {
  z-index: 2;
  position: absolute;
  top: 2px;
  right: 8px;
  padding: 2px 7px;
  border: 1px solid rgb(255 225 140 / 80%);
  border-radius: 9px;
  color: #774b00;
  background: rgb(255 241 183 / 94%);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
}
.draw-top {
  grid-template-columns: 1fr 1.22fr 1.03fr;
  align-items: center;
  height: 36px;
  font-size: 12px;
  font-weight: 300;
  display: grid;
  position: relative;
  transform: translateY(-3px);
}
.draw-top > span,
.issue,
.last-draw > span,
.balance {
  opacity: 0.9;
}
.issue {
  text-align: center;
  font-family: DINAlternate, sans-serif;
  width: 108px;
  position: absolute;
  left: 150px;
  transform: translateX(-1px);
}
.issue b {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.issue small {
  margin-top: 4px;
  font-size: 10px;
  display: block;
}
.flip {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
  position: absolute;
  right: 4px;
}
.flip b {
  color: #202020;
  background: #f8f8f8;
  border-radius: 6px;
  place-items: center;
  width: 29px;
  height: 29px;
  font:
    italic 700 14px/1.1 Arial Narrow,
    sans-serif;
  display: grid;
  box-shadow:
    inset 0 0 2px #aeb6c8,
    0 1px 3px #32499f88;
}
.phase-status {
  color: #f4d26f;
  background: rgb(12 12 12 / 82%);
  border: 1px solid rgb(216 178 74 / 68%);
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 100px;
  height: 32px;
  padding: 0 12px;
  display: flex;
}
.phase-status svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
  animation: round-status-spin 0.85s linear infinite;
}
.phase-status strong {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@keyframes round-status-spin {
  to { transform: rotate(360deg); }
}
.last-draw {
  background: url(/assets/open-bg.png) 50%/100% 100% no-repeat;
  align-items: center;
  gap: 25px;
  height: 56px;
  margin: 7px 0 5px;
  padding: 6px 16px 6px 26px;
  display: flex;
}
.last-draw > span {
  text-align: center;
  width: 76px;
  font-size: 13px;
  font-family: DINAlternate, sans-serif;
  transform: translate(-1.5px, -4px);
}
.equation {
  align-items: center;
  gap: 3px;
  transform: translate(1px, -4px);
  display: flex;
}
.equation b {
  color: #fff;
  background: #242424;
  border: 2px solid #b9a978;
  border-radius: 4.16px;
  place-items: center;
  width: 36.4px;
  height: 36.4px;
  font-family: DINAlternate, sans-serif;
  font-size: 29.12px;
  line-height: 36.4px;
  display: grid;
}
.equation b:nth-of-type(1),
.equation b:nth-of-type(2) {
  transform: translate(-1px, 1px);
}
.equation b:nth-of-type(3) {
  transform: translateY(1px);
}
.equation b:nth-of-type(4) {
  transform: translate(1px, 1px);
}
.equation em {
  font-size: 19px;
  font-style: normal;
}
.wallet-row {
  grid-template-columns: 41px 122px 1fr;
  align-items: center;
  height: 39px;
  display: grid;
  transform: translateY(-1px);
}
.member {
  width: 36px;
  height: 36px;
  position: relative;
  transform: translate(-2px, -1px);
  filter: saturate(0.6);
}
.member > img:first-child {
  object-fit: cover;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.member .vip {
  object-fit: contain;
  width: 21px;
  height: 21px;
  position: absolute;
  bottom: -2px;
  right: -9px;
}
.member .vip-text{position:absolute;right:-2px;bottom:-2px;padding:1px 4px;border-radius:7px;background:#555e78;color:#ffdb45;font-size:7px;font-weight:700;line-height:1.4}
.balance {
  padding-left: 2px;
  font-size: 10px;
  font-family: DINAlternate, sans-serif;
  line-height: 1.4;
  transform: translate(1px, -1px);
}
.balance small {
  display: block;
}
.wallet-row nav {
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  display: grid;
  transform: translateY(-2px);
}
.wallet-row nav button {
  color: #333;
  background: #f4f5fbdd;
  border-radius: 4px;
  height: 26px;
  font-size: 12px;
  font-weight: 200;
}
.chat-stream {
  scroll-behavior: smooth;
  background: #f1f3ff;
  padding: 12px 16px 24px;
  position: absolute;
  inset: 210px 0 103px;
  overflow-y: auto;
}
.chat-message {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12.48px;
  margin-bottom: 15.6px;
  display: grid;
}
.chat-avatar {
  object-fit: cover;
  border-radius: 6px;
  width: 47px;
  height: 47px;
}
.chat-avatar.brand-chat-avatar {
  object-fit: cover;
  background: #0b0b0b;
  border: 1px solid #6f5620;
  padding: 0;
  filter: none;
}
.chat-body {
  min-width: 0;
}
.chat-meta {
  color: #a5a5a5;
  height: 20.8px;
  font-size: 12.48px;
  line-height: 20.8px;
  padding-left: 4px;
}
.chat-meta time {
  margin-left: 8px;
  font-size: 9px;
}
.bubble {
  color: #646974;
  word-break: break-word;
  background: #fff;
  border-radius: 6.24px;
  max-width: 242px;
  padding: 13.52px 15.6px;
  font-size: 16.64px;
  font-weight: 100;
  line-height: 20.8px;
  display: inline-block;
  position: relative;
}
.game-shell[data-room="australia28"] .bubble {
  font-weight: 400;
}
.game-shell[data-room="europe28"] .bubble {
  color: #5a606b;
  font-weight: 400;
}
.system .bubble,
.notice .bubble {
  width: 241px;
}
.bubble:before {
  content: "";
  border: 5px solid #0000;
  border-right-color: #fff;
  position: absolute;
  top: 10px;
  left: -8px;
}
.bubble b {
  color: #59616f;
  font-weight: 500;
}
.notice .bubble {
  background: #fff;
  width: 241px;
}
.packet .bubble {
  color: #fff;
  cursor: pointer;
  background: #f5c382;
  min-width: 225px;
  padding-left: 59px;
}
.packet .bubble:before {
  border-right-color: #f5c382;
}
.packet .bubble:after {
  content: "";
  background: url(/assets/red-packet.png) top/36px no-repeat;
  width: 36px;
  height: 43px;
  position: absolute;
  top: 9px;
  left: 12px;
}
.packet .bubble small {
  opacity: 0.82;
}
.is-user {
  grid-template-columns: minmax(0, 1fr) 48px;
}
.is-user .chat-avatar {
  grid-column: 2;
}
.is-user .chat-body {
  text-align: right;
  grid-area: 1/1;
}
.is-user .bubble {
  color: #27372b;
  text-align: left;
  background: #98e168;
}
.is-user .bubble:before {
  border-left-color: #98e168;
  border-right-color: #0000;
  left: auto;
  right: -8px;
}
.is-user .chat-meta {
  text-align: right;
}
.error .bubble {
  color: #d04d51;
  background: #fff5f5;
  border: 1px solid #f0c9ca;
}
.error .bubble:before {
  border-right-color: #f0c9ca;
}
.receipt .bubble {
  color: #347653;
  background: #f3fff7;
  border: 1px solid #bde3cb;
}
.receipt .bubble:before {
  border-right-color: #bde3cb;
}
.new-message {
  color: #557fe4;
  background: #fff;
  border-radius: 18px;
  padding: 6px 14px;
  position: sticky;
  bottom: 4px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 2px 9px #48557333;
}
.action-bar {
  z-index: 10;
  background: #f7f8fd;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 14px;
  width: 390px;
  height: 49px;
  padding: 6px 8px;
  display: grid;
  position: fixed;
  bottom: 54px;
  left: 0;
}
.action-bar button {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e8e9ed;
  border-radius: 20px;
  justify-self: start;
  width: calc(100% - 2px);
  height: 34px;
  font-size: 12px;
  font-weight: 400;
  transform: translateY(-2px);
}
.action-bar i {
  vertical-align: -2px;
  border: 2px solid #333;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  display: inline-block;
}
.icon-trend {
  border-left-color: #0000 !important;
}
.icon-rules {
  border-radius: 2px !important;
}
.icon-service {
  border-bottom-color: #0000 !important;
}
.composer {
  z-index: 11;
  background: #f7f8fd;
  border-top: 0;
  grid-template-columns: 47px 1fr 58px 39px;
  align-items: center;
  gap: 7px;
  width: 390px;
  height: 54px;
  padding: 5px 9px;
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
}
.composer .quick {
  color: #6192ed;
  background: #eef4ff;
  border: 1px solid #90acec;
  border-radius: 5px;
  height: 43px;
  font-size: 13px;
}
.composer input {
  background: #fff;
  border: 0;
  border-radius: 6px;
  min-width: 0;
  height: 43px;
  padding: 0 10px;
  font-size: 13px;
}
.composer input::placeholder {
  color: #c7c8cd;
}
.composer .send {
  color: #fff;
  background: #58be6b;
  border-radius: 4px;
  height: 37px;
  font-size: 13px;
}
.keyboard {
  height: 38px;
  padding: 3px;
}
.keyboard img {
  width: 32px;
  height: 32px;
}
.number-pad {
  z-index: 12;
  background: #cbd0d8;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 390px;
  padding: 5px;
  display: grid;
  position: fixed;
  bottom: 54px;
  left: 0;
}
.number-pad button {
  background: #fff;
  border-radius: 3px;
  height: 42px;
  font-size: 17px;
}
.overlay {
  z-index: 50;
  background: #000000b3;
  align-items: flex-end;
  width: 390px;
  display: flex;
  position: fixed;
  inset: 0;
}
.quick-sheet {
  background: #fff;
  border-radius: 0;
  flex-direction: column;
  width: 390px;
  height: 591px;
  max-height: 70vh;
  display: flex;
  overflow: hidden;
}
.desktop-scale .quick-sheet {
  height: calc(100vh / var(--game-scale));
  max-height: calc(100vh / var(--game-scale));
}
.desktop-scale .quick-sheet header,
.desktop-scale .quick-sheet footer {
  min-height: 50px;
}
.desktop-scale .quick-sheet nav {
  height: 38px;
}
.desktop-scale .choice-grid button {
  min-height: 40px;
}
.quick-sheet header {
  border-bottom: 0;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 55px;
  display: grid;
}
.quick-sheet h2 {
  text-align: center;
  grid-column: 2;
  margin: 0;
  color: #52545a;
  font-size: 16px;
  font-weight: 400;
}
.quick-sheet header button {
  color: #bbbcc2;
  grid-column: 3;
  font-size: 30px;
  font-weight: 200;
}
.quick-sheet nav {
  grid-template-columns: repeat(5, 1fr);
  height: 42px;
  padding: 0 14px;
  display: grid;
}
.quick-sheet nav button {
  color: #5f6066;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  position: relative;
}
.quick-sheet nav button.active {
  color: #46484e;
  background: transparent;
}
.quick-sheet nav button.active::after {
  content: "";
  background: #f0a900;
  border-radius: 2px;
  width: 40px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.choice-grid {
  align-content: start;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  flex: 1;
  padding: 11px 24px 10px;
  display: grid;
  overflow-y: auto;
}
.choice-grid button {
  background: #fff;
  border: 1px solid #ead8ac;
  border-radius: 2px;
  min-height: 47px;
  font-size: 16px;
}
.choice-grid button b,
.choice-grid button small {
  display: block;
}
.choice-grid button small {
  color: #e8b70b;
  margin-top: 0;
  font-size: 13px;
}
.choice-grid button.selected {
  background: #fffaf0;
  border-color: #e6b93b;
  box-shadow: inset 0 0 0 1px #e6b93b;
}
.quick-sheet footer {
  border-top: 1px solid #eee;
  justify-content: space-between;
  align-items: center;
  min-height: 55px;
  padding: 5px 17px;
  display: flex;
}
.quick-sheet footer span {
  font-size: 15px;
}
.quick-sheet footer span b {
  color: #e5363d;
  margin: 0 4px;
  font-size: 18px;
  font-weight: 500;
}
.quick-sheet footer > button {
  color: #fff;
  background: #ef3f42;
  border-radius: 23px;
  width: 114px;
  height: 42px;
}
.quick-sheet footer > button:disabled {
  opacity: 1;
}
.amount-sheet,
.info-sheet {
  background: #fff;
  border-radius: 12px;
  width: 348px;
  margin: auto auto 95px;
  padding: 18px;
}
.amount-sheet h2,
.info-sheet h2 {
  text-align: center;
  margin: 0 0 12px;
  font-size: 18px;
}
.amount-sheet p,
.info-sheet p {
  color: #687189;
  line-height: 1.6;
}
.amount-sheet input {
  border: 1px solid #dfe2ea;
  border-radius: 5px;
  width: 100%;
  height: 43px;
  padding: 0 10px;
}
.amount-sheet > div {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0;
  display: grid;
}
.amount-sheet > div button {
  border: 1px solid #e0e3ea;
  border-radius: 4px;
  height: 34px;
}
.amount-sheet > button,
.info-sheet > button {
  color: #fff;
  background: #f4af00;
  border-radius: 5px;
  width: 100%;
  height: 40px;
}
.lobby > header {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  display: grid;
}
.lobby h1 {
  color: #4c576e;
  margin: 0;
  font-size: 21px;
  font-weight: 500;
}
.lobby-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  display: grid;
}
.game-card {
  background: #fff var(--card) center/cover no-repeat;
  border-radius: 12px;
  height: 130px;
  padding: 23px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px #74809d22;
}
.game-card h2,
.game-card p {
  color: #4e596f;
  margin: 0;
  position: relative;
}
.game-card h2 {
  font-size: 20px;
}
.game-card button {
  color: #fff;
  background: #f20b2b;
  border-radius: 22px;
  margin-top: 13px;
  padding: 8px 18px;
  font-size: 14px;
  position: relative;
}
.route-page > section {
  padding: 14px;
}
.route-page h2 {
  text-align: center;
  font-size: 18px;
}
.route-page article {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  font-size: 11px;
  display: grid;
}
.route-page article em {
  color: #f05a64;
  font-style: normal;
}
.route-page article small {
  text-align: right;
  color: #5da77d;
}
.empty-record {
  text-align: center;
  color: #81899a;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 20px;
}
.empty-record p {
  margin: 5px 0;
  font-size: 11px;
}
#toast {
  z-index: 100;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: #222d;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 13px;
  transition: all 0.2s;
  position: fixed;
  top: 43vh;
  left: 195px;
  transform: translate(-50%, -8px);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%);
}
@media (width>=520px) {
  .lobby-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-card {
    height: 105px;
    padding: 16px;
  }
  .game-card h2 {
    font-size: 16px;
  }
  .game-card p {
    font-size: 12px;
  }
  .game-card button {
    margin-top: 7px;
    padding: 6px 12px;
  }
}
.ball-row {
  align-items: center;
  gap: 3px;
  min-width: 0;
  display: flex;
}
.ball-row .ball {
  background: #ef5962;
  border: 1px solid #fff;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 9px;
  display: grid;
}
.ball-row .c1 {
  background: #3e91d2;
}
.ball-row .c2 {
  background: #3daf73;
}
.ball-row em {
  font-style: normal;
}
.rank-row {
  grid-template-columns: repeat(5, 21px);
  gap: 3px;
  display: grid;
}
.rank {
  background: #6d7f9e;
  border: 1px solid #fff;
  border-radius: 2px;
  place-items: center;
  height: 21px;
  font-size: 8px;
  display: grid;
}
.rank.r1 {
  color: #333;
  background: #f1c12f;
}
.rank.r2 {
  background: #45a0ca;
}
.rank.r3 {
  background: #454545;
}
.rank.r4 {
  background: #ed7a32;
}
.rank.r5 {
  background: #62b6b1;
}
.rank.r6 {
  background: #7351ad;
}
.rank.r8 {
  background: #e45055;
}
.rank.r10 {
  background: #4ba257;
}
.lobby {
  background: #fff8cf;
  padding: 10px 24px 28px;
}
.lobby > header {
  height: 58px;
}
.lobby h1 {
  font-size: 20px;
}
.lobby-section {
  margin-bottom: 18px;
}
.lobby-section > h2 {
  text-align: center;
  color: #4d5870;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
}
.lobby-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.game-card {
  border-radius: 9px;
  height: 105px;
  padding: 14px 10px;
}
.game-card h3,
.game-card p {
  color: #4e596f;
  margin: 0;
  position: relative;
}
.game-card h3 {
  font-size: 15px;
}
.game-card p {
  margin-top: 4px;
  font-size: 11px;
}
.game-card button {
  margin-top: 10px;
  padding: 6px 11px;
  font-size: 11px;
}
.packet-float {
  z-index: 9;
  width: 92px;
  height: 116px;
  position: fixed;
  top: 478px;
  right: 15px;
}
.packet-close {
  z-index: 2;
  position: absolute;
  top: 2px;
  left: -20px;
  width: 24px;
  height: 24px;
  padding: 0;
}
.packet-close:before {
  content: "\eb97";
  color: #7c8290;
  font-family: remixicon;
  font-size: 17px;
  line-height: 17px;
}
.packet-body {
  width: 92px;
  height: 116px;
  padding: 0;
}
.packet-body > span {
  background: url(/assets/red-packet.png) top/123px no-repeat;
  width: 92px;
  height: 95px;
  margin: auto;
  display: block;
  filter: saturate(0.8) brightness(1.02);
}
.packet-float time {
  color: #ed3131;
  background: linear-gradient(#ffe986, #ffd434);
  border: 1px solid #fff;
  border-radius: 18px;
  width: 74px;
  height: 22px;
  margin: -8px auto 0;
  font-size: 11px;
  line-height: 20px;
  display: block;
  box-shadow: 0 2px 6px #6664;
}
.desktop-scale .packet-float {
  z-index: 12;
  top: 59px;
  right: 14.25px;
  pointer-events: none;
}
.desktop-scale .draw-panel > * {
  translate: 0.5px -1px;
}
.desktop-scale .packet-body > span {
  background-size: 123.25px;
  filter: saturate(0.78) brightness(1.04) hue-rotate(2deg) blur(0.3px);
}
.desktop-scale .draw-top {
  font-weight: 200;
  translate: 0.25px 0.25px;
}
.desktop-scale .last-draw {
  translate: 0.5px -1.75px;
}
.desktop-scale .flip {
  gap: 8px;
}
.desktop-scale .flip b {
  width: 29px;
  height: 28px;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: inset 0 0 2px #aeb6c8, 0 1px 4px #32499f88;
}
.desktop-scale .action-bar {
  height: 48px;
  gap: 17.5px;
  padding: 6px 9px;
}
.desktop-scale .action-bar button {
  justify-self: stretch;
  width: 100%;
  height: 34px;
  border-color: #f0f0f0;
  font-weight: 100;
  transform: translateY(-1px);
}
.desktop-scale .composer {
  bottom: 3px;
}
.desktop-scale .composer .quick {
  color: #7196df;
  background: #e5ebf8;
  border-color: #eaf0fc;
  width: 44px;
  height: 44px;
  margin-left: 3.5px;
}
.desktop-scale .composer input {
  width: calc(100% - 10px);
  height: 44px;
  margin-left: 5px;
}
.desktop-scale .composer .send {
  height: 35px;
  transform: translateX(0.75px);
}
.desktop-scale .last-draw > span {
  transform: translate(-1.5px, -0.5px);
}
.desktop-scale .equation {
  transform: translate(0.5px, -3.5px);
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) .draw-top {
  font-weight: 100;
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) :is(.draw-top > span, .issue, .last-draw > span, .balance) {
  opacity: 0.95;
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) .last-draw > span {
  font-size: 13.5px;
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) .issue small {
  font-size: 9px;
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) .equation b {
  font-size: 28px;
}
.desktop-scale .game-shell:is([data-room="australia28"], [data-room="europe28"]) .flip b {
  font-size: 13px;
}
@font-face {
  font-family: remixicon;
  src: url(/assets/remixicon.woff2) format("woff2");
  font-display: block;
}
.action-bar i {
  font-family: remixicon;
  font-size: 15px;
  font-style: normal;
  border: 0 !important;
  border-radius: 0 !important;
}
.ri-dvd-line:before {
  content: "";
}
.ri-pie-chart-line:before {
  content: "";
}
.ri-bill-line:before {
  content: "";
}
.ri-customer-service-line:before {
  content: "";
}
@media (width<=600px) {
  .game-shell[data-room="australia28"] .draw-top > span,
  .game-shell[data-room="australia28"] .issue,
  .game-shell[data-room="australia28"] .last-draw > span,
  .game-shell[data-room="australia28"] .balance {
    opacity: 1;
  }
  .game-shell[data-room="europe28"] .draw-top > span,
  .game-shell[data-room="europe28"] .issue,
  .game-shell[data-room="europe28"] .last-draw > span,
  .game-shell[data-room="europe28"] .balance {
    opacity: 1;
  }
  .game-shell[data-room="australia28"] .game-header h1 {
    font-size: 16.76px;
    font-weight: 500;
  }
  .game-shell[data-room="europe28"] .game-header h1 {
    font-size: 16.74px;
    font-weight: 500;
  }
  .game-shell[data-room="australia28"] .flip b,
  .game-shell[data-room="europe28"] .flip b {
    background: #f6f6f6;
    font-size: 13px;
  }
  .game-shell[data-room="australia28"] .packet-body > span {
    background-size: 122px;
  }
  .game-shell[data-room="australia28"] .composer .quick {
    border-color: #ecf4fc;
  }
  .chat-stream {
    top: 210px;
  }
  .composer {
    grid-template-columns: 47px 1fr 58px 44px;
  }
  .composer .quick {
    width: 44px;
    margin-left: 3px;
    border-color: #d8e0e8;
  }
  .composer input {
    width: calc(100% - 5px);
    margin-left: 4px;
  }
  .composer .send {
    width: 56px;
    margin-left: 7px;
    height: 34px;
    min-height: 34px;
    align-self: start;
    transform: translateY(2px);
  }
  .composer .quick,
  .composer input {
    height: 46px;
    min-height: 46px;
    transform: translateY(-3px);
  }
  .keyboard {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 5px;
  }
}

/* Dingxin International black-gold room theme. */
:root{background:#080808;color:#f5ead0}
html,body{background:#080808}
.game-shell,.route-page,.lobby{background:#0a0a0a;color:#f5ead0}
.game-header{background:#101010;border-color:#352a16;color:#f5ead0}
.draw-panel{background:#111 radial-gradient(circle at 50% 0,#443316 0,transparent 65%);filter:none;border-bottom:1px solid #5d471d}
.sandbox-draw-label{background:#2a2111!important;color:#e8c86d!important;border-color:#755a23!important}
.last-draw{background:rgba(216,178,74,.09)}
.equation b{background:#171717!important;border-color:#d8b24a!important;color:#f5ead0!important}
.flip b{background:#f5ead0!important;color:#17130c!important}
.wallet-row nav button{background:#e7d9ad!important;color:#17130c!important}
.chat-stream{background:#0b0b0b}
.chat-meta{color:#9a9079}.bubble{background:#171717!important;color:#f4e9ce!important;border-color:#332a1b!important}.bubble:before{border-right-color:#171717!important}.is-user .bubble{background:#d8b24a!important;color:#17130c!important}.is-user .bubble:before{border-left-color:#d8b24a!important}
.action-bar,.composer{background:#101010!important;border-color:#30291c!important}.action-bar button{background:#171717!important;border-color:#40341d!important;color:#d7c697!important}.composer input{background:#0b0b0b!important;border-color:#3c321f!important;color:#f5ead0!important}.composer .send,.composer .quick{background:#d8b24a!important;border-color:#d8b24a!important;color:#17130c!important}
.packet-float{filter:saturate(.68) sepia(.2)}
.quick-sheet,.info-sheet{background:#111!important;color:#f5ead0!important}.quick-sheet header,.quick-sheet nav,.quick-sheet footer{border-color:#342b1d!important}.quick-sheet nav button.active,.choice-grid button.selected{color:#d8b24a!important;border-color:#d8b24a!important}.choice-grid button{background:#181818!important;border-color:#3a3120!important;color:#f5ead0!important}.quick-sheet footer>button{background:#d8b24a!important;color:#17130c!important}

/* Target-backed mobile room baseline shared by default, input, and quick states. */
@media (width<=600px) {
  .last-draw {
    translate: 0 -2px;
  }
  .last-draw > span,
  .last-draw .equation {
    translate: 0 2px;
  }
  .draw-top > span {
    translate: 2px 0;
  }
  .issue {
    translate: none;
  }
  .flip {
    translate: 1px 0;
  }
  .balance {
    translate: 2px 0;
  }
  .draw-panel:before {
    background: rgb(238 127 120 / 6.2%);
  }
  .chat-stream {
    background: #f1f3ff;
    padding-bottom: 0;
  }
  .system .bubble,
  .notice .bubble {
    background: #fdfdfd;
  }
  .system .bubble:before,
  .notice .bubble:before {
    border-right-color: #fdfdfd;
  }
  .notice .bubble {
    color: rgb(76 81 92);
    font-size: 16.55px;
    font-weight: 200;
    letter-spacing: 0.05px;
    line-height: 20.8px;
  }
  .system .bubble {
    color: rgb(76 81 92);
    font-weight: 100;
  }
  .system .bubble-copy {
    text-shadow: 0 0 0.85px currentcolor;
  }
  .notice .bubble-copy {
    display: inline-block;
    transform: translateX(-0.1px);
    -webkit-text-stroke: 0.2px currentcolor;
    text-shadow: 0 0 0.85px currentcolor;
  }
  .draw-top > span,
  .issue {
    filter: none;
  }
  .equation {
    filter: none;
  }
  .draw-top {
    font-weight: 500;
  }
  .draw-top > span,
  .issue,
  .last-draw > span,
  .balance {
    opacity: 1;
  }
  .issue b,
  .last-draw > span {
    font-weight: 700;
  }
  .issue small,
  .balance {
    font-weight: 500;
  }
  .last-draw > span {
    transform: translate(-2px, -4px);
  }
  .equation,
  .equation b,
  .wallet-row,
  .wallet-row button {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
  .equation b {
    border-color: #ccb581;
  }
  .chat-avatar {
    filter: saturate(0.8) brightness(1);
  }
  .wallet-row {
    filter: none;
  }
  .action-bar button {
    background: #f8f8f8;
    width: calc(100% - 2.5px);
    translate: 1px 0;
  }
  .composer {
    background: rgb(245 246 251);
  }
  .composer .quick {
    translate: 0 -1.5px;
  }
  .composer input {
    background: #f9f9f9;
    translate: 0 -0.75px;
  }
  .composer .send {
    background: rgb(92 194 111);
  }
  .keyboard img {
    translate: 1.5px -3px;
  }
  .packet-body > span {
    background-size: 118.5px;
    filter: saturate(0.8) brightness(1.04) blur(0.5px);
    animation: packet-sprite-cycle 1.2s steps(1, end) infinite;
  }
  .flip {
    right: 0;
    gap: 0;
    translate: 0 1px;
    filter: none;
  }
  .flip b {
    color: #202020;
    background: url(/assets/timer-box.png) 0 0 / 100% auto no-repeat;
    border: 0;
    border-radius: 0;
    width: 43.68px;
    height: 37.44px;
    margin-right: -5.2px;
    text-indent: -3.12px;
    font-family: LcdD, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 33.28px;
    text-align: center;
    display: block;
    box-shadow: none;
  }
}
.info-sheet header {
  grid-template-columns: 1fr 36px;
  align-items: center;
  display: grid;
}
.info-sheet header h2 {
  text-align: left;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
.info-sheet header button {
  color: #bbb;
  font-size: 29px;
}
.info-sheet header button:before {
  content: none;
}
.rules-sheet {
  border-radius: 0;
  width: 390px;
  height: 505px;
  margin: 0;
  padding: 8px 16px 16px;
  overflow-y: auto;
}
.rules-sheet p {
  color: #596071;
  margin: 14px 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
}
.rules-sheet header {
  grid-template-columns: 1fr 24px;
}
.rules-sheet p b {
  color: #a46b10;
  font-weight: 400;
}
.service-blank {
  background: #fff;
  width: 390px;
  height: 100vh;
}
.game-shell .chat-stream{background:#090909!important}
.service-blank{background:#090909;color:#f5ead0}

/* Fill the actual mobile browser viewport instead of leaving a white strip beside the old 390px canvas. */
@media (max-width: 600px) {
  html,
  body {
    width: 100vw;
    min-width: 0;
    overflow: hidden;
  }
  body:not(.home-mode) #app,
  body:not(.home-mode) .game-shell,
  body:not(.home-mode) .route-page,
  body:not(.home-mode) .lobby,
  body:not(.home-mode) .service-blank {
    width: 100vw;
    max-width: none;
  }
  body:not(.home-mode) .action-bar,
  body:not(.home-mode) .composer,
  body:not(.home-mode) .number-pad,
  body:not(.home-mode) .overlay,
  body:not(.home-mode) .quick-sheet,
  body:not(.home-mode) .rules-sheet {
    width: 100vw;
  }
  #toast { left: 50vw; }
}
@media (min-width: 391px) and (max-width: 600px) {
  body:not(.home-mode) .issue {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Full-screen desktop room layout. */
@media (min-width: 601px) {
  html,
  body {
    width: 100vw;
    min-width: 0;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }
  #app,
  .game-shell,
  .route-page {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
  }
  .game-header {
    grid-template-columns: 72px 1fr 72px;
    height: 60px;
  }
  .game-header button { height: 60px; }
  .game-header h1 { font-size: 20px; }
  .draw-panel {
    height: 220px;
    padding: 15px clamp(28px, 5vw, 88px) 10px;
  }
  .draw-top {
    grid-template-columns: minmax(160px,1fr) minmax(260px,1fr) minmax(180px,1fr);
    height: 44px;
    font-size: 15px;
    transform: none;
  }
  .draw-top > span { justify-self: start; }
  .issue {
    position: static;
    justify-self: center;
    width: auto;
    transform: none;
  }
  .issue b { font-size: 15px; }
  .issue small { font-size: 12px; }
  .flip {
    position: static;
    justify-self: end;
    transform: none;
  }
  .desktop-scale .flip b {
    width: 46px;
    height: 42px;
    border-radius: 7px;
    font-size: 23px;
  }
  .desktop-scale .flip { gap: 7px; }
  .phase-status {
    min-width: 148px;
    height: 42px;
    border-radius: 22px;
  }
  .phase-status svg { width: 22px; height: 22px; }
  .phase-status strong { font-size: 16px; }
  .last-draw {
    justify-content: center;
    gap: clamp(36px,8vw,120px);
    height: 82px;
    margin: 6px 0;
  }
  .last-draw > span {
    width: auto;
    font-size: 16px;
    transform: none;
  }
  .desktop-scale .equation { transform: none; }
  .equation b {
    width: 46px;
    height: 46px;
    font-size: 34px;
    line-height: 46px;
  }
  .wallet-row {
    grid-template-columns: 54px minmax(220px,1fr) 360px;
    gap: 10px;
    height: 54px;
    transform: none;
  }
  .member,
  .member > img:first-child { width: 44px; height: 44px; }
  .balance { font-size: 13px; }
  .wallet-row nav { gap: 14px; transform: none; }
  .wallet-row nav button { height: 34px; font-size: 14px; }
  .chat-stream {
    inset: 280px 0 124px;
    padding: 22px clamp(32px,8vw,120px) 32px;
  }
  .chat-stream > [data-testid="chat-message-list"] {
    max-width: 1200px;
    margin: 0 auto;
  }
  .chat-message {
    grid-template-columns: 54px minmax(0,1fr);
    gap: 14px;
    max-width: 900px;
  }
  .chat-avatar { width: 54px; height: 54px; }
  .bubble,
  .system .bubble,
  .notice .bubble {
    width: auto;
    max-width: min(720px,62vw);
    font-size: 16px;
  }
  .action-bar {
    width: 100vw;
    height: 60px;
    bottom: 64px;
    gap: clamp(18px,4vw,72px);
    padding: 9px clamp(28px,8vw,120px);
  }
  .desktop-scale .action-bar { height: 60px; gap: clamp(18px,4vw,72px); padding: 9px clamp(28px,8vw,120px); }
  .desktop-scale .action-bar button,
  .action-bar button { justify-self: stretch; height: 42px; font-size: 15px; }
  .composer,
  .desktop-scale .composer {
    grid-template-columns: 86px minmax(0,1fr) 100px 52px;
    width: 100vw;
    height: 64px;
    bottom: 0;
    gap: 12px;
    padding: 8px clamp(28px,8vw,120px);
  }
  .desktop-scale .composer .quick,
  .composer .quick,
  .desktop-scale .composer input,
  .composer input,
  .desktop-scale .composer .send,
  .composer .send {
    width: 100%;
    height: 46px;
    margin: 0;
    transform: none;
  }
  .composer .quick { font-size: 14px; }
  .composer input { font-size: 15px; }
  .composer .send { font-size: 15px; }
  .packet-float,
  .desktop-scale .packet-float {
    top: 330px;
    right: clamp(24px,4vw,64px);
    pointer-events: auto;
  }
  .overlay { width: 100vw; justify-content: center; }
  .quick-sheet {
    width: min(760px,100vw);
    height: min(640px,74vh);
    max-height: 74vh;
  }
  .desktop-scale .quick-sheet { height: min(640px,74vh); max-height: 74vh; }
  .amount-sheet,
  .info-sheet { width: min(760px,100vw); }
  .rules-sheet { width: min(760px,100vw); height: min(680px,78vh); }
  .number-pad { width: min(760px,100vw); left: 50%; bottom: 64px; transform: translateX(-50%); }
}
