/* imageGameLanding.css - النسخة الموحدة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: #ffffff; /* نفس لون imageGameLanding الأصلي */
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
}

/* Main Frame */
.frame {
  width: 100%;
  min-height: calc(100vh - 78px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Center Panel */
.panel {
  width: 100%;
  text-align: center;
  padding: 10px 20px 8px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Corner Decorations - تم أخذها من ملف LetterCellGameLanding كما هي */
.corner {
  position: absolute;
  width: clamp(60px, 8vw, 110px);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.corner-left {
  top: 0;
  left: 0;
}

.corner-right {
  bottom: 0;
  right: 0;
  width: clamp(80px, 10vw, 140px);
}
@media (max-width: 768px) {

  .nav-links {
    display: none !important;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    background: white;

    flex-direction: column;
    align-items: center;

    padding: 20px 0;
    gap: 20px;

    box-shadow: 0 10px 20px rgba(0,0,0,0.08);

    z-index: 99999;
  }

  .nav-links.active {
    display: flex !important;
  }
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  padding: 0;
  cursor: pointer;
}

.hamburger-btn::after {
  display: none !important;
}

.hamburger-btn span {
  width: 28px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  color: #4b5563;
}

@media (max-width: 768px) {

  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;

    width: 100%;
    background: white;

    flex-direction: column;
    align-items: center;

    gap: 20px;
    padding: 24px 0;

    box-shadow: 0 10px 20px rgba(0,0,0,0.08);

    z-index: 99999;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .corner {
    width: clamp(95px, 22vw, 140px);
  }

  .corner-right {
    width: clamp(115px, 26vw, 180px);
  }
}

/* GDG Icon - الحجم الأصلي في imageGameLanding */
.gdg-icon {
  width: 90px;
  margin-bottom: 15px;
  display: block;
  margin: 0 auto 10px;
}

/* Title - الحجم الضخم المطلوب 60px */
.title {
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.08;
}

/* Subtitle - حجم متناسق مع العنوان الضخم */
.subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: #777;
  margin-bottom: 30px;
}

/* Images Row - بدون تغيير */
.images-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

/* Game Images - بدون تغيير */
.game-image {
  width: clamp(108px, 11.5vw, 142px);
  height: clamp(108px, 11.5vw, 142px);
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Symbols - تكبير بسيط ليناسب العنوان */
.symbol {
  font-size: clamp(42px, 4.3vw, 62px);
  font-weight: 700;
  color: #111;
}

/* Start Button - لم يتم لمس التصميم الأصلي نهائياً */
.play-btn {
  background: linear-gradient(135deg, #4a8df6, #3b73d9);
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding: 10px 40px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(66,133,244,0.35);
  transition: 0.3s ease;
  margin-bottom: 0;
  margin-top: 0;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(66,133,244,0.45);
}

.buttons-group {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 16px;
}

.team-setup {
  width: min(680px, 92%);
  margin: 0 auto 45px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-field {
  text-align: center;
}

.team-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #303030;
  margin-bottom: 4px;
}

.team-field input {
  width: 100%;
  height: 40px;
  border: 2px solid #d7dfef;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-field input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

/* Return Home - لم يتم لمس التصميم الأصلي نهائياً */
.home-link {
  background: none;
  border: none;
  color: #4285F4;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .frame {
    min-height: calc(100vh - 72px);
  }

  .panel {
    padding: 18px 14px 14px;
  }

  .images-row {
    gap: 12px;
    margin-bottom: 20px;
  }

  .team-setup {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .play-btn {
    font-size: 17px;
    padding: 12px 34px;
  }

  .home-link {
    font-size: 17px;
  }
}

@media (max-height: 820px) {
  .gdg-icon {
    width: 74px;
    margin-bottom: 8px;
  }

  .subtitle {
    margin-bottom: 20px;
  }

  .images-row {
    margin-bottom: 18px;
  }

  .buttons-group {
    gap: 12px;
  }
}

/* ========== Level Selection ========== */
.level-section {
  width: min(820px, 94%);
  margin: 0 auto 24px;
  text-align: right;
}

.level-heading {
  font-size: 26px;
  font-weight: 800;
  color: #222;
  margin-bottom: 22px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
}

.levels-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.levels-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e4e9f5;
  background: #fff;
  color: #4285f4;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.levels-arrow:hover:not(:disabled) {
  background: #4285f4;
  color: #fff;
  border-color: #4285f4;
  transform: scale(1.08);
}

.levels-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.levels-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 210px;
  align-content: start;
}

.levels-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.levels-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.2s, transform 0.2s;
}

.levels-dot.active {
  background: #4285f4;
  transform: scale(1.3);
}

.levels-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 18px 0;
  font-size: 15px;
}

.levels-error {
  grid-column: 1 / -1;
  text-align: center;
  color: #ea4335;
  padding: 18px 0;
  font-size: 15px;
}

.level-card {
  background: #fff;
  border: 2px solid #e4e9f5;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: right;
  direction: rtl;
  position: relative;
}

.level-card:hover {
  border-color: #4285f4;
  box-shadow: 0 6px 20px rgba(66,133,244,0.15);
  transform: translateY(-2px);
}

.level-card.selected {
  border-color: #4285f4;
  background: linear-gradient(135deg, #f0f5ff, #fff);
  box-shadow: 0 6px 20px rgba(66,133,244,0.22);
}

.level-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 26px;
  height: 26px;
  background: #4285f4;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 26px;
  text-align: center;
}

.level-number {
  font-size: 10px;
  font-weight: 700;
  color: #4285f4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.level-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 2px;
}

.level-desc {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
  min-height: 0;
}

.level-meta {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
}

.play-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .levels-grid {
    grid-template-columns: 1fr 1fr;
  }
  .levels-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}
