/* star/pokemon_go/css/style.css */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #222;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
}

.hidden {
    display: none !important;
}

/* MAP VIEW */
#map-view {
    position: relative;
    width: 100%;
    height: 100%;
}

#map-container {
    width: 100%;
    height: 100%;
}

#map-hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.player-profile {
    background: white;
    padding: 8px 15px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.avatar {
    font-size: 24px;
}

.name {
    font-weight: 900;
    font-size: 14px;
}

.level {
    font-size: 11px;
    color: #666;
}

#pokedex-btn {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    font-size: 20px;
    cursor: pointer;
}

#caught-count {
    font-size: 12px;
    font-weight: bold;
    margin-top: -2px;
}

/* CATCH VIEW */
#catch-view {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #74b9ff, #a29bfe);
    z-index: 50;
}

#catch-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

#pokemon-name {
    color: white;
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ball-container {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

#run-btn {
    position: absolute;
    top: 40px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto;
}

/* OVERLAYS */
#overlay {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.start-card {
    background: white;
    width: 80%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.logo {
    width: 100%;
    margin-bottom: 20px;
}

.go-text {
    color: #eb4d4b;
    font-size: 64px;
    margin: 0 0 30px;
    font-weight: 900;
    font-style: italic;
}

#start-btn {
    background: #00A2FF;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
}

.warning {
    font-size: 11px;
    color: #999;
    margin-top: 30px;
    line-height: 1.4;
}

/* RESULT CARD */
#catch-result {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    width: 250px;
}

#caught-visual {
    font-size: 80px;
    margin: 20px 0;
}

#ok-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}