/* 789 wine - theme.css */
/* All custom classes use v3f9- prefix. Mobile-first, max-width 430px. */
/* Color palette: #FFB3FF #FFB6C1 #8B7355 #6A5ACD #333333 */

:root {
  --v3f9-primary: #6A5ACD;
  --v3f9-accent: #FFB3FF;
  --v3f9-pink: #FFB6C1;
  --v3f9-gold: #8B7355;
  --v3f9-bg: #1a1a1a;
  --v3f9-bg-alt: #2a2330;
  --v3f9-text: #f5f5f5;
  --v3f9-text-dim: #cfcfcf;
  --v3f9-dark: #333333;
  --v3f9-card-bg: #241c2b;
  --v3f9-border: #3a2f44;
  --v3f9-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--v3f9-bg) 0%, #211a2a 100%);
  color: var(--v3f9-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

main {
  padding-bottom: 80px;
}

/* ===== Header ===== */
.v3f9-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(120deg, #211a2a 0%, #2a1f3a 100%);
  border-bottom: 1px solid var(--v3f9-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.v3f9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v3f9-accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.v3f9-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.v3f9-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.v3f9-btn-register {
  background: linear-gradient(120deg, var(--v3f9-primary), var(--v3f9-accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(106,90,205,.4);
}

.v3f9-btn-login {
  background: transparent;
  color: var(--v3f9-accent);
  border: 1px solid var(--v3f9-accent);
}

.v3f9-menu-btn {
  background: transparent;
  border: 1px solid var(--v3f9-border);
  color: var(--v3f9-text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ===== Mobile expand menu ===== */
.v3f9-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #211a2a;
  border-bottom: 1px solid var(--v3f9-border);
  padding: 8px 14px 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  z-index: 9999;
}

.v3f9-mobile-menu.v3f9-menu-open {
  max-height: 420px;
  padding: 10px 14px 18px;
}

.v3f9-mobile-menu a {
  display: block;
  padding: 10px 8px;
  font-size: 1.3rem;
  color: var(--v3f9-text);
  border-bottom: 1px dashed var(--v3f9-border);
}

.v3f9-mobile-menu a:active {
  color: var(--v3f9-accent);
}

/* ===== Hero / Carousel ===== */
.v3f9-hero {
  margin-top: 56px;
  width: 100%;
}

.v3f9-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1a1a;
}

.v3f9-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}

.v3f9-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3f9-slide-active {
  opacity: 1;
}

.v3f9-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.v3f9-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
}

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

.v3f9-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}

.v3f9-arrow-prev { left: 8px; }
.v3f9-arrow-next { right: 8px; }

/* ===== Sections ===== */
.v3f9-section {
  padding: 18px 14px 10px;
}

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

.v3f9-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v3f9-accent);
  border-left: 4px solid var(--v3f9-primary);
  padding-left: 8px;
}

.v3f9-more {
  font-size: 1.2rem;
  color: var(--v3f9-pink);
}

/* ===== Category tabs (visual only) ===== */
.v3f9-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.v3f9-cats::-webkit-scrollbar { display: none; }

.v3f9-cat-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 1.2rem;
  border-radius: 16px;
  background: var(--v3f9-card-bg);
  color: var(--v3f9-text-dim);
  border: 1px solid var(--v3f9-border);
  white-space: nowrap;
}

.v3f9-cat-section {
  margin-bottom: 18px;
}

.v3f9-cat-section h2 {
  font-size: 1.5rem;
  color: var(--v3f9-pink);
  margin: 14px 0 10px;
  padding-left: 4px;
}

/* ===== Game grid ===== */
.v3f9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.v3f9-card {
  display: block;
  background: var(--v3f9-card-bg);
  border: 1px solid var(--v3f9-border);
  border-radius: var(--v3f9-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.v3f9-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--v3f9-accent);
}

.v3f9-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #2a1f3a;
}

.v3f9-card-name {
  font-size: 1.1rem;
  color: var(--v3f9-text);
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Info blocks ===== */
.v3f9-block {
  background: var(--v3f9-card-bg);
  border: 1px solid var(--v3f9-border);
  border-radius: var(--v3f9-radius);
  padding: 14px;
  margin-bottom: 14px;
}

.v3f9-block h2 {
  font-size: 1.5rem;
  color: var(--v3f9-accent);
  margin-bottom: 8px;
}

.v3f9-block h3 {
  font-size: 1.3rem;
  color: var(--v3f9-pink);
  margin: 10px 0 6px;
}

.v3f9-block p {
  font-size: 1.2rem;
  color: var(--v3f9-text-dim);
  margin-bottom: 8px;
}

.v3f9-block ul {
  padding-left: 18px;
  margin: 6px 0;
}

.v3f9-block li {
  font-size: 1.2rem;
  color: var(--v3f9-text-dim);
  margin-bottom: 5px;
}

/* ===== Promo CTA ===== */
.v3f9-cta {
  background: linear-gradient(120deg, var(--v3f9-primary), var(--v3f9-accent));
  border-radius: var(--v3f9-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}

.v3f9-cta h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
}

.v3f9-cta p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}

/* ===== Testimonials ===== */
.v3f9-testi {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.v3f9-testi::-webkit-scrollbar { display: none; }

.v3f9-testi-item {
  flex: 0 0 80%;
  background: var(--v3f9-card-bg);
  border: 1px solid var(--v3f9-border);
  border-radius: var(--v3f9-radius);
  padding: 12px;
}

.v3f9-testi-name {
  font-size: 1.2rem;
  color: var(--v3f9-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.v3f9-testi-text {
  font-size: 1.1rem;
  color: var(--v3f9-text-dim);
}

/* ===== Payment ===== */
.v3f9-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v3f9-pay-item {
  background: var(--v3f9-bg-alt);
  border: 1px solid var(--v3f9-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  color: var(--v3f9-text-dim);
}

/* ===== Footer ===== */
.v3f9-footer {
  background: #181020;
  border-top: 1px solid var(--v3f9-border);
  padding: 18px 14px 24px;
  color: var(--v3f9-text-dim);
}

.v3f9-footer-brand {
  font-size: 1.25rem;
  color: var(--v3f9-accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.v3f9-footer p {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.v3f9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.v3f9-footer-links a {
  font-size: 1.1rem;
  color: var(--v3f9-pink);
  padding: 4px 10px;
  border: 1px solid var(--v3f9-border);
  border-radius: 14px;
}

.v3f9-copyright {
  font-size: 1.05rem;
  color: #888;
  margin-top: 10px;
  border-top: 1px dashed var(--v3f9-border);
  padding-top: 10px;
}

/* ===== Bottom nav ===== */
.v3f9-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #2a1f3a, #1a1226);
  border-top: 1px solid var(--v3f9-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.v3f9-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v3f9-text-dim);
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
  gap: 2px;
}

.v3f9-bnav-btn:active {
  transform: scale(0.92);
  color: var(--v3f9-accent);
}

.v3f9-bnav-btn .v3f9-bnav-icon {
  font-size: 22px;
  line-height: 1;
}

.v3f9-bnav-btn .v3f9-bnav-label {
  font-size: 1rem;
}

.v3f9-bnav-active {
  color: var(--v3f9-accent);
}

/* Desktop: hide bottom nav and expand layout */
@media (min-width: 769px) {
  .v3f9-bnav { display: none; }
  body { max-width: 768px; }
}

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