/* Foxy in beeld, Lingo: laadt enkel op play/lingo (naast galerij.css). */
/* ---------- Lingo: Foxy's paspoort (okt 2026) ---------- */
.lingo { --papier: #f7f0de; --papier2: #efe4c8; --inkt: #2b2a3a; --kaft: #1d2b57; }

/* hero: Foxy staat vanaf 1000 px absoluut rechts (galerij.css, zoals op de andere spelpagina's). Lingo heeft een
   langere intro en de Facebook-strook: daar valt hij anders over de tekst. Vanaf 1000 px wordt de tekstkolom dus
   smaller, zodat Foxy er echt naast staat; daaronder staat hij onder de tekst (ook galerij.css). */
.lingo-intro { max-width: 640px; }
@media (min-width: 1000px) {
    .hero--lingo .lingo-intro, .hero--lingo .lingo-nieuw { max-width: 540px; }
}

/* nieuw: inloggen met Facebook (onder de hero-tekst) */
.lingo-nieuw { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto 26px; padding: 12px 18px; border-radius: 14px;
    background: rgba(24, 119, 242, 0.12); border: 1px solid rgba(24, 119, 242, 0.45); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5;
    text-align: left; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.lingo-nieuw:hover { border-color: rgba(24, 119, 242, 0.85); background: rgba(24, 119, 242, 0.18); }
.lingo-nieuw strong { color: var(--text-primary); }
.lingo-nieuw > .fa-facebook { flex: 0 0 auto; font-size: 1.6rem; color: #4b9bff; }
.lingo-nieuw > .fa-arrow-down { flex: 0 0 auto; margin-left: auto; color: #7fb6ff; font-size: 0.85rem; }

/* negen oefenvormen: de stickerkaarten van de site */
.lingo-modi .features__grid { max-width: 1040px; margin: 0 auto; }
.lingo-modi .feature h3 { font-size: 1.12rem; margin: 0 0 8px; }
.lingo-modi .feature p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.lingo-modi__extra { max-width: 760px; margin: 34px auto 0; color: var(--text-secondary); line-height: 1.7; text-align: center; }

/* ---------- proefspel: paspoort ---------- */
.lingoproef { padding: 70px 0 90px; background: var(--surface); }
.paspoort { position: relative; max-width: 940px; margin: 0 auto; }
.paspoort__talen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.paspoort__taal { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.paspoort__taal .flag { width: 24px; height: 16px; border-radius: 3px; }
.paspoort__taal:hover { border-color: rgba(255, 107, 53, 0.6); color: var(--text-primary); }
.paspoort__taal[aria-pressed="true"] { border-color: var(--primary); background: rgba(255, 107, 53, 0.14); color: var(--text-primary); }
.paspoort__boek { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: 12px; border-radius: 22px;
    background: linear-gradient(160deg, #24356b, var(--kaft)); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 215, 130, 0.35); }
.paspoort__blad { position: relative; padding: 20px 22px; color: var(--inkt);
    background: repeating-radial-gradient(circle at 30% 20%, rgba(170, 140, 80, 0.07) 0 2px, transparent 2px 9px), linear-gradient(var(--papier), var(--papier2)); }
.paspoort__blad--links { border-radius: 14px 4px 4px 14px; box-shadow: inset -14px 0 18px -14px rgba(60, 40, 10, 0.45); }
.paspoort__blad--rechts { border-radius: 4px 14px 14px 4px; box-shadow: inset 14px 0 18px -14px rgba(60, 40, 10, 0.45); min-height: 372px; }
.paspoort__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 14px; padding-bottom: 8px;
    border-bottom: 1px dashed rgba(43, 42, 58, 0.3); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6a5a3a; }
.paspoort__kop b { color: var(--inkt); }
.paspoort__vakken { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.paspoort__vak { position: relative; grid-column: span 2; aspect-ratio: 1; border: 2px dashed rgba(43, 42, 58, 0.18); border-radius: 50%;
    display: grid; place-items: center; color: rgba(43, 42, 58, 0.28); font-weight: 800; font-size: 1.1rem; }
.paspoort__vak:nth-child(4) { grid-column: 2 / span 2; } /* tweede rij: twee vakken in het midden */
.paspoort__foto { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.78rem; color: #6a5a3a; line-height: 1.45; }
.paspoort__foto img { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 8px; background: #e6d9b8; box-shadow: inset 0 0 0 2px rgba(43, 42, 58, 0.15); }
.paspoort__foto b { display: block; color: var(--inkt); font-size: 0.9rem; letter-spacing: 0.04em; }

/* een stempel (in een vak en op de themabladzijde) */
.stempel { --sc: #c2410c; display: grid; place-items: center; align-content: center; gap: 1px; padding: 6px 8px; border: 3px double var(--sc);
    border-radius: 12px; color: var(--sc); text-align: center; text-transform: uppercase; font-weight: 800; line-height: 1.12; letter-spacing: 0.06em;
    rotate: var(--r, -6deg); mix-blend-mode: multiply; }
.stempel b { font-size: 0.72rem; }
.stempel small { font-size: 0.7rem; font-weight: 700; opacity: 0.85; letter-spacing: 0.08em; }
.paspoort__vak .stempel { position: absolute; inset: 6%; border-radius: 50%; }
.stempel__teken { display: none; width: 58%; height: 58%; }
.paspoort__vak .stempel--gemist { --sc: #8a8170; border-style: dashed; border-width: 2px; opacity: 0.75; }

/* rechterbladzijde: het spel */
.lingo-spel { display: flex; flex-direction: column; height: 100%; }
.lingo-luister { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 4px auto 10px; border: none; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff9a6b, #e85a1f); color: #fff; cursor: pointer; box-shadow: 0 10px 22px rgba(232, 90, 31, 0.4); }
.lingo-luister svg { width: 40px; height: 40px; }
.lingo-luister::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid rgba(232, 90, 31, 0.45); opacity: 0; }
.lingo-luister:disabled { cursor: default; opacity: 0.55; box-shadow: none; }
.lingo-woord { min-height: 3.1em; margin: 0 0 12px; text-align: center; font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--inkt); }
.lingo-woord small { display: block; font-size: 0.8rem; font-weight: 600; color: #6a5a3a; }
.lingo-woord[data-leeg] { visibility: hidden; }
.lingo-opties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.lingo-optie { min-height: 54px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(43, 42, 58, 0.16); background: #fffdf6; color: var(--inkt);
    font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.lingo-optie:hover:not(:disabled) { border-color: #e85a1f; }
.lingo-optie:disabled { cursor: default; }
.lingo-optie.is-goed { border-color: #16a34a; background: #dcfce7; color: #14532d; }
.lingo-optie.is-fout { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.lingo-start, .lingo-einde { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 24px; border-radius: inherit; text-align: center; background: linear-gradient(rgba(247, 240, 222, 0.97), rgba(239, 228, 200, 0.97)); }
.lingo-start p, .lingo-einde p { margin: 0; max-width: 340px; color: var(--inkt); font-weight: 600; line-height: 1.55; }
.lingo-einde .lingo-score { font-size: 2.6rem; font-weight: 900; line-height: 1; color: #c2410c; }
.lingo-einde .btn--ghost { color: var(--inkt); border-color: rgba(43, 42, 58, 0.35); }
.paspoort[data-staat="spel"] .lingo-start, .paspoort[data-staat="spel"] .lingo-einde,
.paspoort[data-staat="start"] .lingo-einde, .paspoort[data-staat="einde"] .lingo-start { display: none; }
html:not(.js) .paspoort__talen, html:not(.js) .lingo-start .btn { display: none; }
.lingo-host { display: flex; align-items: flex-end; gap: 10px; max-width: 640px; margin: 18px auto 0; }
.lingo-host img { width: 78px; height: 78px; flex: 0 0 auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.lingo-host .fx-bubble { flex: 1 1 auto; margin-bottom: 8px; }

/* ---------- inloggen met Facebook ---------- */
.lingo-account { padding: 90px 0 70px; }
.lingo-account .features__grid { max-width: 920px; margin: 0 auto; }
.lingo-account .feature h3 { font-size: 1.12rem; margin: 0 0 8px; }
.lingo-account .feature p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.lingo-account .feature--fb .feature__icon { --ic: 59, 130, 246; }
.lingo-account__noot { max-width: 680px; margin: 30px auto 0; text-align: center; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- rangen: een trap van Vossenpup tot Legendarische Vos ---------- */
.lingo-rangen { padding: 40px 0 90px; }
.rangen { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 8px; list-style: none; max-width: 1040px; margin: 0 auto; padding: 0; }
.rang { --i: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 4px 12px; border-radius: 14px 14px 6px 6px;
    background: linear-gradient(rgba(255, 191, 36, calc(0.05 + var(--i) * 0.02)), rgba(255, 191, 36, 0.02)); border: 1px solid rgba(255, 191, 36, 0.18);
    margin-bottom: calc(var(--i) * 6px); }
.rang img { width: 84px; height: 84px; margin: -2px auto 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.rang b { display: flex; align-items: center; justify-content: center; min-height: 2.4em; font-size: 0.82rem; line-height: 1.2; color: var(--text-primary); }
.rang span { margin-top: 4px; font-size: 0.75rem; color: #fbbf24; font-weight: 700; }
.rangen__veeg { display: none; }
.lingo-rangen__tekst { max-width: 760px; margin: 30px auto 0; color: var(--text-secondary); line-height: 1.7; text-align: center; }

/* ---------- 18 thema's als stempels ---------- */
.lingo-themas { padding: 80px 0 90px; background: var(--surface); }
.themablad { max-width: 980px; margin: 0 auto; padding: 26px 22px 30px; border-radius: 18px; color: var(--inkt);
    background: repeating-radial-gradient(circle at 70% 30%, rgba(170, 140, 80, 0.07) 0 2px, transparent 2px 9px), linear-gradient(var(--papier), var(--papier2));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), inset 0 0 0 10px rgba(29, 43, 87, 0.92), inset 0 0 0 12px rgba(255, 215, 130, 0.35); }
.themablad ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; list-style: none; margin: 0; padding: 12px; }
.themablad .stempel { min-height: 86px; padding: 8px 6px; }
.themablad .stempel b { font-size: 0.74rem; }
.lingo-themas__tekst { max-width: 780px; margin: 30px auto 0; color: var(--text-secondary); line-height: 1.7; }
.lingo-themas__tekst p { margin: 0 0 12px; }

/* ---------- smaller ---------- */
@media (max-width: 900px) {
    .themablad ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rangen { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 6px 4px 10px; align-items: flex-end; scrollbar-width: thin; }
    .rang { flex: 0 0 104px; scroll-snap-align: start; }
    .rangen__veeg { display: block; margin: 8px 0 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
}
@media (max-width: 760px) {
    .paspoort__boek { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    .paspoort__blad--links { order: 2; border-radius: 4px 4px 14px 14px; box-shadow: inset 0 14px 18px -14px rgba(60, 40, 10, 0.45); padding: 14px 16px 16px; }
    .paspoort__blad--rechts { order: 1; border-radius: 14px 14px 4px 4px; box-shadow: inset 0 -14px 18px -14px rgba(60, 40, 10, 0.45); min-height: 356px; padding: 16px; }
    .paspoort__vakken { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .paspoort__vak, .paspoort__vak:nth-child(4) { grid-column: auto; }
    .paspoort__vak .stempel { inset: 2%; padding: 2px; }
    /* te klein voor tekst: een getekende ster (juist) of een kruisje (gemist) */
    .paspoort__vak .stempel b, .paspoort__vak .stempel small { display: none; }
    .paspoort__vak .stempel__teken { display: block; width: 26px; height: 26px; }
    .paspoort__foto { display: none; }
    .paspoort__kop { margin-bottom: 10px; }
}
@media (max-width: 520px) {
    .themablad { padding: 18px 12px 22px; }
    .themablad ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 8px; }
    .themablad .stempel { min-height: 66px; }
    .lingo-optie { font-size: 0.95rem; min-height: 50px; }
    .lingo-host img { width: 60px; height: 60px; }
    .lingo-nieuw { font-size: 0.9rem; }
}

/* ---------- beweging ---------- */
@keyframes lingo-stempel { 0% { opacity: 0; scale: 1.7; } 60% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }
@keyframes lingo-golf { 0% { opacity: 0.8; scale: 0.9; } 100% { opacity: 0; scale: 1.25; } }
@keyframes lingo-schud { 0%, 100% { translate: 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@media (prefers-reduced-motion: no-preference) {
    .paspoort__vak .stempel { animation: lingo-stempel 0.42s cubic-bezier(.2, .75, .3, 1.1) both; }
    .lingo-luister.is-speelt::after { animation: lingo-golf 0.9s ease-out infinite; }
    .lingo-optie.is-fout { animation: lingo-schud 0.32s ease; }
    .lingo-host img.is-pop, .lingo-host .fx-bubble.is-pop { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }
    .rang img { transition: transform 0.3s cubic-bezier(.2, .75, .2, 1.3); }
    .rang:hover img { transform: translateY(-6px) rotate(-4deg); }
    .themablad .stempel { transition: rotate 0.3s ease, scale 0.3s ease; }
    .themablad .stempel:hover { rotate: 0deg; scale: 1.06; }
}
/* ---------- einde Lingo ---------- */
