* {
    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ść */
			    background: url('img/tlo.png') rgb(240, 239, 239);
        }
a {text-decoration: none;}
        /* Główny kontener - rozciągnięty od góry do dołu, bez rogów i marginesów */
        .game-container {
			    padding-bottom: 64px;
width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-image: url('img/s0.jpg'); /* Ścieżka do Twojego zdjęcia */
    background-size: cover;          /* Wypełnia całą przestrzeń */
    background-position: center;     /* Środkuje grafikę */
    background-repeat: no-repeat;    /* Zapobiega powtarzaniu grafiki */
    background-attachment: fixed;    /* Tło stoi w miejscu podczas przewijania */
    border-radius: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    position: relative;
  
    flex-direction: column;
    justify-content: space-between;
        }

        /* Nagłówek i Banner */
        .header {
            padding: 25px 15px 10px 15px;
            text-align: center;
            position: relative;
        }
		
		
		
		.header_dex{
height: 54px;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #013ea3;
    border-bottom: 2px solid #051f6c;
	    overflow: hidden;
			
		}
	.header_dex::before {
		 z-index: 1;
content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -8px;
    height: 10px;
    background: #0076ff;
    filter: blur(12px);
    opacity: 0.7;
    border-radius: 50%;
 
}

	.header_dex::after {
    z-index: 1;
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    mask-composite: exclude;
    pointer-events: none;
    height: 1px;
    background: linear-gradient(90deg, #013ea3 0%, #0076ff 15%, #0076ff 50%, #0076ff 85%, #013ea3 100%);
	
	}

	
		.header_dex .title{
			
		    font-weight: 900;
  font-size: 20px;
    text-shadow: 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 1px 4px #041238;
    color: #ffffff;

		}
		
.header_dex .bal{
		    width: 50px;
    height: 54px;	
			
		}
		
		
	.header_dex .bal img{
		height: 36px;
    width: 36px;
    margin-top: 9px;
    margin-left: 6px;
			
		}	
        .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-czerwony {
           background: linear-gradient(180deg, #ff4e50 0%, #d91b24 100%);
border-color: #8c0d12;
        }
		
        .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;
        }


 .card-czerwony2 {
background: linear-gradient(180deg, #c41e28 0%, #7a0c13 100%);
border-color: #4a0509;
        }

        /* 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: 34px;

        }

        .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;
}	



.poki_chip_menu_container {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  white-space: nowrap;
  user-select: none;
  cursor: grab;
  
  /* Płynne przewijanie dotykiem na telefonach */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  
  /* Ukrycie paska przewijania */
  scrollbar-width: none;

  /* === EFEKT ZANIKANIA PO LEWEJ I PRAWEJ STRONIE === */
  /* Zmienna maska gradientowa: od 0% (przezroczysty), przez w pełni widoczny (od 15% do 85%), do przezroczystego na końcu (100%) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.poki_chip_menu_container::-webkit-scrollbar {
  display: none;
}

.poki_chip_menu_container:active {
  cursor: grabbing;
}



/* Bazowy wygląd przycisku (nieaktywny) */
.poki_chip_menu_item {
    padding: 8px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    background-color: #1272f3;
    border: 3px solid #021742;
    border-radius: 12px;
    box-shadow: inset 0 3px 0 #5fb0ff, inset 0 -3px 0 #0553bb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform .1s;
    box-sizing: border-box;
}



.poki_chip_menu_item_active{
 background-color: #013ea3;
	
}

/* Efekt naciśnięcia */
.poki_chip_menu_item:active {
  transform: scale(0.95);
}

.app-background {
    margin: 5px auto;
}
.regions-list {
display: flex;
    flex-direction: column;
    gap: 4px;
    width: 96%;
    margin: 0 auto;
}

/* Kafelek - biała obwódka i niebieskawy gradient */
.region-card {
  display: flex;
  align-items: center;
  
  /* Główne tło kafelka: niebieskawy gradient (od jaśniejszego u góry do nieco ciemniejszego na dole) */
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  
  /* Czysto biała, wyrazista obwódka */
  border: 3.5px solid #ffffff;
  border-radius: 20px;
  
  padding: 6px 14px 6px 6px;
  text-decoration: none;
  
  /* Delikatny cień zewnętrzny pod białą ramką */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}



/* Obrazek po lewej z własnym zaokrągleniem */
.region-image {
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
    text-align: center;
}

.region-image img {
height: 100%;
    object-fit: cover;
}

.region-content {
  flex-grow: 1;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.region-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.1;
}

/* Nowy element - krótki opis */
.region-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
  margin-top: 2px;
  line-height: 1.2;
}

.region-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 3px;
}

/* Niebieska strzałka po prawej stronie */
.region-arrow {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0077ff;
  margin-left: auto;
  padding-left: 8px;
}





 /* --- Dolny Pasek --- */
        .bottom-bar {
height: 64px;
    background-color: #013ea3;
    border-top: 2px solid #051f6c;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
    overflow: hidden;

    /* Kluczowe właściwości dla fixed wewnątrz wyśrodkowanego kontenera max-width */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
        }
		
		        .bottom-bar:after {
content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    top: -6px;
    height: 10px;
    background: #0076ff;
    filter: blur(8px);
    opacity: 1;
    border-radius: 50%;
        }
		
		        .bottom-bar:before {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    bottom: 0;
    mask-composite: exclude;
    pointer-events: none;
    height: 1px;
    background: linear-gradient(90deg, #013ea3 0%, #0076ff 15%, #0076ff 50%, #0076ff 85%, #013ea3 100%);
    border-radius: 10px;
        }
        .nav-item {   cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 0px 2px #061c55, 0px 1px 4px #041238;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;}
	
	
	.nav-item img {
  width: 32px;        /* Dostosuj szerokość ikony wedle potrzeb */
  height: auto;
  margin-bottom: 2px; /* Odstęp pomiędzy obrazkiem a tekstem */
}
/* Kontener dla całej siatki Pokémonów */
.siatka_pokemon_dex_grid {
 display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    margin: 0 auto;
    justify-items: center; /* Centruje pojedyncze kafelki w ich kolumnach */
    align-items: center;
}

/* Klasy typów — zewnętrzny cień dopasowany do typu */
.type-normal   { --type-glow: rgb(168 167 122); }
.type-fire     { --type-glow: rgb(238 129 48); }
.type-water    { --type-glow: rgb(99 144 240); }
.type-electric { --type-glow: rgb(247 208 44); }
.type-grass    { --type-glow: rgb(122 199 76); }
.type-ice      { --type-glow: rgb(150 217 214); }
.type-fighting { --type-glow: rgb(194 46 40); }
.type-poison   { --type-glow: rgb(163 62 161); }
.type-ground   { --type-glow: rgb(226 191 101); }
.type-flying   { --type-glow: rgb(169 143 243); }
.type-psychic  { --type-glow: rgb(249 85 135); }
.type-bug      { --type-glow: rgb(166 185 26); }
.type-rock     { --type-glow: rgb(182 161 54); }
.type-ghost    { --type-glow: rgb(115 87 151); }
.type-dragon   { --type-glow: rgb(111 53 252); }
.type-dark     { --type-glow: rgb(112 87 70); }
.type-steel    { --type-glow: rgb(183 183 206); }
.type-fairy    { --type-glow: rgb(214 133 173); }

.siatka_pokemon_dex_card {
    /* Płynny, jasnoniebieski gradient całego kafelka jak na zdjęciu */
    background: linear-gradient(to bottom, #f1f7ff, #cfe5ff);
    border: 2px solid #ffffff;
    border-radius: 16px;
    text-align: center;
    padding: 10px 8px;
    width: 110px;
    box-shadow: inset 0 1px 3px rgb(0 53 255 / 90%), 0 3px 6px var(--type-glow);
    display: inline-block;
    box-sizing: border-box;
}

/* Obrazek Pokémona */
.siatka_pokemon_dex_card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Numer ID (ciemnoniebieski, pogrubiony) */
.siatka_pokemon_dex_id {
    font-size: 11px;
    color: #2b4b73;
    font-weight: 800;
    margin-bottom: 1px;
}

/* Nazwa Pokémona (ciemnoniebieska/grafitowa, pogrubiona) */
.siatka_pokemon_dex_name {
    font-size: 13px;
    font-weight: 800;
    color: #1b365d;
}

.tlo_dex{
	background: #c4defd;
	min-height: 100%;

}

.siatka_pokemon_dex_img_wrap {
    width: 76px;
    height: 76px;
    background: #b4d6fd5e;
    border-radius: 50%;
    margin: 0 auto 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.siatka_pokemon_dex_img_wrap img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}


/* Styl dla paska paginacji przypominający ten ze zdjęcia */
.siatka_pokemon_paginacja_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #d6edff, #8abff0);
    border: 2px solid #ffffff;
    border-radius: 25px;
    max-width: 220px;
    margin: 15px auto;
    padding: 3px;
    box-shadow: 0 3px 6px rgba(0, 50, 100, 0.15);
}

.siatka_pag_btn {
    background: linear-gradient(to bottom, #2d81db, #165ba4);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #7cb9e8;
}

.siatka_pag_btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.siatka_pag_btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.siatka_pag_info {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1b365d;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}