/* AIGame29 - World Style Template - Unique Design */

:root {
  --orange: #ff6b35;
  --orange-dark: #e55a2b;
  --blue: #004e89;
  --blue-light: #1a659e;
  --yellow: #ffd23f;
  --green: #06a77d;
  --bg-base: #f5f5f5;
  --bg-panel: #ffffff;
  --bg-card: #fafafa;
  --bg-hover: #f0f0f0;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #8a8a8a;
  --border-soft: #e0e0e0;
  --border-medium: #d0d0d0;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-base);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.game-world {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.world-header {
  background: var(--bg-panel);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-box {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.world-logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-search {
  display: flex;
  gap: 8px;
}

.mini-input {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 0.95rem;
  width: 220px;
  outline: none;
  font-family: inherit;
  transition: all 0.3s;
}

.mini-input:focus {
  width: 280px;
  border-color: var(--orange);
}

.mini-btn {
  padding: 10px 24px;
  background: var(--orange);
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.mini-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.nav-burger {
  display: none;
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-burger:hover {
  background: var(--orange);
  color: white;
}

/* Category Strip */
.category-strip {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-soft);
  padding: 0;
}

.strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip-inner::-webkit-scrollbar {
  display: none;
}

.strip-item {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s;
}

.strip-item:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--bg-hover);
}

.strip-item.current {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* World Container */
.world-container {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px;
}

/* Hero Block */
.hero-block {
  margin-bottom: 48px;
}

.hero-main {
  background: var(--bg-panel);
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  box-shadow: var(--shadow-strong);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 78, 137, 0.1));
}

.hero-text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: var(--bg-panel);
}

.hero-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  width: fit-content;
}

.hero-headline {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
}

.fact {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.fact strong {
  color: var(--text-dark);
  margin-right: 8px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 4px;
  width: fit-content;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}

.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.stat-cell {
  background: var(--bg-panel);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.stat-cell:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.cell-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 8px;
}

.cell-name {
  font-size: 0.95rem;
  color: var(--text-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections Wrapper */
.sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.game-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-soft);
}

.top-left {
  flex: 1;
}

.section-name {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

.top-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.top-link:hover {
  color: var(--orange-dark);
  transform: translateX(4px);
}

.games-flow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

/* Flow Item */
.flow-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.flow-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.flow-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.flow-picture {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-hover);
}

.flow-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.flow-item:hover .flow-picture img {
  transform: scale(1.15);
}

.flow-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.flow-item:hover .flow-shade {
  opacity: 1;
}

.flow-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  opacity: 0;
  transition: all 0.3s;
}

.flow-item:hover .flow-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.flow-data {
  padding: 18px;
}

.flow-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flow-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.flow-type {
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.flow-stars {
  color: var(--yellow);
  font-weight: 700;
}

/* Footer */
.world-footer {
  background: var(--bg-panel);
  border-top: 3px solid var(--orange);
  margin-top: auto;
  padding: 56px 32px 28px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-box {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}

.footer-part {
  flex: 1;
}

.part-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.part-text {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 20px;
}

.part-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-item {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.social-item:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.part-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.part-list {
  list-style: none;
}

.part-list li {
  margin-bottom: 12px;
}

.part-list a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.part-list a:hover {
  color: var(--orange);
}

.footer-end {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-panel);
  border-right: 3px solid var(--orange);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
}

.mobile-nav.show {
  left: 0;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--border-soft);
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--orange);
}

.nav-close {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-close:hover {
  background: var(--orange);
  color: white;
}

.nav-body {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.nav-option {
  padding: 16px 24px;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.nav-option:hover {
  background: var(--bg-card);
  color: var(--orange);
  border-left-color: var(--orange);
  padding-left: 28px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
}

.nav-overlay.show {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 32px;
  }

  .games-flow {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-box {
    padding: 16px 20px;
  }

  .mini-search {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .category-strip {
    display: none;
  }

  .world-container {
    padding: 24px 16px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-section {
    padding: 24px;
  }

  .games-flow {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .games-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .section-name {
    font-size: 1.5rem;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}
