/* The game cards of the home page and of Mochalunt (one card: <a|div class="gc c-<game>"> with <span class="ct">name</span>
   <span class="bar"></span><span class="art"></span>); the pages lay them out. The images are fixed files made from the
   recipes in maquettes/final/: a change to a game's page does not change its card. Dark colours as in common/theme.js. */
/* game cards (sized like a fixed picture: the title scales with the card width, cqw): the game's name top left, a piece of its board bottom right behind an oblique cut underlined in the
   game's accent; each card takes the game page's tint, ink and accent (dark: its panel tint); images in img/cartes/ */
.gc{position:relative;display:block;aspect-ratio:16/10;container-type:inline-size;border-radius:14px;overflow:hidden;background:var(--gbg);color:var(--gink);text-decoration:none;isolation:isolate}
.gc .ct{position:absolute;left:6.5cqw;top:5cqw;z-index:3;max-width:50%;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:800;font-size:12.2cqw;line-height:1.05;letter-spacing:-.01em;transition:color .2s}
.gc .ct em{font-style:italic}
.c-ponte .ct,.c-dblocks .ct{font-size:8.8cqw}
a.gc:hover .ct,a.gc:focus-visible .ct{color:var(--gacc)}
a.gc:focus-visible{outline:2px solid var(--gacc);outline-offset:3px}
/* the image fills the right 76 % exactly (it has that box's proportions); cut from 52 % at the top to the box's left edge
   at the bottom, with a 6 px bar in the accent along the cut */
.gc .art,.gc .bar{position:absolute;right:0;top:0;bottom:0;width:76%}
.gc .art{background:var(--img) center/cover no-repeat;clip-path:polygon(calc(52% + 6px) 0,100% 0,100% 100%,6px 100%)}
.gc .bar{background:var(--gacc);clip-path:polygon(52% 0,calc(52% + 6px) 0,6px 100%,0 100%)}
/* a frame over the card's edge, so that the cards stand out from the page (decision of Thibault, 13.11.2026): dark on the
   light page, light on the dark one */
.gc::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1.5px rgb(0 0 0/.38)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .gc::after{box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.38)}}
:root[data-theme="dark"] .gc::after{box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.38)}
.c-pente{--gbg:#e8d1d1;--gink:#1B211F;--gacc:#9C2E3A;--img:url(../img/cartes/pente.svg)}
.c-ponte{--gbg:#ece4d9;--gink:#1d2729;--gacc:#a8761c;--img:url(../img/cartes/ponte.svg)}
.c-zertz{--gbg:#c5dce2;--gink:#1c282d;--gacc:#5b8792;--img:url(../img/cartes/zertz.svg)}
.c-volo{--gbg:#ccd9e9;--gink:#1c282d;--gacc:#2f6fd6;--img:url(../img/cartes/volo.svg)}
.c-arimaa{--gbg:#e9e6df;--gink:#23262a;--gacc:#2f7d8c;--img:url(../img/cartes/arimaa.svg)}
.c-gyges{--gbg:#ede4d9;--gink:#26231d;--gacc:#d98f1f;--img:url(../img/cartes/gyges.svg)}
.c-tintas{--gbg:#dbd4e6;--gink:#1d2629;--gacc:#6a3790;--img:url(../img/cartes/tintas.svg)}
.c-dblocks{--gbg:#f0e1e5;--gink:#22231f;--gacc:#9c2457;--img:url(../img/cartes/dblocks.svg)}
.c-quarto{--gbg:#cad4bb;--gink:#26231d;--gacc:#6f8f66;--img:url(../img/cartes/quarto.svg)}
.c-pylos{--gbg:#e8cbb5;--gink:#2b1a12;--gacc:#0c7f7a;--img:url(../img/cartes/pylos.svg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .c-pente{--gbg:#251b1b;--gink:#E5EAE6;--gacc:#b8434f;--img:url(../img/cartes/pente-dark.svg)}:root:not([data-theme="light"]) .c-ponte{--gbg:#29241c;--gink:#e3e8e6;--gacc:#e0a94a;--img:url(../img/cartes/ponte-dark.svg)}:root:not([data-theme="light"]) .c-zertz{--gbg:#152023;--gink:#e2e9eb;--gacc:#5d8a98;--img:url(../img/cartes/zertz-dark.svg)}:root:not([data-theme="light"]) .c-volo{--gbg:#1a1e26;--gink:#e2e9eb;--gacc:#6aa2f5;--img:url(../img/cartes/volo-dark.svg)}:root:not([data-theme="light"]) .c-arimaa{--gbg:#191f1d;--gink:#e4e8e6;--gacc:#5fd0c9;--img:url(../img/cartes/arimaa-dark.svg)}:root:not([data-theme="light"]) .c-gyges{--gbg:#2d261f;--gink:#ebe5d8;--gacc:#efa93c;--img:url(../img/cartes/gyges-dark.svg)}:root:not([data-theme="light"]) .c-tintas{--gbg:#201c24;--gink:#e2e9eb;--gacc:#a676d4;--img:url(../img/cartes/tintas-dark.svg)}:root:not([data-theme="light"]) .c-dblocks{--gbg:#251b1e;--gink:#e6e8e3;--gacc:#d4588a;--img:url(../img/cartes/dblocks-dark.svg)}:root:not([data-theme="light"]) .c-quarto{--gbg:#1d2f21;--gink:#ebe5d8;--gacc:#9cb894;--img:url(../img/cartes/quarto-dark.svg)}:root:not([data-theme="light"]) .c-pylos{--gbg:#2a1d17;--gink:#f2e2d6;--gacc:#3f9f97;--img:url(../img/cartes/pylos-dark.svg)}}
:root[data-theme="dark"] .c-pente{--gbg:#251b1b;--gink:#E5EAE6;--gacc:#b8434f;--img:url(../img/cartes/pente-dark.svg)}:root[data-theme="dark"] .c-ponte{--gbg:#29241c;--gink:#e3e8e6;--gacc:#e0a94a;--img:url(../img/cartes/ponte-dark.svg)}:root[data-theme="dark"] .c-zertz{--gbg:#152023;--gink:#e2e9eb;--gacc:#5d8a98;--img:url(../img/cartes/zertz-dark.svg)}:root[data-theme="dark"] .c-volo{--gbg:#1a1e26;--gink:#e2e9eb;--gacc:#6aa2f5;--img:url(../img/cartes/volo-dark.svg)}:root[data-theme="dark"] .c-arimaa{--gbg:#191f1d;--gink:#e4e8e6;--gacc:#5fd0c9;--img:url(../img/cartes/arimaa-dark.svg)}:root[data-theme="dark"] .c-gyges{--gbg:#2d261f;--gink:#ebe5d8;--gacc:#efa93c;--img:url(../img/cartes/gyges-dark.svg)}:root[data-theme="dark"] .c-tintas{--gbg:#201c24;--gink:#e2e9eb;--gacc:#a676d4;--img:url(../img/cartes/tintas-dark.svg)}:root[data-theme="dark"] .c-dblocks{--gbg:#251b1e;--gink:#e6e8e3;--gacc:#d4588a;--img:url(../img/cartes/dblocks-dark.svg)}:root[data-theme="dark"] .c-quarto{--gbg:#1d2f21;--gink:#ebe5d8;--gacc:#9cb894;--img:url(../img/cartes/quarto-dark.svg)}:root[data-theme="dark"] .c-pylos{--gbg:#2a1d17;--gink:#f2e2d6;--gacc:#3f9f97;--img:url(../img/cartes/pylos-dark.svg)}
.c-ayu{--gbg:#e9e3e5;--gink:#2a1d23;--gacc:#b8195c;--img:url(../img/cartes/ayu.svg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .c-ayu{--gbg:#251d21;--gink:#ede4e8;--gacc:#e0558e;--img:url(../img/cartes/ayu-dark.svg)}}
:root[data-theme="dark"] .c-ayu{--gbg:#251d21;--gink:#ede4e8;--gacc:#e0558e;--img:url(../img/cartes/ayu-dark.svg)}
.c-slither{--gbg:#e4e1ea;--gink:#211c2a;--gacc:#7a32c8;--img:url(../img/cartes/slither.svg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .c-slither{--gbg:#211d28;--gink:#e8e4ef;--gacc:#a57de6;--img:url(../img/cartes/slither-dark.svg)}}
:root[data-theme="dark"] .c-slither{--gbg:#211d28;--gink:#e8e4ef;--gacc:#a57de6;--img:url(../img/cartes/slither-dark.svg)}
.c-siam{--gbg:#e6dccb;--gink:#272219;--gacc:#17727c;--img:url(../img/cartes/siam.svg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .c-siam{--gbg:#231f19;--gink:#ece6da;--gacc:#74cdd0;--img:url(../img/cartes/siam-dark.svg)}}
:root[data-theme="dark"] .c-siam{--gbg:#231f19;--gink:#ece6da;--gacc:#74cdd0;--img:url(../img/cartes/siam-dark.svg)}
