.trxwingo-root {
  background: #f7f8fc;
}

.trxwingo-bg {
  height: 72px;
}

.trxwingo-content {
  padding-bottom: 0;
}

.trxwingo-hidden-ui {
  display: none !important;
}

.trxwingo-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  margin-top: 10px;
  min-height: calc(100dvh - 72px);
  background: #fff;
}

.trxwingo-maintenance-mode > :not(.trxwingo-maintenance-overlay) {
  display: none !important;
}

.trxwingo-panel .timer-cards {
  display: grid;
  grid-template-columns: 112px 1fr;
}

.trxwingo-panel .timer-card {
  width: 104px;
}

.trxwingo-panel .timer-card:not(.active) {
  pointer-events: none;
  opacity: .55;
}

.trxwingo-latest-card,
.trxwingo-ticket-card {
  margin-top: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 57, 95, 0.08);
}

.trxwingo-latest-card {
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trxwingo-latest-label {
  width: 58px;
  color: #74819c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.trxwingo-latest-values {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.trxwingo-latest-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trxwingo-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f5fb;
  color: #2e3a56;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trxwingo-latest-col em {
  color: #74819c;
  font-size: 14px;
  font-style: normal;
}

.trxwingo-latest-equals {
  color: #67748d;
  font-size: 24px;
  font-weight: 700;
}

.trxwingo-latest-total {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6a67 0%, #ff5556 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trxwingo-ticket-card {
  padding: 12px;
}

.trxwingo-ticket-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 114px;
  grid-template-areas:
    "meta how time"
    "meta query time";
  align-items: start;
  gap: 6px 8px;
}

.trxwingo-ticket-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trxwingo-ticket-meta span,
.trxwingo-ticket-time > span {
  color: #7e88a0;
  font-size: 12px;
}

.trxwingo-ticket-meta strong {
  color: #112340;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.trxwingo-ticket-card .k3-how-button {
  grid-area: how;
  min-width: 86px;
  width: 86px;
  height: 22px;
  padding: 0 7px;
  gap: 4px;
  font-size: 9px;
  justify-self: center;
}

.trxwingo-ticket-card .k3-how-button img {
  width: 10px;
  height: 10px;
}

.trxwingo-query-button {
  grid-area: query;
  height: 22px;
  border: 1px solid #ff7f7f;
  border-radius: 999px;
  background: #fff8f8;
  color: #ff6262;
  font-size: 9px;
  font-weight: 700;
  padding: 0 8px;
}

.trxwingo-ticket-time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 114px;
}

.trxwingo-ticket-time .k3-ticket-digits {
  display: flex;
  align-items: center;
  gap: 2px;
}

.trxwingo-ticket-time .k3-ticket-digits span {
  width: 18px;
  height: 24px;
  border-radius: 5px;
  background: #fff6f7;
  color: #ff5b61;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trxwingo-ticket-time .k3-ticket-digits .k3-ticket-colon {
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
}

.trxwingo-wheel-wrap {
  position: relative;
  margin-top: 14px;
}

.trxwingo-wheel-stage {
  background: linear-gradient(180deg, #00c853 0%, #00b44a 100%);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.trxwingo-wheel-slot {
  height: 82px;
  border-radius: 8px;
  background: #4b4b55;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trxwingo-wheel-slot::before,
.trxwingo-wheel-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 28px;
  background: #e8ebef;
  border-radius: 999px;
}

.trxwingo-wheel-slot::before { top: -14px; }
.trxwingo-wheel-slot::after { bottom: -14px; }

.trxwingo-wheel-slot span {
  position: relative;
  z-index: 1;
  color: #7d8aa4;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.trxwingo-wheel-slot.active {
  background: linear-gradient(180deg, #20c964 0%, #18b957 100%);
}

.trxwingo-wheel-slot.active span {
  color: #fff;
}

.trxwingo-wheel-handle {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00c853 0%, #00b44a 100%);
  transform: translateY(-50%);
}

.trxwingo-wheel-handle.left { left: -1px; }
.trxwingo-wheel-handle.right { right: -1px; }

.trxwingo-maintenance-overlay {
  position: relative;
  inset: auto;
  min-height: calc(100dvh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
  background:
    radial-gradient(circle at top, rgba(255, 128, 128, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  z-index: 3;
}

.trxwingo-maintenance-card {
  width: min(100%, 320px);
  margin-top: 0;
  padding: 34px 24px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(249, 89, 89, 0.1);
  box-shadow:
    0 18px 40px rgba(33, 41, 75, 0.08),
    0 2px 8px rgba(249, 89, 89, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.trxwingo-maintenance-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: #f95959;
  background: linear-gradient(180deg, #fff4f4 0%, #ffecec 100%);
  box-shadow: inset 0 0 0 1px rgba(249, 89, 89, 0.12);
}

.trxwingo-maintenance-icon svg {
  width: 34px;
  height: 34px;
}

.trxwingo-maintenance-card strong {
  color: #1f2430;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.trxwingo-maintenance-card p {
  margin: 0;
  color: #8b93a7;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
