* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    overflow-y: auto; background: #000000; color: #FAFF0A; /* Retro Goud-Geel */
    font-family: Consolas, monospace; min-height: 100vh;

}
code, pre, input { user-select: text !important; }

#cards-canvas { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; }

/* De centrale console wrapper: padding geoptimaliseerd voor mobiele ademruimte! */
#playingcard-core {
    max-width: 850px; margin: 0 auto;
    padding: 100px 20px 40px; /* 100px top ademruimte! */
    background: rgba(15, 2, 25, 0.94); /* Diep mystiek paars/zwart */
    border: 1px solid #FAFF0A; 
    box-shadow: 0 0 25px rgba(250, 255, 10, 0.15);
}

header { text-align: center; border-bottom: 1px solid #FAFF0A; padding-bottom: 20px; margin-bottom: 35px; width: 100%; }
.card-glitch-title { font-size: 22px; color: #FAFF0A; letter-spacing: 1px; text-shadow: 0 0 10px rgba(250, 255, 10, 0.4); }
.subtitle { color: #00FFCC; font-size: 12px; margin-top: 5px; }

.card-block { margin-bottom: 35px; width: 100%; }
.card-block h2 { font-size: 14px; color: #00FFCC; margin-bottom: 15px; }

/* 🔮 INTERACTIEVE 3D CARD FLIP PUZZEL STYLING */
#card-puzzle-box {
    background: rgba(5, 5, 5, 0.96); border: 1px solid #FF0F6F; padding: 25px; margin-bottom: 35px; text-align: center;
    box-shadow: inset 0 0 15px rgba(255, 15, 111, 0.1); width: 100%;
}
#card-puzzle-box h3 { font-size: 14px; color: #FF0F6F; margin-bottom: 5px; }

/* ⚪ MOBIELE INSTRUCTIE FIX: GEFORCEERD NAAR HELDERE WITTE LETTERS */
.puzzle-instruction { font-size: 14px !important; color: #ffffff !important; margin-bottom: 25px; line-height: 1.6; text-align: left; }

#card-slots-row { display: flex; justify-content: center; gap: 25px; margin-bottom: 25px; perspective: 1000px; width: 100%; }

.cyber-card { width: 75px; height: 110px; cursor: pointer; }
.card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 2px solid #FF0F6F; }

/* Klasse die via JS wordt getoggled bij bevriezen */
.cyber-card.is-flipped .card-inner { transform: rotateY(180deg); border-color: #FAFF0A; box-shadow: 0 0 12px #FAFF0A; }

.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; }
.card-front { background: #000; color: #FF0F6F; }
.card-back { background: #111; color: #00FFCC; transform: rotateY(180deg); font-size: 13px; text-align: center; padding: 5px; line-height: 1.3; }

#shuffle-deck-btn { background: transparent; border: 1px solid #00FFCC; color: #00FFCC; font-family: inherit; font-size: 11px; font-weight: bold; padding: 8px 15px; cursor: pointer; transition: all 0.3s; margin-bottom: 15px; }
#shuffle-deck-btn:hover { background: #00FFCC; color: #000; box-shadow: 0 0 10px #00FFCC; }
#card-status { font-size: 12px; font-weight: bold; color: #00FFCC; line-height: 1.4; }

/* MEDIA OVERLAYS & CENTRERING */
.media-container { 
    position: relative; 
    max-width: 450px; 
    width: 100%; 
    margin: 20px auto;       /* Centreert de complete container op de pagina met wat verticale ruimte */
    display: flex;           /* Activeert Flexbox */
    justify-content: center; /* Centreert de afbeelding horizontaal binnen de container */
    align-items: center;     /* Centreert de afbeelding verticaal binnen de container */
    border: 1px solid #333; 
}

.media-container img { 
    max-width: 100%;         /* Zorgt dat de kaart netjes meeschaalt en nooit buiten de container breekt */
    width: auto;
    height: auto; 
    display: block; 
    pointer-events: none;    /* Jouw anti-download beschermingslaag 1 */
}



/* Jouw neon-gloed effect */
.arcana-neon-glow { 
    box-shadow: 0 0 15px rgba(250, 255, 10, 0.15); 
}

/* ⚪ CYBER TEXT BOX UPGRADE: GEFORCEERD NAAR HELDERE WITTE LETTERS */
.text-terminal-style { background: rgba(5, 5, 5, 0.9); border-left: 3px solid #00FFCC; padding: 20px; width: 100%; }
.text-terminal-style p { font-size: 16px !important; color: #ffffff !important; line-height: 1.6; text-align: left; }

/* MENUKNOPPEN INTERACTIEVE LAY-OUT VIA FLEXBOX */
#card-nav-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 35px; width: 100%; }
.card-nav-btn { height: 48px; background: transparent; border: 1px solid #FAFF0A; color: #FAFF0A; font-family: inherit; font-weight: bold; font-size: 13px; cursor: pointer; transition: all 0.2s ease; text-align: left; padding-left: 20px; }
.card-nav-btn:hover { background: rgba(250, 255, 10, 0.08); color: #fff; border-color: #fff; box-shadow: 0 0 12px rgba(250, 255, 10, 0.3); transform: translateX(5px); }

.tarot-btn { border-color: #00FFCC !important; color: #00FFCC !important; font-size: 14px !important; }
.tarot-btn:hover { background: #00FFCC !important; color: #000 !important; box-shadow: 0 0 20px #00FFCC !important; }

footer { text-align: center; border-top: 1px solid #222; padding-top: 20px; width: 100%; }
.back-hub-btn { height: 45px; padding: 0 25px; background: #FF1A0A; border: none; color: #fff; font-family: inherit; font-weight: bold; cursor: pointer; }
.back-hub-btn:hover { background: #FF0F6F; box-shadow: 0 0 15px #FF0F6F; }

@media (max-width: 768px) {
    #card-slots-row { gap: 12px; }
    .cyber-card { width: 65px; height: 95px; }
    .card-back { font-size: 10px; padding: 2px; }
    #playingcard-core { padding-top: 110px; }
}

/* Queen of Hearts: bespoke playing-card title glitch */
.card-glitch-title{position:relative;animation:queen-flicker 6s infinite;font-size:clamp(22px,4vw,38px)}
.card-glitch-title::before,.card-glitch-title::after{content:attr(data-text);position:absolute;inset:0;pointer-events:none;opacity:0}
.card-glitch-title::before{color:#ff0f6f;text-shadow:-3px 0 #ff0f6f;animation:queen-echo 6s infinite}
.card-glitch-title::after{color:#00ffcc;text-shadow:3px 0 #00ffcc;animation:queen-echo 6s infinite reverse}
@keyframes queen-echo{0%,91%,96%,100%{opacity:0;transform:translateX(0)}92%,94%{opacity:.7;transform:translateX(3px)}93%{opacity:.6;transform:translateX(-3px)}}
@keyframes queen-flicker{0%,95%,100%{filter:none}96%{filter:hue-rotate(70deg)}97%{filter:brightness(1.5)}}
.alice-btn{border-color:#b8ff22;color:#cfff4c}.alice-btn:hover,.alice-btn:focus-visible{background:#b8ff22;color:#090909;border-color:#b8ff22;box-shadow:0 0 18px #b8ff22}
.tic-btn{border-color:#ff49c5;color:#ff83da}.tic-btn:hover,.tic-btn:focus-visible{background:#ff49c5;color:#090909;border-color:#ff49c5;box-shadow:0 0 18px #ff49c5}
.cyber-card:focus-visible{outline:3px solid #00ffcc;outline-offset:5px}
#card-fireworks{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden}.heart-particle{position:absolute;left:50%;top:54%;font-size:clamp(18px,4vw,35px);animation:heart-burst 1.8s ease-out forwards}@keyframes heart-burst{to{transform:translate(var(--dx),var(--dy)) rotate(var(--spin));opacity:0}}
@media(prefers-reduced-motion:reduce){.card-glitch-title,.card-glitch-title::before,.card-glitch-title::after,.heart-particle{animation:none} .heart-particle{display:none}}
