body {
    font-family: Arial, sans-serif;
    background: #1e1e1e; /* fundo escuro */
    margin: 0;
    padding: 0;
    color: #fff;
}

.container {
    max-width: 500px;
    margin: 40px auto;
    background: #2b2b2b; /* fundo container escuro */
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

h1, h2, p {
    margin-top: 0;
    color: #ffa500; /* laranja */
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0 15px 0;
    border: 1px solid #ffa500;
    border-radius: 4px;
    font-size: 1.1em;
    background: #1e1e1e;
    color: #fff;
}

input[type="text"]::placeholder {
    color: #ccc;
}

button {
    padding: 10px 18px;
    background: #ff8c00; /* laranja escuro */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 15px;
}

button:hover {
    background: #ffa500;
}

#error, .error {
    color: #ff4c4c;
    font-weight: bold;
}

ol {
    padding-left: 20px;
}

.bunker-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #2b2b2b;
    color: #fff;
}

.bunker-table th, .bunker-table td {
    border: 1px solid #ffa500;
    padding: 8px 10px;
    text-align: left;
}

.bunker-table th {
    background: #ff8c00;
    color: #fff;
}

.bunker-table tr:nth-child(even) {
    background: #333;
}

.bunker-table tr:hover {
    background: #444;
}

/* ================== TECLADO ================== */
#keyboard {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#keyboard div {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

#keyboard button {
    flex: 1;
    margin: 0;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ffa500;
    cursor: pointer;
    background-color: #333;
    color: #ffa500;
}

#keyboard button:hover {
    background-color: #444;
}

#keyboard button:active {
    background-color: #555;
    color: #fff;
}

#codeLengthOptions {
    display: flex;
    flex-wrap: wrap; /* permite quebra de linha */
    gap: 15px;       /* espaço entre cada radio */
    margin-bottom: 20px; /* distância do input abaixo */
}

input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

input[type="radio"] + label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
    font-size: 1.1em;
    color: #fff;
    display: inline-block;
    line-height: 24px; /* altura do círculo */
}

/* Círculo externo */
input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #ffa500;
    border-radius: 50%;
    background: #2b2b2b;
}

/* Círculo interno quando marcado */
input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffa500;
}

/* Hover */
input[type="radio"] + label:hover::before {
    border-color: #ff8c00;
}

.map-container {
    width: 100%;
    max-width: 500px;
    overflow: hidden;       /* esconde excesso da imagem */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    touch-action: none;     /* necessário para pinch zoom em mobile */
    position: relative;
}

.map-container img {
    width: 100%;
    height: auto;
    cursor: grab;           /* cursor de arrastar */
    transition: transform 0.1s ease-out;
    user-select: none;
}
