/* ==========================================================================
   King Casino Ph - theme-6603.css
   Royal-themed mobile-first casino stylesheet (prefix: v310-)
   Palette: #FDF5E6 ivory | #2C3E50 navy | #8B4513 royal brown
            #4682B4 steel blue | #B0E0E6 powder blue
   ========================================================================== */

:root {
  --v310-ivory: #FDF5E6;
  --v310-navy: #2C3E50;
  --v310-navy-deep: #1d2a36;
  --v310-brown: #8B4513;
  --v310-brown-light: #a85d28;
  --v310-steel: #4682B4;
  --v310-powder: #B0E0E6;
  --v310-gold: #d9a441;
  --v310-gold-soft: #f2d785;
  --v310-text: #f3ead8;
  --v310-muted: #b9c2cc;
  --v310-card-bg: #243440;
  --v310-card-bg-2: #2b3f4e;
  --v310-border: rgba(217, 164, 65, 0.25);
  --v310-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v310-radius: 14px;
  --v310-radius-sm: 10px;
  --v310-header-h: 60px;
  --v310-bottomnav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(155deg, #1b2630 0%, #2C3E50 55%, #21333f 100%);
  color: var(--v310-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v310-gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: #ffe6a3; }

/* ==========================================================================
   Layout container
   ========================================================================== */

.v310-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.v310-main { padding-bottom: calc(var(--v310-bottomnav-h) + 24px); }

@media (min-width: 769px) {
  .v310-container { max-width: 1100px; padding: 0 24px; }
  .v310-main { padding-bottom: 32px; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.v310-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c2932 0%, #23333f 100%);
  border-bottom: 1px solid var(--v310-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.v310-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--v310-header-h);
}

.v310-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v310-ivory);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
}

.v310-logo-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--v310-gold-soft), var(--v310-brown));
  display: grid; place-items: center;
  color: #2a1a05;
  font-size: 1.6rem;
  box-shadow: 0 0 0 2px rgba(217,164,65,0.35), inset 0 0 6px rgba(255,255,255,0.4);
}

.v310-logo-text small {
  display: block;
  font-size: 1rem;
  color: var(--v310-muted);
  font-weight: 400;
  letter-spacing: 1px;
}

.v310-header-actions { display: flex; align-items: center; gap: 8px; }

.v310-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.v310-btn-register {
  background: linear-gradient(135deg, var(--v310-brown-light), var(--v310-brown));
  color: #fff8e6;
  box-shadow: 0 4px 12px rgba(139,69,19,0.45);
}

.v310-btn-login {
  background: linear-gradient(135deg, var(--v310-steel), #355d82);
  color: #fff;
  box-shadow: 0 4px 12px rgba(70,130,180,0.4);
}

.v310-btn-gold {
  background: linear-gradient(135deg, var(--v310-gold-soft), var(--v310-gold));
  color: #3a2a08;
}

.v310-menu-toggle {
  background: transparent;
  border: 1px solid var(--v310-border);
  color: var(--v310-gold-soft);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 1.6rem;
}

.v310-menu-toggle:hover { background: rgba(217,164,65,0.1); }

/* ==========================================================================
   Hero
   ========================================================================== */

.v310-hero {
  position: relative;
  margin: 14px 0 18px;
  border-radius: var(--v310-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2b3f4e, #1c2932);
  border: 1px solid var(--v310-border);
  box-shadow: var(--v310-shadow);
}

.v310-hero-slides { position: relative; min-height: 210px; }

.v310-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.v310-hero-slide.v310-active { opacity: 1; }

.v310-hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,41,50,0.05) 0%, rgba(28,41,50,0.85) 100%);
  z-index: 1;
}

.v310-hero-slide > * { position: relative; z-index: 2; }

.v310-hero-eyebrow {
  display: inline-block;
  background: rgba(217,164,65,0.18);
  border: 1px solid var(--v310-border);
  color: var(--v310-gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 1.1rem;
  margin-bottom: 8px;
  width: fit-content;
}

.v310-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.v310-hero-sub {
  font-size: 1.3rem;
  color: var(--v310-muted);
  margin-bottom: 10px;
}

.v310-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }

.v310-hero-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  z-index: 3;
  display: flex; gap: 6px;
}

.v310-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}

.v310-hero-dot.v310-active { background: var(--v310-gold); width: 18px; border-radius: 4px; }

/* ==========================================================================
   Marquee strip
   ========================================================================== */

.v310-marquee {
  background: rgba(217,164,65,0.08);
  border: 1px solid var(--v310-border);
  border-radius: var(--v310-radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.v310-marquee-icon { color: var(--v310-gold); flex-shrink: 0; }

.v310-marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: v310scroll 28s linear infinite;
  font-size: 1.25rem;
  color: var(--v310-gold-soft);
}

@keyframes v310scroll {
  from { transform: translateX(20%); }
  to   { transform: translateX(-100%); }
}

/* ==========================================================================
   Section + Section title
   ========================================================================== */

.v310-section { margin: 22px 0; }

.v310-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.v310-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v310-ivory);
  display: flex; align-items: center; gap: 8px;
}

.v310-section-title i { color: var(--v310-gold); }

.v310-section-link { font-size: 1.2rem; color: var(--v310-powder); }

/* ==========================================================================
   Category chips
   ========================================================================== */

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

.v310-chips::-webkit-scrollbar { display: none; }

.v310-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--v310-card-bg);
  border: 1px solid var(--v310-border);
  color: var(--v310-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v310-chip.v310-active {
  background: linear-gradient(135deg, var(--v310-brown), var(--v310-brown-light));
  color: #fff8e6;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(139,69,19,0.4);
}

/* ==========================================================================
   Game grid
   ========================================================================== */

.v310-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 769px) {
  .v310-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

.v310-card {
  background: var(--v310-card-bg);
  border: 1px solid var(--v310-border);
  border-radius: var(--v310-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.v310-card:hover {
  transform: translateY(-4px);
  border-color: var(--v310-gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.v310-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #2b3f4e, #1c2932);
}

.v310-card-media img { width: 100%; height: 100%; object-fit: cover; }

.v310-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(139,69,19,0.9);
  color: #fff;
  font-size: 1rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.v310-card-tag.v310-hot { background: linear-gradient(135deg, #c0392b, #8B4513); }

.v310-card-overlay {
  position: absolute; inset: 0;
  background: rgba(28,41,50,0.78);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity .2s ease;
}

.v310-card:hover .v310-card-overlay { opacity: 1; }

.v310-card-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--v310-gold);
  color: #2a1a05;
  display: grid; place-items: center;
  font-size: 1.6rem;
}

.v310-card-body {
  padding: 8px 10px 10px;
}

.v310-card-title {
  font-size: 1.2rem;
  color: var(--v310-ivory);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v310-card-meta {
  font-size: 1.05rem;
  color: var(--v310-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Featured / promo banner
   ========================================================================== */

.v310-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0;
}

@media (min-width: 769px) {
  .v310-feature { grid-template-columns: 2fr 1fr; }
}

.v310-feature-card {
  position: relative;
  border-radius: var(--v310-radius);
  overflow: hidden;
  padding: 20px;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #4682B4, #2C3E50);
  border: 1px solid var(--v310-border);
  color: #fff;
}

.v310-feature-card.v310-brown { background: linear-gradient(135deg, #8B4513, #5a2d0a); }
.v310-feature-card.v310-royal { background: linear-gradient(135deg, #2C3E50, #8B4513); }

.v310-feature-card h3 { font-size: 1.9rem; margin-bottom: 6px; color: #fff; }
.v310-feature-card p { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 12px; }

/* ==========================================================================
   SEO content
   ========================================================================== */

.v310-seo {
  background: rgba(28,41,50,0.6);
  border: 1px solid var(--v310-border);
  border-radius: var(--v310-radius);
  padding: 18px 16px;
  margin: 22px 0;
}

.v310-seo h2 {
  font-size: 1.8rem;
  color: var(--v310-gold-soft);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}

.v310-seo h3 {
  font-size: 1.5rem;
  color: var(--v310-powder);
  margin: 14px 0 6px;
}

.v310-seo p {
  font-size: 1.3rem;
  color: var(--v310-muted);
  margin-bottom: 10px;
  line-height: 1.65;
}

.v310-seo ul { padding-left: 20px; margin-bottom: 10px; }
.v310-seo li { font-size: 1.3rem; color: var(--v310-muted); margin-bottom: 6px; line-height: 1.6; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.v310-faq-item {
  border: 1px solid var(--v310-border);
  border-radius: var(--v310-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--v310-card-bg);
}

.v310-faq-q {
  padding: 12px 14px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v310-ivory);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.v310-faq-q i { color: var(--v310-gold); transition: transform .2s ease; }

.v310-faq-item.v310-open .v310-faq-q i { transform: rotate(45deg); }

.v310-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
}

.v310-faq-item.v310-open .v310-faq-a { max-height: 320px; padding: 0 14px 12px; }

.v310-faq-a p { font-size: 1.25rem; color: var(--v310-muted); line-height: 1.6; }

/* ==========================================================================
   Footer
   ========================================================================== */

.v310-footer {
  background: #162028;
  border-top: 1px solid var(--v310-border);
  padding: 22px 0 8px;
  margin-top: 24px;
}

.v310-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (min-width: 769px) {
  .v310-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.v310-footer-col h4 {
  font-size: 1.35rem;
  color: var(--v310-gold-soft);
  margin-bottom: 8px;
}

.v310-footer-col a {
  display: block;
  font-size: 1.2rem;
  color: var(--v310-muted);
  padding: 3px 0;
}

.v310-footer-col a:hover { color: var(--v310-powder); }

.v310-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v310-muted);
  padding: 14px 0 6px;
  border-top: 1px solid rgba(217,164,65,0.12);
  margin-top: 14px;
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.v310-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.v310-menu-backdrop.v310-open { opacity: 1; visibility: visible; }

.v310-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 270px;
  height: 100vh;
  background: linear-gradient(180deg, #1c2932, #23333f);
  z-index: 9999;
  transition: right .3s ease;
  padding: 18px 16px;
  overflow-y: auto;
}

.v310-mobile-menu.v310-open { right: 0; }

.v310-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v310-border);
}

.v310-menu-head h3 { color: var(--v310-ivory); font-size: 1.6rem; }

.v310-menu-close {
  background: transparent; border: none;
  color: var(--v310-gold-soft);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

.v310-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  color: var(--v310-text);
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(217,164,65,0.08);
}

.v310-menu-link:hover { background: rgba(217,164,65,0.08); color: var(--v310-gold-soft); }

.v310-menu-link i { color: var(--v310-gold); width: 22px; text-align: center; }

/* ==========================================================================
   Bottom navigation (mobile only)
   ========================================================================== */

.v310-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v310-bottomnav-h);
  background: linear-gradient(180deg, #1c2932, #14202a);
  border-top: 1px solid var(--v310-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}

.v310-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v310-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  padding: 6px 2px;
  position: relative;
  transition: color .2s ease;
}

.v310-bottomnav-btn .v310-bn-icon { font-size: 2.1rem; line-height: 1; }
.v310-bottomnav-btn .v310-bn-label { font-size: 1.05rem; }

.v310-bottomnav-btn.v310-active { color: var(--v310-gold); }
.v310-bottomnav-btn.v310-active::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--v310-gold);
}

.v310-bottomnav-btn.v310-promo {
  color: #ffe6a3;
}

.v310-bottomnav-btn.v310-promo .v310-bn-icon {
  background: linear-gradient(135deg, var(--v310-brown-light), var(--v310-brown));
  color: #fff8e6;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin-bottom: 2px;
  box-shadow: 0 4px 10px rgba(139,69,19,0.5);
}

@media (min-width: 769px) {
  .v310-bottomnav { display: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.v310-text-center { text-align: center; }
.v310-mt-12 { margin-top: 12px; }
.v310-mb-12 { margin-bottom: 12px; }

.v310-row { display: flex; gap: 10px; flex-wrap: wrap; }

.v310-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(70,130,180,0.18);
  color: var(--v310-powder);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 1.1rem;
  border: 1px solid rgba(70,130,180,0.35);
}

.v310-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v310-border), transparent);
  margin: 18px 0;
}

/* Desktop-only nav */
.v310-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v310-desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .v310-desktop-nav a {
    color: var(--v310-text);
    font-size: 1.35rem;
    font-weight: 500;
  }
  .v310-desktop-nav a:hover { color: var(--v310-gold-soft); }
}

/* desktop menu toggle hidden on desktop */
@media (min-width: 769px) {
  .v310-menu-toggle { display: none; }
}
