* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Arial;
    background: #031329;
    color: #eaf6ff;
    margin: 0;
}

/* utility hidden class used across the app */
.hidden { display: none; }

header {
    padding: 14px 18px;
    background: linear-gradient(90deg, #04273f, #062b47);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-hint {
    font-size: 13px;
    opacity: 0.85;
}

main {
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
}

canvas {
    background: radial-gradient(#011 0%, #000 60%);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

#hud {
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

#hud div {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 10px;
    border-radius: 6px;
}

#actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

button {
    background: #0b6;
    color: #012;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    filter: brightness(.95);
}

#modal.hidden {
    display: none;
}

#modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(1, 6, 12, 0.6);
    z-index: 1000;
}

#modal-content {
    background: #fff;
    color: #000;
    padding: 18px;
    border-radius: 8px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Portrait rotate overlay for mobile devices */
/* keep overlay hidden by default; show only when it doesn't have .hidden */
#rotate-overlay {
    position: fixed;
    inset: 0;
    /* default hidden; shown via :not(.hidden) below */
    display: none;
    place-items: center;
    background: rgba(2,8,16,0.85);
    color: #fff;
    z-index: 2000;
}

/* visible state when class .hidden is NOT present */
#rotate-overlay:not(.hidden) {
    display: grid;
}

#rotate-content {
    text-align: center;
    padding: 18px 22px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    max-width: 92%;
    font-size: 18px;
}

  .logo {
   position: fixed;
   top: 25px;
   right: 220px;
   width: 100px;        /* Größe anpassen */
   opacity: 0.8;        /* optional */
   z-index: 1;          /* unter Menü */
   pointer-events: none; /* blockiert keine Klicks */
}