:root {
      --primary-color: #7c3aed;
      --primary-light: #a855f7;
      --secondary-color: #c084fc;
      --accent-color: #f59e0b;
      --text-light: #f5f3ff;
      --text-muted: #c4b5fd;
      --border-bright: rgba(168, 85, 247, 0.55);
      --bg-deep: #1a0a2e;
      --bg-mid: #22103a;
      --bg-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #c084fc 100%);
    }

    * { box-sizing: border-box; }

    html {
      height: 100%;
    }

    body {
      font-family: 'Cairo', sans-serif;
      background:
        radial-gradient(clamp(400px, 85vw, 1200px) clamp(280px, 50vh, 700px) at 85% -10%, rgba(168, 85, 247, 0.2), transparent 60%),
        radial-gradient(clamp(320px, 70vw, 1000px) clamp(240px, 45vh, 600px) at 0% 100%, rgba(245, 158, 11, 0.12), transparent 65%),
        linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #2b0e46 100%);
      margin: 0;
      padding: clamp(10px, 2.5vw, 30px) clamp(12px, 3vw, 24px);
      padding-bottom: max(clamp(10px, 2.5vw, 30px), env(safe-area-inset-bottom, 0px));
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      min-height: 100dvh;
      width: 100%;
      color: var(--text-light);
    }

    #particles-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    .container {
      width: 100%;
      max-width: min(900px, calc(100vw - clamp(20px, 5vw, 48px)));
      background: linear-gradient(145deg, rgba(45, 26, 74, 0.88), rgba(34, 16, 58, 0.82));
      border-radius: clamp(14px, 2.2vw, 22px);
      box-shadow: 0 clamp(10px, 2.5vw, 18px) clamp(24px, 5vw, 44px) rgba(0,0,0,0.45), 0 0 30px rgba(124,58,237,0.18);
      padding: clamp(16px, 4vw, 32px) clamp(18px, 4.5vw, 42px);
      text-align: center;
      backdrop-filter: blur(12px);
      border: 1.5px solid var(--border-bright);
      position: relative;
      z-index: 1;
    }

    h1 {
      color: #fbbf24;
      margin: 0 0 clamp(18px, 4vw, 40px);
      font-size: clamp(1.15rem, 2.6vw + 0.5rem, 2.2em);
      line-height: 1.3;
      text-shadow: 0 2px 5px rgba(0,0,0,0.3);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: clamp(8px, 2vw, 16px);
    }

    .title-image {
      width: clamp(48px, 10vw, 70px);
      height: clamp(48px, 10vw, 70px);
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      flex-shrink: 0;
    }

    .teams-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(220px, 42vw, 300px)), 1fr));
      gap: clamp(12px, 2.5vw, 22px);
      margin-bottom: clamp(18px, 4vw, 40px);
    }

    .team-btn {
      background: var(--bg-gradient);
      color: white;
      border: 2px solid transparent;
      padding: clamp(11px, 2.2vw, 16px);
      border-radius: clamp(11px, 1.8vw, 16px);
      font-size: clamp(0.95rem, 1.7vw + 0.45rem, 1.3em);
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 6px 15px rgba(0,0,0,0.3);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: clamp(10px, 2vw, 16px);
      text-align: right;
    }

    .team-btn:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.4);
      border-color: var(--accent-color);
    }

    .team-btn::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
      opacity: 0;
      transition: opacity 0.3s;
    }

    .team-btn:hover::after {
      opacity: 1;
    }

    .team-image-inline {
      width: clamp(44px, 9vw, 60px);
      height: clamp(44px, 9vw, 60px);
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      flex-shrink: 0;
    }

    .team-name-text {
      flex: 1;
      text-align: right;
    }

    .no-answer-btn {
      background: linear-gradient(135deg, #757575 0%, #616161 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: clamp(10px, 2vw, 16px);
      padding: clamp(12px, 2.5vw, 18px) clamp(20px, 5vw, 40px);
      font-size: clamp(1rem, 2vw + 0.5rem, 1.4em);
      margin-top: clamp(6px, 1.5vw, 12px);
      width: 100%;
      max-width: min(520px, 100%);
      margin-left: auto;
      margin-right: auto;
    }

    .no-answer-btn:hover {
      /* تغيير لون التحويم لدرجة أغمق من الرمادي */
      background: linear-gradient(135deg, #616161 0%, #424242 100%);
    }

    .sad-face-image {
      width: clamp(38px, 8vw, 50px);
      height: clamp(38px, 8vw, 50px);
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      flex-shrink: 0;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .container {
      animation: fadeIn 0.8s ease-out;
    }

    @media (max-height: 520px) {
      h1 {
        margin-bottom: clamp(10px, 2vh, 18px);
      }

      .teams-list {
        margin-bottom: clamp(10px, 2vh, 20px);
      }
    }

    @media (max-width: 380px) {
      body {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
      }
    }
