body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #16451f;
}

h1 {
color: white;
}

/* Screens */
.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#end-screen h2 {
    color: white;
    font-size: 2em;
}

#end-screen #score {
    color: white;
    font-size: 1.2em;
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
}

#game-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#game-screen:not(.hidden) {
    display: block;
}

#game-screen.hidden {
    display: none;
}

.hidden {
    display: none;
}

/* Buttons */
button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Fortschrittsbalken */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 20px;
    z-index: 10;
}

.progress-segment {
    flex: 1;
    margin: 1px;
    background: lightgray;
}

/* Landschaft */
#landscape {
    position: relative;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
}

#landscape img {
    height: 100%;
    width: auto;
    display: block;
    min-width: 150%;
}


/* NPCs */
.npc {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 200px;
    padding-bottom: 120px;
    cursor: pointer;
    /*background-color: blue;*/
}

.npc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.npc:hover::after {
    content: attr(data-goal);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px;
    border: 1px solid black;
    white-space: nowrap;
    font-size: 12px;
}

/* Task Fenster */
#task-window {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 92vw);
    max-height: 400px;
    background: white;
    border: 2px solid black;
    padding: 20px;
    z-index: 20;
    overflow: auto;
}

#close-task {
    float: right;
}

.mini-game-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-game-title {
    margin: 0;
    font-size: 16px;
    color: #1a5c2a;
    border-bottom: 2px solid #28a745;
    padding-bottom: 6px;
}

.mini-game-description {
    margin: 0;
}

.mini-game-hud {
    display: none;
    justify-content: space-between;
    font-weight: 700;
}

.mini-game-canvas-wrap {
    display: none;
    border: 1px solid #111;
    background: #f4f6f8;
    width: 100%;
}

#mini-game-canvas {
    width: 100%;
    height: 260px;
    display: block;
    background: linear-gradient(#ffffff, #eef3f8);
}

#mini-game2-canvas {
    width: 100%;
    height: 260px;
    display: block;
    background: linear-gradient(#ffffff, #eef3f8);
    cursor: crosshair;
}

#mini-game6-canvas {
    width: 100%;
    height: 260px;
    display: block;
    background: #4ea8de;
    cursor: crosshair;
}

.mini-game-result {
    display: none;
    font-weight: 700;
}

.mini-game-result.success {
    color: #0b8f35;
}

.mini-game-result.fail {
    color: #b02323;
}

.mini-game3-area {
    width: 100%;
    height: 260px;
    border: 1px solid #111;
    background: linear-gradient(#ffffff, #eef3f8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-game3-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #7be2ff, #2b8cff);
    box-shadow: 0 0 0 0 rgba(43, 140, 255, 0.45);
    cursor: pointer;
    transition: transform 80ms ease, filter 80ms ease;
}

.mini-game3-circle.hit {
    transform: scale(0.9);
    filter: brightness(1.2);
    box-shadow: 0 0 0 12px rgba(43, 140, 255, 0.15);
}

.mini-game4-area {
    border: 1px solid #111;
    background: #f8fbff;
    padding: 12px;
}

.mini-game4-text {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.mini-game4-select {
    min-width: 130px;
    padding: 4px 6px;
    margin: 0 4px;
}

.mini-game5-area {
    border: 1px solid #111;
    background: #f8fbff;
    padding: 10px;
}

.mini-game5-lane-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.mini-game5-zone h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.mini-game5-dropzone {
    min-height: 120px;
    border: 1px dashed #6b7280;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
}

.mini-game5-center-zone .mini-game5-dropzone {
    background: #f3f4f6;
}

.mini-game5-shape {
    width: 24px;
    height: 24px;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.mini-game5-shape.circle {
    border-radius: 50%;
    background: #1baa4c;
}

.mini-game5-shape.square {
    border-radius: 3px;
    background: #cf2f2f;
}

.mini-game5-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
}

.mini-game7-area {
    border: 1px solid #111;
    background: #f8fbff;
    padding: 10px;
}

.mini-game7-board {
    position: relative;
    width: 100%;
    height: 240px;
    border: 1px dashed #6b7280;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.mini-game7-module {
    position: absolute;
    width: 86px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #334155;
    background: #cbd5e1;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.mini-game7-module.connected {
    background: #fde047;
    border-color: #ca8a04;
}

.mini-game10-area {
    border: 1px solid #111;
    background: #f8fbff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-game10-progress {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.mini-game10-question {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
}

.mini-game10-buttons {
    display: flex;
    gap: 12px;
}

.mini-game10-choice {
    flex: 1;
    padding: 10px 6px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid #334155;
    background: #e2e8f0;
    cursor: pointer;
    margin: 0;
}

.mini-game10-choice.unfair {
    background: #fecaca;
    border-color: #b91c1c;
}

.mini-game10-feedback {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    min-height: 22px;
}

.mini-game11-hint {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 0;
}

/* Mini-Spiel 12 */
.mini-game12-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-game12-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-game12-produce-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
    font-weight: 900;
    border-radius: 6px;
    border: 2px solid #334155;
    background: #fde047;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.mini-game12-info {
    font-size: 14px;
    font-weight: 700;
}

.mini-game12-board {
    position: relative;
    width: 100%;
    height: 130px;
    border: 1px dashed #6b7280;
    border-radius: 8px;
    background: #f0fdf4;
    overflow: visible;
}

.mini-game12-slot {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px dashed #16a34a;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-game12-loose {
    min-height: 56px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
}

.mini-game12-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #6ee7b7, #059669);
    border: 2px solid #047857;
    cursor: grab;
    flex-shrink: 0;
}

.mini-game12-circle.dragging {
    opacity: 0.45;
}

/* Mini-Game 13: Gitter-Grünfärbung (Klimaschutz) */
.mini-game13-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-game13-grid {
    display: grid;
    gap: 2px;
    padding: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    width: fit-content;
}

.mini-game13-cell {
    width: 60px;
    height: 60px;
    background: #d3d3d3;
    border: 1px solid #999;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.15s ease;
    user-select: none;
}

.mini-game13-cell:hover {
    filter: brightness(0.95);
}

.mini-game13-cell.light-green {
    background: #a8d5a8;
}

.mini-game13-cell.medium-green {
    background: #52b552;
}

.mini-game13-cell.full-green {
    background: #28a745;
}

/* Mini-Game 14: Fische aktivieren & schwimmen (Leben unter Wasser) */
.mini-game14-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-game14-canvas {
    border: 2px solid #4ECDC4;
    border-radius: 8px;
    background: #E8F4F8;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Mini-Game 15: Tiernamen erkennen Quiz (Leben an Land) */
.mini-game15-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-game15-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    min-height: 140px;
    max-width: 520px;
}

.mini-game15-word {
    padding: 10px 16px;
    background: #E8F4F8;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
}

.mini-game15-word:hover {
    background: #d4e9f0;
    border-color: #999;
}

.mini-game15-word.selected {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

/* Mini-Game 16: Peace Symbol Nachzeichnen (Frieden & Gerechtigkeit) */
.mini-game16-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-game16-canvas {
    border: 2px solid #2563EB;
    border-radius: 8px;
    background: #f0f0f0;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
}

/* Mini-Game 17: Signaturfeld - Partnerschaftsabkommen */
.mini-game17-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-game17-agreement {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.mini-game17-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.mini-game17-canvas {
    border: 2px solid #999;
    border-radius: 4px;
    background: white;
    display: block;
    cursor: crosshair;
    width: 100%;
    max-width: 480px;
    height: 100px;
    box-sizing: border-box;
}

.npc-played {
    opacity: 0.55;
    filter: grayscale(0.5);
}

/* Menü-Button oben rechts */
#menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    font-size: 2em;
    background: transparent; 
    border: none;
    padding: 0;            
    margin: 0;
}

/* Menü-Overlay zentral */
#menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 30px;
    border-radius: 15px;
    z-index: 25;
}

#menu button {
    margin: 10px;
    padding: 15px 30px;
    font-size: 18px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 200px;
    text-align: center;
}

/* Pfeile */
.arrow {
    position: fixed;
    top: 50%;
    font-size: 2em;
    background: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    z-index: 15;
    background: transparent; 
    border: none;
    padding: 0;            
    margin: 0;
}
#left-arrow { left: 10px; }
#right-arrow { right: 10px; }