/* ========================================================================== STYLES DU JEU — /jeu/[mode] et /defi/[seed] ORGANISATION KA INTERNATIONALE · Layout viewport 100dvh & Dark/Light OKI ========================================================================== */ .jeu { flex: 1; display: flex; flex-direction: column; min-height: 0; } .etat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; overflow-y: auto; color: var(--muted); } /* — Split photo | carte — */ .split { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem; min-height: 0; } /* Mobile : la photo s'adapte (plafond ~42dvh), la carte garde au minimum 35dvh utiles + la barre de sauts (~3,5rem). */ .panneau-photo { position: relative; flex: 1 1 0; min-height: 5rem; max-height: 42dvh; border-radius: var(--radius-md); overflow: hidden; background: var(--card-bg); border: 1px solid var(--line); } .panneau-carte { position: relative; flex: 1 1 0; min-height: calc(35dvh + 3.5rem); display: flex; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); } .panneau-carte > * { flex: 1; min-width: 0; } /* État résultat : le panneau photo devient une fiche scrollable interne. */ .split.resultat .panneau-photo { max-height: none; border: none; background: transparent; } .split.resultat .panneau-carte { min-height: 10rem; } .resultat-scroll { height: 100%; overflow-y: auto; background: var(--noir-profond); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--oki-ombre); padding: 1.2rem; color: var(--blanc-creme); } /* — Puce de statut unique (manche, seed, minuteur) : haut-droite, une ligne — */ .statut { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; max-width: calc(100% - 1rem); pointer-events: none; } .badge-manche { background: var(--noir-profond); color: var(--or-oki); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.25rem 0.8rem; font-size: 0.82rem; font-weight: 700; font-family: var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; box-shadow: var(--oki-ombre); } /* Seed visible mais discrète */ .badge-seed { background: var(--noir-profond); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; box-shadow: var(--oki-ombre); } .badge-timer { display: flex; } /* — Indices : panneau scrollable en surimpression de la photo — */ .indices { position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.4rem; z-index: 4; max-height: calc(100% - 0.8rem); overflow-y: auto; margin: 0; padding: 0.5rem 0.7rem; background: var(--noir-profond); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--oki-ombre); } .indice { margin: 0.25rem 0; background: var(--card-bg); border-left: 4px solid var(--or-oki); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-size: 0.95rem; color: var(--blanc-creme); } /* — Aide « poser le marqueur » — */ .aide-carte { position: absolute; left: 50%; bottom: 3.9rem; transform: translateX(-50%); z-index: 3; margin: 0; padding: 0.35rem 0.9rem; max-width: calc(100% - 5rem); background: var(--noir-profond); color: var(--blanc-creme); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--oki-ombre); font-size: 0.85rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; } /* — Barre d'actions — */ .barre-actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--noir-profond); border-top: 1px solid var(--line); } .barre-actions .btn { min-height: 48px; } .actions-secondaires { display: flex; gap: 0.5rem; } .actions-secondaires .btn { padding: 0.6rem 0.9rem; font-size: 0.92rem; } .penalite { font-size: 0.75rem; font-weight: 500; opacity: 0.8; } .valider { flex: 0 1 auto; padding: 0.8rem 1.2rem; white-space: nowrap; } /* Écrans très étroits */ @media (max-width: 420px) { .actions-secondaires .btn { padding: 0.55rem 0.7rem; font-size: 0.86rem; } .penalite { display: none; } .valider { padding: 0.7rem 0.9rem; font-size: 0.95rem; } } /* Paysage */ @media (max-height: 540px) { .panneau-photo { min-height: 3.5rem; max-height: 34dvh; } .panneau-carte { min-height: 11rem; } } /* Desktop : split 50/50 */ @media (min-width: 768px) { .split { flex-direction: row; gap: 0.8rem; padding: 0.8rem; } .panneau-photo, .split.resultat .panneau-photo { flex: 1 1 50%; min-height: 0; max-height: none; } .panneau-carte, .split.resultat .panneau-carte { flex: 1 1 50%; min-height: 0; } .aide-carte { left: auto; right: 0.8rem; bottom: 3.4rem; transform: none; } .barre-actions { justify-content: center; gap: 1.5rem; } } /* — Écran bilan du défi — */ .bilan { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 900px; margin: 0 auto; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.8rem; } .bilan h1 { margin: 0; text-align: center; font-size: 1.6rem; color: var(--or-oki); } .filet-drapeau { display: flex; width: 132px; height: 5px; margin: 0 auto; border-radius: 3px; overflow: hidden; } .filet-drapeau .seg { flex: 1; transform-origin: left center; } .filet-drapeau .seg-vert { background: var(--vert-oki); } .filet-drapeau .seg-corail { background: var(--or-oki); } .filet-drapeau .seg-bleu { background: var(--turquoise-caraibes); } .seed-discret { margin: 0; text-align: center; font-size: 0.9rem; color: var(--muted); } .total { margin: 0; text-align: center; } .total .valeur { font-size: 2.4rem; font-weight: 800; font-family: var(--font-display); color: var(--or-oki); } .total .unite { margin-left: 0.4rem; color: var(--muted); } .bilan-carte { width: min(100%, 42.5dvh, 520px); margin: 0 auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--noir-profond); overflow: hidden; } .recap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; } .recap li { display: flex; align-items: baseline; gap: 0.6rem; background: var(--noir-profond); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--oki-ombre); padding: 0.5rem 0.9rem; } .r-nom { font-weight: 700; color: var(--blanc-creme); } .r-region { flex: 1; color: var(--muted); font-size: 0.9rem; } .r-score { font-weight: 800; font-family: var(--font-display); color: var(--or-oki); } .bilan-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; } .bilan-actions .btn { min-height: 48px; } .legende { margin: 0; text-align: center; font-size: 0.85rem; color: var(--muted); } .puce.joueur { color: var(--rouge-oki); } .puce.reelle { color: var(--vert-oki); } /* Bilan desktop */ @media (min-width: 900px) { .bilan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; column-gap: 1.5rem; } .bilan h1, .bilan .seed-discret, .bilan .filet-drapeau, .bilan .total, .bilan .bilan-actions, .bilan .legende { grid-column: 1 / -1; } .bilan-carte { width: min(100%, 42.5dvh); justify-self: center; } } @media (max-height: 800px) { .bilan { gap: 0.55rem; padding-top: 0.6rem; } .bilan h1 { font-size: 1.35rem; } .total .valeur { font-size: 1.9rem; } } /* Motion */ @media (prefers-reduced-motion: no-preference) { html.js .resultat-scroll { animation: jwe-montee var(--dur-mesure) var(--ease-ka); } html.js .split.resultat .panneau-carte { animation: jwe-emphase var(--dur-mesure) var(--ease-ka); } html.js .badge-manche, html.js .badge-seed, html.js .badge-timer { animation: oki-pop var(--dur-mesure) var(--ease-ka) backwards; } html.js .filet-drapeau .seg { animation: jwe-filet var(--dur-mesure) var(--ease-ka) backwards; } html.js .filet-drapeau .seg-corail { animation-delay: 120ms; } html.js .filet-drapeau .seg-bleu { animation-delay: 300ms; } } @keyframes jwe-montee { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes jwe-emphase { from { transform: scale(0.965); opacity: 0.7; } to { transform: scale(1); opacity: 1; } } @keyframes jwe-filet { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }