/**
 * ODIN Age Gate Styles V3.2
 * VOLLSTÄNDIG RESPONSIVE mit clamp()
 * + WELCOME POPUP STYLES
 */

/* ---- Odin Text Fonts ---- */
@font-face {
    font-family: 'Odin Text Reg';
    src: url('/wp-content/themes/betheme-child/fonts/OdinTextReg.woff2') format('woff2'),
         url('/wp-content/themes/betheme-child/fonts/OdinTextReg.woff') format('woff'),
         url('/wp-content/themes/betheme-child/fonts/OdinTextReg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   SHIMMER ANIMATION (von odin-main-title)
   ========================================= */
@keyframes odinShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes welcomeShimmer {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* =========================================
   HIDE SCROLLBAR & BASE STATES
   ========================================= */
html.odin-verified #odin-age-gate,
html.odin-verified #odin-welcome-popup {
    display: none !important;
}

/* Body bleibt normal scrollbar — Age Gate liegt nur drüber (kein Sprung) */
html.age-locked,
html.age-locked body,
body.age-locked {
}

#odin-age-gate {
    opacity: 1;
    transition: opacity 2.4s ease-out;
}

#odin-age-gate.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================
   WELCOME POPUP - Über dem Age Gate
   ========================================= */
.odin-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: none;
}

.odin-welcome-overlay.is-visible {
    opacity: 1;
}

.odin-welcome-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.odin-welcome-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
@media screen and (max-width: 768px) {
    .odin-welcome-backdrop {
        background: rgba(0, 0, 0, 0.90);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.odin-welcome-box {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0d0905;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
                      url('/wp-content/uploads/2025/11/game/card_odin_game_bg_pattern.png');
    background-size: auto, 300px;
    background-repeat: repeat;
    border: 2px solid #c5a059;
    border-radius: 12px;
    padding: clamp(30px, 5vw, 50px);
    max-width: clamp(320px, 85vw, 500px);
    text-align: center;
    margin: 0 30px;
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.15),
                0 0 120px rgba(197, 160, 89, 0.1),
                0 0 180px rgba(197, 160, 89, 0.05),
                inset 0 0 30px rgba(0, 0, 0, 0.4) !important;
    opacity: 1;
    transition: none;
    user-select: none;
    -webkit-user-select: none;
}

.odin-welcome-overlay.is-visible .odin-welcome-box {
    opacity: 1;
}

.odin-welcome-overlay.fade-out .odin-welcome-box {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.odin-welcome-title {
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(2.5rem, 7vw, 3.5rem) !important;
    line-height: clamp(2.1rem, 7vw, 3.2rem) !important;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 clamp(15px, 3vw, 25px) 0;
    padding: 15px;
    font-weight: 500;
    color: #F4C064 !important;
    background: linear-gradient(135deg, #F4C064 0%, #ffeeb0 50%, #F4C064 100%) !important;
    background-size: 30% auto !important;
    animation: odinShimmer 8s ease-in-out infinite !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 12px rgba(244, 192, 100, 0.15)) !important;
    text-shadow: 0 0 30px rgba(244, 192, 100, 0.5), 0 0 60px rgba(244, 192, 100, 0.3) !important;
}

.odin-welcome-text {
    font-family: 'ITC Odin Con', serif !important;
    font-size: 1.25rem;
    font-weight: 400;
    color: #b8a48a;
    line-height: 2.1rem;
    margin: 0 0 24px 0;
    letter-spacing: 0.03em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Hinweis: Desktop + Sound */
.odin-welcome-hint {
    font-family: 'ITC Odin Con', serif !important;
    font-size: 0.95rem;
    font-weight: 400;
    color: #8a7a66;
    line-height: 1.6rem;
    letter-spacing: 0.03em;
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.odin-welcome-hint strong {
    color: #d6be9f;
    font-weight: 500;
}

/* "16 Winter" unterstrichen + Gold Gradient + Glow */
.odin-welcome-highlight {
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-decoration: underline;
    text-decoration-color: rgba(197, 160, 89, 0.5);
    text-underline-offset: 3px;
    cursor: pointer;
    filter: drop-shadow(0 0 6px rgba(255, 230, 160, .5)) drop-shadow(0 0 12px rgba(255, 215, 130, .35));
    transition: text-decoration-color 0.3s ease, filter 0.3s ease;
}
.odin-welcome-highlight:hover {
    text-decoration-color: rgba(197, 160, 89, 1);
    filter: drop-shadow(0 0 8px rgba(255, 230, 160, .7)) drop-shadow(0 0 16px rgba(255, 215, 130, .5));
}

/* Tooltip 1:1 wie Trunklager */
#odin-welcome-tooltip {
    position: fixed;
    background: radial-gradient(ellipse at center, rgba(30, 25, 20, 0.85) 0%, rgba(10, 8, 5, 0.95) 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    padding: 12px 18px;
    font-family: 'ITC Odin Con', serif;
    font-size: 0.9rem;
    color: #d6be9f;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 2147483647;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-align: center;
}
#odin-welcome-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Touch: kein Tooltip */
@media (pointer: coarse) and (hover: none) {
    #odin-welcome-tooltip { display: none !important; }
}

.odin-welcome-box .odin-age-btn {
    margin: 0 auto;
    min-width: clamp(140px, 16vw, 180px);
    width: auto;
    height: 60px;
    aspect-ratio: unset;
    padding: 0 clamp(18px, 2vw, 28px) !important;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    box-shadow: 0 0 4px rgba(230, 168, 91, 0.15) !important;
    transition: box-shadow 0.5s ease !important;
    transform: none !important;
    user-select: none;
    -webkit-user-select: none;
}
.odin-welcome-box .odin-age-btn:hover {
    box-shadow: 0 0 14px rgba(230, 168, 91, 0.7), 0 0 28px rgba(230, 168, 91, 0.35) !important;
}
/* =========================================
   MAIN OVERLAY - KEIN SCROLL
   ========================================= */
.odin-age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #0d0905;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.95) 100%),
                      url('/wp-content/uploads/2025/11/game/card_odin_game_bg_pattern.png');
    background-repeat: repeat;
    background-position: center;
    background-size: 400px;
    z-index: 2147483646;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: clamp(10px, 2vh, 20px) 0;
    margin: 0;
}

/* =========================================
   CONTENT CONTAINER
   ========================================= */
.odin-age-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(300px, 90vw, 650px);
    padding: clamp(10px, 2vh, 30px);
    box-sizing: border-box;
    overflow: visible;
    gap: 5px;
}

/* =========================================
   BROWSER CHECK - Odin's Prüfung
   ========================================= */
html.odin-bc-active {
    overflow: hidden !important;
}
html.odin-bc-active body {
    overflow: hidden !important;
}
html.odin-bc-active .odin-cookie-overlay,
html.odin-bc-active .odin-cookie-dialog,
html.odin-bc-active #odin-welcome-popup {
    pointer-events: none !important;
}
#odin-browser-check .odin-welcome-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.odin-bc-box {
    max-width: clamp(320px, 85vw, 460px) !important;
    position: relative !important;
}

.odin-bc-title {
    font-size: clamp(2.4rem, 7vw, 3.2rem) !important;
    line-height: 1em !important;
    margin-bottom: clamp(5px, 1.5vw, 15px) !important;
    background: linear-gradient(135deg, #e2c38c 0%, #ffeeb0 20%, #F4C064 60%) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: #e0b75c !important;
    -webkit-text-fill-color: transparent !important;
    animation: none !important;
    filter: drop-shadow(0 0 8px rgba(244, 192, 100, 0.6)) drop-shadow(0 0 16px rgba(244, 192, 100, 0.35)) !important;
    text-shadow: none !important;
}

.odin-bc-subtitle {
    font-family: 'ITC Odin Con', serif !important;
    font-size: 1.05rem;
    font-weight: 400;
    color: #8a7a66;
    line-height: 1.5rem;
    letter-spacing: 0.03em;
    text-align: center;
    margin: 0 0 clamp(15px, 3vw, 25px) 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Steps List */
.odin-bc-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.odin-bc-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    opacity: 0.3;
    transition: opacity 0.4s ease, border-color 0.4s ease;
}
.odin-bc-step.active {
    opacity: 1;
    border-color: rgba(197, 160, 89, 0.3);
}
.odin-bc-step.done {
    opacity: 1;
    border-color: rgba(91, 197, 91, 0.4);
}
.odin-bc-step.fail {
    opacity: 1;
    border-color: rgba(255, 85, 85, 0.4);
}

.odin-bc-label {
    font-family: 'ITC Odin Con', serif;
    font-size: 0.95rem;
    color: #b8a48a;
    letter-spacing: 0.02em;
}
.odin-bc-step.done .odin-bc-label {
    color: #7ae07a;
    font-weight: 500;
}
.odin-bc-step.fail .odin-bc-label {
    color: #ff8888;
    font-weight: 500;
}

/* Spinner Icon */
.odin-bc-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.odin-bc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-top-color: #c5a059;
    border-radius: 50%;
    animation: odinBcSpin 0.8s linear infinite;
    display: none;
}
.odin-bc-step.active .odin-bc-spinner {
    display: block;
}

@keyframes odinBcSpin {
    to { transform: rotate(360deg); }
}

/* Check / Cross after done */
.odin-bc-step.done .odin-bc-spinner,
.odin-bc-step.fail .odin-bc-spinner {
    display: none;
}
.odin-bc-step.done .odin-bc-icon::after {
    content: '✓';
    color: #5bc55b;
    font-size: 1.2rem;
    font-weight: 700;
    filter: drop-shadow(0 0 4px rgba(91, 197, 91, 0.6));
}
.odin-bc-step.fail .odin-bc-icon::after {
    content: '✗';
    color: #ff5555;
    font-size: 1.2rem;
    font-weight: 700;
    filter: drop-shadow(0 0 4px rgba(255, 85, 85, 0.6));
}

/* Results */
.odin-bc-result {
    text-align: center;
    margin-top: 10px;
    opacity: 0;
    animation: odinBcFadeIn 0.6s ease forwards;
}
@keyframes odinBcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.odin-bc-result-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 10px;
}
.odin-bc-check {
    color: #5bc55b;
    filter: drop-shadow(0 0 12px rgba(91, 197, 91, 0.7)) drop-shadow(0 0 24px rgba(91, 197, 91, 0.4));
}
.odin-bc-cross {
    color: #ff5555;
    filter: drop-shadow(0 0 12px rgba(255, 85, 85, 0.7)) drop-shadow(0 0 24px rgba(255, 85, 85, 0.4));
}

.odin-bc-result-text {
    font-family: 'ITC Odin Con', serif !important;
    font-size: 1rem;
    color: #b8a48a;
    line-height: 1.5rem;
    margin: 0 0 20px 0;
    letter-spacing: 0.02em;
}
.odin-bc-result-text strong {
    color: #7ae07a;
    font-weight: 500;
}
.odin-bc-fail .odin-bc-result-text strong {
    color: #ff8888;
    font-weight: 500;
}

/* Buttons */
.odin-bc-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Green Update Button */
#odin-browser-check .odin-welcome-box .odin-bc-btn-update.odin-age-btn {
    background: linear-gradient(120deg, #5bc55b 0%, #7ae07a 40%, #a0ffb0 70%, #7ae07a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: #5bc55b !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 500 !important;
    width: 85%;
    max-width: 280px;
    min-width: auto !important;
    padding: 0 clamp(20px, 3vw, 35px) !important;
    filter: drop-shadow(0 0 6px rgba(91, 197, 91, 0.4)) !important;
    box-shadow: 0 0 4px rgba(91, 197, 91, 0.2) !important;
    transition: box-shadow 0.5s ease, filter 0.3s ease !important;
}
#odin-browser-check .odin-welcome-box .odin-bc-btn-update.odin-age-btn::before {
    background: linear-gradient(120deg, #3a8a3a, #5bc55b, #7ae07a, #a0ffb0, #7ae07a, #5bc55b, #3a8a3a) !important;
}
#odin-browser-check .odin-welcome-box .odin-bc-btn-update.odin-age-btn:hover {
    box-shadow: 0 0 14px rgba(91, 197, 91, 0.7), 0 0 28px rgba(91, 197, 91, 0.35) !important;
    filter: drop-shadow(0 0 10px rgba(91, 197, 91, 0.6)) !important;
}

/* Red Risk Button */
#odin-browser-check .odin-welcome-box .odin-bc-btn-risk.odin-age-btn {
    background: linear-gradient(120deg, #cc4444 0%, #ff6b6b 40%, #ff9999 70%, #ff6b6b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: #cc4444 !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 500 !important;
    width: 85%;
    max-width: 280px;
    min-width: auto !important;
    padding: 0 clamp(20px, 3vw, 35px) !important;
    font-size: clamp(0.85rem, 1.2vw, 1rem) !important;
    height: 50px;
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(255, 85, 85, 0.5)) !important;
    box-shadow: 0 0 6px rgba(255, 85, 85, 0.25) !important;
    transition: box-shadow 0.5s ease, filter 0.3s ease, opacity 0.3s ease !important;
}
#odin-browser-check .odin-welcome-box .odin-bc-btn-risk.odin-age-btn::before {
    background: linear-gradient(120deg, #8a3a3a, #cc4444, #ff6b6b, #ff9999, #ff6b6b, #cc4444, #8a3a3a) !important;
}
#odin-browser-check .odin-welcome-box .odin-bc-btn-risk.odin-age-btn:hover {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 85, 85, 0.5), 0 0 28px rgba(255, 85, 85, 0.25) !important;
    filter: drop-shadow(0 0 8px rgba(255, 85, 85, 0.5)) !important;
}

/* Info-Toggle Link */
.odin-bc-info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    cursor: pointer;
    font-family: 'ITC Odin Con', serif;
    font-size: 0.85rem;
    color: #8a7a66;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}
.odin-bc-info-toggle:hover {
    color: #b8a48a;
}
.odin-bc-info-toggle:hover .odin-bc-info-icon circle {
    stroke: #b8a48a;
}
.odin-bc-info-toggle:hover .odin-bc-info-icon text {
    fill: #b8a48a;
}

/* Wenn Detail-Overlay offen → Box scrollbar machen */
.odin-bc-box.detail-open {
    overflow-y: auto !important;
    max-height: 90vh !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 160, 89, 0.3) transparent;
}
.odin-bc-box.detail-open::-webkit-scrollbar { width: 6px; }
.odin-bc-box.detail-open::-webkit-scrollbar-track { background: transparent; }
.odin-bc-box.detail-open::-webkit-scrollbar-thumb { background: rgba(197, 160, 89, 0.3); border-radius: 3px; }

/* Detail-Overlay — relativ in der Box, Content fließt normal */
.odin-bc-detail-overlay {
    position: relative;
    width: calc(100% + clamp(60px, 10vw, 100px));
    margin-left: calc(-1 * clamp(30px, 5vw, 50px));
    margin-right: calc(-1 * clamp(30px, 5vw, 50px));
    margin-top: -10px;
    background-color: #0d0905;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
                      url('/wp-content/uploads/2025/11/game/card_odin_game_bg_pattern.png');
    background-size: auto, 300px;
    background-repeat: repeat;
    border-radius: 0 0 12px 12px;
    z-index: 20;
    opacity: 0;
    animation: odinBcFadeIn 0.4s ease forwards;
}

.odin-bc-detail-scroll {
    padding: clamp(25px, 5vw, 40px) clamp(25px, 6vw, 50px);
    padding-bottom: clamp(40px, 6vw, 60px);
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 160, 89, 0.3) transparent;
}
.odin-bc-detail-scroll::-webkit-scrollbar {
    width: 6px;
}
.odin-bc-detail-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.odin-bc-detail-scroll::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.3);
    border-radius: 3px;
}

.odin-bc-detail-head {
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: #e0b75c;
    text-align: center;
    margin: 0 0 22px 0;
    line-height: 1.3;
    filter: drop-shadow(0 0 6px rgba(244, 192, 100, 0.3));
}

.odin-bc-detail-subhead {
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 500;
    color: #d6be9f;
    margin: 22px 0 8px 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.odin-bc-detail-text {
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 400;
    font-style: normal;
    color: #b8a48a;
    line-height: 1.6;
    margin: 0 0 10px 0;
    letter-spacing: 0.01em;
}

.odin-bc-detail-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}
.odin-bc-detail-footer .odin-bc-detail-text {
    color: #c4ad8f;
    font-weight: 400;
    font-style: normal;
}

.odin-bc-detail-close {
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    width: 100%;
    max-width: 240px;
    height: 50px !important;
    min-height: 50px !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile Browser Check */
@media screen and (max-width: 768px) {
    .odin-bc-subtitle {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }
    .odin-bc-label {
        font-size: 0.85rem;
    }
}

/* =========================================
   TITLE - EXAKT WIE .odin-main-title
   ========================================= */
.odin-age-title {
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(3.5rem, 9vh, 7rem);
    line-height: 0.75em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: clamp(5px, 1.5vh, 15px);
    position: relative;
    z-index: 1;
    color: #F4C064 !important;
    background: linear-gradient(135deg, #F4C064 0%, #ffeeb0 50%, #F4C064 100%) !important;
    background-size: 30% auto !important;
    animation: odinShimmer 8s ease-in-out infinite !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 12px rgba(244, 192, 100, 0.15)) !important;
    text-shadow: 0 0 30px rgba(244, 192, 100, 0.5), 0 0 60px rgba(244, 192, 100, 0.3) !important;
    user-select: none;
    -webkit-user-select: none;
    font-weight: 500;
}

/* =========================================
   LOTTIE ANIMATION
   ========================================= */
.odin-lottie-wrapper {
    margin: clamp(-100px, -12vh, -50px) 0 clamp(-25px, 9vh, -2px) 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: clamp(220px, min(50vw, 42vh), 400px);
    position: relative;
    z-index: 5;
}


/* =========================================
   OTP INPUT
   ========================================= */
.agegate-otp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(3px, 0.75vw, 5px);
    margin: clamp(10px, 2vh, 20px) 0;
    flex-wrap: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.agegate-otp .digit {
    user-select: text;
    -webkit-user-select: text;
}

.digit-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 108px;
    height: 100px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 130, 0.15));
    position: relative;
    flex: 0 1 108px;
    aspect-ratio: 1.08 / 1;
}
.digit-wrap .odin-knot-ring {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.digit-wrap .odin-lottie-ring {
    width: 100%;
    height: 100%;
}
.digit-wrap .odin-lottie-ring svg {
    width: 100% !important;
    height: 100% !important;
}

.digit {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    outline: none !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 0 2px 0 !important;
    font-family: 'ITC Odin Con', serif !important;
    font-size: 3.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    caret-color: #ffe3a0 !important;
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: brightness(1.06) saturate(1.05) drop-shadow(0 0 6px rgba(255, 230, 160, .5)) drop-shadow(0 0 10px rgba(255, 215, 130, .35)) !important;
    transition: filter 0.2s ease !important;
    line-height: normal !important;
    -moz-appearance: textfield;
    user-select: none;
    -webkit-user-select: none;
}

.digit:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* =========================================
   CONFIRM BUTTON
   ========================================= */
.odin-age-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(140px, 16vw, 180px);
    height: 60px;
    padding: 0 clamp(18px, 2vw, 28px) !important;
    margin-top: clamp(5px, 1vh, 15px);
    border-radius: 999px !important;
    border: none !important;
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    overflow: visible;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    box-shadow: 0 0 4px rgba(230, 168, 91, 0.15) !important;
    transition: box-shadow 0.5s ease !important;
    transform: none !important;
    -webkit-user-select: none;
    user-select: none;
}
/* Gold Ring Border */
.odin-age-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(120deg, #c5a059, #d4b06a, #f3d895, #ffe3a0, #f3d895, #d4b06a, #c5a059);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.odin-age-btn:hover:not(.odin-locked) {
    box-shadow: 0 0 14px rgba(230, 168, 91, 0.7), 0 0 28px rgba(230, 168, 91, 0.35) !important;
}
.odin-age-btn.odin-locked {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

/* =========================================
   ERROR MESSAGE
   ========================================= */
.odin-age-error {
    color: #ff5555;
    font-family: 'ITC Odin Con', serif !important;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    text-shadow: 0 0 5px #000;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
    pointer-events: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(8px, 2vh, 20px);
    width: 90%;
    max-width: 500px;
}

/* =========================================
   DISCLAIMER - Hinweis unter dem Button
   ========================================= */
.odin-age-disclaimer {
    display: block !important;
    font-family: 'ODIN Book', serif;
    font-size: clamp(0.78rem, 2.2vw, 0.96rem);
    color: #b0a08a;
    line-height: 1.5;
    text-align: center;
    max-width: 420px;
    margin: 2px auto 0;
    padding: 0 20px;
    opacity: 0.85;
}




/* =========================================
   TABLET LANDSCAPE (1024px - 1400px)
   ========================================= */

@media screen and (min-width: 1024px) and (max-width: 1400px) {
    .odin-age-overlay .odin-age-title {
font-size: clamp(4.9rem, 4.5vw, 3.5rem) !important;
        line-height: 0.85 !important;
        margin-top: 40px;
        margin-bottom: -25px;
    }


#odin-age-gate .odin-age-content {

    max-width: 640px !important;;
}


    
    .odin-age-overlay .odin-lottie-wrapper {
        max-width: 300px;
 
    
    }
    
    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 100px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }

    .odin-age-overlay .digit {
        font-size: 3.05rem !important;
    }

    .odin-age-overlay .agegate-otp {
        gap: 4px;
        margin: 10px 0 20px 0;
    }

    .odin-age-overlay .odin-age-btn {
        min-width: 160px;
        height: 55px;
        font-size: 1.2rem !important;
        margin-top: 8px;
    }

    .odin-age-overlay .odin-age-error {
        margin-top: 20px;
    }
}





/* =========================================
   TABLET PORTRAIT (768px - 1024px)
   ========================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .odin-age-overlay .odin-age-title {
       font-size: clamp(5.5rem, 8vw, 5rem) !important;
        line-height: 0.85 !important;
       
    }
    
    .odin-age-overlay .odin-lottie-wrapper {
        max-width: 380px;
        margin: -80px 0 15px 0;
    }

    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 100px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }

    .odin-age-overlay .digit {
        font-size: 3.05rem !important;
    }

    .odin-age-overlay .agegate-otp {
        gap: 5px;
        margin: 20px 0 30px 0;
    }

    .odin-age-overlay .odin-age-btn {
        min-width: 160px;
        height: 55px;
        font-size: 1.2rem !important;
        margin-top: 8px;
    }

    .odin-age-overlay .odin-age-error {
        margin-top: 45px;
    }
}

/* =========================================
   MITTEL-NIEDRIGE HÖHE (z.B. 1280x768, Laptops)
   ========================================= */
@media screen and (max-height: 850px) and (min-height: 651px) and (min-width: 768px) {
    .odin-age-overlay .odin-age-title {
        font-size: clamp(3rem, 7vh, 4.5rem) !important;
        line-height: 0.8 !important;
        padding: 5px 10px;
        max-width: 420px;
    }

    .odin-age-overlay .odin-lottie-wrapper {
        max-width: clamp(180px, 30vh, 260px);
        margin: clamp(-70px, -9vh, -40px) 0 clamp(-25px, -3vh, -8px) 0;
    }

    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 80px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }

    .odin-age-overlay .digit {
        font-size: 2.6rem !important;
    }

    .odin-age-overlay .agegate-otp {
        gap: 4px;
        margin: 3px 0 8px 0;
    }

    .odin-age-overlay .odin-age-btn {
        min-width: 150px;
        height: 48px;
        font-size: 1.1rem !important;
        margin-top: 3px;
    }

    .odin-age-overlay .odin-age-error {
        margin-top: 5px;
        font-size: 0.95rem !important;
    }

    .odin-age-overlay .odin-age-disclaimer {
        margin-top: 2px;
        font-size: 0.75rem;
    }
}

/* =========================================
   NIEDRIGE HÖHE SCREENS (Nest Hub, etc.)
   ========================================= */
@media screen and (max-height: 650px) and (min-width: 768px) {
    .odin-age-overlay .odin-age-title {
        font-size: clamp(3.5rem, 3.5vw, 2.2rem) !important;
        line-height: 0.85 !important;
        margin-top: 20px;
        width: 470px;
    }
    
    .odin-age-overlay .odin-lottie-wrapper {
  max-width: 230px;
        margin-top: -112px;
        margin-bottom: -60px;
    }
    
    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 70px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }
    
    .odin-age-overlay .digit {
        font-size: 2.65rem !important;
    }
    
    .odin-age-overlay .agegate-otp {
        gap: 3px;
        margin: 0 0 5px 0;
    }
    
    .odin-age-overlay .odin-age-btn {
        width: 120px;
        height: auto;
        aspect-ratio: 2.93 / 1;
        font-size: 1.3rem !important;
        margin-top: 0;
    }
    
    .odin-age-overlay .odin-age-error {
        margin-top: 0px;
        font-size: 0.8rem !important;
    }

    .odin-age-overlay .odin-age-disclaimer {
        margin-top: 3px;
        font-size: 0.7rem;
    }
}


/* =========================================
   MOBILE (< 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    .odin-welcome-box {
        margin: 0 25px;
    }
    
    .odin-welcome-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem) !important;
        line-height: clamp(2rem, 7vw, 2.5rem) !important;
        padding: 10px;
    }

    .odin-welcome-text {
        font-size: 0.95rem;
        line-height: 1.5rem;
    }
    .odin-welcome-hint {
        font-size: 0.8rem;
        line-height: 1.3rem;
        margin: 0 0 16px 0;
    }

    .odin-age-overlay .odin-age-title {
        font-size: clamp(2.8rem, 10vw, 4.5rem) !important;
        line-height: 0.85 !important;
        padding: 8px 15px;
    }

    .odin-age-overlay .odin-lottie-wrapper {
       max-width: clamp(200px, 55vw, 320px);
        margin: -60px 0 -30px 0;
    }

    .odin-age-overlay .odin-age-btn {
        width: min(200px, 60vw);
        height: auto;
        aspect-ratio: 2.93 / 1;
        font-size: 1.3rem !important;
        margin-top: 10px;
    }

    .odin-age-overlay .odin-age-error {
        margin-top: 10px;
    }

    .odin-age-overlay .odin-age-disclaimer {
        margin-top: 8px;
        font-size: 0.72rem;
        padding: 0 25px;
    }

    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 78px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }
    .odin-age-overlay .digit {
        font-size: 2.6rem !important;
    }

}


/* =========================================
   MITTLERE MOBILE SCREENS (415px - 600px)
   ========================================= */
@media screen and (min-width: 415px) and (max-width: 600px) {
    .odin-age-overlay .odin-age-title {
        font-size: clamp(2.6rem, 9vw, 3.5rem) !important;
        line-height: 0.85 !important;
    }

    .odin-age-overlay .odin-lottie-wrapper {
        max-width: 338px;
        margin: -60px 0 -15px 0;
    }
    
    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 78px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }

    .odin-age-overlay .digit {
        font-size: 2.46rem !important;
    }

    .odin-age-overlay .agegate-otp {
        gap: 4px;
        margin: 5px 0 20px 0;
    }
    
    .odin-age-overlay .odin-age-btn {
        width: 180px;
        height: auto;
        aspect-ratio: 2.93 / 1;
        font-size: 1.1rem !important;
        margin-top: 10px;
    }
    
    .odin-age-overlay .odin-age-error {
        margin-top: 20px;
    }
}



/* =========================================
   KLEINE MOBILE SCREENS (< 415px) - iPhone SE, etc.
   ========================================= */
@media screen and (max-width: 414px) and (max-height: 750px) {
    .odin-welcome-box {
        margin: 0 15px;
        padding: 25px 15px;
    }

    .odin-age-overlay .odin-age-title {
        font-size: 3.64rem !important;
        line-height: 0.85 !important;
        padding: 5px;
        margin-top: 10px;
        margin-bottom: -60px;
    }

    .odin-age-overlay .odin-lottie-wrapper {
        max-width: 299px;
        margin-top: -40px;
        margin-bottom: -45px;
    }

    .odin-age-overlay .digit-wrap {
        flex: 1 1 0;
        width: auto;
        max-width: 78px;
        height: auto;
        aspect-ratio: 1.08 / 1;
    }
    .odin-age-overlay .digit {
        font-size: 2.46rem !important;
    }

    .odin-age-overlay .agegate-otp {
        gap: 3px;
        margin: 5px 0 8px 0;
    }

    .odin-age-overlay .odin-age-btn {
        width: 160px;
        height: auto;
        aspect-ratio: 2.93 / 1;
        font-size: 1.1rem !important;
        margin-top: 3px;
    }
}


/* =========================================
   SCROLLBAR: Body behält Scrollbar, nur Age Gate Overlay versteckt eigene
   ========================================= */
.odin-age-overlay::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.odin-age-overlay {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* =========================================
   ERROR ANIMATION - Shake & Glow
   ========================================= */
@keyframes odinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.digit.odin-shake {
    animation: odinShake 0.5s ease-in-out;
}

.digit-wrap.odin-error-glow {
    animation: odinErrorPulse 0.6s ease-in-out !important;
}

@keyframes odinErrorPulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 130, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 50, 50, 0.7));
    }
}



/* =========================================
   MOBILE: Verhindere Auto-Fokus vor Welcome
   ========================================= */
@media (hover: none) and (pointer: coarse) {
    /* Inputs sind nicht fokussierbar solange Welcome-Popup sichtbar */
    .odin-welcome-overlay.is-visible ~ #odin-age-gate .digit,
    .odin-welcome-overlay[style*="display: flex"] ~ #odin-age-gate .digit {
        pointer-events: none;
    }

    /* Nach Welcome-Popup: Inputs wieder aktivieren */
    .odin-welcome-overlay.fade-out ~ #odin-age-gate .digit,
    .odin-welcome-overlay[style*="display: none"] ~ #odin-age-gate .digit {
        pointer-events: auto;
    }

    /* (Android translateY-Fix entfernt — nicht mehr nötig mit Odin Font II) */
}