* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    outline: none!important;
    -webkit-tap-highlight-color: transparent
}

*:focus,*:focus-visible,*:active {
    outline: none!important
}

        html, body {
       
            background-color: #121929;
            font-family: 'Rubik', sans-serif;
            color: #333;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: stretch; /* Rozciąga kontener na pełną wysokość */
        }

        /* Główny kontener - rozciągnięty od góry do dołu, bez rogów i marginesów */
.game-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url(img/s1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    border-radius: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
        /* Nagłówek i Banner */
        .header {
            padding: 25px 15px 10px 15px;
            text-align: center;
            position: relative;
        }

        .logo-title img{

        }

        .logo-subtitle {
            background-color: #1a498b;
            color: #ffffff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 12px;
            display: inline-block;
            margin-top: -5px;
            letter-spacing: 0.5px;
            border: 2px solid #ffffff;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
            text-transform: uppercase;
        }

     
        /* Przyciski Akcji */
        .menu-list {
            padding: 5px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: auto; /* Dociąga menu do dołu ekranu */
        }

        .menu-card {
            display: flex;
            align-items: center;
            padding: 4px 11px;
            border-radius: 16px;
            text-decoration: none;
            color: white;
            position: relative;
            box-shadow: 0 6px 0px rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.4);
            transition: transform 0.1s ease, filter 0.2s ease;
            border: 2px solid rgba(255, 255, 255, 0.4);
            overflow: hidden;
        }

        .menu-card:active {
            transform: translateY(3px);
            box-shadow: 0 3px 0px rgba(0,0,0,0.2);
        }

        /* Koło Pokeball w tle kafelka */
        .menu-card::after {
            content: '';
            position: absolute;
            right: 20px;
            width: 90px;
            height: 90px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            pointer-events: none;
        }

        /* Kolory kafelków */
        .card-green {
            background: linear-gradient(180deg, #51ca60 0%, #2e963b 100%);
            border-color: #24752e;
        }

        .card-blue {
            background: linear-gradient(180deg, #3ba8ff 0%, #176fc7 100%);
            border-color: #105296;
        }

        .card-orange {
            background: linear-gradient(180deg, #ffaa2b 0%, #e67300 100%);
            border-color: #b35900;
        }

        .card-purple {
            background: linear-gradient(180deg, #a755ff 0%, #6f21c2 100%);
            border-color: #531793;
        }

        /* Ikony i Tekst */
        .card-icon {
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 14px;
            flex-shrink: 0;
        }

        .card-icon img {
          
            height: 28px;

        }

        .card-content {
            flex-grow: 1;
            z-index: 1;
        }

        .card-title {
            font-family: 'Poppins', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1.2;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        .card-desc {
            font-size: 0.78rem;
            opacity: 0.9;
            margin-top: 2px;
            font-weight: 400;
        }

        .card-arrow {
            font-size: 1.4rem;
            font-weight: 900;
            opacity: 0.8;
            margin-left: 10px;
            z-index: 1;
        }

        @media (max-width: 380px) {
            .logo-title { font-size: 1.8rem; }
            .speech-bubble h2 { font-size: 1.1rem; }
            .speech-bubble p { font-size: 0.8rem; }
            .card-title { font-size: 1rem; }
        }
		
		
		
	/* --- OKNO POPUP (MODAL) --- */
.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: calc(100% - 32px);
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

.modal-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* PRZYCISK ZAMKNIĘCIA (X) */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f0f2f5;
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e4e6eb;
  color: #000;
}

/* NAGŁÓWEK MODALA */
.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.pokeball-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #ee1515 50%, #ffffff 50%);
  border: 3px solid #222;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pokeball-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #222;
  transform: translateY(-50%);
}

.pokeball-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid #222;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1c2536;
  font-weight: 800;
}

.modal-header p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

/* FORMULARZ */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  cursor: pointer;
}

.forgot-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* WYBÓR STARTERA */
.starter-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.starter-option input {
  display: none;
}

.starter-box {
  padding: 8px 4px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.starter-option input:checked + .starter-box.grass {
  border-color: #22c55e;
  background: #dcfce7;
  color: #15803d;
}

.starter-option input:checked + .starter-box.fire {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
}

.starter-option input:checked + .starter-box.water {
  border-color: #3b82f6;
  background: #dbeafe;
  color: #1d4ed8;
}

/* PRZYCISKI SUBMIT */
.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, filter 0.15s;
}

.submit-btn:active {
  transform: scale(0.98);
}

.btn-green {
  background: linear-gradient(180deg, #47d159 0%, #2bb03c 100%);
  border-bottom: 3px solid #1e872c;
}

.btn-blue {
  background: linear-gradient(180deg, #3aa0ff 0%, #1a7fe0 100%);
  border-bottom: 3px solid #125fb0;
}

/* STOPKA MODALA */
.modal-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.modal-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}	