/* Cosy Gaming : l'inventaire. Les couleurs portent le nom de ce qu'elles peignent. */

@font-face { font-family: "Jersey 10"; src: url("polices/jersey-10-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("polices/lilita-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("polices/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("polices/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("polices/figtree-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --csg-prairie: #4C9A2A;
    --csg-prairie-sombre: #3A7D1F;
    --csg-toile: #F4F0E3;
    --csg-panneau: #FBF8EE;
    --csg-encre: #1E1A2B;
    --csg-encre-douce: #4A4458;
    --csg-lien: #2F6E1A; /* vert de prairie foncé : soulignement des liens */
    --csg-nuit: #241B3A;
    --csg-nuit-texte: #E7E1F4;
    --csg-ble: #F2B33D;
    --csg-ble-clair: #FCEBC4;
    --csg-menthe: #7CC6A4;
    --csg-menthe-clair: #DDF1E7;
    /* le coin cranté des cases : deux marches de 4 px */
    --csg-crans: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px),
        0 8px, 4px 8px, 4px 4px, 8px 4px);
    --csg-crans-haut: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% 100%, 0 100%, 0 8px, 4px 8px, 4px 4px, 8px 4px);
    --csg-crans-bas: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
    --csg-crans-gauche: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px);
    --csg-crans-droite: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 0 100%);
    --csg-cadre: url("pixels/cadre-panneau.svg") 11 fill / 11px stretch;
    --csg-cadre-toile: url("pixels/cadre-toile.svg") 11 fill / 11px stretch;
    --csg-titre: "Jersey 10", ui-monospace, monospace;
    --csg-logo: "Lilita One", "Arial Rounded MT Bold", sans-serif; /* le logo seul garde Lilita */
    --csg-texte: "Figtree", system-ui, sans-serif;
    --csg-pile: "Jersey 10", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--csg-encre) var(--csg-toile); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--csg-toile); color: var(--csg-encre);
    font: 400 17px/1.6 var(--csg-texte); caret-color: var(--csg-encre);
}
::selection { background: var(--csg-prairie); color: #fff; }
:focus-visible { outline: 3px solid var(--csg-encre); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:where(.csg-accroche, .csg-rangee-titre, .csg-corps h2, .csg-partie-titre h1, .csg-prairie h1) { letter-spacing: .01em; }
p, li { text-wrap: pretty; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csg-passer { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--csg-encre); color: var(--csg-toile); padding: 10px 14px; }
.csg-passer:focus { top: 12px; }
.csg-px { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.csg-chiffres, .csg-pile, .csg-touche { font-variant-numeric: tabular-nums; }

/* ---- la prairie : en-tête et première scène ---- */
.csg-entete { background: var(--csg-prairie); color: var(--csg-toile); position: relative; z-index: 6; }
.csg-entete-ligne { max-width: 1400px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 22px; }
.csg-marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 36px/1 var(--csg-titre); color: var(--csg-toile); text-shadow: 3px 3px 0 var(--csg-encre); }
.csg-marque-objet { width: 34px; filter: drop-shadow(3px 3px 0 var(--csg-encre)); }
.csg-marque-pile { flex-direction: column; gap: 6px; font-size: 30px; text-align: center; flex: none; }
.csg-marque-pile .csg-marque-objet { width: 66px; }
.csg-fouille { margin-left: auto; display: flex; flex: 0 1 260px; min-width: 190px; background: var(--csg-encre); padding: 3px; clip-path: var(--csg-crans); }
.csg-fouille input { flex: 1; min-width: 0; border: 0; background: var(--csg-panneau); color: var(--csg-encre); font: 500 15px/1 var(--csg-texte); padding: 11px 12px; clip-path: var(--csg-crans-gauche); }
.csg-fouille input::placeholder { color: var(--csg-encre-douce); }
.csg-fouille button { width: 46px; border: 0; margin-left: 3px; background: var(--csg-panneau); cursor: pointer; padding: 8px 10px; clip-path: var(--csg-crans-droite); }
.csg-fouille button:hover .csg-px { animation: csg-tremousse .5s steps(4) both; }

/* la barre d'outils : le menu */
.csg-barre { flex: none; }
.csg-barre-cases { list-style: none; margin: 0; padding: 7px; display: inline-flex; gap: 7px; background: var(--csg-encre); clip-path: var(--csg-crans); }
.csg-emplacement {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 6px;
    width: 112px; height: 98px; padding: 8px 4px 6px; text-decoration: none; color: var(--csg-encre);
    background: var(--csg-panneau); clip-path: var(--csg-crans);
}
.csg-emplacement-objet { width: 46px; height: 46px; display: grid; place-items: center; }
.csg-emplacement-objet .csg-px { max-height: 46px; width: auto; max-width: 46px; }
.csg-emplacement-nom { font: 600 14px/1.1 var(--csg-texte); white-space: nowrap; }
.csg-emplacement.teinte-ble { background: var(--csg-ble-clair); }
.csg-emplacement.teinte-menthe { background: var(--csg-menthe-clair); }
.csg-emplacement:hover .csg-emplacement-objet { animation: csg-tremousse .5s steps(4) both; }
.csg-emplacement.est-choisi { background: #fff; box-shadow: inset 0 0 0 5px var(--csg-ble); }
.csg-emplacement.est-choisi .csg-emplacement-objet { transform: scale(1.12); }
.csg-touche { position: absolute; left: 8px; top: 6px; font: 500 17px/1 var(--csg-pile); color: var(--csg-encre-douce); }
@keyframes csg-tremousse { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
@keyframes csg-tremousse-doux { 0% { transform: rotate(0); } 25% { transform: rotate(-1.2deg); } 50% { transform: rotate(.9deg); } 75% { transform: rotate(-.4deg); } 100% { transform: rotate(0); } }
@keyframes csg-sautille { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .csg-objet:hover .csg-objet-case { animation: none; } .csg-case:hover .csg-case-image, .csg-capsules a:hover .csg-capsule-cadre, .csg-hub:hover .csg-px, .csg-badge:hover .csg-px, .csg-pages a.page-numbers:hover { animation: none; } .csg-emplacement:hover .csg-emplacement-objet, .csg-fouille button:hover .csg-px { animation: none; } }
.csg-px-feuille { image-rendering: auto; }
.csg-pile { font: 500 20px/1 var(--csg-pile); }
.csg-emplacement .csg-pile { position: absolute; right: 8px; bottom: 6px; font-size: 20px; }

/* flow-root : les marges négatives des enfants restent dans leur scène */
.csg-prairie { display: flow-root; background: var(--csg-prairie) url("pixels/prairie-motif.svg") 0 0 / 360px 240px repeat; color: var(--csg-toile); position: relative; z-index: 4; padding-bottom: 72px; }
.csg-prairie-dedans { max-width: 1240px; margin: 0 auto; padding: 8px 24px 0; position: relative; }

/* le bord en escalier : marches de 8 px dessinées en SVG, répétées */
.csg-marches { position: absolute; left: 0; right: 0; height: 48px; pointer-events: none; background-repeat: repeat-x; background-size: 336px 48px; }
.csg-marches-toile {
    bottom: -1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 224 32' shape-rendering='crispEdges'%3E%3Cpath fill='%23F4F0E3' d='M0 32V20h8v-4h16v8h8v4h8V12h8v4h16V8h8v8h8v12h16v-8h8v-4h8v8h16V12h8V4h8v8h8v8h8v4h16V12h8V8h8v12h8v12z'/%3E%3C/svg%3E");
}
.csg-marches-nuit {
    top: -47px; background-position: 120px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 224 32' shape-rendering='crispEdges'%3E%3Cpath fill='%23241B3A' d='M0 32V24h16v-8h8v4h8V8h8v8h8v8h24V12h8V4h8v16h16v4h8v-8h16V8h8v12h16v-4h8v8h8V12h8v8h8v4h16v8z'/%3E%3C/svg%3E");
}

/* accueil */
.csg-prairie-accueil { padding-bottom: 18px; }
.csg-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; max-width: 1400px; padding-top: 12px; }
.csg-hero-texte { padding-top: 40px; }
.csg-hero-panneaux { display: flex; flex-direction: column; }
.csg-hero-sous { font: 500 20px/1.5 var(--csg-texte); max-width: 34ch; margin: 0 0 34px; text-shadow: 2px 2px 0 rgba(30, 26, 43, .35); }
.csg-hero .csg-coffres { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: none; }
.csg-hero .csg-coffre-pied { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: none; height: 40px; }
.csg-hero .csg-hub-nom { font-size: 26px; padding: 10px 12px 2px; }
.csg-hero .csg-hub-quoi { font-size: 13px; padding: 2px 12px 12px; }
/* sur la home, Juju pêche sous les pancartes, les pieds sur la couture */
.csg-hero .csg-pecheuse { position: relative; right: auto; bottom: auto; margin: -14px 0 0 30%; flex: none; transform: scale(.85); transform-origin: bottom left; }
/* les animaux, petits, dans l'herbe */
.csg-animal { position: absolute; z-index: 3; width: auto; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(30, 26, 43, .22)); }
.csg-animal-poule { height: 64px; left: 39%; bottom: 44px; }
.csg-animal-alpheep { height: 74px; right: 3%; bottom: 52px; transform: scaleX(-1); }
.csg-coffre-pied { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 20px; max-width: min(1060px, calc(100% - 250px)); height: 70px; margin-top: -4px; }
.csg-coffre-pied span { position: relative; }
.csg-coffre-pied span::before, .csg-coffre-pied span::after { content: ""; position: absolute; top: 0; width: 14px; height: 100%; background: #8A5634; box-shadow: inset 3px 0 0 #A86E44, inset -3px 0 0 #5A3420, 0 0 0 3px var(--csg-encre); }
.csg-coffre-pied span::before { left: 22%; }
.csg-coffre-pied span::after { right: 22%; }
.csg-accroche {
    font: 400 clamp(40px, 3.6vw, 62px)/.92 var(--csg-titre); margin: 0 0 20px; max-width: 14ch;
    color: var(--csg-toile); text-shadow: 4px 4px 0 var(--csg-encre);
}
.csg-coffres { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 20px; align-items: stretch; max-width: min(1060px, calc(100% - 250px)); }
.csg-hub {
    position: relative; display: grid; grid-template-rows: auto auto 1fr; text-decoration: none; color: var(--csg-encre);
    background: var(--csg-encre); padding: 4px; clip-path: var(--csg-crans);
}
.csg-hub > img, .csg-mosaique { width: 100%; aspect-ratio: 13 / 9; object-fit: cover; clip-path: var(--csg-crans-haut); }
.csg-mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--csg-encre); }
.csg-mosaique img { width: 100%; height: 100%; object-fit: cover; }
.csg-hub-nom {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px 2px; background: var(--csg-panneau);
    font: 400 32px/.92 var(--csg-titre);
}
.csg-hub-nom .csg-px { width: 34px; height: 34px; object-fit: contain; flex: none; }
.csg-hub-quoi { display: block; padding: 2px 14px 14px; clip-path: var(--csg-crans-bas); background: var(--csg-panneau); font: 500 14px/1.35 var(--csg-texte); color: var(--csg-encre-douce); }
.csg-hub.teinte-ble .csg-hub-nom, .csg-hub.teinte-ble .csg-hub-quoi { background: var(--csg-ble-clair); }
.csg-hub.teinte-menthe .csg-hub-nom, .csg-hub.teinte-menthe .csg-hub-quoi { background: var(--csg-menthe-clair); }
.csg-hub .csg-pile {
    position: absolute; right: 14px; top: 14px; font-size: 39px; color: #fff; text-shadow: 3px 3px 0 var(--csg-encre);
}
.csg-hub:hover .csg-hub-nom .csg-px { animation: csg-tremousse .5s steps(4) both; }
.csg-hub:hover > img, .csg-hub:hover .csg-mosaique { filter: brightness(1.08); }

/* Juju qui pêche, debout sur le bord de la prairie */
.csg-pecheuse { position: absolute; right: max(4vw, calc(50% - 600px)); bottom: 22px; width: 250px; height: 192px; z-index: 5; pointer-events: none; }
.csg-pecheuse-juju { position: absolute; left: 0; bottom: 0; width: 128px; filter: drop-shadow(5px 0 0 rgba(30, 26, 43, .25)); }
.csg-canne { position: absolute; left: 104px; top: 0; width: 120px; height: 120px; }
.csg-ligne { position: absolute; left: 212px; top: 14px; width: 2px; height: 236px; background: var(--csg-encre); transform-origin: top; }
.csg-bouchon { position: absolute; left: 204px; top: 244px; width: 18px; }
@media (prefers-reduced-motion: no-preference) {
    .csg-ecran-titre .csg-ligne { animation: csg-lancer .7s steps(7) .5s both; }
    .csg-ecran-titre .csg-bouchon { animation: csg-tomber .7s steps(7) .5s both, csg-dandiner 1.6s steps(1) 1.4s infinite; }
}
@keyframes csg-lancer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes csg-tomber { from { transform: translateY(-236px); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(0); } }
@keyframes csg-dandiner { 0% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- la toile : le corps ---- */
.csg-toile {
    display: flow-root; position: relative; z-index: 1; padding: 40px 24px 120px;
    background-color: var(--csg-toile);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='1' height='1' fill='%231E1A2B' fill-opacity='.05'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%231E1A2B' fill-opacity='.04'/%3E%3C/svg%3E");
}
.csg-toile > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.csg-rangee-titre { font: 400 clamp(38px, 4.25vw, 55px)/.92 var(--csg-titre); margin-top: 0; margin-bottom: 22px; }

.csg-badge { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 600 13px/1 var(--csg-texte); color: var(--csg-encre); background: var(--csg-panneau); padding: 5px 8px 5px 6px; box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-badge .csg-px { width: 16px; }
.csg-badge.teinte-ble { background: var(--csg-ble-clair); }
.csg-badge.teinte-menthe { background: var(--csg-menthe-clair); }
.csg-badge:hover .csg-px { animation: csg-tremousse .5s steps(4) both; }

/* l'article vedette : le titre mord sur l'image */
.csg-toile-accueil { padding-top: 64px; }
.csg-vedette { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; margin-bottom: 36px; }
.csg-vedette-image { display: block; grid-column: 1 / 9; grid-row: 1; background: var(--csg-encre); padding: 4px; clip-path: var(--csg-crans); }
.csg-vedette-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-vedette-texte {
    grid-column: 8 / -1; grid-row: 1; position: relative; z-index: 2; background: var(--csg-panneau); padding: 26px 28px;
    box-shadow: inset 0 0 0 3px var(--csg-encre), 8px 8px 0 var(--csg-encre);
}
.csg-vedette-texte :is(h2, h3) { font: 400 clamp(32px, 3.25vw, 45px)/.92 var(--csg-titre); margin: 0 0 12px; }
.csg-vedette-texte :is(h2, h3) a { text-decoration: none; }
.csg-vedette-texte :is(h2, h3) a:hover { text-decoration: underline; text-decoration-color: var(--csg-lien); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.csg-vedette-texte p { margin: 0 0 14px; color: var(--csg-encre-douce); }
.csg-vedette-texte .csg-chiffres { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.csg-chiffres { font: 500 20px/1.3 var(--csg-pile); color: var(--csg-encre-douce); }

.csg-etal { position: relative; margin-top: 0; margin-bottom: 96px; padding: 22px; background: var(--csg-panneau); box-shadow: inset 0 0 0 4px var(--csg-encre), 10px 10px 0 rgba(30, 26, 43, .18); }
.csg-etal-objets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.csg-objet { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; padding: 2px; border: 11px solid transparent; border-image: var(--csg-cadre-toile); }
.csg-objet-case { display: block; background: var(--csg-encre); padding: 3px; clip-path: var(--csg-crans); }
.csg-objet-case img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-objet:hover .csg-objet-case { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-objet-texte { padding: 0 8px 0 0; }
.csg-objet-titre { display: block; font: 600 17px/1.3 var(--csg-texte); text-decoration: none; margin-bottom: 8px; }
.csg-objet-titre:hover { text-decoration: underline; text-decoration-color: var(--csg-lien); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.csg-objet-infos { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.csg-liste { list-style: none; margin-top: 0; margin-bottom: 90px; padding: 0; border-top: 3px solid var(--csg-encre); }
.csg-liste li { display: grid; grid-template-columns: 1fr auto 70px; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 2px dashed rgba(30, 26, 43, .28); }
.csg-liste-titre { font: 600 18px/1.35 var(--csg-texte); text-decoration: none; }
.csg-liste-titre:hover { text-decoration: underline; text-decoration-color: var(--csg-lien); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.csg-liste .csg-chiffres { text-align: right; }

/* quel jeu choisir : capsules en rangée */
.csg-choisir { position: relative; }
.csg-choisir-tete { display: flex; align-items: baseline; gap: 20px; }
.csg-voir { font: 600 15px/1 var(--csg-texte); color: var(--csg-encre); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--csg-lien); }
.csg-voir:hover { text-decoration-thickness: 3px; }
.csg-choisir-poisson { position: absolute; width: 126px; right: 3%; top: -38px; transform: rotate(-9deg); }
.csg-capsules { list-style: none; margin: 0; padding: 4px 0 18px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.csg-capsules li { flex: 0 0 380px; scroll-snap-align: start; }
.csg-capsules a { display: block; text-decoration: none; }
.csg-capsules a > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-capsules .csg-capsule-cadre { display: block; background: var(--csg-encre); padding: 4px; clip-path: var(--csg-crans); }
.csg-capsules .csg-capsule-cadre img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-capsules a:hover .csg-capsule-cadre { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-capsules a > span:last-child { display: block; margin-top: 12px; font: 600 17px/1.35 var(--csg-texte); }

/* cases d'inventaire : rubriques, recherche, voisins */
.csg-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.csg-case-image { position: relative; display: block; background: var(--csg-encre); padding: 3px; clip-path: var(--csg-crans); }
.csg-case-image img, .csg-case-vide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-case-vide { display: grid; place-items: center; background: var(--csg-panneau); }
.csg-case-vide .csg-px { width: 48px; }
.csg-case-image .csg-pile { position: absolute; right: 9px; bottom: 9px; background: var(--csg-encre); color: var(--csg-toile); padding: 4px 7px; font-size: 20px; }
.csg-case:hover .csg-case-image { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-case-texte { padding: 12px 2px 0; }
.csg-case-titre { font: 600 18px/1.35 var(--csg-texte); margin: 0 0 10px; }
.csg-case-titre a { text-decoration: none; }
.csg-case-titre a:hover { text-decoration: underline; text-decoration-color: var(--csg-lien); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* tête de rubrique : la case du coffre passe par-dessus la couture */
.csg-prairie-coffre { padding-bottom: 150px; }
.csg-prairie-coffre .csg-prairie-dedans { min-height: 120px; }
.csg-prairie-coffre.a-un-art .csg-prairie-dedans { min-height: 300px; }
.csg-coffre-tete { padding: 18px 0 0; position: relative; z-index: 2; }
.csg-prairie-coffre.a-un-art .csg-coffre-tete { max-width: 46%; }
.csg-coffre-art { position: absolute; right: 0; top: 36px; width: min(48vw, 760px); height: calc(100% - 4px); object-fit: cover; z-index: 3;
    border: 4px solid var(--csg-encre); border-right: 0;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px); }
.csg-coffre-objet { position: absolute; left: 24px; bottom: -238px; z-index: 6; width: 150px; height: 150px; display: grid; place-items: center; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-coffre-objet .csg-px { width: 88px; }
.csg-coffre-objet .csg-pile { position: absolute; right: 12px; bottom: 10px; font-size: 31px; color: var(--csg-encre); }
.csg-prairie h1 { font: 400 clamp(48px, 7.5vw, 105px)/1 var(--csg-titre); margin: 0; text-shadow: 4px 4px 0 var(--csg-encre); }
.csg-coffre-intro { max-width: 60ch; font-size: 18px; }
.csg-coffre { padding-top: 130px; }
.csg-coffre .csg-vedette { margin-bottom: 56px; }
.csg-coffre-vide { display: flex; gap: 18px; align-items: center; font-size: 18px; }
.csg-coffre-vide .csg-px { width: 30px; }
.csg-pages { margin-top: 48px; }
.csg-pages .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.csg-pages .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; text-decoration: none; font: 500 21px/1 var(--csg-pile); background: var(--csg-panneau); box-shadow: inset 0 0 0 3px var(--csg-encre); }
.csg-pages .page-numbers.current { background: #fff; box-shadow: inset 0 0 0 5px var(--csg-ble); }
.csg-pages a.page-numbers:hover { animation: csg-tremousse .5s steps(4) both; }

/* ---- l'article ---- */
.csg-prairie-partie { padding-bottom: 290px; }
.csg-chemin { font: 600 14px/1 var(--csg-texte); padding: 4px 0 0; }
.csg-chemin a { color: var(--csg-toile); text-underline-offset: 3px; }
.csg-partie { padding-top: 0; z-index: 5; }
.csg-partie-tete { max-width: 1100px; display: grid; grid-template-columns: repeat(12, 1fr); margin-top: -250px; position: relative; z-index: 5; }
.csg-partie-une { grid-column: 1 / -1; grid-row: 1; margin: 0; background: var(--csg-encre); padding: 4px; clip-path: var(--csg-crans); }
.csg-partie-une img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--csg-crans); }
.csg-partie-titre {
    grid-column: 2 / 11; grid-row: 2; margin-top: -26px; position: relative; z-index: 2; background: var(--csg-panneau); padding: 26px 32px 22px;
    box-shadow: inset 0 0 0 3px var(--csg-encre), 8px 8px 0 var(--csg-encre);
}
.csg-partie-titre h1 { font: 400 clamp(40px, 5.25vw, 70px)/.92 var(--csg-titre); margin: 0 0 16px; }
.csg-partie-signe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; }
.csg-auteur { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--csg-texte); }
.csg-auteur .csg-px { width: 22px; }
.csg-auteur a { text-decoration: none; }

.csg-lecture { max-width: 1100px; display: grid; grid-template-columns: 250px minmax(0, 68ch); gap: 56px; margin-top: 56px; justify-content: center; }
.csg-sommaire { grid-column: 1; grid-row: 1 / span 3; align-self: start; position: sticky; top: 24px; padding: 0 0 4px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-sommaire-titre { font: 400 26px/1 var(--csg-titre); margin: -8px -8px 14px; padding: 12px 16px 8px; clip-path: var(--csg-crans-haut); background: var(--csg-encre); color: var(--csg-toile); }
.csg-sommaire ol { margin: 0; padding: 0 6px; list-style: none; counter-reset: csg-som; }
.csg-sommaire li { counter-increment: csg-som; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font: 500 14.5px/1.35 var(--csg-texte); margin-bottom: 10px; }
.csg-sommaire li::before { content: counter(csg-som); display: grid; place-items: center; width: 26px; height: 26px; font: 500 18px/1 var(--csg-pile); background: var(--csg-toile); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-sommaire a { text-decoration: none; padding-top: 3px; }
.csg-sommaire a:hover { text-decoration: underline; text-decoration-color: var(--csg-lien); text-decoration-thickness: 2px; }
.csg-corps { grid-column: 2; font-size: 18px; line-height: 1.68; }
.csg-lecture:not(:has(.csg-sommaire)) { grid-template-columns: minmax(0, 68ch); }
.csg-lecture:not(:has(.csg-sommaire)) .csg-corps, .csg-lecture:not(:has(.csg-sommaire)) .csg-signature { grid-column: 1; }
.csg-corps > * { margin-top: 0; margin-bottom: 1.15em; }
.csg-corps h2 { font: 400 clamp(35px, 3.75vw, 45px)/.95 var(--csg-titre); margin: 1.2em 0 .6em; scroll-margin-top: 24px; }
.csg-corps h2::before {
    content: ""; display: block; height: 30px; margin: 0 0 1.1em;
    background: url("pixels/panais.svg") center / 26px 26px no-repeat,
        linear-gradient(rgba(30, 26, 43, .3), rgba(30, 26, 43, .3)) left center / calc(50% - 30px) 2px no-repeat,
        linear-gradient(rgba(30, 26, 43, .3), rgba(30, 26, 43, .3)) right center / calc(50% - 30px) 2px no-repeat;
    image-rendering: pixelated;
}
.csg-corps h3 { font: 700 21px/1.3 var(--csg-texte); margin: 1.7em 0 .5em; }
.csg-corps a { text-decoration-color: var(--csg-lien); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.csg-corps a:hover { text-decoration-thickness: 3px; }
.csg-corps strong { font-weight: 700; }
.csg-corps ul, .csg-corps ol { padding-left: 1.3em; }
.csg-corps li { margin-bottom: .4em; }

.csg-en-bref { list-style: none; padding: 0 14px 8px !important; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-en-bref::before { content: "En bref"; display: block; margin: -8px -22px 14px; padding: 12px 22px 8px; clip-path: var(--csg-crans-haut); font: 400 24px/1 var(--csg-titre); background: var(--csg-prairie); color: #fff; text-shadow: 2px 2px 0 var(--csg-encre); box-shadow: inset 0 -3px 0 var(--csg-encre); }
.csg-en-bref li { position: relative; padding-left: 30px; }
.csg-en-bref li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: url("pixels/etoile.svg") center / 15px no-repeat; image-rendering: pixelated; }

.csg-astuce, .csg-attention { position: relative; padding: 8px 12px 8px 64px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-astuce::before, .csg-attention::before { content: ""; position: absolute; left: 10px; top: 8px; width: 36px; height: 36px; background: center / contain no-repeat; image-rendering: pixelated; }
.csg-astuce::before { background-image: url("pixels/bouchon.svg"); }
.csg-attention::before { background-image: url("pixels/panneau.svg"); }
:is(.csg-astuce, .csg-attention) .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

.csg-etapes { list-style: none; padding-left: 0 !important; counter-reset: csg-etape; }
.csg-etapes li { counter-increment: csg-etape; position: relative; padding-left: 52px; margin-bottom: 16px; min-height: 38px; }
.csg-etapes li::before {
    content: counter(csg-etape); position: absolute; left: 0; top: -3px; width: 38px; height: 38px; display: grid; place-items: center;
    font: 500 25px/1 var(--csg-pile); color: #fff; background: var(--csg-prairie); box-shadow: inset 0 0 0 3px var(--csg-encre); text-shadow: 1px 1px 0 var(--csg-encre);
}

.csg-rail { overflow-x: auto; margin-bottom: .5em; }
.csg-corps table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 16px; background: var(--csg-encre); background-clip: padding-box; padding: 0; border: 3px solid transparent; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%231E1A2B' d='M1 0h7v3H1zM1 6h7v3H1zM0 1h3v7H0zM6 1h3v7H6z'/%3E%3C/svg%3E") 3 / 3px stretch; }
.csg-corps th { background: var(--csg-prairie); color: #fff; text-align: left; font: 400 21px/1 var(--csg-titre); padding: 11px 14px 9px; text-shadow: 1px 1px 0 var(--csg-encre); }
.csg-corps td { padding: 10px 12px; background: var(--csg-panneau); font-variant-numeric: tabular-nums; }
.csg-corps tbody tr:nth-child(even) td { background: var(--csg-toile); }
.csg-corps tr.csg-ligne-gagnante td { background: #fff; font-weight: 700; }
.csg-corps tr.csg-ligne-gagnante td:first-child { padding-left: 34px; background: #fff url("pixels/etoile.svg") 10px center / 15px no-repeat; image-rendering: pixelated; }
.csg-corps .wp-block-table { margin-left: 0; margin-right: 0; }
.csg-corps .csg-sources { margin-top: 2.4em; padding-top: 14px; border-top: 2px solid rgba(30, 26, 43, .2); font-size: 14.5px; color: var(--csg-encre-douce); }
.csg-corps figcaption { font-size: 14px; color: var(--csg-encre-douce); margin-top: 8px; }
.csg-corps blockquote { margin-left: 0; padding: 4px 0 4px 26px; box-shadow: inset 6px 0 0 var(--csg-prairie); font-style: italic; font-size: 20px; }
.csg-corps .csg-sprite img { image-rendering: pixelated; width: auto; }
.csg-corps blockquote cite { display: block; font-style: normal; font-size: 15px; margin-top: 6px; color: var(--csg-encre-douce); }

/* sans theme.json, WordPress glisse un conteneur interne dans chaque groupe : la grille se pose dessus */
.csg-pour-contre > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.csg-pour, .csg-contre { padding: 16px 20px 6px; background: var(--csg-panneau); box-shadow: inset 0 0 0 3px var(--csg-encre); }
:is(.csg-pour, .csg-contre) .wp-block-group__inner-container > p:first-child { display: flex; align-items: center; gap: 10px; }
:is(.csg-pour, .csg-contre) .wp-block-group__inner-container > p:first-child::before { content: ""; width: 26px; height: 26px; flex: none; background: center / contain no-repeat; image-rendering: pixelated; }
.csg-pour .wp-block-group__inner-container > p:first-child::before { background-image: url("pixels/coeur.svg"); }
.csg-contre .wp-block-group__inner-container > p:first-child::before { background-image: url("pixels/croix.svg"); }
:is(.csg-pour, .csg-contre) .wp-block-group__inner-container > p:first-child { font: 400 26px/.95 var(--csg-titre); margin-bottom: 8px; }

.csg-corps details { background: var(--csg-panneau); box-shadow: inset 0 0 0 3px var(--csg-encre); padding: 0 20px; margin-bottom: 10px; }
.csg-corps summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; position: relative; }
.csg-corps summary .csg-question { display: inline; margin: 0; font: 600 17px/1.4 var(--csg-texte); }
.csg-corps summary::-webkit-details-marker { display: none; }
.csg-corps summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 500 29px/1 var(--csg-pile); }
.csg-corps details[open] summary::after { content: "−"; }
.csg-corps details > p { margin-top: 0; padding-bottom: 14px; }

/* test : le verdict de Juju, en tête de lecture */
.csg-verdict { grid-column: 2; margin-bottom: 34px; padding: 0 0 10px; border: 11px solid transparent; border-image: var(--csg-cadre); filter: drop-shadow(8px 8px 0 rgba(30, 26, 43, .18)); }
.csg-verdict-titre { margin: -8px -8px 0; padding: 12px 20px 8px; clip-path: var(--csg-crans-haut); font: 400 28px/1 var(--csg-titre); background: var(--csg-encre); color: var(--csg-toile); }
.csg-verdict-note { display: flex; align-items: center; gap: 16px; margin: 18px 12px 6px; }
.csg-coeurs { display: inline-flex; gap: 6px; }
.csg-coeur { width: 36px; }
.csg-coeur.est-vide { filter: grayscale(1); opacity: .28; }
.csg-verdict-note .csg-pile { font-size: 39px; }
.csg-fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 14px 12px 0; }
.csg-fiche div { border-top: 2px dashed rgba(30, 26, 43, .25); padding-top: 8px; }
.csg-fiche dt { font: 400 19px/1 var(--csg-titre); color: var(--csg-encre-douce); margin-bottom: 4px; }
.csg-fiche dd { margin: 0; font: 600 16px/1.35 var(--csg-texte); }
.csg-lecture:not(:has(.csg-sommaire)) .csg-verdict { grid-column: 1; }
/* article simple (actu, matos, sélections) : pas de séparateur entre les parties */
.csg-gabarit-article .csg-corps h2 { margin-top: 2em; }
.csg-gabarit-article .csg-corps h2::before { display: none; }
.csg-signature { grid-column: 2; display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 18px 22px; background: var(--csg-panneau); box-shadow: inset 0 0 0 3px var(--csg-encre); }
.csg-signature > .csg-px { width: 64px; flex: none; }
.csg-signature p { margin: 0; font-size: 15.5px; }
.csg-signature-nom { font: 400 28px/1 var(--csg-titre) !important; margin-bottom: 6px !important; }
.csg-voisins { margin-top: 96px; }

/* pages simples et 404 */
.csg-page .csg-lecture { grid-template-columns: minmax(0, 68ch); }
.csg-page .csg-corps { grid-column: 1; }
.csg-prairie-perdu { padding-bottom: 150px; }
.csg-prairie-perdu p { max-width: 52ch; font-size: 18px; }


/* ---- fiche villageois ---- */
.csg-prairie-fiche { padding-bottom: 0; }
.csg-prairie-fiche .csg-prairie-dedans { padding-bottom: 0; }
.csg-fiche-tete { display: grid; grid-template-columns: 196px 1fr; gap: 32px; align-items: center; margin-top: 22px; }
.csg-fiche-portrait { width: 196px; height: 196px; display: grid; place-items: center; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-fiche-portrait img { width: 164px; height: 164px; image-rendering: pixelated; }
.csg-fiche-identite h1 { margin-bottom: 14px; }
.csg-fiche-faits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.csg-fiche-faits li { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; background: var(--csg-panneau); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); font-size: 15.5px; }
.csg-fiche-faits .csg-px { width: 20px; height: 20px; }
.csg-fiche-chapo { margin: 16px 0 0; max-width: 60ch; font-size: 18px; text-shadow: 1px 1px 0 rgba(30, 26, 43, .3); }
/* les cadeaux recommandés : un panneau posé à cheval sur la couture */
.csg-fiche-reco { position: relative; z-index: 6; max-width: 760px; margin: 30px 0 -96px auto; padding: 0 16px 14px; color: var(--csg-encre); border: 11px solid transparent; border-image: var(--csg-cadre); filter: drop-shadow(8px 8px 0 rgba(30, 26, 43, .2)); }
.csg-fiche-reco-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -8px -24px 16px; padding: 12px 24px 8px; font: 400 26px/1 var(--csg-titre); background: var(--csg-ble); clip-path: var(--csg-crans-haut); }
.csg-fiche-reco-titre small { font: 600 14px/1.2 var(--csg-texte); color: var(--csg-encre-douce); }
.csg-fiche-reco-pourquoi { margin: 12px 0 0; font-size: 15.5px; color: var(--csg-encre-douce); }
.csg-fiche-corps { padding-top: 124px; }
/* objets du jeu en cases d'inventaire */
.csg-objets-jeu { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.csg-objet-jeu { width: 92px; display: grid; justify-items: center; gap: 6px; text-align: center; margin: 0 !important; }
.csg-objet-jeu-case { width: 72px; height: 72px; display: grid; place-items: center; border: 11px solid transparent; border-image: var(--csg-cadre-toile); }
.csg-objet-jeu-case img { width: 48px; height: 48px; image-rendering: pixelated; }
.csg-objet-jeu-nom { font: 600 13.5px/1.2 var(--csg-texte); }
.csg-objet-jeu.est-grand { width: 108px; }
.csg-objet-jeu.est-grand .csg-objet-jeu-case { width: 90px; height: 90px; border-image: var(--csg-cadre); }
.csg-objet-jeu.est-grand .csg-objet-jeu-case img { width: 64px; height: 64px; }
.csg-objet-jeu.est-grand .csg-objet-jeu-nom { font-size: 15px; }
/* les cinq niveaux de goût */
.csg-gouts { display: grid; gap: 18px; }
.csg-gout { padding: 0 14px 14px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-gout-titre { display: flex; align-items: center; gap: 10px; margin: -8px -22px 14px !important; padding: 11px 22px 8px; font: 400 26px/1 var(--csg-titre) !important; clip-path: var(--csg-crans-haut); }
.csg-gout-titre .csg-px { width: 24px; height: 24px; }
.csg-gout-titre small { margin-left: auto; font: 400 18px/1 var(--csg-pile); opacity: .85; }
.csg-gout-adore .csg-gout-titre { background: #E05A47; color: #fff; text-shadow: 1px 1px 0 var(--csg-encre); }
.csg-gout-aime .csg-gout-titre { background: var(--csg-ble); }
.csg-gout-neutre .csg-gout-titre { background: #D8D1BC; }
.csg-gout-naime_pas .csg-gout-titre { background: #A9B4CF; }
.csg-gout-deteste .csg-gout-titre { background: #4A4458; color: #fff; text-shadow: 1px 1px 0 var(--csg-encre); }
.csg-gout-groupes { list-style: none; margin: 0 0 14px; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.csg-gout-groupes > li { margin: 0; }
.csg-groupe-icone { display: inline-block; width: 28px; height: 28px; image-rendering: pixelated; vertical-align: middle; margin: -4px 12px -4px 0; }
.csg-groupe-nom { display: inline-block; padding: 6px 11px; font-size: 14.5px; font-weight: 600; background: var(--csg-toile); box-shadow: inset 0 0 0 2px rgba(30, 26, 43, .35); }
/* les étiquettes dépliables ne prennent pas le style des FAQ */
.csg-corps .csg-groupe details { background: none; box-shadow: none; padding: 0; margin: 0; }
.csg-corps .csg-groupe summary::after { content: none; }
.csg-groupe summary.csg-groupe-nom { cursor: pointer; list-style: none; padding: 8px 16px 8px 36px; position: relative; font: 600 14.5px/1.3 var(--csg-texte); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-groupe summary.csg-groupe-nom::-webkit-details-marker { display: none; }
.csg-groupe summary.csg-groupe-nom::before { content: "+"; position: absolute; left: 13px; top: 9px; font: 400 20px/1 var(--csg-pile); }
.csg-groupe details[open] > summary.csg-groupe-nom { background: var(--csg-ble-clair); }
.csg-groupe details[open] > summary.csg-groupe-nom::before { content: "−"; }
.csg-groupe summary.csg-groupe-nom:hover { background: #fff; }
.csg-groupe:has(details[open]) { flex-basis: 100%; }
.csg-groupe-dedans { margin-top: 10px; padding: 12px; background: #fff; box-shadow: inset 0 0 0 2px rgba(30, 26, 43, .2); }
.csg-groupe-dedans > .csg-gout-groupes { margin-bottom: 12px; }
.csg-gouts-aide { margin-top: -.3em; font-size: 15px; color: var(--csg-encre-douce); }
.csg-fiche-intro { font-size: 19px; }
.csg-gout-groupes:last-child { margin-bottom: 0; }
.csg-objets-jeu + .csg-gout-groupes { margin-top: 18px; }
/* emploi du temps et événements */
.csg-horaires-note { margin-top: -.4em; font-size: 15px; color: var(--csg-encre-douce); }
.csg-journee { margin-bottom: 18px; }
.csg-journee-titre { margin: 0 0 8px; font: 700 17px/1.3 var(--csg-texte); }
/* l'horaire : un cadre pixel à coins en escalier ; dedans, lignes et colonne séparées par 2 px d'encre */
.csg-horaires-cadre { margin-bottom: 4px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-horaires { list-style: none; padding: 0 !important; margin: -8px !important; display: grid; gap: 2px; background: var(--csg-encre); clip-path: var(--csg-crans); }
.csg-horaires li { display: grid; grid-template-columns: 170px 1fr; gap: 2px; align-items: stretch; margin: 0; }
.csg-horaires .csg-heure { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font: 400 22px/1 var(--csg-pile); }
.csg-horaires .csg-heure .csg-px { width: 20px; height: 20px; flex: none; }
.csg-horaires .csg-lieu { padding: 10px 14px; font-size: 16px; background: var(--csg-panneau); height: 100%; display: flex; align-items: center; }
/* le moment de la journée colore la case de l'heure : matin, après-midi, soir, nuit */
.csg-horaires .est-matin .csg-heure { background: #FFF4CF; }
.csg-horaires .est-apres-midi .csg-heure, .csg-horaires .est-jour .csg-heure { background: #FCE0A0; }
.csg-horaires .est-soir .csg-heure { background: #F6B98E; }
.csg-horaires .est-nuit .csg-heure { background: var(--csg-nuit); color: var(--csg-nuit-texte); }
.csg-horaires .est-nuit .csg-lieu { background: #E4DFF0; }
.csg-planning-chapo { color: var(--csg-encre-douce); }
/* les jours particuliers : une carte par saison */
.csg-saisons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.2em; }
.csg-saison { padding: 0 12px 10px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-saison-titre { display: flex; align-items: center; gap: 10px; margin: -8px -20px 12px; padding: 10px 20px 8px; font: 400 24px/1 var(--csg-titre); clip-path: var(--csg-crans-haut); }
.csg-saison-titre img { width: 36px; height: 24px; image-rendering: pixelated; }
.csg-saison-printemps .csg-saison-titre { background: #CDEBB4; }
.csg-saison-ete .csg-saison-titre { background: #FCE0A0; }
.csg-saison-automne .csg-saison-titre { background: #F6C49A; }
.csg-saison-hiver .csg-saison-titre { background: #D4E4F2; }
.csg-saison .csg-journee:last-child { margin-bottom: 0; }
.csg-saison .csg-horaires li { grid-template-columns: 112px 1fr; }
.csg-saison .csg-horaires .csg-heure { font-size: 19px; padding: 8px 10px; }
.csg-saison .csg-horaires .csg-lieu { font-size: 14.5px; padding: 8px 10px; }
.csg-saison-vide { margin: 0; font-size: 15px; color: var(--csg-encre-douce); }
.csg-cadeaux-epoux { margin-bottom: 18px; }
.csg-mariage-images { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 1.4em; }
.csg-mariage-images figure { margin: 0; }
.csg-mariage-cadre { display: block; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-mariage-cadre img { height: 260px; width: auto; image-rendering: pixelated; }
.csg-mariage-images figcaption { margin-top: 6px; font-size: 14.5px; color: var(--csg-encre-douce); }
.csg-evenements { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.csg-evenements li { display: block; margin: 0; padding: 4px 10px 6px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-rangee-coeurs { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.csg-rangee-coeurs .csg-coeur { width: 18px; }
.csg-evenement-titre .csg-chiffres { margin-left: 8px; font-size: 17px; }
.csg-evenements p { margin: 0; }
.csg-evenement-titre { font: 400 23px/1.05 var(--csg-titre); margin-bottom: 4px !important; }
/* annuaire des villageois */
.csg-annuaire { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.csg-annuaire a { display: grid; justify-items: center; gap: 8px; text-decoration: none; text-align: center; }
.csg-annuaire-case { width: 132px; height: 132px; display: grid; place-items: center; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-annuaire-case img { width: 96px; height: 96px; image-rendering: pixelated; }
.csg-annuaire a > span:nth-child(2) { font: 400 26px/1 var(--csg-titre); }
.csg-annuaire a:hover .csg-annuaire-case { animation: csg-tremousse .5s steps(4) both; }
/* ---- annuaire : filtres, cartes riches, calendrier des anniversaires ---- */
.csg-lecteur { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.csg-filtres { max-width: 1100px; margin: 0 auto 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 6px 8px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-recherche { display: flex; align-items: center; gap: 8px; flex: 1 1 230px; max-width: 320px; padding: 0 10px; background: var(--csg-toile); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-recherche .csg-px { width: 22px; height: 22px; flex: none; }
.csg-recherche input { flex: 1; min-width: 0; padding: 10px 2px; border: 0; background: transparent; font: 500 16px/1.2 var(--csg-texte); color: var(--csg-encre); }
.csg-recherche input:focus { outline: none; }
.csg-recherche:focus-within { box-shadow: inset 0 0 0 2px var(--csg-encre), 0 0 0 3px var(--csg-ble); }
.csg-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.csg-puce { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; background: var(--csg-toile); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); font: 600 15px/1.1 var(--csg-texte); cursor: pointer; }
.csg-puce .csg-px { width: 18px; height: 18px; }
.csg-puce small { font: 400 15px/1 var(--csg-titre); opacity: .7; }
.csg-puce:hover { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-puce:focus-visible { outline: 3px solid var(--csg-ble); outline-offset: 2px; }
.csg-puce.est-active { background: var(--csg-encre); color: var(--csg-panneau); box-shadow: none; }
.csg-puce.est-active small { opacity: .85; }
.csg-puce-printemps.est-active { background: #CDEBB4; color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-puce-ete.est-active { background: #FCE0A0; color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-puce-automne.est-active { background: #F6C49A; color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-puce-hiver.est-active { background: #D4E4F2; color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-tri-titre { font: 400 17px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-compte { margin: 0 0 0 auto; font: 400 20px/1 var(--csg-titre); }
.csg-annuaire-riche { max-width: 1100px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.csg-annuaire-riche li[hidden] { display: none; }
.csg-annuaire-riche a { align-content: start; }
.csg-annuaire-case { position: relative; }
.csg-annuaire-coeur { position: absolute; right: -12px; top: -12px; width: 26px; height: 26px; padding: 3px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); display: grid; place-items: center; }
.csg-annuaire-coeur .csg-px { width: 18px; height: 18px; }
.csg-annuaire a > .csg-annuaire-nom { font: 400 26px/1 var(--csg-titre); color: var(--csg-encre); }
.csg-anniv { display: inline-block; padding: 3px 9px; font: 400 17px/1.1 var(--csg-titre); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); background: var(--csg-panneau); }
.csg-anniv-printemps { background: #CDEBB4; }
.csg-anniv-ete { background: #FCE0A0; }
.csg-anniv-automne { background: #F6C49A; }
.csg-anniv-hiver { background: #D4E4F2; }
.csg-annuaire-cadeaux { display: flex; justify-content: center; gap: 2px; min-height: 32px; }
.csg-mini-objet { width: 32px; height: 32px; image-rendering: pixelated; }
.csg-annuaire-riche a:hover .csg-mini-objet { animation: csg-tremousse .5s steps(4) both; }
.csg-annuaire-riche a:hover .csg-mini-objet:nth-child(2) { animation-delay: .06s; }
.csg-annuaire-riche a:hover .csg-mini-objet:nth-child(3) { animation-delay: .12s; }
.csg-aucun { text-align: center; font-size: 17px; margin: 30px 0; }
.csg-calendrier-bloc { max-width: 700px; margin: 84px auto 28px; font-size: 18px; line-height: 1.68; }
.csg-calendrier-bloc h2 { margin: 0 0 .5em; }
.csg-calendrier-bloc p { margin: 0; }
.csg-calendriers { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.csg-calendriers .csg-saison { padding: 0 14px 14px; }
.csg-mois { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.csg-mois-semaine { text-align: center; font: 400 15px/1 var(--csg-titre); color: var(--csg-encre-douce); padding-bottom: 2px; }
.csg-jour { position: relative; aspect-ratio: 1; min-height: 40px; background: var(--csg-toile); box-shadow: inset 0 0 0 1px rgba(30, 26, 43, .22); }
.csg-jour-num { position: absolute; left: 4px; top: 2px; font: 400 14px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-jour a { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8px; text-decoration: none; }
.csg-jour.a-anniversaire { background: var(--csg-ble-clair); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-jour.a-anniversaire .csg-jour-num { color: var(--csg-encre); }
.csg-mini-portrait { width: 80%; height: 80%; max-width: 44px; max-height: 44px; image-rendering: pixelated; object-fit: contain; }
.csg-jour a:hover .csg-mini-portrait { animation: csg-tremousse .5s steps(4) both; }
.csg-jour:has(a:nth-of-type(2)) a { width: 50%; }
.csg-jour:has(a:nth-of-type(2)) a:nth-of-type(2) { left: 50%; }
@media (max-width: 720px) {
    .csg-filtres { padding: 12px; gap: 10px 14px; }
    .csg-recherche { max-width: none; flex-basis: 100%; }
    .csg-puces:not(.csg-tri) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
    .csg-puce { flex: none; }
    .csg-compte { margin-left: 0; }
    .csg-annuaire-riche { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .csg-calendriers { grid-template-columns: 1fr; }
    .csg-calendrier-bloc { margin-top: 56px; }
}
/* ---- l'outil « Qui aime quoi ? » et les pages d'outil ---- */
.csg-page-outil { padding-top: 56px; }
.csg-corps-outil { max-width: 1100px; margin: 0 auto; font-size: 18px; line-height: 1.68; }
.csg-corps.csg-corps-outil > :is(p, h2, h3, ul, ol, details, blockquote) { max-width: 700px; margin-left: auto; margin-right: auto; }
.csg-corps-outil > .csg-rail { margin-top: 18px; margin-bottom: 1.6em; }
.csg-corps-outil > h2 { margin-top: 2.2em; }
.csg-cadeaux { margin: 0 auto 56px; }
.csg-cadeaux-saisie { padding: 6px 14px 12px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cadeaux-saisie label { display: block; margin-bottom: 8px; font: 400 26px/1 var(--csg-titre); }
.csg-combo { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--csg-toile); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-combo > .csg-px { width: 24px; height: 24px; flex: none; }
.csg-combo input { flex: 1; min-width: 0; padding: 14px 2px; border: 0; background: transparent; font: 600 19px/1.2 var(--csg-texte); color: var(--csg-encre); }
.csg-combo input:focus { outline: none; }
.csg-combo:focus-within { box-shadow: inset 0 0 0 2px var(--csg-encre), 0 0 0 3px var(--csg-ble); }
.csg-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre), 4px 4px 0 rgba(30, 26, 43, .25); max-height: 360px; overflow-y: auto; }
.csg-suggestions li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; font-size: 17px; cursor: pointer; }
.csg-suggestions li img { width: 32px; height: 32px; image-rendering: pixelated; }
.csg-suggestions li.est-courante, .csg-suggestions li:hover { background: var(--csg-ble-clair); }
.csg-suggestions .csg-suggestion-vide { cursor: default; color: var(--csg-encre-douce); }
.csg-cadeaux-aide { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--csg-encre-douce); }
.csg-essais { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 15.5px; }
.csg-essais[hidden] { display: none; }
.csg-choisis { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.csg-choisi { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border: 0; background: var(--csg-ble-clair); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); font: 600 16px/1 var(--csg-texte); cursor: pointer; }
.csg-choisi img { width: 32px; height: 32px; image-rendering: pixelated; }
.csg-choisi-croix { font: 400 22px/1 var(--csg-titre); opacity: .6; }
.csg-choisi:hover { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-choisi:hover .csg-choisi-croix { opacity: 1; }
.csg-choisi:focus-visible { outline: 3px solid var(--csg-ble); outline-offset: 2px; }
.csg-cadeaux-resultat { margin-top: 28px; }
.csg-cadeaux-vide { text-align: center; color: var(--csg-encre-douce); }
.csg-cadeau-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; align-items: start; }
.csg-cadeau-carte { padding: 0 14px 12px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cadeau-tete { display: flex; align-items: center; gap: 12px; margin: -8px -22px 14px; padding: 10px 22px 8px; background: var(--csg-ble-clair); clip-path: var(--csg-crans-haut); }
.csg-cadeau-tete img { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.csg-cadeau-tete h3 { margin: 0 !important; font: 400 28px/1 var(--csg-titre) !important; }
.csg-niveau { margin: 0 0 14px; }
.csg-niveau-titre { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14.5px; color: var(--csg-encre-douce); }
.csg-niveau-etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 3px 8px; font: 400 21px/1 var(--csg-titre); color: var(--csg-encre); clip-path: var(--csg-crans); }
.csg-niveau-etiquette .csg-px { width: 18px; height: 18px; }
.csg-niveau-adore .csg-niveau-etiquette { background: #E05A47; color: #fff; text-shadow: 1px 1px 0 var(--csg-encre); }
.csg-niveau-aime .csg-niveau-etiquette { background: var(--csg-ble); }
.csg-niveau-neutre .csg-niveau-etiquette { background: #D8D1BC; }
.csg-niveau-naime_pas .csg-niveau-etiquette { background: #A9B4CF; }
.csg-niveau-deteste .csg-niveau-etiquette { background: #4A4458; color: #fff; text-shadow: 1px 1px 0 var(--csg-encre); }
.csg-tuiles { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.csg-tuiles a, .csg-destinataires a { display: grid; justify-items: center; gap: 2px; width: 70px; text-decoration: none; text-align: center; color: var(--csg-encre); font-size: 13px; line-height: 1.15; }
.csg-tuiles img, .csg-destinataires img { width: 40px; height: 40px; padding: 2px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); image-rendering: pixelated; object-fit: contain; }
.csg-tuiles a:hover img, .csg-destinataires a:hover img { animation: csg-tremousse .5s steps(4) both; }
details.csg-niveau summary { cursor: pointer; font-size: 15px; color: var(--csg-encre-douce); list-style: none; }
details.csg-niveau summary::-webkit-details-marker { display: none; }
details.csg-niveau summary::before { content: "+ "; font-family: var(--csg-titre); }
details.csg-niveau[open] summary::before { content: "− "; }
details.csg-niveau p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.csg-cadeau-resume { margin-bottom: 26px; padding: 6px 16px 12px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cadeau-resume h3 { margin: 0 0 12px !important; font: 400 26px/1 var(--csg-titre) !important; }
.csg-destinataires { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.csg-destinataires li { display: flex; align-items: center; gap: 10px; }
.csg-destinataires a { flex: none; }
.csg-donnes { display: flex; flex-wrap: wrap; gap: 4px; }
.csg-donne { padding: 2px 8px; font-size: 14px; line-height: 1.3; font-weight: 600; box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-donne-adore { background: #E05A47; color: #fff; }
.csg-donne-aime { background: var(--csg-ble); }
.csg-cadeau-nom { display: inline-flex; align-items: center; gap: 8px; margin: 2px 14px 2px 0; text-decoration: none; }
a.csg-cadeau-nom { font-weight: 600; color: var(--csg-encre); }
.csg-cadeau-nom img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.csg-table-cadeaux td, .csg-table-cadeaux th { vertical-align: middle; }
@media (max-width: 720px) {
    .csg-page-outil { padding-top: 32px; }
    .csg-cadeau-cartes { grid-template-columns: 1fr; }
    .csg-destinataires { grid-template-columns: 1fr; }
    .csg-cadeaux-saisie label { font-size: 23px; }
}
/* pages d'outil : header de rubrique, titre plus petit, intro dans le vert */
.csg-prairie-outil { padding-bottom: 96px; }
.csg-prairie-outil h1 { font-size: clamp(42px, 4.4vw, 66px); margin-top: 18px; }
.csg-outil-intro { max-width: 62ch; margin: 14px 0 0; font-size: 19px; line-height: 1.55; text-shadow: 1px 1px 0 rgba(30, 26, 43, .3); }
.csg-annuaire-page { padding-top: 56px; }

/* ---- la nuit : le pied ---- */
.csg-nuit { position: relative; z-index: 6; background: var(--csg-nuit); color: var(--csg-nuit-texte); padding: 56px 24px 28px; }
.csg-ciel { position: absolute; left: 0; right: 0; top: -84px; height: 110px; pointer-events: none; }
.csg-etoile { position: absolute; width: 15px; }
.csg-etoile:nth-child(3n) { width: 10px; }
.csg-nuit-dedans { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.csg-nuit-marque .csg-marque { font-size: clamp(40px, 4.4vw, 60px); gap: 14px; text-shadow: 4px 4px 0 #120D20; }
.csg-nuit-marque .csg-marque-objet { width: 58px; filter: drop-shadow(4px 4px 0 #120D20); }
.csg-nuit-marque p { margin: 18px 0 0; max-width: 40ch; font-size: 17px; }
.csg-nuit-titre { font: 400 28px/1 var(--csg-titre); margin: 0 0 14px; color: #fff; }
.csg-nuit ul { list-style: none; margin: 0; padding: 0; }
.csg-nuit li { margin-bottom: 8px; }
.csg-nuit a { color: var(--csg-nuit-texte); text-decoration: none; }
.csg-nuit a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--csg-ble); text-underline-offset: 3px; }
.csg-nuit-bas { max-width: 1180px; margin: 44px auto 0; font-size: 13.5px; color: #B9B0CF; }

/* ---- écrans moyens ---- */
@media (max-width: 1240px) {
    .csg-entete-ligne { flex-wrap: wrap; }
    .csg-fouille { flex-basis: 100%; order: 3; margin-left: 0; max-width: 520px; }
}
@media (max-width: 1080px) {
    .csg-hero { grid-template-columns: 1fr; gap: 26px; }
    .csg-hero-texte { padding-top: 0; }
    .csg-hero .csg-pecheuse { margin-left: 0; }
    .csg-accroche { max-width: 20ch; }
    .csg-animal-poule { left: auto; right: 14%; }
    .csg-etal-objets { grid-template-columns: 1fr; }
    .csg-coffres, .csg-coffre-pied { grid-template-columns: 1fr 1fr; max-width: none; }
    .csg-hub-mosaique { display: none; }
    .csg-pecheuse { transform: scale(.8); transform-origin: bottom right; }
    .csg-lecture { grid-template-columns: minmax(0, 68ch); }
    .csg-sommaire { position: static; grid-row: auto; }
    .csg-corps, .csg-signature, .csg-sommaire, .csg-verdict { grid-column: 1; }
    .csg-cases { grid-template-columns: 1fr 1fr; }
}

/* ---- téléphone : la barre d'outils descend sous le pouce ---- */
@media (max-width: 720px) {
    body { font-size: 16.5px; padding-bottom: 96px; }
    .csg-entete-ligne { flex-wrap: wrap; gap: 12px; padding: 14px 16px 10px; }
    .csg-marque, .csg-marque-pile { font-size: 24px; flex-direction: row; gap: 10px; }
    .csg-marque-pile .csg-marque-objet { width: 32px; }
    .csg-fouille { flex-basis: 100%; max-width: none; }
    .csg-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0; background: var(--csg-encre); }
    .csg-barre-cases { display: flex; width: 100%; overflow-x: auto; clip-path: none; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); scroll-snap-type: x proximity; }
    .csg-barre-cases li { flex: 0 0 auto; scroll-snap-align: center; }
    .csg-emplacement { width: 82px; height: 76px; gap: 4px; }
    .csg-emplacement-objet, .csg-emplacement-objet .csg-px { width: 34px; height: 34px; max-height: 34px; }
    .csg-emplacement-nom { font-size: 12px; }
    .csg-touche { display: none; }
    .csg-prairie-dedans { padding: 4px 16px 0; }
    .csg-accroche { margin: 10px 0 26px; }
    .csg-coffres { grid-template-columns: 1fr; gap: 16px; }
    .csg-hub-mosaique { display: grid; }
    .csg-hub > img, .csg-mosaique { aspect-ratio: 16 / 9; }
    .csg-prairie-accueil { padding-bottom: 18px; }
    .csg-pecheuse { right: 6px; bottom: 26px; transform: scale(.62); }
    .csg-toile { padding: 32px 16px 110px; }
    .csg-vedette { display: block; }
    .csg-vedette-texte { margin: -22px 12px 0; padding: 20px; }
    .csg-etal { padding: 12px; }
    .csg-objet { grid-template-columns: 120px 1fr; gap: 12px; }
    .csg-etal-objets { grid-template-columns: 1fr; }
    .csg-hero .csg-coffres { grid-template-columns: 1fr; }
    .csg-hero-sous { font-size: 17px; }
    .csg-animal-alpheep { display: none; }
    .csg-animal-poule { height: 52px; right: 42%; bottom: 40px; }
    .csg-marque-pile .csg-marque-objet { width: 36px; }
    .csg-coffre-pied { display: none; }
    .csg-liste li { grid-template-columns: 1fr auto; gap: 6px 12px; }
    .csg-liste .csg-badge { grid-row: 2; justify-self: start; }
    .csg-liste .csg-chiffres { grid-row: 2; }
    .csg-choisir-poisson { width: 78px; top: auto; bottom: 52px; right: -4px; z-index: 2; }
    .csg-capsules li { flex-basis: 84%; }
    .csg-cases { grid-template-columns: 1fr; }
    .csg-prairie-coffre { padding-bottom: 110px; }
    .csg-prairie-coffre.a-un-art { padding-bottom: 60px; }
    .csg-prairie-coffre.a-un-art .csg-coffre-tete { max-width: none; }
    .csg-prairie-coffre.a-un-art .csg-prairie-dedans { min-height: 0; }
    .csg-coffre-art { position: relative; display: block; top: auto; width: calc(100% - 16px); height: auto; aspect-ratio: 16 / 9; margin: 22px 0 0 16px; }
    .csg-coffre-objet { width: 96px; height: 96px; bottom: -150px; left: 16px; }
    .csg-coffre-objet .csg-px { width: 56px; }
    .csg-coffre { padding-top: 96px; }
    .csg-prairie-partie { padding-bottom: 170px; }
    .csg-partie-tete { margin-top: -130px; }
    .csg-partie-titre { grid-column: 1 / -1; margin: -24px 10px 0; padding: 20px 18px 18px; box-shadow: inset 0 0 0 3px var(--csg-encre), 6px 6px 0 var(--csg-encre); }
    .csg-lecture { margin-top: 36px; gap: 28px; }
    .csg-pour-contre > .wp-block-group__inner-container { grid-template-columns: 1fr; }
    .csg-fiche { grid-template-columns: 1fr; }
    .csg-coeur { width: 28px; }
    .csg-nuit-dedans { grid-template-columns: 1fr; gap: 28px; }
    .csg-fiche-tete { grid-template-columns: 120px 1fr; gap: 16px; }
    .csg-fiche-portrait { width: 120px; height: 120px; }
    .csg-fiche-portrait img { width: 88px; height: 88px; }
    .csg-fiche-reco { margin: 22px 0 -60px; }
    .csg-fiche-corps { padding-top: 96px; }
    .csg-objet-jeu { width: 78px; }
    .csg-gout-titre small { display: none; }
    .csg-saisons { grid-template-columns: 1fr; }
    .csg-horaires li { grid-template-columns: 120px 1fr; }
    .csg-annuaire { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .csg-annuaire-case { width: 96px; height: 96px; }
    .csg-annuaire-case img { width: 64px; height: 64px; }
}

/* ---- la liste des outils ---- */
.csg-outils-liste { max-width: 1100px; margin: 0 auto 36px !important; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.csg-outils-liste a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 18px 18px 20px; border: 11px solid transparent; border-image: var(--csg-cadre); text-decoration: none; color: var(--csg-encre); }
.csg-outils-liste a:hover { animation: csg-tremousse-doux .5s steps(4) both; }
.csg-outil-pic .csg-px { width: 44px; height: 44px; }
.csg-outil-jeu { font: 400 17px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-outils-liste strong { font: 400 28px/1.05 var(--csg-titre); }
.csg-outil-texte { font-size: 16px; line-height: 1.5; }
.csg-corps details.csg-niveau { background: none; box-shadow: none; padding: 0; margin: 0 0 14px; }
.csg-corps details.csg-niveau summary { padding: 0; }
.csg-corps details.csg-niveau summary::after { content: none; }
.csg-corps details.csg-niveau > p { padding-bottom: 0; }
.csg-outil-intro a { color: #fff; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.csg-corps :is(.csg-destinataires, .csg-tuiles, .csg-choisis, .csg-outils-liste) { padding-left: 0; }

/* ---- le calendrier de Stardew Valley ---- */
.csg-calendrier { max-width: 1100px; margin: 0 auto 56px; }
.csg-cal-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 6px 8px; margin-bottom: 22px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cal-barre .csg-puce img { width: 24px; height: 16px; image-rendering: pixelated; }
.csg-aujourdhui { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 15px; }
.csg-aujourdhui label { font-weight: 600; }
.csg-aujourdhui select { padding: 6px 8px; border: 0; background: var(--csg-toile); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); font: 600 15px/1.2 var(--csg-texte); }
.csg-cal-prochains { margin: 0 0 22px; padding: 12px 18px; background: var(--csg-ble-clair); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-cal-prochains[hidden] { display: none; }
.csg-cal-prochains p { margin: 4px 0; font-size: 16px; line-height: 1.5; }
.csg-cal-prochains .csg-cal-prochains-titre { font: 400 22px/1.1 var(--csg-titre); margin-bottom: 8px; }
.csg-cal-prochains a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-right: 6px; }
.csg-cal-prochains a img { width: 32px; height: 32px; image-rendering: pixelated; }
.csg-cal-prochains p > span { color: var(--csg-encre-douce); }
.csg-cal-saison { margin: 0 0 22px; padding: 0 14px 14px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cal-saison[hidden] { display: none; }
.csg-cal-titre { display: flex; align-items: center; gap: 10px; margin: -8px -22px 14px !important; padding: 10px 22px 8px; font: 400 26px/1 var(--csg-titre) !important; clip-path: var(--csg-crans-haut); }
.csg-cal-titre img { width: 36px; height: 24px; image-rendering: pixelated; }
.csg-saison-printemps .csg-cal-titre { background: #CDEBB4; }
.csg-saison-ete .csg-cal-titre { background: #FCE0A0; }
.csg-saison-automne .csg-cal-titre { background: #F6C49A; }
.csg-saison-hiver .csg-cal-titre { background: #D4E4F2; }
.csg-cal-mois { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.csg-cal-semaine { text-align: center; font: 400 17px/1 var(--csg-titre); color: var(--csg-encre-douce); padding-bottom: 2px; }
.csg-cal-jour { position: relative; min-height: 112px; background: var(--csg-toile); box-shadow: inset 0 0 0 1px rgba(30, 26, 43, .22); }
.csg-cal-jour.a-evenement { background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-cal-case { display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; height: 100%; padding: 4px 5px 6px; border: 0; background: none; color: var(--csg-encre); text-align: left; font: inherit; cursor: pointer; }
.csg-cal-case:hover { background: var(--csg-ble-clair); }
.csg-cal-case:focus-visible { outline: 3px solid var(--csg-ble); outline-offset: -3px; }
.csg-cal-num { font: 400 17px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.a-evenement .csg-cal-num { color: var(--csg-encre); }
.csg-cal-fete, .csg-cal-autre { padding: 2px 5px; font-size: 12px; line-height: 1.25; font-weight: 700; box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-cal-fete { background: var(--csg-ble); }
.csg-cal-autre { background: var(--csg-menthe-clair); font-weight: 600; }
.csg-cal-anniv { display: flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.15; font-weight: 600; }
.csg-cal-anniv img { width: 32px; height: 32px; padding: 1px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); image-rendering: pixelated; flex: none; }
.csg-cal-jour.est-choisi { box-shadow: inset 0 0 0 3px var(--csg-encre), 0 0 0 3px var(--csg-ble); z-index: 1; }
.csg-cal-jour.est-aujourdhui::after { content: "ici"; position: absolute; right: 4px; top: 3px; padding: 1px 6px; background: var(--csg-encre); color: #fff; font: 400 14px/1.1 var(--csg-titre); pointer-events: none; }
.csg-calendrier[data-sans-festivals] [data-type="festivals"], .csg-calendrier[data-sans-anniversaires] [data-type="anniversaires"] { display: none; }
.csg-cal-detail { margin-top: 6px; padding: 8px 18px 14px; border: 11px solid transparent; border-image: var(--csg-cadre); min-height: 80px; }
.csg-cal-detail h3 { margin: 0 0 10px !important; font: 400 28px/1.1 var(--csg-titre) !important; }
.csg-cal-detail h3 small { font: 400 20px/1 var(--csg-titre); color: var(--csg-encre-douce); margin-left: 6px; }
.csg-detail-vide { margin: 0; color: var(--csg-encre-douce); font-size: 16px; }
.csg-detail-bloc { margin: 0 0 12px; padding: 4px 0 4px 14px; border-left: 6px solid var(--csg-ble); }
.csg-detail-autre { border-left-color: var(--csg-menthe); }
.csg-detail-anniv { border-left-color: #E05A47; }
.csg-detail-bloc p { margin: 2px 0; font-size: 16px; line-height: 1.55; }
.csg-detail-bloc .csg-detail-titre { font: 400 23px/1.15 var(--csg-titre); }
.csg-detail-titre a { display: inline-flex; align-items: center; gap: 8px; color: var(--csg-encre); }
.csg-detail-titre img { width: 40px; height: 40px; image-rendering: pixelated; }
.csg-detail-meta { color: var(--csg-encre-douce); font-size: 14.5px !important; }
.csg-detail-cadeaux { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.csg-detail-cadeau { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.csg-detail-cadeau img { width: 32px; height: 32px; image-rendering: pixelated; }
.csg-calendrier:not(.csg-cal-js) .csg-cal-detail { display: none; }
@media (max-width: 720px) {
    .csg-aujourdhui { margin-left: 0; }
    .csg-cal-saison { padding: 0 6px 10px; }
    .csg-cal-titre { margin-left: -15px !important; margin-right: -15px !important; padding-left: 15px; padding-right: 15px; }
    .csg-cal-mois { gap: 2px; }
    .csg-cal-semaine { font-size: 13px; }
    .csg-cal-jour { min-height: 62px; }
    .csg-cal-case { padding: 2px 2px 3px; gap: 2px; align-items: center; }
    .csg-cal-num { font-size: 14px; align-self: flex-start; }
    .csg-cal-anniv > span:not(.csg-cal-portrait) { display: none; }
    .csg-cal-anniv img { width: 28px; height: 28px; }
    .csg-cal-jour.est-aujourdhui::after { font-size: 11px; padding: 0 3px; }
    .csg-cal-detail { padding: 6px 8px 12px; }
}
@media (max-width: 720px) {
    .csg-cal-barre .csg-puces { flex-wrap: wrap; overflow: visible; width: auto; }
}

/* icônes du jeu : calendrier, pastilles de goût */
.csg-ico { width: 24px; height: 24px; image-rendering: pixelated; flex: none; vertical-align: middle; }
.csg-cal-fete, .csg-cal-autre { display: flex; align-items: center; gap: 4px; }
.csg-cal-fete .csg-ico, .csg-cal-autre .csg-ico { width: 20px; height: 20px; }
.csg-cal-portrait { position: relative; display: inline-block; flex: none; }
.csg-cal-portrait .csg-ico-gateau { display: none; position: absolute; right: -6px; bottom: -5px; width: 16px; height: 16px; }
.csg-ico-apres { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }
.csg-cal-prochains p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.csg-cal-prochains .csg-ico { width: 24px; height: 24px; }
.csg-detail-titre .csg-ico { width: 32px; height: 32px; margin-right: 8px; }
.csg-detail-titre a .csg-ico { margin: 0 8px 0 0; }
.csg-donne { display: inline-flex; align-items: center; gap: 5px; }
.csg-donne .csg-px { width: 14px; height: 14px; flex: none; }
.csg-legende { margin: -4px 0 12px; font-size: 14.5px; color: var(--csg-encre-douce); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 720px) {
    .csg-cal-fete, .csg-cal-autre { height: auto; padding: 1px; justify-content: center; box-shadow: none; background: none; }
    .csg-cal-fete > span:not(.csg-ico), .csg-cal-autre > span:not(.csg-ico) { display: none; }
    .csg-cal-fete .csg-ico, .csg-cal-autre .csg-ico { width: 24px; height: 24px; }
    .csg-cal-portrait .csg-ico-gateau { display: block; width: 14px; height: 14px; right: -5px; bottom: -4px; }
}
.csg-cal-anniv img.csg-ico { width: 16px; height: 16px; padding: 0; background: none; box-shadow: none; }
.csg-cal-anniv .csg-cal-nom { display: block; }
.csg-cal-anniv .csg-cal-nom img.csg-ico-apres { display: inline-block; margin-left: 4px; vertical-align: -3px; }
@media (max-width: 720px) {
    .csg-cal-anniv .csg-cal-nom { display: none; }
    .csg-cal-anniv .csg-cal-portrait img.csg-ico-gateau { width: 14px; height: 14px; }
}
.csg-donne-aime .csg-px { display: none; }

/* ---- la rentabilité des cultures ---- */
.csg-cultures { max-width: 1100px; margin: 0 auto 56px; }
.csg-cult-reglages { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px 28px; padding: 6px 16px 16px; margin-bottom: 24px; border: 11px solid transparent; border-image: var(--csg-cadre); }
.csg-cult-titre { margin: 8px 0 10px !important; font: 400 24px/1 var(--csg-titre) !important; }
.csg-cult-groupe .csg-puces { margin-bottom: 12px; }
.csg-cult-groupe .csg-puce img { width: 20px; height: 20px; image-rendering: pixelated; }
.csg-cult-groupe .csg-puce img[width="24"] { width: 24px; height: 16px; }
.csg-cult-ligne-champs { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.csg-cult-ligne-champs label { display: grid; gap: 4px; font-size: 14.5px; font-weight: 600; }
.csg-cult-ligne-champs label[hidden] { display: none; }
.csg-cult-reglages select { max-width: 100%; padding: 7px 9px; border: 0; background: var(--csg-toile); color: var(--csg-encre); box-shadow: inset 0 0 0 2px var(--csg-encre); font: 600 15px/1.2 var(--csg-texte); }
.csg-cult-reglages .csg-cult-ligne-champs .csg-cult-case { display: flex; }
.csg-cult-case { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.csg-cult-case input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--csg-prairie-sombre); }
.csg-cult-aide { margin: 0 !important; font-size: 14px; line-height: 1.45; color: var(--csg-encre-douce); }
.csg-cult-tuiles { list-style: none; margin: 0 0 26px; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.csg-cult-tuiles li { display: grid; justify-items: center; align-content: start; gap: 4px; margin: 0; padding: 12px 10px 14px; text-align: center; background: var(--csg-ble-clair); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-cult-tuiles li:nth-child(2) { background: var(--csg-menthe-clair); }
.csg-cult-tuiles li:nth-child(3) { background: #F9DCD4; }
.csg-tuile-titre { font: 400 19px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-cult-tuiles img { width: 48px; height: 48px; image-rendering: pixelated; }
.csg-cult-tuiles strong { font: 400 26px/1 var(--csg-titre); }
.csg-cult-tuiles li > span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.csg-cult-tri { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 14px; }
.csg-cult-tri .csg-cult-titre { margin: 0 !important; }
.csg-corps .csg-cult-table { margin-top: 0; }
.csg-cult-table td, .csg-cult-table th { vertical-align: middle; }
.csg-corps .csg-cult-table tbody th.csg-cult-nom { background: var(--csg-panneau); color: var(--csg-encre); font: 600 16px/1.25 var(--csg-texte); text-shadow: none; padding: 4px 10px; }
.csg-cult-nom button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.csg-cult-nom button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.csg-cult-nom button:focus-visible { outline: 3px solid var(--csg-ble); outline-offset: 2px; }
.csg-cult-nom img { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.csg-cult-rare { display: inline-block; margin-left: 4px; padding: 1px 6px; background: var(--csg-ble); box-shadow: inset 0 0 0 1.5px var(--csg-encre); font: 600 11.5px/1.3 var(--csg-texte); vertical-align: middle; }
.csg-cult-rang { width: 44px; text-align: center; font: 400 21px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-cult-ligne.est-podium:nth-child(1) .csg-cult-rang { color: #B8860B; }
.csg-cult-ligne.est-ouverte td, .csg-cult-ligne.est-ouverte th { background: var(--csg-ble-clair) !important; }
.csg-cult-gain { min-width: 190px; }
.csg-cult-gain strong { display: block; font-weight: 700; }
.csg-cult-barre { display: block; height: 8px; margin-bottom: 4px; background: var(--csg-toile); box-shadow: inset 0 0 0 1.5px var(--csg-encre); }
.csg-cult-barre > span { display: block; height: 100%; background: var(--csg-prairie); box-shadow: inset 0 0 0 1.5px var(--csg-encre); }
.csg-cult-detail td { padding: 0; }
.csg-cult-detail-corps { padding: 12px 18px 6px; background: var(--csg-panneau); }
.csg-cult-detail-corps p { margin: 0 0 8px !important; font-size: 15.5px; line-height: 1.5; }
.csg-cult-notes, .csg-cult-vide { margin: 12px 0 0; font-size: 15px; color: var(--csg-encre-douce); }
.csg-cult-vide { padding: 18px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); color: var(--csg-encre); }
@media (max-width: 720px) {
    .csg-cult-tuiles { grid-template-columns: 1fr; }
    .csg-cult-tuiles li { grid-template-columns: 48px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
    .csg-cult-tuiles li > img { grid-row: 1 / span 3; }
    .csg-corps .csg-cult-table { background: none; clip-path: none; padding: 0; border-spacing: 0; border: 0; border-image: none; }
    .csg-cult-table thead { position: absolute; left: -9999px; }
    .csg-cult-table, .csg-cult-table tbody { display: block; }
    .csg-cult-ligne { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); }
    .csg-cult-ligne.est-ouverte { background: var(--csg-ble-clair); }
    .csg-corps .csg-cult-table td, .csg-corps .csg-cult-table tbody th.csg-cult-nom { background: none !important; padding: 6px 10px; }
    .csg-cult-rang { grid-row: 1; grid-column: 1; align-self: center; width: auto; padding: 6px 0 6px 10px !important; text-align: left; }
    .csg-corps .csg-cult-table tbody th.csg-cult-nom { grid-row: 1; grid-column: 1 / -1; padding-left: 38px; }
    .csg-cult-rang { position: relative; z-index: 1; width: 38px; }
    .csg-cult-gain { grid-column: 1 / -1; min-width: 0; }
    .csg-cult-table td[data-label]:not(.csg-cult-rang)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--csg-encre-douce); }
    .csg-cult-table td { font-size: 14.5px; }
    .csg-cult-detail { display: block; margin: -8px 0 8px; box-shadow: inset 0 0 0 2px var(--csg-encre); }
    .csg-cult-detail td { display: block; }
}

/* ---- le centre communautaire : les paquets ---- */
.csg-paquets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin: 18px 0 40px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.csg-paquet { display: flex; flex-direction: column; padding: 0 0 4px; background: var(--csg-panneau); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-paquet header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 2px solid var(--csg-encre); background: var(--csg-toile); }
.csg-paquet-green header { background: #CDEBB4; } .csg-paquet-yellow header { background: #FCE0A0; } .csg-paquet-orange header { background: #F6C49A; }
.csg-paquet-teal header { background: #BFE3E6; } .csg-paquet-blue header { background: #C5DCF4; } .csg-paquet-red header { background: #F2B8AE; } .csg-paquet-purple header { background: #DCC8EE; }
.csg-paquet-image { width: 64px; height: 64px; flex: none; object-fit: contain; image-rendering: pixelated; }
.csg-corps .csg-paquet h3 { margin: 0 !important; font: 400 24px/1.05 var(--csg-titre) !important; }
.csg-paquet-cases { margin: 4px 0 0 !important; font-size: 14px; line-height: 1.3; }
.csg-paquet-objets { list-style: none; margin: 0; padding: 8px 12px 4px !important; display: grid; gap: 4px; }
.csg-corps .csg-paquet-objets li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 4px 0; border-bottom: 1px dashed rgba(30, 26, 43, .25); }
.csg-paquet-objets li:last-child { border-bottom: 0; }
.csg-paquet-icone { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--csg-toile); box-shadow: inset 0 0 0 2px var(--csg-encre); }
.csg-paquet-icone img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.csg-paquet-texte { display: grid; gap: 1px; font-size: 15.5px; line-height: 1.3; }
.csg-paquet-texte small { font-size: 13.5px; line-height: 1.35; color: var(--csg-encre-douce); }
.csg-paquet-qte { font-family: var(--csg-titre); font-size: 19px; font-weight: 400; color: var(--csg-prairie-sombre); }
.csg-paquet-qualite { display: inline-block; justify-self: start; width: fit-content; padding: 0 6px; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--csg-encre); vertical-align: middle; }
.csg-qualite-silver { background: #E3E6EA; } .csg-qualite-gold { background: var(--csg-ble); } .csg-qualite-iridium { background: #D9B8F2; }
.csg-paquet footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 14px; border-top: 2px solid var(--csg-encre); background: var(--csg-ble-clair); font-size: 15px; }
.csg-paquet footer > span { font: 400 18px/1 var(--csg-titre); color: var(--csg-encre-douce); }
.csg-paquet footer img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.csg-corps h2[id] { scroll-margin-top: 90px; }
@media (max-width: 720px) { .csg-paquets { grid-template-columns: 1fr; } }

/* icône d'un monstre dans la première colonne d'un tableau */
.csg-monstre { display: flex; align-items: center; gap: 10px; }
.csg-monstre img { width: 40px; height: 40px; flex: none; object-fit: contain; image-rendering: pixelated; }
.csg-monstre img.csg-nk { image-rendering: auto; }
.csg-accueil-outils { margin-bottom: 64px; }
.csg-accueil-outils .csg-outils-liste { max-width: none; margin: 0 !important; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .csg-accueil-outils .csg-outils-liste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .csg-accueil-outils .csg-outils-liste { grid-template-columns: 1fr; } }
.csg-outil-jeu { justify-self: start; font: 600 13px/1 var(--csg-texte); letter-spacing: .02em; padding: 5px 9px 4px; background: var(--csg-panneau); border: 2px solid var(--csg-encre); border-radius: 3px; }
