/* ═══════════════════════════════════════════════════════════════
   AEGIS LANDING — SMARTPHONE LANDSCAPE
   Max-height: 500px, Orientation: Landscape
   Brothers in Code — Swiss Made
   ═══════════════════════════════════════════════════════════════ */

@media (max-height: 500px) and (orientation: landscape) {

    /* ── NAV — schlank ── */
    .layer-5.nav-glass {
        padding: 8px 15px;
    }
    .nav-logo {
        font-size: 16px;
        letter-spacing: 3px;
    }
    .nav-link {
        font-size: 11px;
    }
    .nav-globe {
        width: 16px;
        height: 16px;
    }

    /* ── SHIELD — klein, Platz sparen ── */
    .layer-2 .shield-3d {
        transform: scale(0.55) !important;
    }
    .shockwave {
        width: 200px;
        height: 200px;
    }

    /* ── TIMELINE BAR — fullwidth ── */
    .timeline-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        max-height: 100vh;
        padding: 15px 20px;
        border-radius: 0;
        overflow-y: auto;
        left: 0;
        transform: translateX(0) translateY(calc(-50% + 20px));
    }

    /* ── TIMELINE ITEMS — horizontal ── */
    .timeline-item {
        flex-direction: row;
        gap: 20px;
        padding: 12px 10px;
        text-align: left;
        align-items: center;
    }

    /* ── ICON — links, klein ── */
    .timeline-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        flex-shrink: 0;
        order: -1;
        margin-left: 20px;
    }
    .timeline-icon svg {
        width: 80px;
        height: 80px;
    }

    /* ── TEXT — kompakt, rechts vom Icon ── */
    .timeline-text-wrap {
        align-items: flex-start;
        text-align: left;
        max-width: calc(100% - 100px);
        max-height: none;
        overflow-y: visible;
        flex: 1;
    }
    .timeline-label {
        font-size: 9px;
        letter-spacing: 2px;
    }
    .timeline-title {
        font-size: 16px;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    .timeline-subtitle {
        font-size: 12px;
        line-height: 1.5;
        max-height: none;
        overflow-y: visible;
    }

    /* ── PAYMENT BUTTONS — horizontal, kompakt ── */
    .timeline-payment-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 8px;
    }
    .timeline-pay-btn {
        padding: 8px 14px;
    }
    .timeline-pay-btn .pay-text {
        display: none;
    }
    .timeline-pay-btn .pay-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* ── SCROLL INDICATOR — höher + SVG nach oben gedreht ── */
    .scroll-indicator {
        bottom: 45px !important;
    }
    .scroll-indicator svg {
        transform: rotate(180deg) !important;
    }

    /* ── LANGUAGE OVERLAY — Landscape optimiert ── */
    .lang-overlay-panel {
        width: 80%;
        max-height: 90vh;
        padding: 15px;
        border-radius: 12px;
        overflow-y: auto;
    }
    .lang-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .lang-card {
        padding: 10px 6px;
    }
    .lang-card-flag {
        width: 30px;
        height: 30px;
    }
    .lang-card-flag svg {
        width: 24px;
        height: 24px;
    }
    .lang-card-name {
        font-size: 13px;
    }
    .lang-overlay-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* ── TENTACLES — noch dezenter im Landscape ── */
    .tentacle {
        opacity: 0.15;
    }
    .tentacle-container {
        transform: scale(0.45);
    }
    .layer-2a,
    .layer-2b {
        opacity: 0.3;
    }

    /* ── SCROLLBAR für Timeline ── */
    .timeline-bar::-webkit-scrollbar {
        width: 3px;
    }
    .timeline-bar::-webkit-scrollbar-thumb {
        background: rgba(0, 201, 167, 0.3);
        border-radius: 2px;
    }
    .timeline-subtitle::-webkit-scrollbar {
        width: 2px;
    }
    .timeline-subtitle::-webkit-scrollbar-thumb {
        background: rgba(0, 201, 167, 0.2);
        border-radius: 2px;
    }

    /* ── DIVINE NAV — Landscape: alle 10 horizontal unter Nav ── */
    #divine-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        top: -105px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }
    #divine-nav .div-left,
    #divine-nav .div-right {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
    }
    #divine-nav .div-card {
        width: 80px !important;
        min-height: 80px !important;
        padding: 6px 4px !important;
        gap: 3px !important;
    }
    #divine-nav .div-card-svg {
        width: 45px !important;
        height: 45px !important;
    }
    #divine-nav .div-card-svg svg {
        width: 45px !important;
        height: 45px !important;
    }
    #divine-nav .div-card-label {
        font-size: 7px !important;
        letter-spacing: 0.5px !important;
    }
    #divine-nav .div-col {
        gap: 4px !important;
    }

    /* Buy Banner hidden — Buy Overlay ersetzt ihn */
    #divine-nav .div-top {
        display: none !important;
    }

    /* ── BUY OVERLAY — Landscape optimiert ── */
    .aegis-buy-panel {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        padding: 15px 20px !important;
        gap: 10px !important;
    }
    .aegis-buy-crown {
        width: 50px !important;
        height: 50px !important;
    }
    .aegis-buy-crown svg {
        width: 50px !important;
        height: 50px !important;
    }
    .aegis-buy-title {
        font-size: 20px !important;
        letter-spacing: 4px !important;
    }
    .aegis-buy-text {
        font-size: 16px !important;
    }
    .aegis-buy-sub {
        font-size: 14px !important;
        max-width: 400px !important;
    }
    .aegis-buy-buttons {
        flex-direction: row !important;
        gap: 10px !important;
    }
    .aegis-buy-btn {
        width: auto !important;
        padding: 10px 14px !important;
    }
    .aegis-buy-btn-svg {
        width: 40px !important;
        height: 40px !important;
    }
    .aegis-buy-btn-svg svg {
        width: 40px !important;
        height: 40px !important;
    }
    .aegis-buy-game {
        padding: 8px 16px !important;
    }
    .aegis-buy-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
    .aegis-buy-btn-label {
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }
    .aegis-buy-line {
        width: 50px !important;
    }
    .aegis-buy-game-text {
        font-size: 13px !important;
    }
    .aegis-buy-game .aegis-buy-btn-svg {
        width: 30px !important;
        height: 30px !important;
    }
    .aegis-buy-game .aegis-buy-btn-svg svg {
        width: 30px !important;
        height: 30px !important;
    }

    /* ── RIDDLE GAME (Matrix) — Landscape optimiert ── */
    .matrix-inner {
        padding: 15px 20px !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        width: 90% !important;
        max-width: 550px !important;
    }
    .matrix-header {
        margin-bottom: 10px !important;
    }
    .matrix-title {
        font-size: 18px !important;
        letter-spacing: 4px !important;
        margin-bottom: 4px !important;
    }
    .matrix-subtitle {
        font-size: 12px !important;
    }
    .matrix-info {
        font-size: 11px !important;
    }
    .matrix-prize {
        font-size: 12px !important;
        margin-top: 4px !important;
    }
    .matrix-grid {
        max-width: 220px !important;
        gap: 4px !important;
        margin: 0 auto 12px !important;
    }
    .matrix-countdown {
        font-size: 40px !important;
        padding: 20px 0 !important;
    }
    .matrix-timer {
        margin-bottom: 8px !important;
    }
    .matrix-controls {
        margin-bottom: 8px !important;
    }
    .matrix-btn {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
    .matrix-btn-start {
        padding: 12px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .matrix-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
    }
    .matrix-scrambled {
        font-size: 24px !important;
        letter-spacing: 5px !important;
        margin-bottom: 12px !important;
    }
    .matrix-text-input {
        padding: 10px 14px !important;
        font-size: 16px !important;
    }
    .matrix-levels {
        gap: 8px !important;
    }
    .matrix-level-dot {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    .matrix-win-title {
        font-size: 22px !important;
        letter-spacing: 4px !important;
    }
    .matrix-win-text {
        font-size: 12px !important;
    }
    .matrix-win-code {
        font-size: 18px !important;
        padding: 10px 16px !important;
    }
    .matrix-win-info {
        font-size: 11px !important;
    }
    .matrix-inner::-webkit-scrollbar {
        width: 3px;
    }
    .matrix-inner::-webkit-scrollbar-thumb {
        background: rgba(0, 201, 167, 0.3);
        border-radius: 2px;
    }

    /* ── DOWNLOAD OVERLAY — Landscape optimiert ── */
    .aegis-download-panel {
        padding: 15px 20px !important;
        max-width: 95% !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        border-radius: 12px !important;
    }

    .aegis-download-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .aegis-download-header {
        margin-bottom: 10px !important;
    }

    .aegis-download-title {
        font-size: 15px !important;
    }

    .aegis-download-subtitle {
        font-size: 11px !important;
    }

    /* Terms Box — kompakt */
    .aegis-terms-box {
        padding: 8px 0 !important;
        margin-bottom: 8px !important;
    }

    .aegis-terms-label {
        font-size: 11px !important;
        gap: 8px !important;
    }

    .aegis-terms-check {
        width: 14px !important;
        height: 14px !important;
    }

    /* Store Grid — 3x2 kompakt */
    .aegis-download-stores {
        margin-bottom: 10px !important;
    }

    .aegis-download-stores-label {
        font-size: 9px !important;
        margin-bottom: 6px !important;
    }

    .aegis-download-store-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .aegis-download-store {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .aegis-download-store-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .aegis-download-store-name {
        font-size: 10px !important;
    }

    .aegis-download-store-sub {
        font-size: 8px !important;
    }

    /* Desktop Downloads Grid — horizontal */
    .aegis-download-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .aegis-download-card {
        padding: 10px 8px !important;
        border-radius: 10px !important;
    }

    .aegis-download-card-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .aegis-download-card-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .aegis-download-card-name {
        font-size: 11px !important;
    }

    .aegis-download-card-detail {
        font-size: 8px !important;
    }

    /* Scrollbar für Panel */
    .aegis-download-panel::-webkit-scrollbar {
        width: 3px;
    }

    .aegis-download-panel::-webkit-scrollbar-thumb {
        background: rgba(0, 201, 167, 0.3);
        border-radius: 2px;
    }

    /* ── LEGAL OVERLAYS (Impressum, AGB, Privacy) — grösserer Text ── */
    .legal-panel {
        padding: 20px 24px !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }

    .legal-close {
        top: 8px !important;
        right: 12px !important;
    }

    .legal-header {
        margin-bottom: 14px !important;
    }

    .legal-label {
        font-size: 13px !important;
        letter-spacing: 5px !important;
    }

    .legal-title {
        font-size: 20px !important;
    }

    .legal-highlight {
        font-size: 15px !important;
        padding: 12px 16px !important;
        margin-bottom: 16px !important;
    }

    .legal-section-title {
        font-size: 16px !important;
    }

    .legal-section p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .legal-body {
        gap: 12px !important;
    }

    .legal-footer {
        font-size: 13px !important;
        margin-top: 16px !important;
        padding-top: 12px !important;
    }
}
