/* apps4dream.com: one stylesheet for every page. The card sprites are appended by generate.py. */

:root {
    --bg: #0b1a12;
    --bg-deep: #07120c;
    --surface: #11251a;
    --surface-raised: #173223;
    --line: rgb(227 189 98 / 24%);
    --line-strong: rgb(227 189 98 / 55%);
    --gold: #e3bd62;
    --gold-bright: #f3d58c;
    --cream: #f7f1e3;
    --text: #eef0e8;
    --muted: #b7c3b5;
    --wine: #8e2440;
    --wine-bright: #a8304f;
    --good: #7fcf96;
    --warn: #f0c36a;
    --bad: #f08a7c;
    --radius: 10px;
    --shadow: 0 18px 48px rgb(0 0 0 / 42%);
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gold-bright);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--cream);
}

:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    color: var(--cream);
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.9rem);
}

h2 {
    font-size: clamp(1.65rem, 3.6vw, 2.4rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 20;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--cream);
    color: var(--bg);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.inner {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.inner--narrow {
    width: min(100% - 32px, 780px);
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
}

/* Header ------------------------------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgb(7 18 12 / 92%);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    width: min(100% - 32px, 1120px);
    min-height: 68px;
    margin-inline: auto;
    padding-block: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--cream);
    text-decoration: none;
}

.brand__mark {
    width: 40px;
    height: 40px;
}

.brand__text {
    display: grid;
    line-height: 1.1;
}

.brand__name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
}

.brand__tagline {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.site-nav a {
    padding: 6px 2px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--gold-bright);
}

.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    font-size: 0.92rem;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu__list {
    position: absolute;
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 190px;
    margin: 8px 0 0;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    list-style: none;
}

.lang-menu__list a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
}

.lang-menu__list a:hover,
.lang-menu__list a[aria-current="true"] {
    background: var(--surface-raised);
    color: var(--gold-bright);
}

/* Buttons ------------------------------------------------------------------------------------ */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--cream);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.button--primary {
    background: var(--wine);
    box-shadow: 0 10px 24px rgb(0 0 0 / 30%);
}

.button--primary:hover {
    background: var(--wine-bright);
    color: var(--cream);
}

.button--ghost {
    background: rgb(7 18 12 / 55%);
}

.button--ghost:hover {
    background: var(--surface-raised);
    color: var(--gold-bright);
}

.button--small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.95rem;
}

.button[disabled] {
    opacity: 0.55;
    cursor: default;
}

.text-link {
    font-weight: 700;
}

/* Heroes and bands --------------------------------------------------------------------------- */

.hero {
    padding: 56px 0 48px;
}

.hero--home {
    display: grid;
    align-items: center;
    min-height: min(78vh, 720px);
    background:
        linear-gradient(90deg, rgb(7 18 12 / 92%) 0%, rgb(7 18 12 / 72%) 48%, rgb(7 18 12 / 35%) 100%),
        url("/site/img/cards-960.webp") center / cover no-repeat;
}

.hero__inner {
    max-width: 1120px;
}

.hero--home h1 {
    max-width: 14ch;
}

.hero--home .lead {
    max-width: 38rem;
}

.hero--game,
.hero--page {
    background: linear-gradient(180deg, var(--bg-deep), var(--bg));
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead {
    color: var(--text);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.band {
    padding: 64px 0;
}

.band--felt {
    border-block: 1px solid var(--line);
    background: radial-gradient(circle at 20% 0%, #173a27 0%, var(--surface) 55%, var(--bg-deep) 100%);
}

.band--app {
    background: linear-gradient(135deg, #2a0f18 0%, var(--surface) 60%);
    border-top: 1px solid var(--line);
}

.section-lead {
    max-width: 46rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-more {
    margin-top: 24px;
}

.note {
    color: var(--muted);
    font-size: 0.92rem;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.crumbs a {
    color: var(--muted);
}

.status-pill {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgb(227 189 98 / 10%);
    color: var(--gold-bright);
    font-size: 0.88rem;
    font-weight: 700;
}

/* Game cards on the home --------------------------------------------------------------------- */

.game-cards {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.game-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.game-card__image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.game-card__body {
    padding: 22px 22px 26px;
}

.game-card__kicker {
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-card h3 {
    font-size: 1.7rem;
}

.game-card h3 a {
    color: var(--cream);
    text-decoration: none;
}

.game-card__cta {
    margin: 18px 0;
}

/* Places ------------------------------------------------------------------------------------- */

.places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.place {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(7 18 12 / 55%);
}

.place__where {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.place__name {
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.2;
}

.place__text {
    color: var(--text);
    font-size: 0.96rem;
}

/* The game frame ----------------------------------------------------------------------------- */

.game-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 28px 0 12px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #020403;
    box-shadow: var(--shadow);
}

.game-frame__facade,
.game-frame__embed {
    position: absolute;
    inset: 0;
}

/* The picture covers the table while it loads, and goes away once the game answers. */
.game-frame__facade {
    z-index: 2;
}

.game-frame__facade[hidden],
.game-frame__embed[hidden] {
    display: none;
}

.game-frame__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-frame__status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgb(7 18 12 / 82%);
    color: var(--cream);
    font-weight: 600;
    text-align: center;
}

.game-note {
    max-width: 52rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
}

.toc a:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.toc--boxed {
    margin-bottom: 32px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.toc--boxed ol {
    display: block;
    margin: 0;
    padding-left: 1.2em;
    list-style: decimal;
}

.toc--boxed li {
    margin: 4px 0;
}

.toc--boxed a {
    display: inline;
    padding: 0;
    border: 0;
    color: var(--gold-bright);
}

.toc__title {
    margin-bottom: 8px;
    color: var(--cream);
    font-weight: 700;
}

/* Cards cut from the game's atlas ------------------------------------------------------------ */

.card {
    display: block;
    width: 72px;
    aspect-ratio: 128 / 203;
    border-radius: 6px;
    background-color: var(--cream);
    background-repeat: no-repeat;
    box-shadow: 0 6px 14px rgb(0 0 0 / 40%);
}

.card--empty {
    border: 2px dashed var(--line-strong);
    background: none;
    box-shadow: none;
}

/* Lesson ------------------------------------------------------------------------------------- */

.lesson {
    margin-top: 28px;
}

.lesson-steps {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lesson-step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.lesson-step[hidden] {
    display: none;
}

.lesson-step__count {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-table {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 40%, #1f5a37, #123522 70%);
    box-shadow: inset 0 0 0 1px rgb(227 189 98 / 35%);
}

.lesson-table__slot {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    color: var(--cream);
    font-size: 0.88rem;
    text-align: center;
}

.lesson-table__slot .card {
    width: 84px;
}

.card--trump {
    transform: rotate(-6deg);
}

.lesson-step__situation {
    font-size: 1.05rem;
}

.lesson-step__hand-label,
.lesson-step__question {
    margin-bottom: 10px;
    color: var(--cream);
    font-weight: 700;
}

.lesson-hand {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.lesson-options {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lesson-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(7 18 12 / 50%);
}

.lesson-option__card {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    text-align: center;
}

.lesson-option__card .card {
    width: 64px;
}

.lesson-option__name {
    max-width: 88px;
    line-height: 1.25;
}

.lesson-option__feedback {
    margin: 0;
    align-self: center;
}

.lesson-option[data-verdict="best"] .lesson-option__feedback strong {
    color: var(--good);
}

.lesson-option[data-verdict="poor"] .lesson-option__feedback strong {
    color: var(--warn);
}

.lesson-option[data-verdict="bad"] .lesson-option__feedback strong {
    color: var(--bad);
}

.lesson-summary {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--gold);
    background: var(--surface);
}

.lesson-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* Interactive lesson: the options become a hand you play from. */

.js .lesson-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.js .lesson-option {
    display: contents;
}

.js .lesson-option__card {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.js .lesson-option__card:hover {
    transform: translateY(-4px);
}

.js .lesson-option__card[aria-pressed="true"] {
    border-color: var(--gold);
    transform: translateY(-6px);
}

.js .lesson-hand,
.js .lesson-step__hand-label {
    display: none;
}

.js .lesson-option__feedback {
    display: none;
}

.lesson-reply {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgb(7 18 12 / 60%);
}

.lesson-reply[data-verdict="best"] {
    box-shadow: inset 4px 0 0 var(--good);
}

.lesson-reply[data-verdict="poor"] {
    box-shadow: inset 4px 0 0 var(--warn);
}

.lesson-reply[data-verdict="bad"] {
    box-shadow: inset 4px 0 0 var(--bad);
}

.lesson-reply p {
    margin: 0;
}

.js .lesson-summary[hidden] {
    display: none;
}

/* Rules -------------------------------------------------------------------------------------- */

.rules {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
}

.rule {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(7 18 12 / 55%);
}

.rule dt {
    margin-bottom: 4px;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
}

.rule dd {
    margin: 0;
}

/* Values and the points counter -------------------------------------------------------------- */

.values-layout {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

caption {
    padding: 14px 16px 6px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: left;
}

th,
td {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

thead th {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.values-table td {
    vertical-align: middle;
}

.values-table__card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.values-table__card .card {
    width: 38px;
    border-radius: 4px;
}

.values-table__rank,
.values-table__points {
    color: var(--cream);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.values-table__points {
    font-size: 1.1rem;
}

.values-notes .fact {
    padding: 18px 20px;
    border-left: 4px solid var(--gold);
    background: var(--surface);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.2rem;
}

.calc {
    margin-top: 32px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.calc__grid {
    display: grid;
    gap: 14px;
}

.calc__suit-name {
    margin-bottom: 6px;
    color: var(--gold);
    font-weight: 700;
}

.calc__cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.calc__card {
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.calc__card .card {
    width: 100%;
    max-width: 64px;
    margin-inline: auto;
    box-shadow: 0 3px 8px rgb(0 0 0 / 35%);
}

.calc__card[aria-pressed="true"] {
    border-color: var(--gold);
    background: rgb(227 189 98 / 14%);
}

.calc__card[aria-pressed="true"] .card {
    transform: translateY(-3px);
}

.calc__card[disabled] {
    cursor: default;
}

.calc__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.calc__result {
    margin: 0;
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Variants ----------------------------------------------------------------------------------- */

.variants-table {
    min-width: 760px;
}

.variants-table th[scope="row"] {
    min-width: 150px;
}

.variant-name {
    display: block;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 1.15rem;
}

.variant-where {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 400;
}

.variants-table tbody tr:last-child {
    background: rgb(142 36 64 / 22%);
}

/* On a phone each game of the family becomes a card, every value named by its column. */
@media (max-width: 760px) {
    .table-wrap--cards {
        overflow: visible;
        border: 0;
        background: none;
    }

    .variants-table {
        min-width: 0;
    }

    .variants-table caption {
        padding: 0 0 10px;
    }

    .variants-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .variants-table,
    .variants-table tbody,
    .variants-table tr,
    .variants-table th,
    .variants-table td {
        display: block;
    }

    .variants-table tr {
        margin-bottom: 14px;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .variants-table th,
    .variants-table td {
        padding: 4px 0;
        border: 0;
    }

    .variants-table td::before {
        display: block;
        color: var(--gold);
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

/* Tips --------------------------------------------------------------------------------------- */

.tips {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: tip;
}

.tip {
    position: relative;
    padding: 18px 18px 18px 64px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    counter-increment: tip;
}

.tip::before {
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wine);
    color: var(--cream);
    content: counter(tip);
    font-weight: 700;
}

.tip h3 {
    margin-bottom: 4px;
    font-size: 1.12rem;
}

.tip p {
    margin: 0;
    color: var(--muted);
}

/* App and store badges ----------------------------------------------------------------------- */

.app-layout {
    display: grid;
    gap: 28px;
    align-items: center;
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
}

.checklist li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    color: var(--gold);
    content: "♦";
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-badge {
    display: block;
    height: 56px;
}

/* Official artwork, unaltered. Each Google Play badge carries its own transparent margin, so
   generate.py sizes every one from its visible outline (appended at the end of this file) until
   both badges show the same height. */
.store-badge--apple {
    width: 168px;
}

.store-badge--apple img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-badge--play {
    overflow: hidden;
    border-radius: 8px;
}

.store-badge--play img {
    max-width: none;
}

/* Prose pages -------------------------------------------------------------------------------- */

.prose {
    font-size: 1.05rem;
}

.prose-section {
    margin-bottom: 36px;
}

.prose-section h2 {
    font-size: 1.55rem;
}

.prose-section ul,
.prose-section ol {
    padding-left: 1.3em;
}

.updated {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-line {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-weight: 600;
}

.legal-action {
    margin-top: 12px;
}

.feature-art {
    margin: 24px 0 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-art__image {
    width: 100%;
}

/* Footer ------------------------------------------------------------------------------------- */

.site-footer {
    padding: 48px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer__inner {
    display: grid;
    gap: 22px;
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.site-footer__name {
    margin-bottom: 6px;
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
}

.site-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer__nav {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer__legal,
.site-footer__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__legal strong {
    min-width: 92px;
    color: var(--cream);
    font-weight: 700;
}

.site-footer__nav a,
.site-footer__langs a {
    color: var(--text);
}

.site-footer__small {
    margin: 0;
    font-size: 0.82rem;
}

/* Root and not-found pages ------------------------------------------------------------------- */

.chooser {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background:
        linear-gradient(rgb(7 18 12 / 86%), rgb(7 18 12 / 86%)),
        url("/site/img/cards-960.webp") center / cover no-repeat;
}

.chooser__main {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(100% - 32px, 560px);
    padding: 32px 0;
    text-align: center;
}

.chooser__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.chooser__list a {
    display: block;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgb(7 18 12 / 70%);
    color: var(--cream);
    font-weight: 600;
    text-decoration: none;
}

.chooser__list a:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

/* Wider screens ------------------------------------------------------------------------------ */

@media (min-width: 700px) {
    .rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calc__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr;
    }

    .site-footer__langs,
    .site-footer__small {
        grid-column: 1 / -1;
    }

    .card {
        width: 84px;
    }

    .lesson-option__card .card {
        width: 76px;
    }
}

@media (min-width: 900px) {
    .game-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .values-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
    }

    .app-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .app-layout__stores .store-badges {
        justify-content: flex-end;
    }
}

@media (min-width: 961px) {
    .hero--home {
        background:
            linear-gradient(90deg, rgb(7 18 12 / 92%) 0%, rgb(7 18 12 / 70%) 45%, rgb(7 18 12 / 20%) 100%),
            url("/site/img/cards-1920.webp") center / cover no-repeat;
    }

    .band {
        padding: 84px 0;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .site-header__inner {
        gap: 8px 14px;
    }

    .brand__tagline {
        display: none;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding: 40px 0 36px;
    }

    .band {
        padding: 48px 0;
    }

    .lesson-step,
    .calc {
        padding: 16px;
    }

    .lesson-table__slot .card {
        width: 70px;
    }

    .button {
        width: 100%;
    }

    .actions .button,
    .game-card__cta .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Generated by web_apps4dream/generate.py from the game's card atlas. */
.card { background-image: url("/assets/data/cartes/barallaAtlas_v3-71cbe2b23eeca8e4df9db183bf958743.webp"); background-size: 721.87500% 713.79310%; }
.card-10b { background-position: 66.58291% 99.83949%; }
.card-10c { background-position: 50.00000% 0.16051%; }
.card-10e { background-position: 50.00000% 33.38684%; }
.card-10o { background-position: 0.25126% 99.83949%; }
.card-11b { background-position: 0.25126% 33.38684%; }
.card-11c { background-position: 0.25126% 50.00000%; }
.card-11e { background-position: 33.41709% 83.22632%; }
.card-11o { background-position: 50.00000% 16.77368%; }
.card-12b { background-position: 83.16583% 66.61316%; }
.card-12c { background-position: 83.16583% 83.22632%; }
.card-12e { background-position: 0.25126% 16.77368%; }
.card-12o { background-position: 16.83417% 66.61316%; }
.card-1b { background-position: 83.16583% 50.00000%; }
.card-1c { background-position: 99.74874% 66.61316%; }
.card-1e { background-position: 0.25126% 0.16051%; }
.card-1o { background-position: 33.41709% 50.00000%; }
.card-2b { background-position: 83.16583% 99.83949%; }
.card-2c { background-position: 66.58291% 0.16051%; }
.card-2e { background-position: 66.58291% 33.38684%; }
.card-2o { background-position: 33.41709% 99.83949%; }
.card-3b { background-position: 16.83417% 33.38684%; }
.card-3c { background-position: 16.83417% 50.00000%; }
.card-3e { background-position: 50.00000% 83.22632%; }
.card-3o { background-position: 83.16583% 16.77368%; }
.card-4b { background-position: 0.25126% 83.22632%; }
.card-4c { background-position: 16.83417% 99.83949%; }
.card-4e { background-position: 16.83417% 16.77368%; }
.card-4o { background-position: 50.00000% 66.61316%; }
.card-5b { background-position: 83.16583% 0.16051%; }
.card-5c { background-position: 66.58291% 16.77368%; }
.card-5e { background-position: 99.74874% 50.00000%; }
.card-5o { background-position: 33.41709% 0.16051%; }
.card-6b { background-position: 50.00000% 50.00000%; }
.card-6c { background-position: 33.41709% 66.61316%; }
.card-6e { background-position: 99.74874% 99.83949%; }
.card-6o { background-position: 99.74874% 33.38684%; }
.card-7b { background-position: 50.00000% 99.83949%; }
.card-7c { background-position: 16.83417% 0.16051%; }
.card-7e { background-position: 33.41709% 33.38684%; }
.card-7o { background-position: 99.74874% 83.22632%; }
.card-8b { background-position: 99.74874% 16.77368%; }
.card-8c { background-position: 83.16583% 33.38684%; }
.card-8e { background-position: 16.83417% 83.22632%; }
.card-8o { background-position: 33.41709% 16.77368%; }
.card-9b { background-position: 66.58291% 66.61316%; }
.card-9c { background-position: 66.58291% 83.22632%; }
.card-9e { background-position: 99.74874% 0.16051%; }
.card-9o { background-position: 0.25126% 66.61316%; }
/* Generated by web_apps4dream/generate.py from each official Google Play badge. */
.store-badge--google-play-badge-bs { width: 188.0px; }
.store-badge--google-play-badge-bs img { width: 215.3px; height: 83.3px; margin: -13.7px -13.7px -13.7px -13.7px; }
.store-badge--google-play-badge-ca { width: 188.4px; }
.store-badge--google-play-badge-ca img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-de { width: 188.4px; }
.store-badge--google-play-badge-de img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-en { width: 188.0px; }
.store-badge--google-play-badge-en img { width: 215.3px; height: 83.3px; margin: -13.7px -13.7px -13.7px -13.7px; }
.store-badge--google-play-badge-es { width: 188.4px; }
.store-badge--google-play-badge-es img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-fr { width: 188.4px; }
.store-badge--google-play-badge-fr img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-hr { width: 188.4px; }
.store-badge--google-play-badge-hr img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-it { width: 188.4px; }
.store-badge--google-play-badge-it img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-pt { width: 188.4px; }
.store-badge--google-play-badge-pt img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
.store-badge--google-play-badge-sl { width: 188.4px; }
.store-badge--google-play-badge-sl img { width: 188.4px; height: 72.9px; margin: -8.5px 0.0px -8.5px 0.0px; }
