@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --font-main: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-dark: #0b0303;
  --card-bg: linear-gradient(135deg, #1f0805, #2a0e06, #180503);
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-red: #ef4444;
  --accent-red-dark: #dc2626;
  --accent-green: #10b981;
  --line-green: #06c755;
  --line-green-hover: #05b34c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /*background-color: var(--bg-dark);*/
  background-image: url(/images/bg.webp);
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  color: #ffffff;
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

@media (min-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(220, 38, 38, 0.1) 50%, transparent 80%);
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  /*background: var(--card-bg); */
  /*background-image: url(https://macau18.club/account/assets/images/maruay/bg.png);*/
  background-position: top right;
  padding: 0.85rem;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.25);
}

@media (min-width: 640px) {
  .app-container {
    min-height: auto;
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.6);
    padding: 1rem;
  }
}

/* Typography & Glows */
.text-glow-gold {
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.9), 0 0 20px rgba(251, 191, 36, 0.5);
}
.text-glow-red {
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Header */
.header-section {
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.logo-wrapper {
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.logo-wrapper:active {
  transform: scale(0.98);
}
.logo-img {
  width: 100%;
  max-width: 340px;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.25));
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(69, 26, 3, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 18px;
  font-weight: 500;
  color: #fde68a;
  margin-bottom: 0.65rem;
}

.banner-button {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.banner-button:hover {
  transform: scale(1.01);
}
.banner-button:active {
  transform: scale(0.98);
}

.banner-inner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  /*border: 1px solid rgba(239, 68, 68, 0.6);*/
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  /*background-color: #000000;*/
}
.banner-inner.line-banner {
  border-color: rgba(6, 199, 85, 0.6);
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.25);
  background-color: rgba(6, 199, 85, 0.08);
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 115px;
  object-fit: cover;
  display: block;
}
.line-banner .banner-img {
  max-height: 136px;
  object-fit: contain;
}

.btn-77 {
    width: 100%;
    height: 4rem;
    margin-top: 2rem;
    border: none;
    border-radius: 40px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    color: rgb(121, 103, 3);
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition-duration: 3s;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.144);
    background-size: 200% 200%;
    text-decoration: none;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    /*** full width block ***/
    /* width: 100%; */
}

.logoIcon path {
    fill: rgb(121, 103, 3);
}

.btn-77:hover {
    transform: scale(0.95);
    transition-duration: 3s;
    animation: gradient 5s ease infinite;
    background-position: right;
}

.btn-77:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
}

.online-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 25px;
  color: #fde68a;
}
.pulse-dot-wrapper {
  position: relative;
  display: flex;
  width: 10px;
  height: 10px;
}
.pulse-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #34d399;
  opacity: 0.75;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
}

.copy-btn {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.copy-btn:hover {
  color: var(--accent-gold-light);
}

/* PG Slot Scroller */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding: 0 0.1rem;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.badge-rate {
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.games-scroller-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.games-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  animation: scrollGames 60s linear infinite;
}
.games-track:hover {
  animation-play-state: paused;
}

.game-card {
  /*width: 95px;*/
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 0.5rem;
  padding: 0.35rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.game-card:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.game-thumb {
  position: relative;
  width: 100%;
  height: 222px;
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: #0f172a;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.game-card:hover .game-thumb img {
  transform: scale(1.1);
}
.game-hot-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(to right, #dc2626, #ea580c);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.game-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.game-rate-badge {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(to right, #f59e0b, #ea580c, #dc2626);
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
}

/* Carousel */
.carousel-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.25);
  background-color: #000000;
  margin-bottom: 1rem;
}
.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  display: block;
  pointer-events: none;
}
.slide-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
}
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.carousel-btn:hover {
  opacity: 1;
}
.carousel-btn.prev {
  left: 8px;
}
.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 9999px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  width: 20px;
  background: linear-gradient(to right, #fbbf24, #ef4444);
}

/* Jackpot */
.jackpot-box {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(56, 16, 5, 0.95), rgba(42, 11, 6, 0.95), rgba(28, 5, 5, 0.95));
  padding: 0.85rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.25);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(to right, #dc2626, #ea580c);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.jackpot-amount {
  font-size: 1.65rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0.6rem 0 0.2rem 0;
  color: #fffbeb;
}
@media (min-width: 640px) {
  .jackpot-amount {
    font-size: 1.85rem;
  }
}
.jackpot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
  font-size: 11px;
  color: #fde68a;
  font-family: monospace;
}

/* Withdrawals */
.withdraw-box {
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(56, 16, 5, 0.95), rgba(42, 11, 6, 0.95), rgba(28, 5, 5, 0.95));
  padding: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.25);
}
.withdraw-list-viewport {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
}
.withdraw-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: scrollUp 32s linear infinite;
}
.withdraw-track:hover {
  animation-play-state: paused;
}
.withdraw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  transition: all 0.2s;
}
.withdraw-row:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

/* Reviews */
.review-card {
  position: relative;
  min-height: 95px;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(to bottom, #000000, rgba(0, 0, 0, 0.4));
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}
.review-card:hover {
  background: rgba(255, 255, 255, 0.1);
}
.stars {
  color: var(--accent-gold);
  font-size: 14px;
  margin-bottom: 0.35rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: #ffffff;
}

/* Floating Actions */
.floating-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.floating-line-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--line-green);
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  animation: floatAction 2.5s ease-in-out infinite;
}
.floating-line-btn:hover {
  background-color: var(--line-green-hover);
  transform: scale(1.05);
}
.scroll-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.95);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
  transition: all 0.2s;
}
.scroll-top-btn.visible {
  display: flex;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(to bottom, #2d0e06, #1f0705, #140303);
  border: 1px solid rgba(245, 158, 11, 0.7);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.3);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keyframe animations */
@keyframes scrollGames {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes pulse {
  50% { opacity: 0.6; }
}
@keyframes floatAction {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}



.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.no-gutters {
margin-right: 0;
margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,
.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,
.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,
.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,
.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,
.col-xl-auto {
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
.col {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-auto {
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: none;
}
.col-1 {
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-2 {
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-3 {
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-4 {
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-5 {
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-6 {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-7 {
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-8 {
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-9 {
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-10 {
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-11 {
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-12 {
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}


/* =========================================================
   iOS / Safari Parallax Background Compatibility - V3
   Replaces background-attachment: fixed
   ========================================================= */
html {
  min-height: 100%;
  background: #0b0303;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0b0303;
  background-image: none !important;
  background-attachment: scroll !important;
  overflow-x: hidden;
  isolation: isolate;
}

/* Dedicated background layer: visually similar to fixed, safer on iOS */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -12vh;
  left: 0;
  width: 100%;
  height: 124vh;
  min-height: 124dvh;
  background-image: url(/images/bg.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
  transform: translate3d(0, var(--bg-parallax-y, 0px), 0);
  will-change: transform;
  -webkit-transform: translate3d(0, var(--bg-parallax-y, 0px), 0);
}

.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

/* Keep the registration/action button above decorative layers */
.btn-77,
a.btn-77,
button.btn-77 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ambient-glow {
  z-index: 0;
  pointer-events: none;
}

.floating-container {
  z-index: 9999;
}

@supports (padding: max(0px)) {
  .app-container {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-77:hover {
    transform: none;
    animation: none;
  }
}

/* Respect users who disable motion */
@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: none !important;
    -webkit-transform: none !important;
  }
}
