/*!
 * bitstarz poker layout stylesheet
 * Mobile-first (max-width: 430px). All custom classes use the v657- prefix.
 * Palette: #20B2AA | #90EE90 | #00FF7F | #0E1621 (bg) | #F5DEB3 (text)
 */

:root {
  --v657-primary: #20B2AA;
  --v657-accent: #00FF7F;
  --v657-mint: #90EE90;
  --v657-bg: #0E1621;
  --v657-bg-soft: #16202e;
  --v657-card: #1c2838;
  --v657-text: #F5DEB3;
  --v657-text-dim: #c9b893;
  --v657-white: #ffffff;
  --v657-border: rgba(144, 238, 144, 0.18);
  --v657-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v657-radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #142433 0%, var(--v657-bg) 70%);
  color: var(--v657-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--v657-accent);
  text-decoration: none;
}

.v657-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v657-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Header ===== */
.v657-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(14, 22, 33, 0.96), rgba(32, 178, 170, 0.18));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--v657-border);
}

.v657-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.v657-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v657-white);
  font-weight: 700;
  font-size: 1.6rem;
}

.v657-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--v657-mint);
}

.v657-brand-name {
  background: linear-gradient(90deg, var(--v657-accent), var(--v657-mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v657-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v657-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.v657-btn-primary {
  background: linear-gradient(90deg, var(--v657-primary), var(--v657-accent));
  color: #07221f;
  box-shadow: 0 4px 14px rgba(0, 255, 127, 0.35);
}

.v657-btn-ghost {
  background: transparent;
  color: var(--v657-mint);
  border: 1px solid var(--v657-mint);
}

.v657-btn:hover {
  transform: translateY(-1px);
}

.v657-btn:active {
  transform: scale(0.97);
}

.v657-menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(144, 238, 144, 0.12);
  color: var(--v657-mint);
  border: 1px solid var(--v657-border);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== Mobile expandable menu ===== */
.v657-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--v657-bg);
  border-bottom: 1px solid var(--v657-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v657-mobile-menu.v657-menu-open {
  max-height: 480px;
  box-shadow: var(--v657-shadow);
}

.v657-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.8rem 1.2rem;
}

.v657-mobile-menu li a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v657-text);
  border-bottom: 1px solid rgba(144, 238, 144, 0.08);
  font-size: 1.4rem;
}

.v657-mobile-menu li a:hover {
  color: var(--v657-accent);
}

/* ===== Main ===== */
.v657-main {
  padding-top: 76px;
  padding-bottom: 1rem;
}

/* ===== Hero carousel ===== */
.v657-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v657-radius);
  margin: 1rem 0;
  box-shadow: var(--v657-shadow);
}

.v657-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v657-carousel-slide {
  min-width: 100%;
  position: relative;
}

.v657-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.v657-carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(14, 22, 33, 0.92), transparent);
  color: var(--v657-white);
}

.v657-carousel-caption strong {
  color: var(--v657-accent);
}

.v657-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.v657-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  border: none;
  cursor: pointer;
}

.v657-carousel-dot.v657-dot-active {
  background: var(--v657-accent);
}

/* ===== Section ===== */
.v657-section {
  margin: 1.6rem 0;
}

.v657-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v657-white);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v657-section-title i {
  color: var(--v657-accent);
}

.v657-section-sub {
  color: var(--v657-text-dim);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

/* ===== H1 ===== */
.v657-h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: var(--v657-white);
  margin: 1rem 0;
}

.v657-h1 span {
  color: var(--v657-accent);
}

/* ===== Filter chips ===== */
.v657-chip-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.v657-chip {
  white-space: nowrap;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: var(--v657-card);
  color: var(--v657-text);
  border: 1px solid var(--v657-border);
  font-size: 1.2rem;
  cursor: pointer;
}

.v657-chip.v657-chip-active {
  background: linear-gradient(90deg, var(--v657-primary), var(--v657-accent));
  color: #07221f;
  font-weight: 700;
  border-color: transparent;
}

/* ===== Game grid ===== */
.v657-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v657-game-card {
  display: block;
  background: var(--v657-card);
  border: 1px solid var(--v657-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v657-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 255, 127, 0.25);
  border-color: var(--v657-accent);
}

.v657-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.v657-game-card .v657-game-name {
  display: block;
  font-size: 1.1rem;
  color: var(--v657-text);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / panels ===== */
.v657-card {
  background: var(--v657-card);
  border: 1px solid var(--v657-border);
  border-radius: var(--v657-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--v657-shadow);
}

.v657-card h2 {
  color: var(--v657-white);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.v657-card h3 {
  color: var(--v657-accent);
  font-size: 1.35rem;
  margin: 1rem 0 0.4rem;
}

.v657-card p {
  color: var(--v657-text-dim);
  margin: 0 0 0.6rem;
}

.v657-card ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.4rem;
  color: var(--v657-text-dim);
}

.v657-card ul li {
  margin-bottom: 0.3rem;
}

/* ===== Feature list ===== */
.v657-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.v657-feature {
  background: var(--v657-bg-soft);
  border: 1px solid var(--v657-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.v657-feature i {
  font-size: 2rem;
  color: var(--v657-accent);
  margin-bottom: 0.4rem;
}

.v657-feature strong {
  display: block;
  color: var(--v657-white);
  font-size: 1.2rem;
}

.v657-feature span {
  color: var(--v657-text-dim);
  font-size: 1.1rem;
}

/* ===== Testimonials ===== */
.v657-testimonials {
  display: grid;
  gap: 0.8rem;
}

.v657-testimonial {
  background: var(--v657-bg-soft);
  border-left: 3px solid var(--v657-accent);
  border-radius: 10px;
  padding: 1rem;
}

.v657-testimonial blockquote {
  margin: 0 0 0.4rem;
  color: var(--v657-text);
  font-style: italic;
}

.v657-testimonial cite {
  color: var(--v657-mint);
  font-size: 1.1rem;
}

/* ===== Winners ===== */
.v657-winners {
  display: grid;
  gap: 0.6rem;
}

.v657-winner {
  display: flex;
  justify-content: space-between;
  background: var(--v657-bg-soft);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 1.2rem;
}

.v657-winner b {
  color: var(--v657-accent);
}

/* ===== Payment ===== */
.v657-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.v657-pay {
  flex: 1 1 30%;
  min-width: 90px;
  text-align: center;
  background: var(--v657-bg-soft);
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
  border: 1px solid var(--v657-border);
}

.v657-pay i {
  font-size: 1.8rem;
  color: var(--v657-mint);
}

.v657-pay span {
  display: block;
  font-size: 1.05rem;
  color: var(--v657-text-dim);
  margin-top: 0.3rem;
}

/* ===== CTA banner ===== */
.v657-cta {
  background: linear-gradient(120deg, rgba(32, 178, 170, 0.35), rgba(0, 255, 127, 0.25));
  border: 1px solid var(--v657-accent);
  border-radius: var(--v657-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}

.v657-cta h2 {
  color: var(--v657-white);
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.v657-cta p {
  color: var(--v657-text);
  margin: 0 0 1rem;
}

/* ===== Inline promo text link ===== */
.v657-promo-link {
  color: var(--v657-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Footer ===== */
.v657-footer {
  background: var(--v657-bg-soft);
  border-top: 1px solid var(--v657-border);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.4rem;
}

.v657-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}

.v657-footer-links a {
  color: var(--v657-text-dim);
  font-size: 1.15rem;
}

.v657-footer-links a:hover {
  color: var(--v657-accent);
}

.v657-footer-copy {
  color: var(--v657-text-dim);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* ===== Mobile bottom nav ===== */
.v657-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(28, 40, 56, 0.98), rgba(14, 22, 33, 1));
  border-top: 1px solid var(--v657-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.2rem;
}

.v657-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v657-text-dim);
  font-size: 1rem;
  text-align: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v657-bottom-nav a i {
  font-size: 22px;
}

.v657-bottom-nav a:hover,
.v657-bottom-nav a.v657-active {
  color: var(--v657-accent);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .v657-bottom-nav { display: none; }
  .v657-menu-toggle { display: none; }
}

@media (max-width: 768px) {
  .v657-main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .v657-grid { grid-template-columns: repeat(2, 1fr); }
  .v657-h1 { font-size: 1.8rem; }
}
