.tl-page {
    color-scheme: dark;
    --pane: #111d33;
    --ink: #fbf4e6;
    --text: #d5deee;
    --dim: #abbad2;
    --gold: #e6cb91;
    --gold2: #bd9659;
    --line: #3a4b69;
    --title: "Cormorant Garamond", Georgia, serif;
    --serif: Lora, Georgia, serif;
    --ui: system-ui,sans-serif;
}

.tl-page *,
.tl-page *::before,
.tl-page *::after {
    box-sizing: border-box;
}

body.tl-body {
    margin: 0;
    background: radial-gradient(ellipse 70% 520px at 50% 0, #243552, transparent), #080f20;
    color: #fbf4e6;
    font-family: Lora, Georgia, serif;
}

.tl-page a {
    color: inherit;
    text-decoration: none;
}

.tl-page button,
.tl-page input,
.tl-page select {
    font: inherit;
}

.tl-page button,
.tl-page select {
    cursor: pointer;
}

.tl-page a:focus-visible,
.tl-page button:focus-visible,
.tl-page input:focus-visible,
.tl-page select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.tl-page h1,
.tl-page h2,
.tl-page h3,
.tl-page p,
.tl-page figure {
    margin: 0;
}

.tl-page h1,
.tl-page h2,
.tl-page h3 {
    font-family: var(--title);
    font-weight: 500;
}

.tl-page .crumb {
    display: flex;
    gap: 9px;
    padding-top: 21px;
    align-items: center;
    color: var(--dim);
    font: 11px/1.5 var(--ui);
}

.tl-page .crumb span[aria-hidden] {
    color: var(--gold);
}

.tl-page .hero {
    padding: 27px 0 27px;
    text-align: center;
}

.tl-page .tag {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 700 10px/1.4 var(--ui);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.tl-page .tag::before {
    content: "";
    height: 1px;
    width: 20px;
    background: #ae905f;
}

.tl-page .hero .tag {
    justify-content: center;
}

.tl-page .hero .tag::after {
    content: "";
    height: 1px;
    width: 20px;
    background: #ae905f;
}

.tl-page .hero h1 {
    font-size: clamp(43px,6vw,70px);
    letter-spacing: -.055em;
    line-height: .98;
    margin: 12px 0 10px;
    text-wrap: balance;
}

.tl-page .hero p {
    max-width: 670px;
    margin: auto;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    text-wrap: balance;
}

.tl-page .spread {
    display: grid;
    grid-template-columns: minmax(0,.84fr) minmax(0,1.4fr);
    border: 1px solid #4a5974;
    border-radius: 15px;
    background: var(--pane);
    overflow: hidden;
}

.tl-page .setup {
    padding: 23px 25px 22px;
    background: linear-gradient(137deg,#1a2943,#111c31 78%);
    min-width: 0;
    border-right: 1px solid var(--line);
}

.tl-page h2 {
    font-size: 33px;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.tl-page .setup h2 {
    margin: 0 0 15px;
}

.tl-page .fields {
    display: grid;
    grid-template-columns: minmax(0,1fr) 134px;
    gap: 10px;
    margin-bottom: 16px;
}

.tl-page .field {
    min-width: 0;
}

.tl-page .field label,
.tl-page legend {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font: 650 12px/1.35 var(--ui);
}

.tl-page .field label span {
    font-weight: 450;
    color: var(--dim);
}

.tl-page .field input,
.tl-page .field select {
    display: block;
    width: 100%;
    min-height: 42px;
    border: 1px solid #50617e;
    border-radius: 6px;
    background: #0c172b;
    color: var(--ink);
    padding: 7px 9px;
    font: 13px/1.3 var(--ui);
}

.tl-page .field input::placeholder {
    color: #9dadc7;
}

.tl-page fieldset {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.tl-page legend {
    padding: 0;
}

.tl-page .decks {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
}

.tl-page .deck {
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.tl-page .deck input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.tl-page .deck-option {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 7px 4px 6px;
    border: 1px solid #4a5d7b;
    border-radius: 7px;
    background: #14223a;
    color: var(--text);
    text-align: center;
    font: 650 10px/1.25 var(--ui);
}

.tl-page .deck-option img {
    display: block;
    width: 26px;
    height: 42px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #aa9472;
}

.tl-page .deck input:checked+.deck-option {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px #ddc4835c;
    background: #262939;
    color: var(--gold);
}

.tl-page .deck input:focus-visible+.deck-option {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.tl-page .draw {
    width: 100%;
    min-height: 45px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #f1d495;
    background: linear-gradient(125deg,#f1d99f,#d4ae6d);
    color: #151923;
    font: 750 13px/1.25 var(--ui);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tl-page .stage {
    min-width: 0;
    padding: 23px 23px 20px;
    background: radial-gradient(ellipse at 50% 52%,#223453,#111c33 72%);
}

.tl-page .stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.tl-page .stage-head h2 {
    font-size: 31px;
}

.tl-page .deck-status {
    color: var(--gold);
    border: 1px solid #6b604d;
    background: #241f2e;
    border-radius: 20px;
    padding: 5px 8px;
    font: 650 10px/1.2 var(--ui);
    text-align: center;
}

.tl-page .cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    padding-top: 15px;
}

.tl-page .card {
    text-align: center;
    min-width: 0;
}

.tl-page .card-label {
    margin-bottom: 7px;
    color: var(--gold);
    font: 700 10px/1.25 var(--ui);
    letter-spacing: .065em;
}

.tl-page .card-label span {
    opacity: .74;
    margin-right: 3px;
}

.tl-page .card-art {
    display: grid;
    place-items: center;
    width: min(100%,119px);
    aspect-ratio: 600/994;
    margin: 0 auto 8px;
    border: 1px solid #c3a670;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 18px #0208178c;
    background: #1c2d4e;
}

.tl-page .card-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-page .back {
    position: relative;
    background: radial-gradient(ellipse,#2e426a,#172543 78%);
    border-color: #8c9dbb;
}

.tl-page .back::before {
    content: "";
    position: absolute;
    inset: 7%;
    border: 1px solid #a5b5d46b;
    border-radius: 3px;
}

.tl-page .back::after {
    content: "";
    position: absolute;
    width: 53%;
    aspect-ratio: 1;
    transform: rotate(45deg);
    border: 1px solid #b6c7e152;
}

.tl-page .back span {
    color: #cfdef9;
    font: 32px/1 Georgia;
}

.tl-page .card figcaption {
    font-size: 21px;
    line-height: 1.05;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.tl-page .card figcaption a {
    color: var(--ink);
}

.tl-page .card figcaption a:hover {
    text-decoration: underline;
    text-underline-offset: .16em;
}

.tl-page .stage-note {
    margin: 9px auto 0;
    text-align: center;
    color: var(--dim);
    font: 11px/1.4 var(--ui);
    overflow-wrap: anywhere;
}

.tl-page .result {
    padding: 22px 0 28px;
}

.tl-page .result-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.tl-page .result-head p {
    color: var(--dim);
    font: 11px/1.4 var(--ui);
    overflow-wrap: anywhere;
}

.tl-page .duidingen {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
}

.tl-page .duiding {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 15px;
    background: #111c31;
}

.tl-page .duiding .role {
    color: var(--gold);
    font: 750 10px/1.3 var(--ui);
    text-transform: uppercase;
    letter-spacing: .09em;
}

.tl-page .duiding h3 {
    font-size: 25px;
    margin: 6px 0;
    line-height: 1.05;
}

.tl-page .duiding p:last-child,
.tl-page .combo p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

.tl-page .combo {
    margin-top: 14px;
    background: linear-gradient(135deg,#252537,#14223b 77%);
    border: 1px solid #8b754e;
    border-radius: 11px;
    padding: 17px 18px 15px;
}

.tl-page .combo h3 {
    margin: 5px 0 7px;
}

.tl-page .combo .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #a190664c;
}

.tl-page .combo .step strong {
    color: var(--gold);
    font: 750 11px/1.55 var(--ui);
    padding-top: 2px;
}

@media (max-width:860px) {
    .tl-page .setup {
        padding-inline: 15px;
    }

    .tl-page .stage {
        padding-inline: 15px;
    }

    .tl-page .fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width:640px) {
    .tl-page .crumb {
        padding-top: 13px;
        font-size: 10px;
    }

    .tl-page .hero {
        padding: 19px 0 18px;
    }

    .tl-page .hero h1 {
        font-size: clamp(36px,10.5vw,52px);
        margin: 8px 0 9px;
    }

    .tl-page .hero p {
        font-size: 13px;
    }

    .tl-page .spread {
        display: block;
        border-radius: 11px;
    }

    .tl-page .setup,
    .tl-page .stage {
        padding: 14px;
    }

    .tl-page .setup {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tl-page .setup h2,
    .tl-page .stage-head h2 {
        font-size: 27px;
    }

    .tl-page .setup h2 {
        margin-bottom: 10px;
    }

    .tl-page .fields {
        grid-template-columns: minmax(0,1fr) 112px;
        gap: 7px;
        margin-bottom: 11px;
    }

    .tl-page .field label {
        font-size: 10px;
    }

    .tl-page .field input,
    .tl-page .field select {
        font-size: 11px;
        min-height: 40px;
        padding: 6px;
    }

    .tl-page .deck-option {
        min-height: 69px;
        font-size: 9px;
        gap: 3px;
    }

    .tl-page .deck-option img {
        width: 21px;
        height: 34px;
    }

    .tl-page .decks {
        gap: 5px;
    }

    .tl-page fieldset {
        margin-bottom: 10px;
    }

    .tl-page .draw {
        min-height: 41px;
        font-size: 12px;
    }

    .tl-page .deck-status {
        font-size: 9px;
    }

    .tl-page .cards {
        gap: 7px;
        padding-top: 11px;
    }

    .tl-page .card-label {
        font-size: 9px;
        letter-spacing: .015em;
    }

    .tl-page .card-art {
        width: min(84%,87px);
        margin-bottom: 7px;
    }

    .tl-page .card figcaption {
        font-size: 17px;
    }

    .tl-page .stage-note {
        font-size: 10px;
    }

    .tl-page .result {
        padding-top: 17px;
    }

    .tl-page .result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tl-page .result-head h2,
    .tl-page .combo h3 {
        font-size: 28px;
    }

    .tl-page .duidingen {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .tl-page .duiding {
        padding: 11px 12px;
    }

    .tl-page .duiding h3 {
        font-size: 21px;
        margin: 4px 0;
    }

    .tl-page .duiding p:last-child,
    .tl-page .combo p {
        font-size: 13px;
    }

    .tl-page .combo {
        padding: 13px 12px;
    }

    .tl-page .combo .step {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media (max-width:350px) {
    .tl-page .setup,
    .tl-page .stage {
        padding-inline: 10px;
    }

    .tl-page .fields {
        grid-template-columns: minmax(0,1fr) 94px;
    }
}

.tl-page {
    width: min(100% - 32px, 1000px);
    max-width: 1000px;
    margin-inline: auto;
    padding: 0;
    color: var(--ink);
}

.tl-page .hero .tag {
    color: var(--gold);
    font: 700 10px/1.4 var(--ui);
}

.tl-page form.setup {
    display: block;
    margin: 0;
    max-width: none;
    border-radius: 0;
}

.tl-page .setup .error {
    margin-bottom: 12px;
    padding: 8px;
    color: #ffe1ce;
    border: 1px solid #a77a68;
    border-radius: 5px;
    font-size: 14px;
}

.tl-page .deck-option {
    font-size: 11px;
}

.tl-page .deck-option:hover {
    border-color: var(--gold);
}

.tl-page .draw {
    margin: 0;
    min-height: 44px;
}

.tl-page .draw:hover {
    filter: brightness(1.08);
}

.tl-page .hero h1 {
    font-size: clamp(39px, 7vw, 66px);
}

.tl-page .card-art img {
    object-fit: contain;
}

.tl-page #resultaat {
    scroll-margin-top: 20px;
}

.tl-page .combo h3 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.07;
}

.tl-page .combo .tag {
    color: var(--gold);
    font: 700 10px/1.4 var(--ui);
}

.tl-page .combo .thema-vraag {
    margin-top: 10px;
}

.tl-page .guide {
    max-width: 755px;
    margin: clamp(27px, 5vw, 48px) auto 35px;
}

.tl-page .guide section {
    margin-bottom: 28px;
}

.tl-page .guide h2 {
    margin: 0 0 12px;
    text-wrap: balance;
}

.tl-page .guide p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.72;
    color: var(--text);
}

.tl-page .guide a,
.tl-page .crumb a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tl-page .faq,
.tl-page .thema-extra {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 8px;
    background: var(--pane);
}

.tl-page .faq summary,
.tl-page .thema-extra summary {
    padding: 11px 13px;
    min-height: 44px;
    cursor: pointer;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
}

.tl-page .faq summary:focus-visible,
.tl-page .thema-extra summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.tl-page .faq p,
.tl-page .thema-extra p {
    padding: 0 13px 12px;
    margin: 0;
}

.tl-page .thema-extra {
    margin-top: 14px;
}

.tl-page .guide .author,
.tl-page .guide .disclaimer {
    font-size: 13px;
    color: var(--dim);
}

@media (max-width: 640px) {
    .tl-page .field input,
    .tl-page .field select {
        min-height: 44px;
        font-size: 16px;
    }

    .tl-page .field label,
    .tl-page legend {
        font-size: 12px;
    }

    .tl-page .deck-option {
        font-size: 10px;
    }

    .tl-page .guide p {
        font-size: 14px;
    }

    .tl-page .card-art {
        width: min(96%, 87px);
    }
}

@media (max-width: 350px) {
    .tl-page {
        width: calc(100% - 24px);
    }

    .tl-page .fields {
        grid-template-columns: 1fr;
    }
}
