/* Thème « Cristal et or » (fantasy_isle) : les pièces du kit de STORYGEN (app/themes/fantasy_isle/ui/
   crystal/), posées telles quelles en images, en 9 morceaux (border-image) aux marges de theme.json, à
   l'échelle de chaque élément. Chargé après le style de la page. */
:root {
    --gold-1: #fff1b8;
    --gold-2: #e8b84a;
    --gold-3: #8a5a12;
    --crystal-1: #9fd4ff;
    --crystal-2: #4f86f0;
    --crystal-3: #3a4fc8;
    --night: #1b1840;
    --text: #fff8e7;
    --text-shadow: #2a1450;
    --gold-ring: linear-gradient(135deg, #fff1b8, #e8b84a 30%, #8a5a12 60%, #e8b84a 80%, #fff1b8);
}

/* ---- Fenêtres : cadre or à volutes et gemme (modal 1200 × 1242, marges 340 75 280 75) ; largeur fixe,
   seule la hauteur s'étire, pour ne pas déformer la gemme ---- */
.panel { background: rgb(14 10 40 / 0.6); }
.panel .card {
    box-sizing: border-box; width: 82cqw; border-radius: 0; box-shadow: none; background: none;
    border-style: solid; border-width: 0;
    border-image: url("../../themes/fantasy_isle/ui/crystal/modal.webp") 340 75 280 75 fill / 23cqw 5.1cqw 19cqw 5.1cqw;
    padding: 17cqw 8cqw 14cqw;
    filter: drop-shadow(0 2cqw 4cqw rgb(0 0 0 / 0.5));
}
.panel .card::before { content: none; }
.panel h1 { color: var(--gold-1); text-shadow: 0 0.5cqw 0 var(--gold-3), 0 0 3cqw rgb(255 220 140 / 0.6); }
.panel p { color: var(--text); text-shadow: 0 0.3cqw 0 var(--text-shadow); }

/* ---- Boutons : gemme or (button_secondary 900 × 221, marges 40 110 40 110) pour tous ; gemme bleue à
   couronne (button_primary 900 × 408, marges 200 110 100 110) pour l'action principale ---- */
.big-button {
    border-radius: 0; box-shadow: none; background: none; clip-path: none; isolation: auto;
    filter: drop-shadow(0 0.8cqw 1cqw rgb(0 0 0 / 0.45));
    border-style: solid; border-width: 0;
    border-image: url("../../themes/fantasy_isle/ui/crystal/button_secondary.webp") 40 110 40 110 fill / 3cqw 8.4cqw 3cqw 8.4cqw;
    padding: 4cqw 9cqw; color: #4a2c06; text-shadow: 0 0.3cqw 0 rgb(255 245 200 / 0.8);
}
.big-button::before { content: none; }
/* Appui : la gemme s'enfonce et s'assombrit. Pas d'échange d'image : le site est servi sans cache, et la
   version « pressée » chargée au moment du clic laissait le bouton vide quelques secondes */
.big-button:active, #startGame:active, .play:active, .big-button.primary:active { filter: brightness(0.86) drop-shadow(0 0.4cqw 0.6cqw rgb(0 0 0 / 0.45)); }
.big-button:active { transform: translateY(0.4cqw); }
#startGame, .play, .big-button.primary {
    border-image: url("../../themes/fantasy_isle/ui/crystal/button_primary.webp") 200 110 100 110 fill / 15cqw 8.4cqw 7.6cqw 8.4cqw;
    padding: 14.5cqw 9cqw 6.6cqw; color: var(--text); text-shadow: 0 0.45cqw 0 var(--text-shadow), 0 0 2cqw rgb(160 210 255 / 0.8);
}
.big-button.secondary, .big-button.resume { color: #4a2c06; background: none; box-shadow: none; text-shadow: 0 0.3cqw 0 rgb(255 245 200 / 0.8); }
.big-button:disabled { filter: grayscale(0.8) drop-shadow(0 0.8cqw 1cqw rgb(0 0 0 / 0.45)); }

/* Orbe des boutons ronds, remplacée par les thèmes de saison (chemin absolu : la variable est lue dans d'autres feuilles) */
:root { --button-round: url("/themes/fantasy_isle/ui/crystal/button_round.webp"); }
/* ---- Boutons ronds (retour, réglages) : l'orbe de cristal du kit, icône or par-dessus ---- */
.back {
    border: 0; border-radius: 0; box-shadow: none; color: transparent; font-size: 0;
    width: 13cqw; height: 13cqw;
    background:
        url("../../themes/fantasy_isle/ui/crystal/icons/back.webp") center / 50% no-repeat,
        var(--button-round) center / contain no-repeat;
    filter: drop-shadow(0 0.6cqw 1cqw rgb(0 0 0 / 0.45));
}
/* Réglages : le bouton rond orné comme les autres (cadre or et pierres), roue dentée or détachée du cristal
   par une ombre douce, et son nom écrit sous la pierre du bas (libellé traduit de l'attribut aria-label) */
.back.settings-button, #openSettings {
    position: relative; overflow: visible; color: transparent;
    background:
        url("../../themes/fantasy_isle/ui/crystal/icons/settings.webp") center / 58% no-repeat,
        radial-gradient(circle closest-side, rgb(20 10 44 / 0.6) 0 38%, transparent 64%) center / 100% 100% no-repeat,
        var(--button-round) center / contain no-repeat;
    filter: drop-shadow(0 0.6cqw 1cqw rgb(0 0 0 / 0.45)) drop-shadow(0 0 1.2cqw rgb(255 215 120 / 0.45));
}
.back.settings-button::after, #openSettings::after {
    content: attr(aria-label); position: absolute; top: 104%; left: 50%; transform: translateX(-50%);
    font: 900 2.7cqw/1 var(--font-body, "Nunito", sans-serif); color: #fff1b8; white-space: nowrap; pointer-events: none;
    -webkit-text-stroke: 0.55cqw #2a1640; paint-order: stroke fill;
}

/* ---- Bandeaux d'équipe (banner_team 1000 × 281, marges 70 140 70 340) : portrait du héros du clan dans le
   rond de gauche ; l'équipe qui joue prend la version au halo bleu ---- */
.teams[data-count="3"], .teams[data-count="4"] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
/* Bandeaux grands et lisibles : deux au plus par ligne (en haut et en bas de l'écran) */
/* Le cristal du bandeau prend la couleur de l'équipe (rouge, vert d'eau, jaune, violet) : la couleur se lit
   d'un coup d'œil, sans l'écrire. Le verre est peint dans un calque à part, seul à être teinté. */
.team {
    /* Hauteur fixe : le cercle et la barre de verre du dessin restent à leur place (mesurés sur banner_team.webp,
       1000 × 281 px, soit 0,0512 cqw par pixel) ; le texte tient dans la barre, à droite du cercle */
    position: relative; isolation: isolate; height: 14.4cqw; box-sizing: border-box; border-radius: 0; background: none; box-shadow: none;
    border: 0; padding: 3.6cqw 7.6cqw 3.6cqw 18.8cqw; transform: none;
    display: flex; flex-direction: column; justify-content: center; gap: 0.2cqw;
}
.team::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 0;
    border-image: url("../../themes/fantasy_isle/ui/crystal/banner_team.webp") 70 140 70 340 fill / 3.6cqw 7cqw 3.6cqw 17.4cqw;
}
/* Teinte posée seulement sur la barre de verre (le cadre d'or et le rond du portrait gardent leurs couleurs) */
.team::after {
    content: ""; position: absolute; z-index: -1; top: 3.9cqw; bottom: 3.9cqw; left: 17.9cqw; right: 7.3cqw; border-radius: 1.6cqw;
    background: linear-gradient(180deg, color-mix(in srgb, var(--camp) 70%, white), var(--camp) 55%, color-mix(in srgb, var(--camp) 70%, black));
    mix-blend-mode: color; opacity: 0.95; pointer-events: none;
}
/* Équipe qui joue : son bandeau grossit un peu, brille à sa couleur et pulse ; son portrait s'entoure d'un halo */
.team.active { box-shadow: none; transform: scale(1.06); z-index: 2; animation: active-team 1.4s ease-in-out infinite; }
.team.active .portrait { box-shadow: 0 0 0 0.5cqw #fff8e7, 0 0 2.6cqw 0.8cqw var(--camp); }
@keyframes active-team { 0%, 100% { filter: drop-shadow(0 0 1.2cqw var(--camp)) brightness(1); } 50% { filter: drop-shadow(0 0 3.2cqw var(--camp)) brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .team.active { animation: none; filter: drop-shadow(0 0 2cqw var(--camp)); } }
.team.active::before { border-image-source: url("../../themes/fantasy_isle/ui/crystal/banner_team_active.webp"); }
/* Portrait au centre du cercle du dessin (centre à 183 × 128 px, disque de 212 px) */
.team .portrait {
    position: absolute; left: 3.95cqw; top: 1.1cqw; transform: none;
    width: 10.9cqw; height: 10.9cqw; border-radius: 50%; object-fit: cover; object-position: top; background: var(--night);
}
/* Texte posé sur la barre de verre : blanc cerné d'ombre, liseré à la couleur du camp pour le repérer */
/* Le nom de couleur n'est plus écrit : le joueur (pseudo, « toi », l'ordinateur) devient la ligne principale,
   en blanc cerné de sombre pour rester lisible sur le verre clair */
.team .name { display: none; }
.team .who { color: #fff; font: 4cqw/1 var(--font-display); -webkit-text-stroke: 0.7cqw #1d0f3a; paint-order: stroke fill;
    text-shadow: 0 0.35cqw 0 #1d0f3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team.waiting-friend .who { color: #9fd4ff; animation: friend-wait 1.6s ease-in-out infinite; }
@keyframes friend-wait { 50% { opacity: 0.55; } }
/* Cadre de saison sur le portrait : trou du cadre (232 px sur 512, centré en 256 × 236) posé sur le centre du
   portrait ; la plaque du bas porte le numéro de saison */
.team .rank-frame { position: absolute; left: 0.4cqw; top: -1.75cqw; width: 18cqw; height: 18cqw; pointer-events: none; z-index: 1; }
.team .rank-frame img { width: 100%; height: 100%; }
.team .rank-frame b { position: absolute; left: 0; right: 0; top: 71%; text-align: center; font: 2.3cqw/1 var(--font-display); color: #fff8e7;
    -webkit-text-stroke: 0.45cqw #2a1450; paint-order: stroke fill; }
.team .home-count { color: #fff6d6; font: 900 2.8cqw/1.1 var(--font-body); -webkit-text-stroke: 0.55cqw #1d0f3a; paint-order: stroke fill; }
.top:has(.teams[data-count="3"]) ~ .message, .top:has(.teams[data-count="4"]) ~ .message { top: calc(29cqw + env(safe-area-inset-top, 0px)); }

/* ---- Bulle de message : parchemin (bubble 1100 × 281, marges 55 70 75 70, pointe en bas) ---- */
.message {
    color: #3a2a12; border-radius: 0; background: none; box-shadow: none;
    border-style: solid; border-width: 0;
    border-image: url("../../themes/fantasy_isle/ui/crystal/bubble.webp") 55 70 75 70 fill / 2.4cqw 3cqw 3.2cqw 3cqw;
    padding: 2cqw 5cqw 3cqw;
    filter: drop-shadow(0 1cqw 1.6cqw rgb(0 0 0 / 0.35));
}

/* ---- « À toi de jouer » : la gemme or ---- */
.turn-prompt {
    border-radius: 0; background: none; box-shadow: none; color: #4a2c06; text-shadow: 0 0.3cqw 0 rgb(255 245 200 / 0.8);
    border-style: solid; border-width: 0;
    border-image: url("../../themes/fantasy_isle/ui/crystal/button_secondary.webp") 40 110 40 110 fill / 2.6cqw 7cqw 2.6cqw 7cqw;
    padding: 2.6cqw 8cqw; filter: drop-shadow(0 0 3cqw rgb(255 210 120 / 0.9));
}
@keyframes prompt-call { 50% { transform: translate(-50%, -112%) scale(1.06); } }

/* ---- Accueil : médaillons et icônes or posés directement sur le décor, sans barre derrière ; un simple
   fondu sombre en bas pour garder les libellés lisibles ---- */
.tabs {
    border: 0; box-shadow: none; gap: 2.4cqw;
    background: linear-gradient(transparent, rgb(10 8 40 / 0.55) 55%, rgb(10 8 40 / 0.75));
    padding: 6cqw 3cqw calc(3.4cqw + env(safe-area-inset-bottom, 0px));
}
.tab {
    background: none; box-shadow: none; border-radius: 0; padding: 0; gap: 1cqw;
    color: var(--gold-1); font-size: 3cqw; text-shadow: 0 0.35cqw 0 var(--text-shadow), 0 0 1.4cqw rgb(10 8 40 / 0.9);
    transition: transform 0.2s;
}
.tab:active { transform: scale(0.92); }
.tab svg { display: none; }
.tab::before {
    content: ""; display: block; width: 15.5cqw; height: 15.5cqw;
    background: var(--icon) center / 50% no-repeat, url("../../themes/fantasy_isle/ui/crystal/tab_medallion.webp") center / contain no-repeat;
    filter: drop-shadow(0 0.8cqw 1cqw rgb(0 0 0 / 0.5));
}
/* L'onglet actif ne bouge pas : il se distingue par son médaillon lumineux et son libellé blanc,
   pour que les cinq restent alignés */
.tab[aria-current="page"] { background: none; box-shadow: none; color: #fff; }
/* Le médaillon actif a un halo peint autour d'un anneau plus petit (149 px sur 192, contre 186) :
   agrandi de 125 % pour que son anneau ait la taille des autres */
.tab { position: relative; }
.tab::after {
    content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 15.5cqw; height: 15.5cqw; pointer-events: none;
    background: var(--icon) center / 50% no-repeat, url("../../themes/fantasy_isle/ui/crystal/tab_medallion_active.webp") center / 125% no-repeat;
    opacity: 0; transition: opacity 0.2s;
}
/* Les deux médaillons sont chargés d'avance (l'actif posé par-dessus, transparent) : changer d'onglet
   ne fait jamais attendre une image */
.tab[aria-current="page"]::after { opacity: 1; }
.tabs .tab:nth-child(1) { --icon: url("../../themes/fantasy_isle/ui/crystal/icons/home.webp"); }
.tabs .tab:nth-child(2) { --icon: url("../../themes/fantasy_isle/ui/crystal/icons/clans.webp"); }
.tabs .tab:nth-child(3) { --icon: url("../../themes/fantasy_isle/ui/crystal/icons/shop.webp"); }
.tabs .tab:nth-child(4) { --icon: url("../../themes/fantasy_isle/ui/crystal/icons/friends.webp"); }
.tabs .tab:nth-child(5) { --icon: url("../../themes/fantasy_isle/ui/crystal/icons/ranking.webp"); }

/* Bouton JOUER de l'accueil : la gemme bleue à couronne, en grand ; « Reprendre » se place au-dessus */
.play { font-size: 7cqw; min-width: 62cqw; background: none; box-shadow: none; border-radius: 0; }
.resume-label {
    border: 0.5cqw solid transparent; border-right: 0; color: var(--text); text-shadow: 0 0.3cqw 0 var(--text-shadow);
    background: linear-gradient(160deg, rgb(70 96 220 / 0.94), rgb(96 56 190 / 0.94)) padding-box, var(--gold-ring) border-box;
}
.resume-icon {
    background: var(--button-round) center / contain no-repeat;
    filter: drop-shadow(0 0.8cqw 1cqw rgb(0 0 0 / 0.5)) drop-shadow(0 0 2cqw rgb(140 200 255 / 0.7));
}

/* Avatar du joueur (accueil) : portrait du héros, cerclé d'or */
.avatar { border: 0.8cqw solid transparent; background: var(--gold-ring) border-box; }
.avatar .hero-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--night); }
.avatar .lvl { z-index: 1; }
.counter { border: 0.5cqw solid transparent; background: linear-gradient(160deg, rgb(40 52 140 / 0.9), rgb(42 26 92 / 0.9)) padding-box, var(--gold-ring) border-box; }
.loading { background: rgb(20 18 70 / 0.82); box-shadow: inset 0 0 0 0.3cqw rgb(232 184 74 / 0.5); }

/* ---- Réglages et composition (pas de pièce dédiée dans le kit : couleurs du thème) ---- */
.switch { background: rgb(10 14 60 / 0.55); box-shadow: inset 0 0 0 0.4cqw rgb(232 184 74 / 0.6); }
.switch[aria-checked="true"] { background: linear-gradient(var(--crystal-1), var(--crystal-2)); }
.segmented { background: rgb(10 14 60 / 0.55); box-shadow: inset 0 0 0 0.35cqw rgb(232 184 74 / 0.55); }
.segmented button[aria-pressed="true"] { background: linear-gradient(#fff3b0, #f6c94a 50%, #d9921e); color: #4a2c06; }
.stack-chooser { background: linear-gradient(160deg, rgb(60 90 210 / 0.95), rgb(100 60 200 / 0.95)) padding-box, var(--gold-ring) border-box; border: 0.5cqw solid transparent; }
.setup-team { background: rgb(14 18 70 / 0.45); box-shadow: inset 0 0 0 0.3cqw rgb(232 184 74 / 0.45); }

/* ---- Effets qui font vivre le thème ---- */
/* Reflet de lumière qui balaie le corps des gemmes de temps en temps : le reflet reste dans le verre
   (entre les volutes du cadre), il ne déborde jamais sur le décor */
.big-button { position: relative; }
.big-button::after, .play::after, .turn-prompt::after {
    content: ""; position: absolute; inset: 22% 8.4cqw; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.55) 50%, transparent 60%) no-repeat;
    background-size: 300% 100%; animation: gem-glint 4.2s ease-in-out infinite; mix-blend-mode: soft-light;
}
.turn-prompt::after { inset: 22% 7cqw; }
#startGame::after, .play::after, .big-button.primary::after { inset: 44% 9.6cqw 20%; }
@keyframes gem-glint { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* Halo qui respire sous le bouton principal et autour de l'onglet actif */
#startGame, .play { animation: gem-breathe 2.8s ease-in-out infinite; }
@keyframes gem-breathe {
    50% { filter: drop-shadow(0 0.8cqw 1cqw rgb(0 0 0 / 0.45)) drop-shadow(0 0 3.4cqw rgb(140 200 255 / 0.85)); }
}
.tab[aria-current="page"]::after { animation: medallion-glow 2.4s ease-in-out infinite; }
@keyframes medallion-glow { 50% { filter: drop-shadow(0 0 2.2cqw rgb(255 220 130 / 0.95)); } }
/* Les fenêtres arrivent avec un petit rebond */
.panel:not([hidden]) .card { animation: card-in 0.35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes card-in { from { transform: scale(0.86) translateY(3cqw); opacity: 0; } }
/* Étoiles à quatre branches posées par sparkle.js */
.sparkle-layer { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.sparkle {
    position: absolute; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
    background: var(--hue); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 0.8cqw var(--hue)); animation: twinkle 1.1s ease-in-out forwards;
}
@keyframes twinkle {
    0% { transform: scale(0) rotate(var(--spin)); opacity: 0; }
    40% { transform: scale(1) rotate(calc(var(--spin) + 45deg)); opacity: 1; }
    100% { transform: scale(0) rotate(calc(var(--spin) + 90deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .big-button::after, .play::after, .turn-prompt::after, #startGame, .play, .tab[aria-current="page"]::after, .panel .card { animation: none; }
}

/* Bulle de réplique d'un perso : la bulle du kit (bubble.webp, découpe de theme.json), pointe au milieu du bas */
.speech {
    border: 0; border-radius: 0; background: none; box-shadow: none;
    border-style: solid; border-color: transparent;
    border-image: url("../../themes/fantasy_isle/ui/crystal/bubble.webp") 55 70 75 70 fill / 3cqw 3.8cqw 4.1cqw 3.8cqw;
    border-width: 3cqw 3.8cqw 4.1cqw 3.8cqw;
    color: #2a1d12; text-shadow: none;
    filter: drop-shadow(0 1cqw 1.6cqw rgb(0 0 0 / 0.4)) drop-shadow(0 0 1.2cqw color-mix(in srgb, var(--speaker, #fff) 60%, transparent));
}

/* ---- Petits boutons des fenêtres (boutique, amis, classement, groupes, quêtes, salle d'attente, fin de partie) :
   la même gemme or que les grands boutons, en plus petit ; « quiet » = action secondaire, plus discrète ---- */
.phone :is(.shop-item button, .social-row button, .social-form button, .social-code button, .groups-row button, .groups-form button,
    .groups-code button, .groups-box button, .quest-action button, .chest-open button, .lobby-friend button, .end-rewards .add-friend,
    .invite-card button, .stake-option) {
    border-radius: 0 !important; box-shadow: none !important; background: none !important; color: #4a2c06 !important;
    border-style: solid !important; border-width: 0 !important;
    border-image: url("../../themes/fantasy_isle/ui/crystal/button_secondary.webp") 40 110 40 110 fill / 1.8cqw 4.6cqw 1.8cqw 4.6cqw !important;
    padding: 1.8cqw 4.4cqw !important; font: 900 3cqw/1.1 var(--font-body) !important; text-shadow: 0 0.25cqw 0 rgb(255 245 200 / 0.8);
    filter: drop-shadow(0 0.5cqw 0.6cqw rgb(0 0 0 / 0.4));
}
.phone :is(.social-row button.quiet, .groups-row button.quiet, .groups-form button.quiet, .groups-box button.quiet, .invite-card button.later) { filter: grayscale(0.85) brightness(0.9) drop-shadow(0 0.5cqw 0.6cqw rgb(0 0 0 / 0.4)); }
.phone :is(.shop-item button.worn) { filter: hue-rotate(170deg) saturate(1.2) drop-shadow(0 0.5cqw 0.6cqw rgb(0 0 0 / 0.4)); color: #102a4a !important; }
.phone :is(.shop-item button, .social-row button, .groups-row button, .quest-action button, .lobby-friend button, .stake-option):disabled { filter: grayscale(0.9) opacity(0.7); }
.phone .stake-option { display: grid; gap: 0.8cqw; padding: 3cqw 2cqw !important; }
.phone .stake-option strong { color: #4a2c06; }
.phone .stake-option span { color: #6a4510; opacity: 1; }

/* Fenêtres longues (compte, réglages) : le contenu défile dans une zone intérieure, sous le cadre décoratif,
   sans jamais passer par-dessus (la zone est posée par shared/backdrop-close.js) */
.panel .card:has(> .card-scroll) { max-height: 92cqh; display: flex; flex-direction: column; overflow: hidden; }
.card-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -2cqw; padding: 0 2cqw; }

/* ---- Écrans plus larges que la colonne de jeu, rapport > 17/30 (tablette en portrait, pliable ouvert, ordinateur) : le décor prolongé sur les
   côtés remplit l'écran autour de la colonne de jeu. Son centre est l'image de la colonne, au même cadrage :
   carré 1800 × 1800 et paysage 2560 × 1440, l'original occupant toute la hauteur au milieu. ---- */
/* Toujours calé sur la hauteur de l'écran, comme la colonne : son centre tombe pile sous elle (un calage sur la
   largeur décalerait le raccord dès que l'écran est un peu plus large que l'image). */
@media (min-aspect-ratio: 17/30) {
    body { background: var(--ground) var(--wide-backdrop-square, url("/game/assets/background_game_square.webp")) center / auto 100dvh no-repeat; }
}
@media (min-aspect-ratio: 6/5) {
    body { background-image: var(--wide-backdrop-landscape, url("/game/assets/background_game_landscape.webp")); }
}
/* Écran plus large que le paysage 16/9 : le décor couvre tout, le raccord peut glisser de quelques pixels */
@media (min-aspect-ratio: 16/9) {
    body { background-size: cover; }
}

/* Arabe : police Cairo (chargée par shared/i18n.js), les polices du jeu n'ayant pas l'alphabet arabe */
:root[lang="ar"] {
    --font-display: "Cairo", "Lilita One", sans-serif;
    --font-body: "Cairo", "Nunito", sans-serif;
}
:root[lang="ar"] body { font-family: var(--font-body); }
