/* ---------- BlokWereld ---------- */
.title.green {
    color: var(--green-light);
    text-shadow: 4px 4px 0 var(--green-dark), 0 0 24px rgba(0, 0, 0, 0.5);
}

.mc-btn.green {
    background: var(--green);
    border-color: var(--green-light) var(--green-dark) var(--green-dark) var(--green-light);
}

.game.wereld {
    --wcell: min(34px, calc((100vw - 56px) / 20));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.game.wereld .hud {
    width: 100%;
}

.world {
    display: grid;
    gap: 1px;
    padding: 6px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.25)),
        linear-gradient(#2b4a7f, #6aa0dd);
    border: 4px solid #1f1f1f;
    box-shadow: inset 0 0 0 2px #5a5a5a, 0 12px 30px rgba(0, 0, 0, 0.4);
    touch-action: manipulation;
}

.world.tool-pickaxe { cursor: crosshair; }
.world.tool-place { cursor: cell; }

.wcell {
    width: var(--wcell);
    height: var(--wcell);
    padding: 0;
    border: none;
    display: block;
    cursor: inherit;
}

.wcell.empty {
    background: transparent;
    outline: 1px solid rgba(255, 255, 255, 0.07);
    outline-offset: -1px;
}

.wcell.empty:hover {
    background: rgba(255, 255, 255, 0.15);
}

.wcell.block {
    --cell: var(--wcell);
    animation: pop 0.2s ease-out;
}

.wcell.block:hover {
    filter: brightness(1.15);
}

.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hotbar.inventory {
    margin-top: 0;
    max-width: 100%;
}

.hotbar .slot {
    padding: 0;
    cursor: pointer;
    color: #fff;
    font-size: 26px;
}

.hotbar .slot.selected {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--gold), 0 0 12px var(--gold);
}

.hotbar .slot.tool {
    background: #333;
}

.earn-btn {
    font-size: 14px;
    padding: 14px 22px;
}

/* Earn dialog */
.dialog.earn {
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dialog.earn h2 {
    font-size: 16px;
    color: var(--gold);
    text-shadow: 3px 3px 0 #7a5a00;
    margin: 0;
}

.earn-label {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.earn-pick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.earn-pick .slot {
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
}

.earn-pick .slot .block {
    --cell: 30px;
}

.earn-pick .slot.selected {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--gold);
}

.dialog.earn .numpad {
    max-width: 280px;
}

.dialog.earn .numpad .key {
    padding: 10px 0;
    font-size: 18px;
}

.dialog.earn .feedback {
    min-height: 56px;
}

.confirm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    max-width: 380px;
}

.confirm p {
    margin: 0;
}

@media (max-width: 760px) {
    .game.wereld {
        --wcell: calc((100vw - 40px) / 20);
    }
}
