body {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url("../images/games/pokemon_hunters/backgrounds/intro_background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
}

@font-face {
    font-family: "Pokemon Solid";
    src: url("../fonts/pokemon_hunters/Pokemon%20Solid.ttf") format("truetype");
    font-display: swap;
}

#game-title {
    width: min(100%, 1000px);
    height: 150px;
    margin: 0 auto 0.25rem;
    overflow: hidden;
    text-indent: -9999px;
    background:
        url("../images/games/pokemon_hunters/other/game_logo.png")
        center / contain no-repeat;
}

/* ===========================
   SCOREBOARD
=========================== */

#scoreboard {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin: 30px;

    flex-wrap: wrap;

    position: sticky;

    top: 0;

    z-index: 1000;

}

.team-box {
    min-width: 190px;
    max-width: 250px;

    background-image: url("../images/games/pokemon_hunters/other/scoreboard.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 10px;

    padding: 20px;

    text-align: center;

    transition: .3s;
    
    align-items: center;

}

.team-box h3 {
    width: 100%;
    text-align: center;  
}

.team-box p {

    font-size: 2rem;

    font-weight: bold;

    color: black;

    margin-top: 70px;

}

.active-team {

    border: 4px solid #22c55e;

    transform: scale(1.05);

}

#question_map {
    position: relative;
    width: 100%;
    max-width: 1584px;
    aspect-ratio: 1584 / 1104;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#clouds-1 {
    position: absolute;
    display: flex;
    align-items: center;
    left: 0%;
    top: 29%;
    width: 500px;
    height: 300px;
     animation: clouds-move-1 60s ease-in-out infinite alternate;
}

@keyframes clouds-move-1 {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(800px);
    }
}

#clouds-2 {
    position: absolute;
    display: flex;
    align-items: center;
    left: 70%;
    top: 56%;
    width: 500px;
    height: 300px;
    animation: clouds-move-2 80s ease-in-out infinite alternate;
}

@keyframes clouds-move-2 {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-1200px);
    }
}

#wind-tornado {
    background: transparent;
    position: absolute;
    display: flex;
    align-items: center;
    left: 63%;
    top: 20%;
    transform: scaleY(-1);
    width: 122px;
    height: 97px;
    opacity: 0.5;
}

#water-tornado {
    background: transparent;
    position: absolute;
    display: flex;
    align-items: center;
    left: 30%;
    top: 61%;
    width: 80px;
    height: 60px;
}

#lava {
    background: transparent;
    position: absolute;
    display: flex;
    align-items: center;
    left: 21%;
    top: 33%;
    width: 83px;
    height: 60px;
}

#smoke-explosion {
    background: transparent;
    position: absolute;
    display: flex;
    align-items: center;
    left: 69%;
    top: 33%;
    width: 110px;
    height: 60px;
}

#fire {
    background: transparent;
    position: absolute;
    display: flex;
    align-items: center;
    left: 69%;
    top: 37%;
    width: 110px;
    height: 60px;
}


.location-number,
.location-letter {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: white;

    border: 4px solid black;

    font-size: 24px;
    font-weight: bold;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.map-location {
    position: absolute;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    gap: 1px;
    animation: pin-bob 2s ease-in-out infinite alternate;
}

@keyframes pin-bob {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-6px);
    }
}

.map-location:hover {
    animation-play-state: paused;
    transform: scale(1.03);
}

.map-location.clicked {
    animation: pinFall 1s ease-in forwards;
}

@keyframes pinFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: translate(-5px, 15px) rotate(-5deg);
    }

    45% {
        transform: translate(10px, 100px) rotate(12deg);
    }

    100% {
        transform: translate(30px, 600px) rotate(35deg);
        opacity: 0;
        visibility: hidden;
    }
}

.question-location img {
    position: relative;
}

.special-location img {
    position: relative;
}

.question-location[data-question="1"] {
    left: 39%;
    top: 23%;
}

.question-location[data-question="2"] {
    left: 63%;
    top: 35%;
}

.question-location[data-question="3"] {
    left: 78%;
    top: 23%;
}

.question-location[data-question="4"] {
    left: 41%;
    top: 59%;
}

.question-location[data-question="5"] {
    left: 16%;
    top: 54%;
}

.question-location[data-question="6"] {
    left: 18%;
    top: 20%;
}

.question-location[data-question="7"] {
    left: 33%;
    top: 35%;
}

.question-location[data-question="8"] {
    left: 77%;
    top: 32%;
}

.question-location[data-question="9"] {
    left: 65%;
    top: 67%;
}

.question-location[data-question="10"] {
    left: 45%;
    top: 27%;
}

.question-location[data-question="11"] {
    left: 63%;
    top: 45%;
}

.question-location[data-question="12"] {
    left: 53%;
    top: 35%;
}

.question-location[data-question="13"] {
    left: 54%;
    top: 62%;
}

.question-location[data-question="14"] {
    left: 26%;
    top: 22%;
}

.question-location[data-question="15"] {
    left: 25%;
    top: 65%;
}

.question-location[data-question="16"] {
    left: 39%;
    top: 30%;
}

.question-location[data-question="17"] {
    left: 21%;
    top: 29%;
}

.question-location[data-question="18"] {
    left: 33%;
    top: 50%;
}

.question-location[data-question="19"] {
    left: 49%;
    top: 41%;
}

.question-location[data-question="20"] {
    left: 71%;
    top: 35%;
}

.question-location[data-question="21"] {
    left: 79%;
    top: 43%;
}

.question-location[data-question="22"] {
    left: 17%;
    top: 64%;
}

.question-location[data-question="23"] {
    left: 36%;
    top: 66%;
}

.question-location[data-question="24"] {
    left: 45%;
    top: 47%;
}

.question-location[data-question="25"] {
    left: 73%;
    top: 61%;
}

.question-location[data-question="26"] {
    left: 55%;
    top: 44%;
}

.question-location[data-question="27"] {
    left: 78%;
    top: 55%;
}

.question-location[data-question="28"] {
    left: 49%;
    top: 56%;
}

.question-location[data-question="29"] {
    left: 70%;
    top: 44%;
}

.question-location[data-question="30"] {
    left: 53%;
    top: 50%;
}

.question-location[data-question="31"] {
    left: 68%;
    top: 53%;
}

.question-location[data-question="32"] {
    left: 79%;
    top: 63%;
}

.question-location[data-question="33"] {
    left: 61%;
    top: 51%;
}

.question-location[data-question="34"] {
    left: 47%;
    top: 64%;
}

.question-location[data-question="35"] {
    left: 30%;
    top: 58%;
}

.question-location[data-question="36"] {
    left: 14%;
    top: 32%;
}

.question-location[data-question="37"] {
    left: 41%;
    top: 38%;
}

.question-location[data-question="38"] {
    left: 21%;
    top: 70%;
}

.question-location[data-question="39"] {
    left: 75%;
    top: 69%;
}

.question-location[data-question="40"] {
    left: 65%;
    top: 21%;
}

.question-location[data-question="41"] {
    left: 32%;
    top: 25%;
}

.question-location[data-question="42"] {
    left: 53%;
    top: 24%;
}

.question-location[data-question="43"] {
    left: 83%;
    top: 41%;
}


.question-location[data-question="44"] {
    left: 27%;
    top: 45%;
}

.special-location[data-special="A"]{
    left: 12%;
    top: 22%;
}

.special-location[data-special="B"]{
    left: 61%;
    top: 56%;
}

.special-location[data-special="C"]{
    left: 59%;
    top: 68%;
}

/*=============================
REWARD OVERLAY
=============================*/

#reward-overlay{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.75);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:2500;

}

#reward-overlay.show{

    opacity:1;

    visibility:visible;

}

/*=============================
REWARD WINDOW
=============================*/

#reward-window{

    position: relative;
    width:95%;

    height:90%;

    overflow-y:auto;

    overflow-x:hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius:20px;

    padding:40px;

    box-shadow:0 20px 60px rgba(0,0,0,.5);

}

#reward-window h2{

    text-align:center;

    margin-bottom:40px;

}

/*=============================
REWARD CONTENT
=============================*/

#reward-content{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:60px;

}

.character {
    position: absolute;
    width: auto;
    height: 66%;
    top: 29%;
    left: 10%;
}

.character-arm-1 {
    position: absolute;
    width: auto;
    height: 24%;
    top: 40%;
    left: 8%;
    transform-origin: 90% 80%;
    animation: prepareThrow 0.8s ease-in-out infinite;
}

@keyframes prepareThrow {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-18deg);
    }

    50% {
        transform: rotate(-9deg);
    }

    75% {
        transform: rotate(-20deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

.character-arm-2 {
    position: absolute;
    width: auto;
    height: 31%;
    top: 56%;
    left: 10%;  
}

#question-overlay {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
}

#question-overlay.show {
    visibility: visible;
    opacity: 1;
}

#question-card {
    width: min(100%, 740px);
    padding: clamp(1rem, 4vw, 2rem);
    color: #fff;
    text-align: center;
    border-radius: 20px;
    background: transparent;
}

#instruction {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 3vw, 2rem);
    background-image: url("../images/games/pokemon_hunters/other/answer_bar.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

#question-box {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.91);
    color: var(--navy);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
}

#question-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

#answer-box {
    min-height: 48px;
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background:
        url("../images/games/pokemon_hunters/other/answer_bar.png")
        center / cover;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
}

#question-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

#correct-btn,
#incorrect-btn {
    width: 62px;
    height: 62px;
    border: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#correct-btn {
    background-image:
        url("../images/games/exploding_kittens/buttons/correct_button.png");
}

#incorrect-btn {
    background-image:
        url("../images/games/exploding_kittens/buttons/incorrect_button.png");
}

.pokemon {
    position: absolute;
    width: auto;
}

.pokeball {
    position: absolute;
    width: 8%;
    height: 25%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.pokeball[data-index="0"] {
    bottom: 6%;
    left: 61%;
}

.pokeball[data-index="1"] {
    bottom: 6%;
    left: 73%;
}

.pokeball[data-index="2"] {
    bottom: 6%;
    left: 85%;
}

.pokeball img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pokeball:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.pokeball-glow-basic {
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.7),
        0 0 16px rgba(255, 255, 255, 0.5);
}

.pokeball-glow-good {
    box-shadow:
        0 0 10px rgba(0, 255, 100, 0.8),
        0 0 22px rgba(0, 255, 100, 0.6);
}

.pokeball-glow-great {
    box-shadow:
        0 0 10px rgba(50, 150, 255, 0.9),
        0 0 25px rgba(50, 150, 255, 0.7);
}

.pokeball-glow-risky {
    box-shadow:
        0 0 10px rgba(180, 70, 255, 0.9),
        0 0 28px rgba(180, 70, 255, 0.7);
}

.pokeball-glow-elite {
    box-shadow:
        0 0 12px rgba(255, 210, 50, 1),
        0 0 30px rgba(255, 210, 50, 0.8),
        0 0 50px rgba(255, 180, 0, 0.5);
}

.pokeball-throw {
    position: absolute;
    z-index: 20;
    pointer-events: none;

    width: 97%;

    --throw-x: 0px;
    --throw-y: 0px;
}

.pokeball-throw.throwing {
    animation: pokeballFlight 0.6s ease-out forwards;
}

@keyframes pokeballFlight {

    0% {
        transform:
            translate(0, 0)
            rotate(0deg)
            scale(1);
    }

    50% {
        transform:
            translate(
                calc(var(--throw-x) * 0.5),
                calc(var(--throw-y) * 0.5 - 100px)
            )
            rotate(540deg)
            scale(0.97);
    }

    100% {
        transform:
            translate(
                var(--throw-x),
                var(--throw-y)
            )
            rotate(1080deg)
            scale(0.70);
    }
}

.pokeball-fall {
    animation: pokeballFall 0.7s ease-in forwards;
}

@keyframes pokeballFall {

    0% {
        transform:
            translate(0, 0)
            rotate(1080deg)
            scale(0.97);
    }

    100% {
        transform:
            translate(0, 300px)
            rotate(1440deg)
            scale(0.94);
    }
}

#projectile-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.projectile {
  position: absolute;
  width: 54px;
  height: 54px;
  transform-origin: center;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
  opacity: 1;
  z-index: 2;
}

.projectile-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 1;
  pointer-events: none;
  z-index: 30;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 18px rgba(108, 223, 255, 0.9));
}

.projectile-glow.show {
  animation: captureGlowPulse 1s ease-out forwards;
}

@keyframes captureGlowPulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

.projectile-grounded {
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.28));
}

.pokemon-hit {
  animation: pokemonHit 0.35s ease-out;
}

@keyframes pokemonHit {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-6deg); }
  50% { transform: scale(0.96) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

#text-display {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5.5rem;
    font-weight: bold;
    color: yellow;
    text-align: center;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    font-family: "Pokemon Solid", Arial, sans-serif;
}

#exit-button {
    display: none;
    position: absolute;
    top: 20%;
    right: 40%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    background: transparent;
    background-image: url("../images/games/pokemon_hunters/buttons/exit_reward_button.png");
    background-size: contain;
    border: none;
}

/* Compact screen layout rules */

@media (max-width: 700px) {
    #scoreboard {
        margin: 1rem 0.5rem;
        gap: 0.5rem;
    }

    .team-box {
        min-width: 130px;
        max-width: 46%;
        padding: 12px;
    }

    .team-box p {
        margin-top: 20px;
        font-size: 1.4rem;
    }

    .location-number,
    .location-letter {
        width: 34px;
        height: 34px;
        font-size: 17px;
        border: 3px solid black;
    }

    .map-location img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    #reward-window {
        width: 98%;
        height: 96%;
        padding: 12px;
        border-radius: 12px;
    }

    .character {
        height: 46%;
        left: 3%;
        top: 40%;
    }

    .character-arm-1 {
        height: 16%;
        top: 50%;
        left: 0;
    }

    .character-arm-2 {
        height: 22%;
        top: 66%;
        left: 3%;
    }

    .pokeball {
        height: 19%;
        width: 10%;
    }

    #text-display {
        font-size: 2.5rem;
    }

    #exit-button {
        width: 80px;
        height: 80px;
        right: 13%;
        top: 8%;
    }
}

