/* ============================================
   28Mars Casino - Clean Production Stylesheet
   ============================================ */

/* Font Faces - Latin only */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/asset-003.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/asset-004.woff2') format('woff2');
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #0a0e1a;
  color: #fff;
  overflow-x: hidden;
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

table {
  border-collapse: collapse;
}

ol, ul {
  padding-left: 1.5em;
}

li {
  margin: 4px 0;
}

/* ============================================
   Header
   ============================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #0d1a66, #0a76f2);
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.burger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.logo {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-login {
  background: linear-gradient(to bottom, #4ba614, #008c00);
  border: 1px solid #34740e;
  color: #fff;
}

.btn-register {
  background: linear-gradient(to bottom, #eab92d, #c79810);
  border: 1px solid #cb9b14;
  color: #fff;
}

/* ============================================
   Marquee
   ============================================ */
#marquee {
  background: linear-gradient(135deg, #0e87c7, #0a76f2);
  padding: 6px 12px;
  font-size: 12px;
  color: gold;
  white-space: nowrap;
  overflow: hidden;
}

#marquee span {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

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

/* ============================================
   Main Content
   ============================================ */
#content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

/* Banner Slider */
.banner-slider {
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 12px;
}

/* Jackpot */
.jackpot-section {
  margin: 12px 0;
  text-align: center;
}

.jackpot-display {
  background: linear-gradient(135deg, #1a0a3e, #2d0f6e);
  border: 2px solid gold;
  border-radius: 12px;
  padding: 16px;
}

.jackpot-amount {
  font-size: 28px;
  font-weight: 900;
  color: gold;
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
  letter-spacing: 2px;
}

/* Live Transactions */
.livetx-section {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
}

.livetx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(135deg, #0e87c7, #0e87c7);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.live-badge {
  background: #f44336;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.livetx-table {
  width: 100%;
  font-size: 11px;
}

.livetx-table td {
  padding: 6px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,225,255,0.2);
  color: #ddd;
}

.livetx-table thead td.green,
.livetx-table thead td.red {
  background: linear-gradient(180deg, #1890c9, #0e87c7);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.livetx-table td.amount {
  color: #f9e603;
  font-weight: 700;
}

/* Partnership Banner */
.partnership-banner {
  margin: 12px 0;
}

.partnership-banner img {
  width: 100%;
  border-radius: 12px;
}

/* ============================================
   Game Section
   ============================================ */
.game-section {
  margin: 16px 0;
}

.game-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.game-tabs::-webkit-scrollbar {
  display: none;
}

.game-tab {
  flex: 1;
  min-width: 60px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-tab.active {
  border-color: #0a76f2;
  background: rgba(10,118,242,0.15);
}

.game-tab img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1e2e;
  transition: transform 0.2s;
}

.game-card:active {
  transform: scale(0.96);
}

.game-thumb {
  width: 100%;
}

.play-btn {
  display: block;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #4ba614, #008c00);
  border-top: 1px solid #34740e;
}

/* ============================================
   Reviews Carousel
   ============================================ */
.reviews-section {
  margin: 30px 0;
  padding: 0 8px;
}

.reviews-title {
  width: 240px;
  margin: 0 auto 18px;
  text-align: center;
  padding: 8px 0;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 15px;
  background: linear-gradient(135deg, #1286da, #35b8f9);
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(53,184,249,0.85);
  color: #fff;
}

.carousel {
  max-width: 420px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(18,134,218,0.15);
  box-shadow: 0 12px 42px rgba(53,184,249,0.6);
  position: relative;
}

.track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
  flex: 0 0 100%;
  padding: 32px 28px 50px;
  background: linear-gradient(145deg, #1286da, #0f6fb8);
  border-radius: 28px;
  border: 2px solid rgba(53,184,249,0.7);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 40px rgba(53,184,249,0.35);
}

.t-header {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.t-content {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  margin: 8px 0 12px;
}

.review-label {
  font-size: 13px;
  font-weight: 800;
  color: #d8f2ff;
}

.stars,
.rating {
  font-size: 20px;
  color: #ffe38a;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.user {
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  display: inline-block;
}

.nav-arrow {
  position: absolute;
  bottom: 12px;
  width: 40px;
  height: 40px;
  background: #35b8f9;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(53,184,249,1);
  z-index: 2;
}

.nav-arrow.left { left: 14px; }
.nav-arrow.right { right: 14px; }

.nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   SEO Content
   ============================================ */
.seo-content {
  padding: 24px 16px;
  max-width: 900px;
  margin: 0 auto;
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
}

.seo-content h1 {
  font-size: 1.6em;
  color: #fff;
  margin: 0 0 16px;
}

.seo-content h2 {
  font-size: 1.3em;
  color: #fff;
  margin: 24px 0 12px;
}

.seo-content h3 {
  font-size: 1.15em;
  color: #fff;
  margin: 20px 0 10px;
}

.seo-content p {
  margin: 0 0 12px;
}

.seo-content ol,
.seo-content ul {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

.seo-content li {
  margin: 6px 0;
}

.seo-content a {
  color: #35b8f9;
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.new-footer {
  padding: 40px 0 80px;
  width: 100%;
  overflow: hidden;
  font-weight: 600;
  font-size: 11px;
  color: #999;
}

.new-footer .container {
  width: 100%;
  padding: 0 5%;
}

.new-footer .container img {
  max-width: 110%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.col-8 {
  text-align: center;
  font-size: 11px;
  width: 100%;
  margin-top: 20px;
  color: #aaa;
}

.col-10 {
  border-top: 1px solid #333;
  margin: 16px 0;
}

.col-4 {
  float: left;
  width: 27%;
  text-align: left;
  margin-top: 20px;
}

.col-2 {
  float: right;
  width: 67%;
  text-align: left;
  margin-top: 20px;
}

.col-12 {
  float: left;
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

.col-6 {
  float: left;
  width: 35%;
  text-align: left;
  margin-top: 20px;
}

.col-4 p,
.col-2 p,
.col-12 p,
.col-6 p {
  padding-bottom: 5px;
  color: #aaa;
}

.copyright1 {
  font-size: 12px;
  margin-top: 30px;
  text-align: center;
  color: #555;
}

/* ============================================
   Bottom Navigation
   ============================================ */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  background: linear-gradient(to top, #0d1a66, #0a2a8a);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0;
}

#footer a {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 11px;
  color: #8899cc;
  transition: color 0.2s;
}

#footer a.selected {
  color: #fff;
}

#footer a span {
  display: block;
}

/* ============================================
   Side Menu
   ============================================ */
#sideMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#sideMenuOverlay.active {
  opacity: 1;
  visibility: visible;
}

#sideMenu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  z-index: 200;
  background: linear-gradient(180deg, #0d1a66, #0a0e1a);
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#sideMenu.active {
  left: 0;
}

.closesidemenu {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  padding: 4px 10px;
  color: #fff;
  z-index: 1;
}

.navigation {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logo-header {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-container img {
  height: 40px;
  width: auto;
}

.logo-subtitle {
  font-size: 11px;
  color: gold;
  letter-spacing: 0.5px;
}

.scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.menu-container {
  padding: 0 12px;
}

.menu-item {
  margin-bottom: 2px;
}

.menu-link {
  display: block;
  padding: 12px 16px;
  color: #ccc;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.menu-link:hover,
.menu-link:active {
  background: rgba(255,255,255,0.08);
}

.copyright {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: #555;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   Breadcrumbs (internal pages)
   ============================================ */
.breadcrumbs {
  padding: 12px 16px;
  font-size: 13px;
  color: #8899cc;
}

.breadcrumbs a {
  color: #35b8f9;
}

.breadcrumbs span {
  margin: 0 6px;
  color: #555;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 520px) {
  .carousel {
    max-width: 95vw;
  }

  .jackpot-amount {
    font-size: 22px;
  }
}
