.wingo-root {
  width: 100%;
  max-width: 390px;
  min-height: 0;
  height: auto;
  margin: 0 auto;
  background: #f2f3f8;
  position: relative;
  overflow: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.page#page-wingo {
  padding: 0;
}
.app-screen:has(#page-wingo.active) {
  padding-bottom: 0;
}
.page-stack:has(#page-wingo.active) {
  min-height: 0;
}
.page#page-wingo.active {
  min-height: 0;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.wingo-root::-webkit-scrollbar { width: 0; height: 0; }
.wingo-bg {
  position: absolute;
  top: 0;
  width: 100%;
  height: 346px;
  background: linear-gradient(180deg, #ff6666 0%, #ff7272 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  z-index: 0;
  overflow: hidden;
}
.wingo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,0.16) 0 18%, transparent 19%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,0.12) 0 17%, transparent 18%);
  pointer-events: none;
}
.wingo-content {
  position: relative;
  z-index: 1;
  padding: calc(62px + env(safe-area-inset-top, 0px)) 12px 14px;
}
.top-sticky {
  position: fixed;
  top: 0;
  z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 390px);
  box-sizing: border-box;
  margin: 0;
  padding: max(env(safe-area-inset-top), 0px) 10px 0;
  background: linear-gradient(180deg, #ff6666 0%, #ff7272 100%);
  box-shadow: none;
}
.top-header {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 0 2px;
}
.top-sticky::after { content: none; }
.icon-btn { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; }
.icon-btn img { width: 19px; height: 19px; object-fit: contain; }
.logo-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 34px;
  width: auto;
  display: block;
  pointer-events: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 52px;
  justify-content: flex-end;
}
.sound-btn img { width: 18px; height: 18px; }

.top-hero-stack {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.top-header .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wingo-root .wallet-card {
  min-height: 139px;
  background-color: #f6f6f6;
  border-radius: 21px;
  padding: 18px 21px 16px;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
  display: block;
  visibility: visible;
}
.wingo-root .wallet-amount {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #0e2348;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.wingo-root .wallet-amount > span {
  grid-column: 2;
  justify-self: center;
}
.wingo-root .wallet-amount img { width: 17px; height: 17px; }
.wingo-inline-refresh {
  grid-column: 3;
  justify-self: start;
  margin-left: 12px;
  width: 18px;
  height: 18px;
}
.wingo-inline-refresh img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.wingo-root .wallet-label { margin-top: 7px; display: flex; justify-content: center; align-items: center; gap: 4px; color: #0e2348; font-size: 13.5px; }
.wingo-root .wallet-label img { width: 14px; height: 14px; }
.wingo-root .wallet-actions { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.wingo-root .wallet-actions button { flex: 1 1 0; width: auto; height: 36px; border: 0; border-radius: 21px; color: #fff; font-size: 15px; font-weight: 600; }
.withdraw-btn { background: #fb5b5b; }
.deposit-btn { background: #18b660; }
.notice-bar { height: 39px; border-radius: 999px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #fff; box-shadow: none; }
.notice-bar img { width: 16px; height: 16px; }
.notice-bar p { margin: 0; font-size: 12px; color: #303a4c; line-height: 1.05; flex: 1; }
.notice-bar button { border: 0; color: #fff; height: 26px; min-width: 78px; border-radius: 21px; font-size: 12px; background: linear-gradient(90deg, #f95959 0%, #ff9a8e 100%); }
.timer-panel { margin-top: 18px; }
.timer-cards-wrap {
  background: #fff;
  border-radius: 18px;
  padding: 12px 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(33, 41, 75, 0.08);
}
.timer-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 8px;
}
.timer-card {
  width: auto;
  min-width: 0;
  min-height: 82px;
  height: auto;
  border-radius: 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #9aa3b5;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 6px 8px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: none;
}
.timer-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 7px;
  filter: grayscale(1) opacity(0.72);
}
.timer-card span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  min-height: 30px;
  line-height: 1.1;
  text-align: center;
  color: #8b93a7;
  white-space: normal;
  word-break: keep-all;
}
.timer-card span strong {
  font-size: 11px;
  font-weight: 700;
  color: #7b8498;
}
.timer-card span em {
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  color: #a0a8b8;
}
.timer-card.active {
  background: linear-gradient(180deg, #ff8080 0%, rgba(255, 128, 128, 0) 100%);
  color: #f95959;
  box-shadow: none;
}
.timer-card.active img {
  filter: drop-shadow(0 2px 4px rgba(255, 111, 111, 0.28));
  opacity: 1;
}
.timer-card.active span strong {
  color: #f95959;
}
.timer-card.active span em {
  color: #f95959;
}
.result-ticket {
  margin-top: 14px;
  margin-bottom: 14px;
  min-height: 104px;
  background: url("./assets/wingoissue.webp") no-repeat center/100% 100%;
  border-radius: 16px;
  padding: 12px 12px 10px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 80, 80, 0.14);
  position: relative;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.how-to-play {
  height: 26px;
  min-width: 112px;
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px;
  flex-shrink: 0;
}
.how-to-play img { width: 12px; height: 12px; object-fit: contain; filter: brightness(0) invert(1); }
.remaining { font-size: 12px; font-weight: 400; }
.ticket-top-copy { text-align: right; padding-top: 2px; }
.ticket-top-copy span { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; }
.ticket-body {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  position: relative;
  min-height: 64px;
}
.ticket-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  border-left: 1px dashed rgba(255, 255, 255, 0.58);
  pointer-events: none;
}
.ticket-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
  gap: 8px;
}
.ticket-room-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.digits { display: flex; align-items: center; gap: 3px; }
.digits span {
  width: 22px;
  height: 34px;
  border-radius: 4px;
  background: #fff;
  color: #1e2637;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(18, 28, 55, 0.12);
}
.digits span.ticket-colon,
.digits span:nth-child(3) {
  width: 10px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  box-shadow: none;
}
.mini-balls { display: flex; gap: 5px; align-items: center; margin-top: 0; flex-wrap: wrap; }
.mini-balls img { width: 24px; height: 24px; }
.ticket-right {
  min-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-left: 8px;
}
.issue-id {
  font-size: clamp(12px, 3.8vw, 15px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 156px;
  overflow-wrap: anywhere;
  text-align: right;
  color: #fff;
}
.ticket-note-row {
  display: none;
}
.bet-panel {
  position: relative;
  margin: 4px 0 0;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(18, 28, 55, 0.08);
}
.wingo-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.wingo-lock-overlay.hidden {
  display: none;
}
.wingo-lock-overlay-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(92, 94, 99, 0.64);
}
.wingo-lock-overlay-digits {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.wingo-lock-overlay-digits span {
  width: 118px;
  height: 168px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 126px;
  font-weight: 900;
  line-height: 1;
  color: #ff5e6a;
}
.color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 0; margin-bottom: 14px; }
.color-row button { border: 0; height: 40px; border-radius: 8px; color: #fff; font-size: 18px; font-weight: 700; }
.color-row .green { background: #21b55a; }
.color-row .violet { background: #af62ea; }
.color-row .red { background: #f45858; }
.color-row button.active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.88), 0 4px 10px rgba(0,0,0,.12); }
.ball-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 8px;
  background: transparent;
  border-radius: 0;
  padding: 6px 8px 4px;
  margin-bottom: 14px;
  box-shadow: none;
  justify-items: center;
}
.ball-btn { width: 51px; height: 51px; border-radius: 999px; display: block; cursor: pointer; }
.ball-btn.active { transform: scale(1.07); filter: drop-shadow(0 4px 8px rgba(0,0,0,.16)); }
.multi-row { display: grid; grid-template-columns: 1.12fr repeat(6, 0.72fr); gap: 7px; margin-bottom: 12px; }
.multi-row button { border-radius: 10px; border: 1px solid #d8dbe4; background: #f4f5f9; color: #8e97aa; height: 36px; font-size: 12px; font-weight: 700; }
.multi-row button:first-child { color: #f45858; border-color: #f45858; background: #fff; }
.multi-row .active { background: #20b45a; border-color: #20b45a; color: #fff; box-shadow: 0 4px 10px rgba(32,180,90,.22); }
.big-small {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  isolation: isolate;
}
.big-small button {
  border: 0;
  height: 40px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.big-small .big { background: #efaa56; }
.big-small .small { background: #6498d8; }
.big-small button.active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.84); z-index: 1; }
.wingo-bet-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.wingo-bet-sheet.hidden { display: none; }
body.wingo-sheet-open {
  overflow: hidden;
}
.wingo-bet-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 26, 38, 0.72);
}
.wingo-bet-sheet-panel {
  position: relative;
  width: var(--mobile-frame, min(100vw, 430px));
  max-width: 100vw;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
}
.wingo-bet-sheet-top {
  position: relative;
  height: 108px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #f95a5a 0%, #ff8d82 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.wingo-bet-sheet-top::after { content: none; }
.wingo-bet-sheet-top.theme-green { background: linear-gradient(180deg, #20b55a 0%, #46d47c 100%); }
.wingo-bet-sheet-top.theme-violet { background: linear-gradient(180deg, #b15ef5 0%, #d585ff 100%); }
.wingo-bet-sheet-top.theme-red { background: linear-gradient(180deg, #f95a5a 0%, #ff8d82 100%); }
.wingo-bet-sheet-top.theme-big { background: linear-gradient(180deg, #f0aa55 0%, #ffc06d 100%); }
.wingo-bet-sheet-top.theme-small { background: linear-gradient(180deg, #679ae0 0%, #81b1f5 100%); }
.wingo-bet-sheet-top.theme-red-violet { background: linear-gradient(103deg, #f95a5a 0 50%, #bf66ff 50% 100%); }
.wingo-bet-sheet-top.theme-green-violet { background: linear-gradient(103deg, #20b55a 0 50%, #bf66ff 50% 100%); }
.wingo-bet-room-title {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.wingo-bet-choice-label {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 280px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
  color: #10172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}
.wingo-bet-sheet-body {
  position: relative;
  z-index: 1;
  padding: 18px 14px 0;
  margin-top: 0;
}
.wingo-bet-field {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 18px;
}
.wingo-bet-field-label {
  color: #202a3b;
  font-size: 15px;
  font-weight: 500;
}
.wingo-bet-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.wingo-bet-multi-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 16px;
}
.wingo-bet-chip-row button {
  min-width: 36px;
  height: 26px;
  border-radius: 4px;
  border: none;
  background: #f1f1f1;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}
.wingo-bet-chip-row button.active[data-theme="green"],
.wingo-bet-stepper[data-theme="green"],
.wingo-bet-confirm[data-theme="green"] { background: #1cbc57; border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="violet"],
.wingo-bet-stepper[data-theme="violet"],
.wingo-bet-confirm[data-theme="violet"] { background: #b15ef5; border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="red"],
.wingo-bet-stepper[data-theme="red"],
.wingo-bet-confirm[data-theme="red"] { background: #ff5a5a; border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="big"],
.wingo-bet-stepper[data-theme="big"],
.wingo-bet-confirm[data-theme="big"] { background: #f8ad4b; border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="small"],
.wingo-bet-stepper[data-theme="small"],
.wingo-bet-confirm[data-theme="small"] { background: #679ae0; border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="red-violet"],
.wingo-bet-stepper[data-theme="red-violet"],
.wingo-bet-confirm[data-theme="red-violet"] { background: linear-gradient(103deg, #ff5a5a 0 50%, #bf66ff 50% 100%); border-color: transparent; color: #fff; }
.wingo-bet-chip-row button.active[data-theme="green-violet"],
.wingo-bet-stepper[data-theme="green-violet"],
.wingo-bet-confirm[data-theme="green-violet"] { background: linear-gradient(103deg, #1cbc57 0 50%, #bf66ff 50% 100%); border-color: transparent; color: #fff; }
.wingo-bet-qty-row {
  display: grid;
  grid-template-columns: 28px 60px 28px;
  align-items: center;
  gap: 10px;
  justify-content: start;
}
.wingo-bet-stepper {
  height: 27px;
  border-radius: 4px;
  border: 0;
  background: #f5f6fa;
  color: #8a93a8;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.wingo-bet-quantity {
  width: 60px;
  height: 27px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  color: #1c2538;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.wingo-bet-agree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 11px;
}
.wingo-bet-agree-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wingo-bet-agree-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d8dce8;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  flex: 0 0 16px;
}
.wingo-bet-agree-row input:checked + .wingo-bet-agree-check {
  border-color: #ff5a5a;
  background: #ff5a5a;
  color: #fff;
}
.wingo-bet-agree-row > span:nth-child(3) {
  color: #7b8192;
  font-size: 12px;
  font-weight: 600;
}
.wingo-bet-agree-row em {
  font-style: normal;
  color: #f95a5a;
  cursor: pointer;
}
.wingo-bet-sheet-actions {
  display: grid;
  grid-template-columns: 96px 1fr;
}
.wingo-bet-cancel,
.wingo-bet-confirm {
  border: 0;
  height: 46px;
  font-size: 14px;
}
.wingo-bet-cancel {
  background: #f2f4f8;
  color: #667085;
}
.wingo-bet-confirm {
  background: #1cbc57;
  color: #fff;
  font-weight: 700;
}
.wingo-bet-confirm:disabled {
  opacity: 0.55;
}
.wingo-presale-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}
#wingo-presale-modal {
  z-index: 95;
  padding: 20px;
}
.wingo-presale-card {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
}
.wingo-presale-head {
  height: 74px;
  background: linear-gradient(90deg, #ff5a5a 0%, #ff9388 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.wingo-presale-body {
  max-height: 58vh;
  overflow-y: auto;
  padding: 20px 24px 10px;
  display: grid;
  gap: 14px;
}
.wingo-presale-body p {
  margin: 0;
  color: #1c2437;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}
.wingo-presale-close-pill {
  width: calc(100% - 110px);
  max-width: 180px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: #ff5a5a;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: block;
  margin: 18px auto 24px;
}
.wingo-outcome-card {
  width: min(100%, 286px);
  padding: 0;
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.wingo-outcome-card .modal-close {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}
.wingo-outcome-banner {
  position: relative;
  min-height: 416px;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}
.wingo-outcome-number {
  display: none;
}
.wingo-outcome-number img {
  display: none;
}
.wingo-outcome-banner h3 {
  position: absolute;
  top: 140px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.wingo-outcome-tags {
  position: absolute;
  top: 180px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wingo-outcome-label {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.wingo-outcome-tag {
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wingo-outcome-tag.tag-green,
.wingo-outcome-tag.tag-size { background: #22b95d; }
.wingo-outcome-tag.tag-red { background: #ff5a5a; }
.wingo-outcome-tag.tag-violet { background: #b15ef5; }
.wingo-outcome-tag.tag-number { background: #22b95d; }
.wingo-outcome-banner.is-win .wingo-outcome-tag.tag-number { background: #ff5a5a; }
.wingo-outcome-banner.is-loss h3,
.wingo-outcome-banner.is-loss .wingo-outcome-label { color: #748bb0; }
.wingo-outcome-bonus-box {
  position: absolute;
  top: 234px;
  left: 50%;
  transform: translateX(-50%);
  width: 204px;
  min-height: 98px;
  padding: 8px 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wingo-outcome-bonus-label {
  display: block;
  color: #ff5959;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
}
.wingo-outcome-bonus-box #wingo-outcome-text {
  display: block;
  margin-top: 4px;
  color: #ff4f4f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  width: 100%;
  text-align: center;
}
.wingo-outcome-banner.is-loss .wingo-outcome-bonus-label {
  margin-top: 4px;
  color: #6b83a6;
  font-size: 16px;
}
.wingo-outcome-banner.is-loss .wingo-outcome-bonus-box #wingo-outcome-text {
  display: none;
}
.wingo-outcome-bonus-box small {
  display: block;
  color: #7b879d;
  font-size: 10px;
  line-height: 1.15;
  margin-top: 2px;
  width: 100%;
  text-align: center;
}
.wingo-outcome-auto {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.wingo-outcome-auto-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.wingo-outcome-auto.is-off .wingo-outcome-auto-check {
  background: transparent;
  color: transparent;
}
.wingo-outcome-banner.is-loss .wingo-outcome-auto,
.wingo-outcome-banner.is-loss .wingo-outcome-auto-check {
  color: #fff;
  border-color: rgba(255,255,255,0.92);
}
.wingo-rule-modal-card {
  width: min(100%, 318px);
  padding: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
}
.wingo-rule-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #ff7f7f 0%, #f95c5c 100%);
  color: #fff;
  text-align: center;
  padding: 12px 18px 11px;
}
.wingo-rule-top h3 {
  margin: 0;
  font-size: 0;
  line-height: 0;
}
.wingo-rule-room-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1px;
}
.wingo-rule-body {
  max-height: 360px;
  overflow-y: auto;
  text-align: left;
  margin-top: 0;
  padding: 12px 16px 10px;
  display: grid;
  gap: 14px;
}
.wingo-rule-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #1f2b45;
}
.wingo-rule-close-pill {
  width: calc(100% - 56px);
  max-width: 164px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7f7f 0%, #f95c5c 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin: 14px auto 0;
}
.tabs-row {
  display: flex;
  gap: 12px;
  margin: 14px 10px 16px;
  padding-bottom: 4px;
}
.tabs-row button {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f3f3f3;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  padding: 0 12px;
  white-space: nowrap;
  transition: .18s;
}
.tabs-row button:active { transform: scale(.97); }
.tabs-row button.active {
  background: #ff6b6b;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  color: #fff;
}
.history-wrap {
  margin-top: 0;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: auto !important;
}
.history-head,
.history-row {
  display: grid;
  grid-template-columns: 46% 16% 24% 14%;
  align-items: center;
  text-align: center;
}
.history-head {
  height: 48px;
  background: #ff5f5f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.history-row {
  min-height: 44px;
  background: #fff;
  border-top: 1px solid #f1f1f1;
  font-size: 14px;
}
.history-head > div:first-child,
.history-row > div:first-child,
.history-head > span:first-child,
.history-row > span:first-child {
  text-align: left;
  padding-left: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.history-row .num { font-size: 18px; font-weight: 700; }
.history-row .num-green { color: #21b55a; }
.history-row .num-red { color: #f45858; }
.history-row .num-green-violet {
  background: linear-gradient(180deg, #21b55a 0 62%, #c35ef3 62% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.history-row .num-red-violet {
  background: linear-gradient(180deg, #f45858 0 62%, #c35ef3 62% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.history-row .dots { display: flex; gap: 8px; align-items: center; justify-content: center; }
.history-row .dots i { width: 8px; height: 8px; border-radius: 50%; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
  background: transparent;
}
.pager button { width: 34px; height: 34px; border: 0; border-radius: 7px; background: #eef0f6; color: #8e97aa; font-size: 20px; }
.pager button.available { background: #f45858; color: #fff; }
.pager span { color: #737d90; font-size: 12px; min-width: 36px; text-align: center; }
.pager button:disabled {
  opacity: 0.5;
  cursor: default;
}
.game-result-dot.green { background: #55be79; }
.game-result-dot.red { background: #f45858; }
.game-result-dot.violet { background: #d05ce6; }
.history-wrap.is-my-history {
  margin-top: 10px;
  margin-bottom: 0 !important;
  border-radius: 8px;
  background: #fff;
  padding: 8px 8px 10px;
  min-height: auto !important;
}
.history-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
}
.my-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f1f2f4; cursor: pointer; }
.my-row:last-child { border-bottom: 0; }
.my-row.expanded { border-bottom: 0; padding-bottom: 8px; }
.my-row .tag { flex: 0 0 52px; width: 52px; height: 34px; border-radius: 9px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; }
.my-row .tag.big { background: #efaa56; }
.my-row .tag.small { background: #6598de; }
.my-row .tag.color { padding: 0 6px; font-size: 11px; }
.my-row .tag.color.red { background: #f45858; }
.my-row .tag.color.green { background: #21b55a; }
.my-row .tag.color.violet { background: #b15ef5; }
.my-row .tag.num { background: #21b55a; font-size: 16px; }
.my-row .tag.num.red { background: #f45858; }
.my-row .tag.num.green { background: #21b55a; }
.my-row .tag.num.red-violet { background: linear-gradient(135deg, #f45858 50%, #c35ef3 50%); }
.my-row .tag.num.green-violet { background: linear-gradient(135deg, #21b55a 50%, #c35ef3 50%); }
.my-row .mid { flex: 1; }
.my-row .mid p { margin: 0; font-size: 14px; font-weight: 600; color: #0e2348; }
.my-row .mid p em { display: inline-block; margin-left: 4px; font-style: normal; font-size: 11px; color: #78839a; vertical-align: 1px; }
.my-row .mid span { font-size: 10px; color: #9ba3b4; }
.my-row .right { text-align: right; }
.my-row .right button { width: 64px; height: 24px; border-radius: 6px; background: transparent; font-size: 11px; }
.my-row .right .pending { border: 1px solid #b9c1d2; color: #7f8a9f; }
.my-row .right .fail { border: 1px solid #ef4e52; color: #ef4e52; }
.my-row .right .ok { border: 1px solid #22b95d; color: #22b95d; }
.my-row .right span { display: block; margin-top: 6px; font-size: 12px; }
.my-row .right .pending-amount { color: #7f8a9f; }
.my-row .right .win { color: #22b95d; }
.my-row .right .lose { color: #ef4e52; }
.my-detail-card { margin: 0 0 8px; padding: 2px 0 8px; border-bottom: 1px solid #f1f2f4; }
.my-detail-head { font-size: 18px; font-weight: 700; color: #111; margin: 0 0 8px; }
.my-detail-grid { background: #fff; border-radius: 8px; overflow: hidden; }
.my-detail-line { min-height: 34px; display: grid; grid-template-columns: 112px 1fr; align-items: center; padding: 0 8px 0 0; border-bottom: 1px solid #f1f2f4; }
.my-detail-line:last-child { border-bottom: 0; }
.my-detail-line span { padding-left: 8px; font-size: 14px; color: #111; }
.my-detail-line strong { justify-self: end; font-size: 14px; font-weight: 500; color: #6f7d99; text-align: right; }
.my-detail-line .order-id { color: #7a8eb4; font-weight: 500; word-break: break-all; max-width: 190px; }
.my-detail-line .taxed { color: #ef4e52; }
.my-detail-line .status-pending { color: #7f8a9f; }
.my-detail-line .status-ok { color: #22b95d; }
.my-detail-line .status-fail { color: #ef4e52; }
.my-detail-line .result-pack { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.my-detail-line .result-num { font-size: 20px; font-weight: 700; }
.my-detail-line .result-num.red { color: #f45858; }
.my-detail-line .result-num.green { color: #21b55a; }
.my-detail-line .result-num.red-violet { background: linear-gradient(135deg, #f45858 50%, #c35ef3 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.my-detail-line .result-num.green-violet { background: linear-gradient(135deg, #21b55a 50%, #c35ef3 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.my-detail-line .result-text { color: #0e2348; font-size: 14px; font-weight: 500; }
.my-detail-line .result-wait { color: #7f8a9f; font-size: 14px; font-weight: 500; }
.history-wrap.is-my-history .promo-empty-state.gift-empty-state.gift-empty-state-history {
  margin-top: 0;
  min-height: 172px;
  border-radius: 0;
  background: #fff;
}
.history-wrap.is-chart-history {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.wingo-chart-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.wingo-chart-head {
  height: 44px;
  background: #ff6464;
  color: #fff;
  display: grid;
  grid-template-columns: 1.6fr 2fr 30px;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.wingo-chart-stats {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
}
.wingo-chart-stat-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}
.wingo-chart-stat-title {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}
.wingo-chart-stat-values {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.wingo-chart-stat-values.text-head {
  color: #1f2937;
  font-size: 12px;
}
.wingo-chart-stat-values.text-values span {
  width: 16px;
  text-align: center;
  color: #8a94a6;
  font-size: 12px;
}
.wingo-chart-mini-ball {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ff6666;
  color: #ff6666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: 0 0 auto;
}
.wingo-chart-wrapper {
  position: relative;
  background: #fff;
}
.chart-row {
  height: 56px;
  display: grid;
  grid-template-columns: 1.6fr 2fr 30px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
  z-index: 1;
}
.chart-period {
  font-size: 11px;
  color: #222;
}
.chart-number-list {
  display: flex;
  gap: 3px;
  position: relative;
}
.chart-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #bbb;
  position: relative;
  z-index: 1;
}
.chart-ball.active {
  color: #fff;
  border: 0;
  z-index: 5;
}
.chart-ball.green { background: #49bf78; }
.chart-ball.red { background: #ff5c5c; }
.chart-ball.green-purple { background: linear-gradient(135deg,#49bf78 50%,#c16cff 50%); }
.chart-ball.red-purple { background: linear-gradient(135deg,#ff5c5c 50%,#c16cff 50%); }
.chart-result {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  margin-left: auto;
}
.chart-result.big { background: #ffbc2d; }
.chart-result.small { background: #5f9dff; }
.wingo-chart-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Stable lottery header spacing for phones with dynamic browser bars/notches. */
.wingo-content {
  padding-top: calc(62px + max(env(safe-area-inset-top, 0px), 0px));
}

.top-sticky {
  padding-top: max(env(safe-area-inset-top, 0px), 0px);
  min-height: calc(58px + max(env(safe-area-inset-top, 0px), 0px));
}

.top-header {
  height: 58px;
  min-height: 58px;
}

/* Mobile responsive cleanup pass: lottery header, room tabs, ticket and history. */
.wingo-root,
.top-sticky {
  width: var(--mobile-frame, min(100vw, 430px));
  max-width: 100%;
}

.wingo-content {
  padding: calc(52px + var(--safe-top, env(safe-area-inset-top, 0px))) clamp(8px, 2.6vw, 12px) calc(10px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}

.top-sticky {
  min-height: calc(50px + var(--safe-top, env(safe-area-inset-top, 0px)));
  padding: var(--safe-top, env(safe-area-inset-top, 0px)) clamp(10px, 3vw, 14px) 0;
}

.top-header {
  height: 50px;
  min-height: 50px;
}

.logo-img {
  height: clamp(26px, 8vw, 34px);
  max-width: 46%;
  object-fit: contain;
}

.icon-btn {
  width: clamp(22px, 6.4vw, 26px);
  height: clamp(22px, 6.4vw, 26px);
}

.icon-btn img {
  width: clamp(17px, 5vw, 20px);
  height: clamp(17px, 5vw, 20px);
}

.header-right {
  gap: clamp(8px, 2.6vw, 12px);
  min-width: clamp(50px, 15vw, 64px);
}

.top-hero-stack {
  margin-top: clamp(6px, 2vw, 10px);
  gap: clamp(12px, 3.4vw, 16px);
}

.wingo-root .wallet-card,
.k3-root .wallet-card,
.fived-root .wallet-card,
.motorace-root .wallet-card,
.trxwingo-root .wallet-card {
  min-height: clamp(112px, 31vw, 139px);
  padding: clamp(13px, 3.4vw, 18px) clamp(14px, 4.8vw, 21px) clamp(13px, 3.4vw, 16px);
  background-size: 100% 100%;
  background-position: center;
}

.wingo-root .wallet-amount {
  font-size: clamp(17px, 5vw, 21px);
}

.wingo-root .wallet-actions {
  margin-top: clamp(12px, 4vw, 18px);
}

.wingo-root .wallet-actions button {
  height: clamp(32px, 9.2vw, 38px);
  font-size: clamp(13px, 3.9vw, 15px);
}

.notice-bar {
  min-height: clamp(36px, 10vw, 42px);
  height: auto;
}

.notice-bar p {
  min-width: 0;
  font-size: clamp(11px, 3.2vw, 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-bar button {
  min-width: clamp(68px, 19vw, 82px);
  height: clamp(24px, 7vw, 28px);
  font-size: clamp(11px, 3vw, 12px);
}

.timer-panel {
  margin-top: clamp(14px, 4vw, 18px);
}

.timer-cards-wrap {
  padding: clamp(10px, 3vw, 12px) clamp(8px, 2.6vw, 10px);
  border-radius: clamp(16px, 5vw, 20px);
}

.timer-cards {
  gap: clamp(6px, 2.2vw, 10px);
}

.timer-card {
  min-height: clamp(66px, 19vw, 78px);
  height: auto;
  padding: clamp(6px, 2vw, 8px) 3px;
}

.timer-card img {
  width: clamp(22px, 6.8vw, 28px);
  height: clamp(22px, 6.8vw, 28px);
  margin-bottom: clamp(4px, 1.4vw, 6px);
}

.timer-card span,
.timer-card.active span {
  max-width: 100%;
  min-height: 0;
  font-size: clamp(9.5px, 2.85vw, 12px);
  line-height: 1.14;
  white-space: normal;
  text-wrap: balance;
}

.result-ticket {
  margin-top: clamp(12px, 3.6vw, 16px);
  margin-bottom: clamp(12px, 3.6vw, 16px);
  min-height: clamp(96px, 27vw, 108px);
  padding: clamp(10px, 3vw, 12px);
  background-size: 100% 100%;
}

.ticket-body {
  gap: clamp(6px, 2.2vw, 12px);
}

.ticket-left {
  min-width: 0;
}

.ticket-room-name {
  font-size: clamp(12px, 3.7vw, 15px);
  white-space: nowrap;
}

.mini-balls {
  gap: clamp(2px, 1.2vw, 5px);
}

.mini-balls img {
  width: clamp(18px, 5.8vw, 24px);
  height: clamp(18px, 5.8vw, 24px);
}

.ticket-right {
  min-width: clamp(106px, 31vw, 132px);
}

.digits span {
  width: clamp(18px, 5.6vw, 22px);
  height: clamp(29px, 8.8vw, 34px);
  font-size: clamp(17px, 5.5vw, 21px);
}

.issue-id {
  max-width: clamp(116px, 36vw, 158px);
  font-size: clamp(12px, 3.6vw, 15px);
}

.bet-panel {
  margin-top: clamp(12px, 4vw, 18px);
  padding: clamp(10px, 3vw, 14px);
}

.color-row {
  gap: clamp(8px, 2.6vw, 12px);
  margin-bottom: clamp(10px, 3vw, 14px);
}

.color-row button {
  height: clamp(36px, 10vw, 42px);
  font-size: clamp(15px, 4.6vw, 19px);
}

.ball-grid {
  gap: clamp(7px, 2.2vw, 10px) clamp(6px, 1.8vw, 8px);
  padding: 5px clamp(3px, 1.8vw, 8px) 4px;
}

.ball-btn {
  width: clamp(42px, 13vw, 54px);
  height: clamp(42px, 13vw, 54px);
}

.multi-row {
  gap: clamp(4px, 1.5vw, 7px);
}

.multi-row button {
  height: clamp(31px, 8.8vw, 36px);
  border-radius: clamp(8px, 2.6vw, 10px);
  font-size: clamp(10px, 2.9vw, 12px);
}

.big-small button {
  height: clamp(38px, 10.5vw, 42px);
  font-size: clamp(18px, 5.5vw, 22px);
}

.tabs-row {
  gap: clamp(7px, 2.4vw, 12px);
  padding: 0 clamp(4px, 2vw, 10px);
}

.tabs-row button {
  min-width: 0;
  height: clamp(38px, 10.2vw, 43px);
  font-size: clamp(12px, 3.5vw, 14px);
}

.history-wrap {
  margin-left: clamp(4px, 2.6vw, 10px);
  margin-right: clamp(4px, 2.6vw, 10px);
}

.history-head,
.history-row {
  grid-template-columns: minmax(112px, 1.55fr) minmax(42px, .5fr) minmax(70px, .8fr) minmax(42px, .45fr);
}

.history-head {
  height: clamp(42px, 12vw, 48px);
  font-size: clamp(11px, 3.2vw, 13px);
}

.history-row {
  min-height: clamp(40px, 11.5vw, 46px);
  font-size: clamp(12px, 3.55vw, 14px);
}

.history-head > div:first-child,
.history-row > div:first-child {
  padding-left: clamp(8px, 3vw, 14px);
}

.history-row .num {
  font-size: clamp(16px, 5vw, 20px);
}

.history-row .dots {
  gap: clamp(5px, 1.8vw, 8px);
}

.history-row .dots i {
  width: clamp(7px, 2vw, 9px);
  height: clamp(7px, 2vw, 9px);
}

.pager {
  margin-top: clamp(14px, 4.6vw, 22px);
  padding-bottom: calc(8px + var(--safe-bottom, env(safe-area-inset-bottom, 0px))) !important;
}

@media (max-width: 360px) {
  .timer-cards {
    gap: 5px;
  }

  .timer-card span,
  .timer-card.active span {
    font-size: 9px;
  }

  .ticket-right {
    min-width: 106px;
  }

  .issue-id {
    font-size: 11px;
  }

  .ball-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Stability pass: keep lottery header/ticket sizing consistent across mobile browser UI bars. */
.top-sticky {
  min-height: calc(50px + env(safe-area-inset-top, 0px)) !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
}

.top-header {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 clamp(12px, 3.4vw, 16px) !important;
}

.top-header .brand-logo,
.top-header img {
  max-height: 28px !important;
}

.wingo-content {
  padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
}

.timer-card,
.timer-card.active {
  min-width: 0 !important;
}

.timer-card span,
.timer-card.active span {
  line-height: 1.14 !important;
  word-break: normal !important;
}

/* Lottery 2.0 compatibility guards: preserve old visuals, prevent upgraded live modules from overflowing. */
.wingo-root,
.k3-root,
.fived-root,
.trxwingo-root {
  box-sizing: border-box !important;
  max-width: var(--mobile-frame, min(100vw, 430px)) !important;
  overflow-x: hidden !important;
}

.wingo-root *,
.k3-root *,
.fived-root *,
.trxwingo-root * {
  box-sizing: border-box;
}

.wingo-root .timer-card,
.k3-root .timer-card,
.fived-root .timer-card,
.trxwingo-root .timer-card {
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

.k3-root .timer-card span,
.fived-root .timer-card span,
.trxwingo-root .timer-card span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wingo-root .result-ticket,
.k3-root .k3-ticket-card,
.fived-root .fived-ticket-card,
.trxwingo-root .trxwingo-ticket-card {
  max-width: 100% !important;
  overflow: hidden !important;
}

.wingo-root .issue-id,
.wingo-root .wingo-ticket-period,
.k3-root .k3-ticket-meta strong,
.fived-root .fived-ticket-meta strong,
.trxwingo-root .trxwingo-ticket-period {
  min-width: 0 !important;
}

@media (max-width: 390px) {
  .top-header {
    height: 48px !important;
    min-height: 48px !important;
  }

  .wingo-content {
    padding-top: calc(50px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* WinGo phone-fit final pass: keep old visual style, but stop side clipping. */
.wingo-root .top-header .back-button {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
}

.wingo-root .top-header .back-button::before,
.wingo-root .top-header .back-button::after {
  content: none !important;
  display: none !important;
}

.wingo-root .top-header .back-button img {
  display: block !important;
}

.wingo-root .top-header,
.wingo-root .timer-panel,
.wingo-root .result-ticket,
.wingo-root .bet-panel,
.wingo-root .tabs-row,
.wingo-root .history-wrap {
  isolation: isolate;
}

.wingo-root .timer-panel {
  position: relative;
  margin-top: clamp(14px, 4vw, 18px) !important;
}

.wingo-root .timer-panel::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -18px;
  height: clamp(48px, 13vw, 58px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background: linear-gradient(180deg, #ff6767 0%, #ff7474 100%);
  z-index: 0;
  pointer-events: none;
}

.wingo-root .timer-cards-wrap {
  position: relative;
  z-index: 1;
  background: #fff !important;
  overflow: hidden !important;
  padding: 12px 10px !important;
  box-shadow: 0 6px 16px rgba(33, 41, 75, 0.08) !important;
}

.wingo-root .result-ticket {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 4.2vw, 18px) !important;
  margin-bottom: clamp(14px, 4.2vw, 18px) !important;
  min-height: clamp(98px, 28vw, 108px) !important;
  padding: 12px 12px 10px !important;
  background-size: 100% 100% !important;
}

.wingo-root .ticket-body::after {
  content: none !important;
  display: none !important;
}

.wingo-root .timer-card.active {
  background: linear-gradient(180deg, #ff8080 0%, rgba(255, 128, 128, 0) 100%) !important;
  box-shadow: none !important;
}

.wingo-root .timer-card.active img {
  filter: drop-shadow(0 2px 4px rgba(255, 111, 111, 0.28)) !important;
  opacity: 1 !important;
}

.wingo-root .timer-card span,
.wingo-root .timer-card.active span {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  gap: 2px !important;
}

.wingo-root .timer-card span strong {
  font-size: clamp(10px, 3vw, 12px) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
}

.wingo-root .timer-card span em {
  font-size: clamp(9px, 2.7vw, 11px) !important;
  line-height: 1.08 !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.wingo-root .timer-card.active span strong,
.wingo-root .timer-card.active span em {
  color: #f95959 !important;
}

.wingo-root .issue-id,
.wingo-root .wingo-ticket-period {
  font-size: clamp(11px, 3.3vw, 13px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.wingo-root .history-wrap.is-chart-history {
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  overflow: hidden !important;
}

.wingo-root .wingo-chart-card,
.wingo-root .wingo-chart-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.wingo-root .wingo-chart-head,
.wingo-root .chart-row {
  grid-template-columns: minmax(102px, 1.2fr) minmax(0, 2fr) 22px !important;
  column-gap: 3px !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.wingo-root .chart-period {
  font-size: clamp(9.5px, 2.75vw, 11px) !important;
  letter-spacing: -0.2px !important;
}

.wingo-root .chart-number-list {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(10, minmax(13px, 1fr)) !important;
  gap: 1px !important;
  align-items: center !important;
}

.wingo-root .chart-ball,
.wingo-root .chart-result {
  width: clamp(14px, 3.7vw, 17px) !important;
  height: clamp(14px, 3.7vw, 17px) !important;
  min-width: 0 !important;
  flex: none !important;
  font-size: clamp(8px, 2.3vw, 10px) !important;
}

.wingo-root .wingo-chart-svg {
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 360px) {
  .wingo-root .wingo-chart-head,
  .wingo-root .chart-row {
    grid-template-columns: minmax(94px, 1.15fr) minmax(0, 2.05fr) 20px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .wingo-root .chart-number-list {
    grid-template-columns: repeat(10, minmax(12px, 1fr)) !important;
  }
}
