/* Het Verleidingspad · Mijn account in donkerrood fluweel, met een zijmenu (lw187)
   Geldt voor Mijn account, Mijn abonnement, Mijn edities, tweestapsverificatie en herroepen:
   <body class="pagina-body pg-donker pg-met-menu"> (zie resources/views/layouts/pagina.blade.php).
   De basis (achtergrond, velden, vinkjes, de gouden knop) komt uit spel-riviera-06-inloggen-donker.css.
   Links staat het zijmenu (account/menu.blade.php): wie je bent, de knop naar het spel, de onderdelen en uitloggen.
   Rechts staat het gekozen onderdeel in een venster op rood fluweel, met de inhoud in donkere blokken.
   Op de pagina Mijn account zijn de onderdelen tabbladen (html.ac-tabs): één tegelijk in beeld.
   Op een smal scherm staat het menu boven de inhoud, als een rij die je opzij kunt schuiven. */

/* de kleuren van losse onderdelen (edities, blokken, links) volgen het donkere thema */
html[data-stijl='riviera'] body.pg-donker {
    --tekst: #f6eadb; --zacht: rgba(246, 234, 219, 0.78); --flauw: rgba(246, 234, 219, 0.66); --lijn: rgba(230, 197, 138, 0.3);
    --goud: #e6c58a; --goud2: #e6c58a;
    --riv-inkt: #fbf1df; --riv-grijs: rgba(246, 234, 219, 0.78); --riv-lijn: rgba(230, 197, 138, 0.35); --riv-actie: #e6c58a; --riv-goud-donker: #e6c58a;
}

/* ---- de indeling: zijmenu links, inhoud rechts ---- */
/* Vaste hoogte: het menu en de inhoud zijn even hoog, en die hoogte is op elk onderdeel gelijk. Zo verspringt er niets
   als je van onderdeel wisselt. Is de inhoud langer, dan schuift alleen de inhoud. De hoogte volgt het scherm (logo en voet eraf). */
html[data-stijl='riviera'] body.pg-met-menu .pg-account {
    --ac-hoog: clamp(560px, calc(100dvh - 150px), 820px);
    flex: none; display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 18px; align-items: stretch;
    width: min(1160px, 100%); height: var(--ac-hoog); margin: 0 auto auto;
}
html[data-stijl='riviera'] body.pg-met-menu .pg-account > .paneel {
    width: auto; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 40px); text-align: left;
    scrollbar-width: thin; scrollbar-color: rgba(230, 197, 138, 0.45) transparent;
}
html[data-stijl='riviera'] body.pg-met-menu .pg-account > .paneel .kop, html[data-stijl='riviera'] body.pg-met-menu .pg-account > .paneel .lead { text-align: left; }
html[data-stijl='riviera'] body.pg-met-menu .setup-logo { margin-bottom: clamp(12px, 2vh, 20px); }
html[data-stijl='riviera'] body.pg-met-menu .pg-logo { width: min(280px, 60vw); }

/* ---- het zijmenu ---- */
html[data-stijl='riviera'] body.pg-met-menu .ac-zij {
    display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 22px 16px 14px;
    border: 1px solid rgba(216, 170, 100, 0.6); border-radius: 24px;
    background: linear-gradient(180deg, rgba(58, 10, 28, 0.94) 0%, rgba(34, 7, 26, 0.95) 55%, rgba(21, 6, 18, 0.96) 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 70px -24px rgba(0, 0, 0, 0.85);
}
html[data-stijl='riviera'] body.pg-met-menu .ac-wie { display: flex; align-items: center; gap: 12px; padding: 0 6px; min-width: 0; }
html[data-stijl='riviera'] body.pg-met-menu .ac-letter {
    flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #8a2740, #3a0f1d 78%); box-shadow: inset 0 0 0 1.5px #d8aa64, 0 0 18px rgba(230, 180, 100, 0.18);
    font-family: var(--font-kop); font-weight: 600; font-size: 26px; line-height: 1; color: #f3dcae;
}
html[data-stijl='riviera'] body.pg-met-menu .ac-wie-tekst { min-width: 0; }
html[data-stijl='riviera'] body.pg-met-menu .ac-wie strong { display: block; font-family: var(--font-kop); font-weight: 600; font-size: 22px; line-height: 1.15; color: #fbf1df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-stijl='riviera'] body.pg-met-menu .ac-wie small { display: block; font-size: 13px; color: rgba(246, 234, 219, 0.66); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-stijl='riviera'] body.pg-met-menu .ac-zij .ac-spel { min-height: 48px; margin: auto 0 0; font-size: 16px; text-decoration: none; }

html[data-stijl='riviera'] body.pg-met-menu .ac-nav { padding-top: 12px; border-top: 1px solid rgba(230, 197, 138, 0.22); }
html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { border-top: 0; padding-top: 2px; }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav a,
html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px;
    background: none; font: inherit; font-size: 15.5px; color: rgba(246, 234, 219, 0.86); text-align: left; text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
html[data-stijl='riviera'] body.pg-met-menu .ac-ic { flex: none; width: 21px; height: 21px; color: #d9b46a; }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav a:hover, html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link:hover { background: rgba(230, 197, 138, 0.1); color: #fff6ea; }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav a.aan { background: linear-gradient(180deg, #74142f, #3a0c1e); border-color: rgba(216, 170, 100, 0.6); color: #fff6ea; font-weight: 600; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.9); }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav a.aan .ac-ic { color: #f3dcae; }
html[data-stijl='riviera'] body.pg-met-menu .ac-nav a:focus-visible, html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link:focus-visible { outline: 2px solid #e6c58a; outline-offset: 1px; }
html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-top: 0; padding-top: 10px; border-top: 1px solid rgba(230, 197, 138, 0.22); }
html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet form { display: block; margin: 0; }
html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link { color: rgba(246, 234, 219, 0.72); font-size: 15px; }

/* ---- de tabbladen van Mijn account ---- */
html.ac-tabs .ac-deel:not(.aan) { display: none; }
html.ac-tabs .ac-deel.aan { animation: ac-in 0.25s ease both; }
@keyframes ac-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html:not(.ac-tabs) .ac-deel + .ac-deel { margin-top: 36px; }
html[data-stijl='riviera'] body.pg-met-menu .ac-kop { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(230, 197, 138, 0.22); }
html[data-stijl='riviera'] body.pg-met-menu .ac-kop .kop:not(.tr) { margin: 0; }
html[data-stijl='riviera'] body.pg-met-menu .ac-kop .lead { margin: 6px 0 0; }
html[data-stijl='riviera'] body.pg-met-menu .ac-deel > .melding { margin-bottom: 18px; }

/* ---- de kop van Mijn abonnement en Mijn edities ---- */
html[data-stijl='riviera'] body.pg-met-menu .account-kop { align-items: flex-start; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(230, 197, 138, 0.22); }
html[data-stijl='riviera'] body.pg-met-menu .account-kop .lead { margin: 6px 0 0; }
html[data-stijl='riviera'] body.pg-met-menu .account-kop .knoppen-rij { margin-top: 0; }
/* de knoppen "Mijn account" en "Naar het spel" staan al in het zijmenu */
html[data-stijl='riviera'] body.pg-met-menu .account-kop > .knoppen-rij { display: none; }

/* ---- de inhoud: geen kaarten, maar secties onder elkaar met een dunne lijn ertussen ---- */
html[data-stijl='riviera'] body.pg-donker .account-grid { display: block; }
html[data-stijl='riviera'] body.pg-donker .account-blok { max-width: 640px; margin: 0; padding: 22px 0; border: 0; border-top: 1px solid rgba(230, 197, 138, 0.2); border-radius: 0; background: none; box-shadow: none; }
html[data-stijl='riviera'] body.pg-donker .account-blok:first-child { padding-top: 0; border-top: 0; }
html[data-stijl='riviera'] body.pg-donker .account-blok h2 { margin: 0 0 10px; font-family: var(--font-kop); font-weight: 600; font-size: 22px; line-height: 1.15; color: #e6c58a; }
html[data-stijl='riviera'] body.pg-donker .account-blok p { color: rgba(246, 234, 219, 0.82); line-height: 1.5; }
html[data-stijl='riviera'] body.pg-donker .account-blok > :last-child { margin-bottom: 0; }
html[data-stijl='riviera'] body.pg-donker .account-blok .formulier { margin-top: 4px; }
html[data-stijl='riviera'] body.pg-donker .account-blok .knoppen-rij { justify-content: flex-start; margin-top: 14px; gap: 10px; }
html[data-stijl='riviera'] body.pg-donker .account-blok.gevaar h2 { color: #ffb9ab; }
html[data-stijl='riviera'] body.pg-donker .groot-label { margin: 0 0 4px; font-family: var(--font-kop); font-weight: 500; font-size: 30px; line-height: 1.1; color: #fbf1df !important; }
html[data-stijl='riviera'] body.pg-donker .groot-label.goed { color: #b5e8c4 !important; }
html[data-stijl='riviera'] body.pg-met-menu .ac-kop + .account-grid > .account-blok:first-child, html[data-stijl='riviera'] body.pg-met-menu .ac-kop + .account-blok { padding-top: 0; border-top: 0; }

/* gezelschappen */
html[data-stijl='riviera'] body.pg-donker .gz-rij { display: flex; align-items: center; gap: 16px; max-width: 760px; padding: 14px 0; border-bottom: 1px solid rgba(230, 197, 138, 0.18); }
html[data-stijl='riviera'] body.pg-donker .gz-tekst { flex: 1; min-width: 0; }
html[data-stijl='riviera'] body.pg-donker .gz-pionnen { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 84px; }
html[data-stijl='riviera'] body.pg-donker .gz-pionnen img { width: 34px; height: auto; margin: 0 -6px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
html[data-stijl='riviera'] body.pg-donker .gz-rij strong { display: block; font-family: var(--font-kop); font-weight: 600; font-size: 21px; line-height: 1.2; color: #fbf1df; }
html[data-stijl='riviera'] body.pg-donker .gz-rij small { color: rgba(246, 234, 219, 0.66); }
html[data-stijl='riviera'] body.pg-donker .gz-rij + .hulp-tekst { margin-top: 14px; }
html[data-stijl='riviera'] body.pg-donker .link-knop { color: #e6c58a; }
html[data-stijl='riviera'] body.pg-donker .link-knop.rood { color: #ffab9b; }
html[data-stijl='riviera'] body.pg-donker .account-blok a:not(.knop) { color: #e6c58a; text-underline-offset: 3px; }

/* ---- knoppen binnen Mijn account: de gouden knop is compacter en heeft geen pijl ---- */
html[data-stijl='riviera'] body.pg-met-menu .paneel .knop { min-height: 46px; padding: 0 22px; font-size: 15.5px; }
html[data-stijl='riviera'] body.pg-met-menu .paneel .knop.goud { margin-top: 0; justify-self: start; font-size: 15.5px; }
html[data-stijl='riviera'] body.pg-met-menu .paneel .knop.goud::after { display: none; }
html[data-stijl='riviera'] body.pg-met-menu .paneel .formulier > .knop { justify-self: start; }
html[data-stijl='riviera'] body.pg-donker .knop.zacht { background: rgba(14, 4, 9, 0.4); border: 1px solid rgba(230, 197, 138, 0.5); color: #fbf1df; text-decoration: none; }
html[data-stijl='riviera'] body.pg-donker .knop.zacht:not(:disabled):hover { background: rgba(230, 197, 138, 0.14); border-color: #e6c58a; }
html[data-stijl='riviera'] body.pg-donker .knop.rood { background: linear-gradient(180deg, #b23a3a, #7c1f26); border: 1px solid #d9756b; color: #fff; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9); }
html[data-stijl='riviera'] body.pg-donker .knop.rood:not(:disabled):hover { background: linear-gradient(180deg, #c44545, #8a242b); }
html[data-stijl='riviera'] body.pg-donker .knop:disabled { opacity: 0.55; }

/* ---- de taalkeuze: een keuzelijst, met een wereldbolletje vooraan en een gouden pijltje achteraan ---- */
html[data-stijl='riviera'] body.pg-donker .ac-select {
    appearance: none; -webkit-appearance: none; width: 100%; max-width: 360px; min-height: 52px; padding: 0 46px 0 46px; border-radius: 13px;
    border: 1px solid rgba(230, 197, 138, 0.3); background-color: rgba(14, 4, 9, 0.55); color: #fbf1df; font: inherit; font-size: 16px; cursor: pointer;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.6 2.4 3.8 5.2 3.8 8.5s-1.2 6.1-3.8 8.5c-2.6-2.4-3.8-5.2-3.8-8.5S9.4 5.9 12 3.5z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6c58a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat; background-position: 15px 50%, right 15px center; background-size: 20px 20px, 18px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
html[data-stijl='riviera'] body.pg-donker .ac-select:hover { border-color: rgba(230, 197, 138, 0.55); }
html[data-stijl='riviera'] body.pg-donker .ac-select:focus { outline: none; border-color: #e6c58a; box-shadow: 0 0 0 3px rgba(230, 197, 138, 0.2); }
html[data-stijl='riviera'] body.pg-donker .ac-select option { background: #2a0b18; color: #fbf1df; }
html[data-stijl='riviera'] body.pg-donker .account-blok .formulier + .hulp-tekst { margin-top: 14px; }

/* ---- edities en abonnement ---- */
/* edities als rijen onder elkaar, geen vakken */
html[data-stijl='riviera'] body.pg-donker .editie-lijst { gap: 0; }
html[data-stijl='riviera'] body.pg-donker .editie-lijst li { padding: 12px 0; border: 0; border-bottom: 1px solid rgba(230, 197, 138, 0.18); border-radius: 0; background: none; }
html[data-stijl='riviera'] body.pg-donker .editie-lijst li:first-child { border-top: 1px solid rgba(230, 197, 138, 0.18); }
html[data-stijl='riviera'] body.pg-donker .editie-lijst strong { color: #fbf1df; font-size: 16.5px; }
html[data-stijl='riviera'] body.pg-donker .editie-keuze { border-color: rgba(230, 197, 138, 0.35); background: rgba(14, 4, 9, 0.4); }
html[data-stijl='riviera'] body.pg-donker .editie-keuze strong { color: #fbf1df; }
html[data-stijl='riviera'] body.pg-donker .editie-keuze:has(input:checked) { border-color: #e6c58a; background: linear-gradient(165deg, #6a142b, #45122a); }
html[data-stijl='riviera'] body.pg-donker .editie-koop .vink { color: rgba(246, 234, 219, 0.82); }

html[data-stijl='riviera'] body.pg-donker .editie-lijst { max-width: 640px; }
html[data-stijl='riviera'] body.pg-donker .editie-talen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 14px; }
html[data-stijl='riviera'] body.pg-donker .editie-taal { color: rgba(246, 234, 219, 0.78); }
html[data-stijl='riviera'] body.pg-donker .editie-taal b { margin-right: 4px; font-weight: 600; color: #e6c58a; }
html[data-stijl='riviera'] body.pg-donker .editie-taal.uit { opacity: 0.6; }

/* ---- tweestapsverificatie ---- */
html[data-stijl='riviera'] body.pg-donker .stappen-lijst { color: rgba(246, 234, 219, 0.86); }
html[data-stijl='riviera'] body.pg-donker code.sleutel, html[data-stijl='riviera'] body.pg-donker .herstelcodes code { color: #f3dcae; }
html[data-stijl='riviera'] body.pg-donker .herstelcodes { background: rgba(14, 4, 9, 0.5); border: 1px solid rgba(230, 197, 138, 0.3); }
html[data-stijl='riviera'] body.pg-met-menu .paneel > p { color: rgba(246, 234, 219, 0.86); max-width: 62ch; }
html[data-stijl='riviera'] body.pg-met-menu .paneel > .formulier, html[data-stijl='riviera'] body.pg-met-menu .paneel > .uitklap { max-width: 480px; }
html[data-stijl='riviera'] body.pg-met-menu .paneel > .kop:not(.tr) + .lead { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(230, 197, 138, 0.22); max-width: none; }
html[data-stijl='riviera'] body.pg-donker .paneel a:not(.knop):not(.pg-ander-knop) { color: #e6c58a; }

/* ---- een laag scherm: het menu compacter, zodat het in de vaste hoogte past ---- */
@media (max-height: 880px) and (min-width: 961px) {
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij { gap: 10px; padding: 16px 14px 10px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-letter { width: 44px; height: 44px; font-size: 23px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-wie strong { font-size: 20px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij .ac-spel { min-height: 44px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav { padding-top: 8px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav ul { gap: 2px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav a, html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link { min-height: 38px; font-size: 15px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { padding-top: 6px; }
    html[data-stijl='riviera'] body.pg-met-menu .setup-logo { margin-bottom: 10px; }
    html[data-stijl='riviera'] body.pg-met-menu .pg-logo { width: min(240px, 50vw); }
    html[data-stijl='riviera'] body.pg-met-menu .pagina-voet { margin-top: 10px; padding: 5px 18px; }
    html[data-stijl='riviera'] body.pg-met-menu .setup { padding-top: 12px; padding-bottom: 10px; }
    html[data-stijl='riviera'] body.pg-met-menu .pg-account { --ac-hoog: max(540px, calc(100dvh - 128px)); }
}

/* ---- smal scherm en telefoon: het menu boven de inhoud ---- */
@media (max-width: 960px) {
    html[data-stijl='riviera'] body.pg-met-menu .pg-account { grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(680px, 100%); height: auto; }
    html[data-stijl='riviera'] body.pg-met-menu .pg-account > .paneel { height: auto; overflow: visible; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij { overflow: visible; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { margin-top: 0; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 14px 14px 10px; border-radius: 20px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij .ac-spel, html[data-stijl='riviera'] body.pg-met-menu .ac-nav, html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { grid-column: 1 / -1; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij .ac-spel { margin-top: 0; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav { padding-top: 10px; margin: 0 -14px; overflow-x: auto; scrollbar-width: none; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav::-webkit-scrollbar { display: none; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav ul { display: flex; gap: 6px; padding: 0 14px; width: max-content; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-nav a { min-height: 40px; padding: 0 14px; border-color: rgba(230, 197, 138, 0.3); border-radius: 999px; white-space: nowrap; font-size: 14.5px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-zij-voet { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; }
    html[data-stijl='riviera'] body.pg-met-menu .ac-voet-link { width: auto; min-height: 38px; }
    html[data-stijl='riviera'] body.pg-met-menu .pg-account > .paneel { padding: 22px 18px; }
    html[data-stijl='riviera'] body.pg-donker .gz-pionnen { width: 64px; }
    html[data-stijl='riviera'] body.pg-donker .gz-pionnen img { width: 26px; }
}
@media (max-width: 480px) {
    html[data-stijl='riviera'] body.pg-donker .gz-rij { flex-wrap: wrap; gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { html.ac-tabs .ac-deel.aan { animation: none; } }
