/**
 * Playtime Gameplay - Theme Stylesheet
 * CSS Class Prefix: uie9-
 * Mobile-first responsive design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --uie9-primary: #FF8A80;
  --uie9-secondary: #4B0082;
  --uie9-bg: #3A3A3A;
  --uie9-bg-dark: #2A2A2A;
  --uie9-text: #FFB3BA;
  --uie9-text-light: #FFD5DA;
  --uie9-accent: #FF8A80;
  --uie9-accent-hover: #FF6B6B;
  --uie9-card-bg: #4A4A4A;
  --uie9-border: #5A5A5A;
  --uie9-white: #FFFFFF;
  --uie9-shadow: rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

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

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--uie9-text);
  background-color: var(--uie9-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--uie9-primary);
  text-decoration: none;
}

a:hover {
  color: var(--uie9-accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* === Header === */
.uie9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--uie9-bg-dark), #1A1A2E);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--uie9-secondary);
  height: 5.6rem;
}

.uie9-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.uie9-logo {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  object-fit: contain;
}

.uie9-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--uie9-primary);
  white-space: nowrap;
}

.uie9-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.uie9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 3.6rem;
  min-width: 4.4rem;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.uie9-btn-register {
  background: linear-gradient(135deg, var(--uie9-primary), var(--uie9-accent-hover));
  color: var(--uie9-bg-dark);
}

.uie9-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 138, 128, 0.4);
}

.uie9-btn-login {
  background: transparent;
  color: var(--uie9-primary);
  border: 2px solid var(--uie9-primary);
}

.uie9-btn-login:hover {
  background: var(--uie9-primary);
  color: var(--uie9-bg-dark);
}

.uie9-menu-toggle {
  background: none;
  border: none;
  color: var(--uie9-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.uie9-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--uie9-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.uie9-menu-active {
  right: 0;
}

.uie9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.uie9-overlay-active {
  display: block;
}

.uie9-menu-close {
  background: none;
  border: none;
  color: var(--uie9-primary);
  font-size: 2.8rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uie9-menu-nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--uie9-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--uie9-border);
  transition: color 0.2s;
}

.uie9-menu-nav a:hover {
  color: var(--uie9-primary);
}

/* === Main Content === */
.uie9-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .uie9-main {
    padding-bottom: 8rem;
  }
}

/* === Slider / Banner === */
.uie9-slider-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0 0 1.2rem 1.2rem;
}

.uie9-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.uie9-slider {
  min-width: 100%;
  position: relative;
}

.uie9-slider img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.uie9-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.uie9-slider-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.uie9-dot-active {
  background: var(--uie9-primary);
  transform: scale(1.2);
}

/* === Sections === */
.uie9-section {
  padding: 2rem 1.2rem;
}

.uie9-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uie9-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--uie9-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.uie9-section-title i,
.uie9-section-title .material-icons {
  font-size: 2rem;
}

/* === Game Grid === */
.uie9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.uie9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.uie9-game-item:hover {
  transform: scale(1.05);
}

.uie9-game-item:active {
  transform: scale(0.97);
}

.uie9-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid var(--uie9-border);
  margin-bottom: 0.4rem;
  background: var(--uie9-card-bg);
}

.uie9-game-name {
  font-size: 1.1rem;
  color: var(--uie9-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Content Cards === */
.uie9-card {
  background: var(--uie9-card-bg);
  border-radius: 1.2rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--uie9-border);
}

.uie9-card h2 {
  font-size: 1.7rem;
  color: var(--uie9-primary);
  margin-bottom: 1rem;
}

.uie9-card h3 {
  font-size: 1.5rem;
  color: var(--uie9-text-light);
  margin-bottom: 0.8rem;
}

.uie9-card p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: var(--uie9-text);
}

.uie9-card ul {
  padding-left: 1.6rem;
  list-style: disc;
}

.uie9-card ul li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* === Promo Link === */
.uie9-promo-link {
  display: inline-block;
  color: var(--uie9-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.uie9-promo-link:hover {
  color: var(--uie9-accent-hover);
}

.uie9-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--uie9-primary), #FF6B6B);
  color: var(--uie9-bg-dark);
  font-weight: 700;
  padding: 1rem 2.4rem;
  border-radius: 2.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.25s ease;
  min-height: 4.4rem;
}

.uie9-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 138, 128, 0.5);
}

/* === Footer === */
.uie9-footer {
  background: var(--uie9-bg-dark);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--uie9-secondary);
}

.uie9-footer-intro {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: var(--uie9-text);
}

.uie9-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  justify-content: center;
}

.uie9-footer-partners img {
  height: 2.4rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.uie9-footer-partners img:hover {
  opacity: 1;
}

.uie9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-bottom: 1.6rem;
  justify-content: center;
}

.uie9-footer-links a {
  font-size: 1.2rem;
  color: var(--uie9-text);
}

.uie9-footer-links a:hover {
  color: var(--uie9-primary);
}

.uie9-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--uie9-border);
  padding-top: 1.2rem;
  border-top: 1px solid var(--uie9-border);
}

/* === Bottom Navigation === */
.uie9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2A2A3E, #1A1A2E);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  border-top: 2px solid var(--uie9-secondary);
  box-shadow: 0 -4px 12px var(--uie9-shadow);
}

.uie9-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--uie9-text);
  cursor: pointer;
  min-width: 6rem;
  min-height: 5.6rem;
  padding: 0.4rem;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.uie9-nav-btn i,
.uie9-nav-btn .material-icons,
.uie9-nav-btn ion-icon,
.uie9-nav-btn bi {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.uie9-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

.uie9-nav-btn:hover,
.uie9-nav-btn-active {
  color: var(--uie9-primary);
  transform: scale(1.08);
}

.uie9-nav-btn:active {
  transform: scale(0.95);
}

.uie9-nav-btn-active {
  position: relative;
}

.uie9-nav-btn-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--uie9-primary);
  border-radius: 2px;
}

/* === Utility Classes === */
.uie9-text-center {
  text-align: center;
}

.uie9-mt-1 {
  margin-top: 0.8rem;
}

.uie9-mt-2 {
  margin-top: 1.6rem;
}

.uie9-mb-1 {
  margin-bottom: 0.8rem;
}

.uie9-mb-2 {
  margin-bottom: 1.6rem;
}

.uie9-hidden {
  display: none !important;
}

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

/* === Desktop Adjustments === */
@media (min-width: 769px) {
  .uie9-bottom-nav {
    display: none;
  }

  .uie9-header .uie9-menu-toggle {
    display: none;
  }

  .uie9-container {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .uie9-header .uie9-desktop-nav {
    display: none;
  }
}

/* === FAQ Accordion === */
.uie9-faq-item {
  border-bottom: 1px solid var(--uie9-border);
  padding: 1.2rem 0;
}

.uie9-faq-q {
  font-weight: 700;
  color: var(--uie9-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.uie9-faq-a {
  color: var(--uie9-text);
  line-height: 1.6;
  padding-left: 1rem;
}

/* === Guide Steps === */
.uie9-step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  align-items: flex-start;
}

.uie9-step-num {
  background: var(--uie9-secondary);
  color: var(--uie9-primary);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.uie9-step-text {
  flex: 1;
}

.uie9-step-text h3 {
  font-size: 1.4rem;
  color: var(--uie9-text-light);
  margin-bottom: 0.4rem;
}

.uie9-step-text p {
  font-size: 1.3rem;
  line-height: 1.5;
}
