/* ---- App shell -----------------------------------------------------------
   This is a mobile-only microsite (opened from the Grab app), so the whole
   site is capped to a phone-width column and centred. On desktop the page
   backdrop fills the rest. Change --app-max-width to resize the column. */
:root {
  --app-max-width: 480px;
}
html {
  background-color: #0b2340; /* backdrop beside the column on wide screens */
}
body {
  margin: 0 auto;
  max-width: var(--app-max-width);
  position: relative;
  overflow-x: hidden; /* clip anything that intentionally full-bleeds */
  line-height: normal;
}
/* Full-screen overlays are position:fixed (viewport-relative), so they must be
   re-centred and capped or they'd span the whole desktop window. The inline
   `left: 0` on these sections needs !important to override. */
.result-popup-win,
.result-popup-lose,
.empty-chances-popup,
.connection-error-popup,
.validation-error-popup,
.gm-overlay {
  max-width: var(--app-max-width);
  left: 50% !important;
  transform: translateX(-50%);
}

/* Hide scrollbars app-wide (content still scrolls — this only removes the
   visible bar, which reads as browser chrome on a mobile microsite). */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / legacy Edge */
}
*::-webkit-scrollbar { /* Chrome, Safari, Edge */
  width: 0;
  height: 0;
  display: none;
}

/* Visible keyboard focus for interactive elements (accessibility) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffb81c;
  outline-offset: 2px;
  border-radius: 4px;
}

:root {
  /* Color */
  --color-lightsalmon: #f89774;
  --color-darkgray: #999;
  --color-aliceblue: #eceff6;
  --color-darkorange: #ff8500;
  --color-gray-300: rgba(255, 255, 255, 0.35);
  --color-gray-200: rgba(0, 0, 0, 0.5);
  --color-gray-100: #340505;
  --color-maroon-300: #520000;
  --color-maroon-200: #660506;
  --color-maroon-100: #740100;
  --color-blanchedalmond: #fff0d0;
  --color-firebrick-300: #aa0e05;
  --color-firebrick-200: #b31102;
  --color-firebrick-100: #ad111b;
  --color-wheat: #fadfb9;
  --Grey: #393738;
  --Black: #000;
  --Chowking-Yellow: #ffb81c;
  --Chowking-Maroon: #7c2629;
  --Chowking-Red: #da291c;
  --White: #fff;

  /* Gap */
  --gap-5: 5px;
  --gap-6: 6px;
  --gap-8: 8px;
  --gap-10: 10px;
  --gap-12: 12px;
  --gap-14: 14px;
  --gap-16: 16px;
  --gap-20: 20px;
  --gap-24: 24px;
  --gap-32: 32px;
  --gap-64: 64px;

  /* Padding */
  --padding-4: 4px;
  --padding-5: 5px;
  --padding-6: 6px;
  --padding-8: 8px;
  --padding-10: 10px;
  --padding-14: 14px;
  --padding-16: 16px;
  --padding-18: 18px;
  --padding-19: 19px;
  --padding-20: 20px;
  --padding-24: 24px;

  /* BorderRadius */
  --br-2: 2px;
  --br-4: 4px;
  --br-10: 10px;
  --br-15: 15px;

  /* Font */
  --font-sole-sans: Sole Sans;

  /* FontSize */
  --font-size-10: 10px;
  --font-size-12: 12px;
  --font-size-13: 13px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-24: 24px;
  --font-size-30: 30px;
  --font-size-32: 32px;
  --font-size-40: 40px;
}

/* ============================================================
   Shared premium modal — used by lose + error popups across pages.
   (The win popup has its own richer .win-* variant in dice-game.css.)
   ============================================================ */
@keyframes popup-zoom-in {
  from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.gm-modal {
  width: 330px;
  max-width: 90vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sole-sans), sans-serif;
  animation: popup-zoom-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.gm-close {
  position: absolute;
  top: -16px;
  right: -6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--Chowking-Maroon);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.gm-close:hover { transform: scale(1.08); }
.gm-close:active { transform: scale(0.94); }
.gm-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 30px 22px 22px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 50% -20%, #7c1a1d 0%, #520000 62%);
  border: 2px solid rgba(255, 184, 28, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffb81c, #ffe6a8, #ffb81c, transparent);
}
.gm-icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
}
.gm-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.gm-text {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.gm-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 16px;
}
.gm-btn {
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: var(--font-sole-sans), sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.gm-btn:active { transform: scale(0.98); }
.gm-btn--gold {
  background: linear-gradient(135deg, #ffd85e 0%, #ffb81c 100%);
  color: var(--Chowking-Maroon);
  box-shadow: 0 5px 14px rgba(255, 184, 28, 0.45);
}
.gm-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(255, 184, 28, 0.55); }
.gm-btn--green {
  background: linear-gradient(135deg, #00b14f 0%, #00893d 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 177, 79, 0.42);
}
.gm-btn--green:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0, 177, 79, 0.52); }