/* CSS file (style/casino.css) */
.page-casino {
  font-family: 'Arial', sans-serif;
  background: #08160F;
  color: #F2FFF6; /* Text Main */
  line-height: 1.6;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-casino__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2C14E; /* Gold */
  border: 1px solid #2E7A4E; /* Border */
}

.page-casino__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
}

.page-casino__btn-tertiary {
  background: transparent;
  color: #A7D9B8; /* Text Secondary */
  border: 1px solid #1E3A2A; /* Divider */
}

.page-casino__btn-tertiary:hover {
  color: #F2FFF6; /* Text Main */
  border-color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-casino__home-hero {
  padding: 10px 16px 24px;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-casino__hero-brand {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-brand .page-casino__description {
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 100%;
}

.page-casino__trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-casino__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
}

.page-casino__badge img {
  
  height: auto;
}

.page-casino__hero-cta {
  margin-top: auto;
  width: fit-content;
  align-self: center;
}

.page-casino__game-trial {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-casino__game-trial-shell {
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-sizing: border-box;
}

.page-casino__game-trial-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 14px;
}

.page-casino__game-trial-bottombar {
  display: flex;
  justify-content: center;
  padding: 10px 15px;
  background: #0A4B2C; /* Deep Green */
}

.page-casino__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.page-casino__game-trial-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
}

.page-casino__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-casino__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}

.page-casino__game-trial-start {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-casino__game-trial-start:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__hero-jackpot {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__jackpot-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-casino__jackpot-amount {
  font-size: 40px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-casino__currency {
  font-size: 24px;
}

.page-casino__hero-jackpot-claim {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6 !important;
  margin-top: auto;
  width: fit-content;
}

/* Promotions Strip */
.page-casino__promo-strip {
  padding: 50px 0;
}

.page-casino__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-casino__promo-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__promo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-casino__promo-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__promo-desc {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Hot Games Section */
.page-casino__hot-games {
  padding: 50px 0;
}

.page-casino__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-casino__game-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15px;
}

.page-casino__game-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__game-name {
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 5px;
}

.page-casino__game-rtp {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-casino__game-desc {
  font-size: 13px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  padding: 0 10px;
  flex-grow: 1;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 50px 0;
  background: #11271B; /* Card BG */
  text-align: center;
}

.page-casino__live-casino-section .page-casino__description {
  margin-bottom: 40px;
}

.page-casino__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: 10px;
  display: block;
}

.page-casino__cta-button {
  margin-top: 20px;
}

/* Games Overview Section */
.page-casino__games-overview {
  padding: 50px 0;
}

.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-casino__category-item {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
}

.page-casino__category-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__category-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__category-desc {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 50px 0;
  background: #11271B; /* Card BG */
}

.page-casino__advantages-section .page-casino__description {
  margin-bottom: 50px;
}

.page-casino__advantage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-casino__advantage-item {
  text-align: center;
  background: #08160F; /* Background */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #1E3A2A; /* Divider */
}

.page-casino__advantage-item img {
  
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

.page-casino__advantage-item h3 {
  font-size: 20px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-casino__advantage-item p {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 50px 0;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
}

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #1E3A2A; /* Divider */
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #08160F; /* Background */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
}

/* Winner Ticker */
.page-casino__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 39, 27, 0.95); /* Card BG with transparency */
  color: #F2FFF6; /* Text Main */
  padding: 10px 0;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.page-casino__ticker-item {
  padding: 0 20px;
  font-size: 15px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Reward Modal */
.page-casino__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-casino__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-casino__reward-modal-content {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 450px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #A7D9B8; /* Text Secondary */
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-casino__reward-modal-close:hover {
  color: #F2FFF6; /* Text Main */
}

.page-casino__reward-modal-title {
  font-size: 28px;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-casino__reward-modal-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Global image settings */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1023px) {
  .page-casino__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-casino__hero-brand,
  .page-casino__hero-jackpot {
    display: none !important;
  }
  .page-casino__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-casino__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial-topbar,
  .page-casino__game-trial-bottombar {
    display: none !important;
  }
  .page-casino__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-casino__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-casino__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-casino__game-card img {
    
  }
  .page-casino__game-desc {
    display: none; /* Hide description on smaller screens */
  }
  .page-casino__game-categories {
    grid-template-columns: 1fr;
  }
  .page-casino__advantage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-casino__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-casino__hero-brand,
  .page-casino__hero-jackpot,
  .page-casino__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-casino__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-casino__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-casino__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-casino__hero-jackpot-claim {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6 !important;
  }
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-casino__home-hero {
    padding: 10px 15px 15px;
  }
  .page-casino__main-title {
    font-size: 28px;
  }
  .page-casino__trust-badges {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__promo-strip-track {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-casino__promo-card img {
    
  }
  .page-casino__promo-content {
    padding: 15px;
  }
  .page-casino__promo-title {
    font-size: 18px;
  }
  .page-casino__promo-desc {
    font-size: 13px;
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  .page-casino__game-card img {
    
  }
  .page-casino__game-name {
    font-size: 16px;
  }
  .page-casino__game-rtp {
    font-size: 13px;
  }
  .page-casino__game-desc {
    display: none !important; /* Ensure hidden on mobile */
  }
  .page-casino__live-casino-section .page-casino__description,
  .page-casino__advantages-section .page-casino__description {
    margin-bottom: 30px;
  }
  .page-casino__game-categories {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-casino__category-item img {
    height: 200px;
  }
  .page-casino__category-title {
    font-size: 20px;
  }
  .page-casino__category-desc {
    font-size: 14px;
  }
  .page-casino__advantage-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-casino__advantage-item {
    padding: 20px;
  }
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }
  .page-casino__reward-modal-content {
    padding: 30px 20px;
    margin: 0 15px;
  }
  .page-casino__reward-modal-title {
    font-size: 24px;
  }
  .page-casino__reward-modal-text {
    font-size: 14px;
  }
  /* Ensure all images are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__promo-strip-track,
  .page-casino__hot-games-grid,
  .page-casino__game-categories,
  .page-casino__advantage-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Buttons responsive */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-cta,
  .page-casino__hero-jackpot-claim,
  .page-casino__cta-button {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-casino__promo-content .page-casino__btn-tertiary,
  .page-casino__game-card .page-casino__btn-secondary,
  .page-casino__category-item .page-casino__btn-secondary {
    width: fit-content !important;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: auto;
  }
  .page-casino__winner-ticker {
    padding-bottom: env(safe-area-inset-bottom, 10px);
  }
}