body.lm-play-beta {
  --lm-bg: #f3f7ed;
  --lm-surface: #ffffff;
  --lm-soft: #f6f9f5;
  --lm-ink: #132019;
  --lm-muted: #66736b;
  --lm-line: #d8e2d9;
  --lm-green-900: #064326;
  --lm-green-700: #08743a;
  --lm-green-600: #0b984b;
  --lm-gold: #c9a342;
  --lm-gold-soft: #fbf0cc;
  margin: 0;
  color: var(--lm-ink);
  background: linear-gradient(155deg, #f8fff4 0%, #fff9e8 48%, #eaf7e4 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.lm-play-beta .page {
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 46px;
  overflow: visible;
}

body.lm-play-beta #participantPortal {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body:not(.lm-play-beta) .lmplay-lobby {
  display: none !important;
}

.lmplay-classic-return {
  display: none !important;
}

body.lmplay-classic-user .lmplay-classic-return {
  display: inline-flex !important;
  border-color: #a98a35 !important;
  color: #6b5011 !important;
  background: #fff7d9 !important;
}

body.lm-play-beta #participantPortal > .participant-action-bar {
  position: sticky;
  top: 8px;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 100;
  display: grid;
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  padding: 9px;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  overflow: visible;
  border: 1px solid rgba(8, 116, 58, 0.13);
  border-radius: 8px;
  background: rgba(250, 255, 248, 0.94);
  box-shadow: 0 12px 28px rgba(15, 76, 39, 0.12);
  backdrop-filter: blur(12px);
}

body.lm-play-beta #participantPortal .participant-action-main {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.lm-play-beta #participantPortal .participant-action-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(8, 116, 58, 0.16);
  border-radius: 7px;
  color: #074124;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(14, 73, 37, 0.07);
  font-size: 12px;
  font-weight: 850;
}

body.lm-play-beta #participantPortal .participant-action-button:hover {
  border-color: rgba(11, 152, 75, 0.45);
  color: #086b36;
}

body.lm-play-beta #participantPortal .participant-action-button.is-active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(180deg, #12ad58, #08753a);
  box-shadow: 0 9px 20px rgba(8, 117, 58, 0.22);
}

body.lm-play-beta #participantPortal .participant-action-icon,
body.lm-play-beta #participantPortal .participant-action-icon svg {
  width: 20px;
  height: 20px;
}

body.lm-play-beta #participantPortal .participant-action-more {
  display: inline-flex;
  width: 76px;
}

body.lm-play-beta #participantPortal .participant-action-secondary {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 110;
  display: none;
  max-height: min(520px, calc(100vh - 100px));
  padding: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  border: 1px solid rgba(8, 116, 58, 0.16);
  border-radius: 8px;
  background: rgba(250, 255, 248, 0.98);
  box-shadow: 0 18px 42px rgba(10, 52, 27, 0.2);
}

body.lm-play-beta #participantPortal .participant-action-secondary.is-open {
  display: grid;
}

body.lm-play-beta #participantPortal .participant-action-secondary .participant-action-button {
  min-height: 46px;
  justify-content: flex-start;
  box-shadow: none;
}

body.lm-play-beta #participantPortal .participant-action-logout {
  color: #7a5710;
  background: #fff8df;
}

body.lm-play-beta .lmplay-lobby {
  display: block;
  width: 100%;
  margin: 8px 0 24px;
}

body.lm-play-beta .lmplay-featured {
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(231, 203, 112, 0.48);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #07512e 0%, #087a3d 58%, #0ba653 100%);
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: 0 17px 36px rgba(7, 91, 46, 0.18);
}

body.lm-play-beta .lmplay-featured.hidden {
  display: none;
}

body.lm-play-beta .lmplay-featured-copy {
  padding: clamp(26px, 4vw, 46px);
}

body.lm-play-beta .lmplay-game-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.lm-play-beta .lmplay-game-title strong,
body.lm-play-beta .lmplay-game-title small {
  display: block;
}

body.lm-play-beta .lmplay-game-title strong {
  color: #ffffff;
  font-size: 17px;
}

body.lm-play-beta .lmplay-game-title small {
  margin-top: 3px;
  color: #d2e9da;
  font-size: 11px;
}

body.lm-play-beta .lmplay-game-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid #f0cf70;
  border-radius: 50%;
  color: #ffe18b;
  background: rgba(0, 62, 31, 0.45);
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

body.lm-play-beta .lmplay-status {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 88, 42, 0.38);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

body.lm-play-beta .lmplay-label {
  display: block;
  margin-top: 30px;
  color: #d2e9da;
  font-size: 11px;
  font-weight: 700;
}

body.lm-play-beta .lmplay-prize {
  display: block;
  margin-top: 5px;
  color: #ffe17d;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

body.lm-play-beta .lmplay-game-facts {
  display: grid;
  margin: 18px 0 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.lm-play-beta .lmplay-game-facts > div {
  min-width: 0;
  padding: 2px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

body.lm-play-beta .lmplay-game-facts > div:first-child {
  padding-left: 0;
}

body.lm-play-beta .lmplay-game-facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}

body.lm-play-beta .lmplay-game-facts span,
body.lm-play-beta .lmplay-game-facts strong {
  display: block;
}

body.lm-play-beta .lmplay-game-facts span {
  color: #c6e1d0;
  font-size: 10px;
  line-height: 1.25;
}

body.lm-play-beta .lmplay-game-facts strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

body.lm-play-beta .lmplay-countdown-row {
  display: flex;
  gap: 28px;
}

body.lm-play-beta .lmplay-countdown-row span,
body.lm-play-beta .lmplay-countdown-row strong {
  display: block;
}

body.lm-play-beta .lmplay-countdown-row span {
  color: #c6e1d0;
  font-size: 10px;
}

body.lm-play-beta .lmplay-countdown-row strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
}

body.lm-play-beta .lmplay-numbers {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.lm-play-beta .lmplay-numbers.hidden {
  display: none;
}

body.lm-play-beta .lmplay-numbers span {
  color: #c6e1d0;
  font-size: 10px;
}

body.lm-play-beta .lmplay-numbers strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  word-spacing: 4px;
}

body.lm-play-beta .lmplay-featured-action {
  display: flex;
  padding: 32px 28px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 66, 33, 0.32);
}

body.lm-play-beta .lmplay-featured-action .lmplay-label {
  margin-top: 0;
}

body.lm-play-beta .lmplay-personal-status {
  margin: 7px 0 22px;
  color: #ffffff;
  font-size: 19px;
}

body.lm-play-beta .lmplay-quota-summary {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.lm-play-beta .lmplay-quota-summary div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

body.lm-play-beta .lmplay-quota-summary span,
body.lm-play-beta .lmplay-quota-summary strong {
  display: block;
}

body.lm-play-beta .lmplay-quota-summary span {
  color: #cce4d5;
  font-size: 10px;
}

body.lm-play-beta .lmplay-quota-summary strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: 17px;
}

body.lm-play-beta .lmplay-quota-summary .lmplay-recharge-summary {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(255, 225, 125, 0.5);
  background: rgba(255, 225, 125, 0.13);
}

body.lm-play-beta .lmplay-quota-summary .lmplay-recharge-summary strong {
  margin-top: 0;
  color: #ffe17d;
  white-space: nowrap;
}

body.lm-play-beta .lmplay-quota-summary .lmplay-recharge-summary.hidden,
body.lm-play-beta .lmplay-fee-note.hidden {
  display: none;
}

body.lm-play-beta .lmplay-primary {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #f1d276;
  border-radius: 6px;
  color: #3f2f05;
  background: linear-gradient(180deg, #ffe18b, #d6ae3d);
  box-shadow: 0 9px 20px rgba(73, 52, 4, 0.2);
  font-weight: 850;
}

body.lm-play-beta .lmplay-primary:hover {
  background: #ffe18b;
}

body.lm-play-beta .lmplay-wide {
  width: 100%;
}

body.lm-play-beta .lmplay-secondary-actions {
  display: grid;
  margin-top: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.lm-play-beta .lmplay-secondary-actions.hidden,
body.lm-play-beta .lmplay-secondary-actions button.hidden,
body.lm-play-beta .lmplay-resource-links .hidden {
  display: none;
}

body.lm-play-beta .lmplay-secondary-actions button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(0, 55, 29, 0.26);
  font-size: 12px;
  font-weight: 800;
}

body.lm-play-beta .lmplay-resource-links {
  min-height: 20px;
  margin-top: 10px;
}

body.lm-play-beta .lmplay-resource-links a {
  color: #ffe17d;
  font-size: 12px;
  font-weight: 850;
}

body.lm-play-beta #participantGamesList > .participant-game-item[data-game-status="OPEN"] {
  display: none;
}

body.lm-play-beta .lmplay-featured-action > small {
  margin-top: 10px;
  color: #c6e1d0;
  font-size: 10px;
  line-height: 1.45;
}

body.lm-play-beta .lmplay-quick-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.lm-play-beta .lmplay-quick-card {
  display: flex;
  min-height: 104px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--lm-line);
  border-radius: 7px;
  color: var(--lm-ink);
  background: var(--lm-surface);
  box-shadow: none;
  text-align: left;
}

body.lm-play-beta .lmplay-quick-card:hover {
  border-color: #94bea1;
  transform: translateY(-1px);
}

body.lm-play-beta .lmplay-quick-card span,
body.lm-play-beta .lmplay-quick-card strong,
body.lm-play-beta .lmplay-quick-card small {
  display: block;
}

body.lm-play-beta .lmplay-quick-card span {
  color: var(--lm-green-700);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

body.lm-play-beta .lmplay-quick-card strong {
  margin-top: 6px;
  font-size: 15px;
}

body.lm-play-beta .lmplay-quick-card small {
  margin-top: 5px;
  color: var(--lm-muted);
  font-size: 10px;
}

body.lm-play-beta .lmplay-responsible {
  margin: 11px 0 0;
  color: #7b8780;
  font-size: 10px;
}

body.lm-play-beta #participantPortal > .grid[data-participant-home-section] {
  width: 100%;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

body.lm-play-beta #participantPortal .payment-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 24px 2px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(8, 116, 58, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.lm-play-beta #participantPortal .payment-balance-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid rgba(8, 116, 58, 0.14);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
}

body.lm-play-beta #participantPortal .payment-balance-item {
  min-height: 94px;
  padding: 17px;
  border-right: 1px solid rgba(8, 116, 58, 0.15);
  background: transparent;
}

body.lm-play-beta #participantPortal .payment-balance-item:last-child {
  border-right: 0;
}

body.lm-play-beta #participantPortal .payment-balance-item span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.lm-play-beta #participantPortal .payment-balance-item strong {
  margin-top: 7px;
  font-size: clamp(21px, 3vw, 28px);
}

body.lm-play-beta #participantPortal .participant-panel,
body.lm-play-beta #participantPortal .participant-community-home,
body.lm-play-beta #participantPortal .participant-games-card {
  width: 100%;
  margin: 0 auto;
  padding: 24px 2px;
  border: 0;
  border-top: 1px solid rgba(8, 116, 58, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.lm-play-beta #participantPortal .participant-game-item {
  padding: 18px;
  border: 1px solid var(--lm-line);
  border-left: 4px solid var(--lm-green-600);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
}

body.lm-play-beta #participantRefreshStatus {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 160;
}

@media (max-width: 720px) {
  body.lm-play-beta .page {
    padding: 84px 14px 30px;
  }

  body.lm-play-beta #participantPortal > .participant-action-bar {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    margin: 0;
    padding: 7px;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 5px;
    border-radius: 8px;
  }

  body.lm-play-beta #participantPortal .participant-action-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  body.lm-play-beta #participantPortal .participant-action-button {
    min-height: 56px;
    padding: 6px 2px;
    flex-direction: column;
    gap: 2px;
    border-radius: 7px;
    font-size: 9px;
    line-height: 1.05;
  }

  body.lm-play-beta #participantPortal .participant-action-icon,
  body.lm-play-beta #participantPortal .participant-action-icon svg {
    width: 20px;
    height: 20px;
  }

  body.lm-play-beta #participantPortal .participant-action-more {
    display: inline-flex;
    width: 58px;
  }

  body.lm-play-beta #participantPortal .participant-action-secondary {
    top: calc(100% + 7px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lm-play-beta #participantPortal .participant-action-secondary .participant-action-button {
    min-height: 48px;
    padding: 8px 6px;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 11px;
  }

  body.lm-play-beta .lmplay-featured {
    grid-template-columns: 1fr;
  }

  body.lm-play-beta .lmplay-featured-action {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  body.lm-play-beta .lmplay-featured-copy,
  body.lm-play-beta .lmplay-featured-action {
    padding: 24px 20px;
  }

  body.lm-play-beta .lmplay-game-title {
    align-items: flex-start;
  }

  body.lm-play-beta .lmplay-game-mark {
    width: 42px;
    height: 42px;
  }

  body.lm-play-beta .lmplay-status {
    padding: 5px 7px;
    font-size: 8px;
  }

  body.lm-play-beta .lmplay-prize {
    font-size: 36px;
  }

  body.lm-play-beta .lmplay-game-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  body.lm-play-beta .lmplay-game-facts > div:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  body.lm-play-beta .lmplay-game-facts .lmplay-fact-prize {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  body.lm-play-beta .lmplay-countdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.lm-play-beta .lmplay-quick-grid {
    grid-template-columns: 1fr;
  }

  body.lm-play-beta .lmplay-quick-card {
    min-height: 88px;
  }

  body.lm-play-beta #participantPortal .payment-card,
  body.lm-play-beta #participantPortal .participant-panel,
  body.lm-play-beta #participantPortal .participant-community-home,
  body.lm-play-beta #participantPortal .participant-games-card {
    padding: 18px 0;
  }

  body.lm-play-beta #participantPortal .payment-balance-highlight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.lm-play-beta #participantPortal .payment-balance-item {
    min-width: 0;
    min-height: 92px;
    padding: 13px 9px;
  }

  body.lm-play-beta #participantPortal .payment-balance-item span {
    font-size: 9px;
    line-height: 1.2;
  }

  body.lm-play-beta #participantPortal .payment-balance-item strong {
    font-size: 19px;
  }
}
