* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

main {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
}

button,
input {
    font: inherit;
}

.symbolo-grid {
    display: grid;
    width: min(100%, 486px);
    aspect-ratio: 1 / 1;
}

.symbolo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    border: 1px solid #999;
}

.symbolo-touch-zone {
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.symbolo-cell img {
    display: block;
    width: 200%;
    height: 200%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

.symbolo-cell.selected {
    background: #e6e6e6;
}

.symbolo-group {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(5 * var(--symbolo-cell-size));
    height: calc(5 * var(--symbolo-cell-size));
    transform: translate(-50%, -50%);
}

.symbolo-group-cell {
    position: absolute;
    width: var(--symbolo-cell-size);
    height: var(--symbolo-cell-size);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.symbolo-group-cell img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.symbolo-groups {
    position: absolute;
    inset: 0;
}

.symbolo-groups-window {
    position: relative;
    border: 1px solid #999;
    border-radius: 50%;
    overflow: hidden;
}

.symbolo-groups-window {
    margin-left: auto;
    margin-right: auto;
}

.symbolo-game-complete {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.symbolo-game-complete strong {
    font-size: 1.2rem;
}

.symbolo-game-complete span {
    font-size: 1rem;
}

/* Commandes de navigation et de rotation */
.symbolo-group-arrow {
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.symbolo-group-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* Grille et commandes supplémentaires */
.symbolo-grid-wrapper {
    position: relative;
    width: min(100%, 486px);
}

.symbolo-secondary-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.symbolo-secondary-controls .symbolo-group-arrow {
    flex-shrink: 0;
}

@media (max-width: 340px) {
    .symbolo-secondary-controls {
        gap: 4px;
    }

    .symbolo-secondary-controls .symbolo-group-arrow {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }
}

/* Fenêtre circulaire centrée sous la grille */
.symbolo-groups-navigation {
    width: min(100%, 486px);
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* Masquer les anciens boutons sans supprimer leurs fonctions */
.symbolo-groups-navigation > .symbolo-group-arrow {
    display: none;
}

.symbolo-groups-window {
    flex: 0 0 auto;
}

/* Commandes réparties aux deux coins de la grille */
.symbolo-secondary-controls {
    justify-content: space-between;
}

/* Rapprocher la fenêtre circulaire des commandes */
.symbolo-groups-navigation {
    margin-top: 0;
}

/* Deux paires de boutons rapprochés, aux extrémités */
.symbolo-secondary-controls {
    justify-content: flex-start;
    gap: 8px;
}

.symbolo-secondary-controls .symbolo-group-arrow:nth-child(3) {
    margin-left: auto;
}

/* Cercle remonté entre les deux paires de boutons */
.symbolo-groups-navigation {
    margin-top: -48px;
}


/* MENU Symbolo : superposition à la grille */
.symbolo-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    z-index: 10;
    background: #f5f5f5;
    border: 2px solid #555;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.symbolo-menu-overlay[hidden] {
    display: none;
}

/* Bouton FERMER dans la fenêtre circulaire */
.symbolo-groups-window {
    position: relative;
}

.symbolo-menu-close {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #222;
    font-size: clamp(16px, 4vw, 24px);
    font-weight: bold;
    cursor: pointer;
}

.symbolo-menu-close[hidden] {
    display: none;
}

/* MES PARTIES : liste défilante et RETOUR fixe */
.symbolo-menu-overlay .symbolo-menu-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.symbolo-menu-overlay .symbolo-menu-back {
    flex: 0 0 auto;
    width: 100%;
}


/* Symbolo : prévention du zoom accidentel sur iPad */
.symbolo-grid-wrapper,
.symbolo-grid,
.symbolo-cell,
.symbolo-touch-zone {
    touch-action: manipulation;
}

.symbolo-grid img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* NOUVEL ENVIRONNEMENT GRAPHIQUE */

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #faf9f6;
    font-family: var(--symbolo-font-text);
}

.game-frame {
    container-type: inline-size;
    position: relative;
    width: min(100%, 1400px);
    aspect-ratio: 1.32;
    margin: 0;
    padding: 2%;
}

@media (orientation: landscape) {
    .game-frame {
        width: min(100%, 1400px,
            calc((100dvh - 40px) * 1.32));
        flex-shrink: 0;
    }
}


/* ACCUEIL PROVISOIRE DU LABORATOIRE */

.game-frame:has(#player-home[hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-frame > header h1 {
    font-family: var(--symbolo-font-brand);
    font-size: 8.5cqw;
    font-weight: 400;
    margin: 0;
}

#server-status {
    font-size: 1.5cqw;
    font-weight: 300;
}

#welcome h2 {
    font-size: 2.5cqw;
    font-weight: 300;
}

#welcome > button {
    font-family: var(--symbolo-font-text);
    font-weight: 700;
    font-size: 1.65cqw;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0 0%, #f5ead6 45%, #d9c5a5 100%);
    border: 1px solid #bda479;
    border-radius: 12px;
    padding: 1.4cqw 2.5cqw;
    margin: 0.5cqw;
    box-shadow: inset 0 2px 2px #ffffff,
        inset 0 -2px 3px #ad9674,
        0 5px 6px rgba(0,0,0,0.45);
    cursor: pointer;
}


/* ONGLETS — MAQUETTE SOLO DEFINITIVE */

.game-tabs {
    top: 2%;
    left: 2.2%;
    right: 1.8%;
    display: grid;
    grid-template-columns: 170fr 166fr 192fr 173fr 176fr 210fr 151fr;
    gap: 0.55cqw;
}

.game-tabs .symbolo-button {
    width: 100%;
    height: 4.3cqw;
    padding: 0;
    border-radius: 1.1cqw;
    font-size: 1.3cqw;
    font-weight: 700;
    color: #fff3df;
    background: linear-gradient(180deg,
        #a34c60 0%, #78182e 30%,
        #591124 75%, #430e1b 100%);
    border: 2px solid #f5ead6;
    box-shadow:
        inset 0 0 0 2px #bda479,
        inset 0 0 0 4px #591f30,
        0 3px 0 #80613b,
        0 5px 5px rgba(0,0,0,0.55);
}

.game-tabs .active-tab {
    font-size: 2cqw;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0 0%, #f5ead6 35%,
        #dfc18c 100%);
    border: 2px solid #fff3df;
    box-shadow:
        inset 0 -3px 3px #ad8954,
        0 3px 0 #80613b,
        0 5px 5px rgba(0,0,0,0.55);
}


/* GEOMETRIE DE REFERENCE — SOLO */

.game-frame {
    --game-grid-interior: 52.32cqw;
    --game-window-interior: calc(var(--game-grid-interior) / 2);
    --game-grid-border: 1.12cqw;
    --game-grid-exterior: calc(
        var(--game-grid-interior) + 2 * var(--game-grid-border)
    );
}


/* IMPLANTATION DE LA GRILLE SOLO */

.solo-layout {
    position: absolute;
    inset: 0;
}

.solo-layout .symbolo-grid-wrapper {
    position: absolute;
    left: 15.62cqw;
    top: 10.84cqw;
    width: var(--game-grid-exterior);
    padding: var(--game-grid-border);
    background: linear-gradient(135deg,
        #fff3df, #bda479, #e8d3ac);
    border-radius: 0.35cqw;
    box-shadow:
        inset 0 0 0 2px #f5ead6,
        0 4px 6px rgba(0,0,0,0.55);
}

.solo-layout .symbolo-grid {
    width: var(--game-grid-interior);
    max-width: none;
    aspect-ratio: 1;
    margin: 0;
    background: #fffaf0;
}

.solo-layout .symbolo-cell {
    border-color: #bda479;
}

.solo-layout .symbolo-menu-overlay {
    top: var(--game-grid-border);
    left: var(--game-grid-border);
    width: var(--game-grid-interior);
}


/* FENETRE CIRCULAIRE SOLO */

.solo-layout .symbolo-groups-navigation {
    position: absolute;
    left: 72cqw;
    top: 10.84cqw;
    width: 26.5cqw;
    margin: 0;
    display: flex;
    justify-content: center;
}

.solo-layout .symbolo-groups-window {
    box-sizing: content-box;
    width: var(--game-window-interior) !important;
    height: var(--game-window-interior) !important;
    border: 0.65cqw solid #bda479;
    border-radius: 50%;
    background: #fffaf0;
    margin: 0;
    box-shadow:
        0 0 0 2px #f5ead6,
        0 0 0 4px #80613b,
        0 5px 7px rgba(0,0,0,0.55);
}


/* COMMANDES DIRECTIONNELLES SOLO */

.solo-layout .symbolo-secondary-controls {
    position: absolute;
    left: 70.5cqw;
    top: 32cqw;
    display: grid;
    grid-template-columns: repeat(2, 5.4cqw);
    gap: 0.9cqw;
    margin: 0;
}

.solo-layout .symbolo-secondary-controls button {
    width: 5.4cqw;
    height: 4.5cqw;
    margin: 0;
    padding: 0;
    font-size: 3.2cqw;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0, #f5ead6, #dfc18c);
    border: 2px solid #f5ead6;
    border-radius: 0.8cqw;
    box-shadow:
        inset 0 -3px 3px #ad8954,
        0 4px 0 #80613b,
        0 6px 6px rgba(0,0,0,0.55);
}

.solo-layout .symbolo-secondary-controls button:nth-child(1) {
    grid-area: 2 / 1;
}

.solo-layout .symbolo-secondary-controls button:nth-child(2) {
    grid-area: 1 / 1;
}

.solo-layout .symbolo-secondary-controls button:nth-child(3) {
    grid-area: 1 / 2;
    margin-left: 0;
}

.solo-layout .symbolo-secondary-controls button:nth-child(4) {
    grid-area: 2 / 2;
}


/* BOUTON PAUSE SOLO */

.solo-layout .solo-pause-button {
    position: absolute;
    left: 72.2cqw;
    top: 42.84cqw;
    width: 7.2cqw;
    height: 9.9cqw;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5cqw;
    font-family: var(--symbolo-font-text);
    font-size: 1.45cqw;
    font-weight: 700;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0, #f5ead6, #dfc18c);
    border: 2px solid #f5ead6;
    border-radius: 0.9cqw;
    box-shadow:
        inset 0 -3px 3px #ad8954,
        0 4px 0 #80613b,
        0 6px 6px rgba(0,0,0,0.55);
    cursor: pointer;
}

.solo-layout .solo-pause-button::before {
    content: "";
    width: 2.8cqw;
    height: 3.4cqw;
    background: linear-gradient(to right,
        #591f30 0% 35%,
        transparent 35% 65%,
        #591f30 65% 100%);
}

.solo-layout .solo-controls-divider {
    position: absolute;
    left: 82.4cqw;
    top: 42.4cqw;
    width: 1px;
    height: 11cqw;
    background: #bda479;
    box-shadow: 1px 0 1px #f5ead6;
}


/* AFFICHEURS DE TEMPS — SOLO */

.solo-layout .solo-times {
    position: absolute;
    left: 2.25cqw;
    top: 18cqw;
    width: 11.9cqw;
    display: flex;
    flex-direction: column;
    gap: 5.4cqw;
}

.solo-layout .solo-time-block {
    text-align: center;
}

.solo-layout .solo-time-label {
    font-size: 1.25cqw;
    font-weight: 700;
    color: #f5ead6;
    margin-bottom: 0.7cqw;
    white-space: nowrap;
}

.solo-layout .solo-time-value {
    width: 100%;
    height: 4.6cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6cqw;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0, #f5ead6, #dfc18c);
    border: 2px solid #f5ead6;
    border-radius: 0.65cqw;
    box-shadow:
        inset 0 0 0 2px #bda479,
        inset 0 -3px 3px #ad8954,
        0 4px 0 #80613b,
        0 6px 6px rgba(0,0,0,0.55);
}


/* COMPTEUR GROUPES — SOLO */

.solo-layout .solo-groups-counter {
    position: absolute;
    left: 75.4cqw;
    top: 57cqw;
    width: 20cqw;
    text-align: center;
}

.solo-layout .solo-groups-value {
    height: 6.5cqw;
    padding-top: 1.5cqw;
    font-size: 3.4cqw;
    font-weight: 700;
    color: #591f30;
    background: linear-gradient(180deg,
        #fffaf0, #f5ead6, #dfc18c);
    border: 2px solid #f5ead6;
    border-radius: 0.8cqw;
    box-shadow:
        inset 0 0 0 2px #bda479,
        0 4px 0 #80613b,
        0 6px 6px rgba(0,0,0,0.55);
}

.solo-layout .solo-groups-label {
    position: absolute;
    top: -1.2cqw;
    left: 20%;
    width: 60%;
    padding: 0.4cqw 0;
    font-size: 1.4cqw;
    font-weight: 700;
    color: #f5ead6;
    background: #591f30;
    border: 2px solid #bda479;
    border-radius: 0.5cqw;
}


/* BOUTON MENU — SOLO */

.solo-layout .solo-menu-button {
    position: absolute;
    left: 42.9cqw;
    top: 63.4cqw;
    transform: translateX(-50%);
    width: 15cqw;
    height: 4.8cqw;
    padding: 0;
    font-size: 2cqw;
    font-weight: 700;
    color: #f5ead6;
    background: linear-gradient(180deg,
        #a34c60, #78182e, #430e1b);
    border: 2px solid #f5ead6;
    border-radius: 0.8cqw;
    box-shadow:
        inset 0 0 0 2px #bda479,
        0 4px 0 #80613b,
        0 6px 6px rgba(0,0,0,0.55);
    z-index: 12;
    cursor: pointer;
}


/* ACTIVATION ET AJUSTEMENTS SOLO */

.game-tabs {
    position: absolute;
    z-index: 20;
}

.game-frame:has(.solo-layout > .symbolo-grid-wrapper) {
    padding: 0;
}

.solo-layout:not(:has(> .symbolo-grid-wrapper)) {
    position: static;
}

.solo-layout .symbolo-grid-wrapper {
    box-sizing: border-box;
    overflow: visible;
}

.solo-layout #solo-elapsed-time {
    margin: 0 !important;
    font-size: 2.6cqw !important;
    font-weight: 700 !important;
}

.solo-layout .solo-legacy-button {
    position: relative;
    top: 69cqw;
    margin: 0.3cqw;
    font-size: 0.9cqw;
}


/* NETTOYAGE DE L'INTERFACE SOLO */

.game-frame:has(.solo-layout:not([hidden]) > .symbolo-grid-wrapper) > header,
.game-frame:has(.solo-layout:not([hidden]) > .symbolo-grid-wrapper) #player-home > h2,
.game-frame:has(.solo-layout:not([hidden]) > .symbolo-grid-wrapper) #player-name,
.game-frame:has(.solo-layout:not([hidden]) > .symbolo-grid-wrapper) #logout-button {
    display: none !important;
}

.solo-layout > .symbolo-abandon-button {
    position: absolute;
    top: 69cqw;
    right: 2cqw;
    font-size: 0.9cqw;
}

.solo-layout .solo-identification {
    z-index: 2;
}


/* SOLO : ETATS JEU, PAUSE ET MENU */

.solo-layout[data-solo-state="paused"] .symbolo-grid,
.solo-layout[data-solo-state="menu"] .symbolo-grid {
    visibility: hidden;
    pointer-events: none;
}

.solo-layout[data-solo-state="paused"] .symbolo-groups,
.solo-layout[data-solo-state="menu"] .symbolo-groups {
    visibility: hidden;
}

.solo-layout[data-solo-state="paused"] .symbolo-secondary-controls,
.solo-layout[data-solo-state="menu"] .symbolo-secondary-controls {
    pointer-events: none;
    opacity: 0.45;
}

/* PICTOGRAMMES PAUSE ET REPRISE */

.solo-layout .solo-pause-button {
    font-size: 0;
}

.solo-layout .solo-pause-button::before {
    width: 3.2cqw;
    height: 4cqw;
}

.solo-layout[data-solo-state="paused"] .solo-pause-button::before {
    background: #591f30;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* SURFACE DU MENU SOLO */

.solo-layout .symbolo-menu-overlay {
    background: #591f30 url("/assets/textures/symbolo-weave-uniforme.png") repeat;
    color: #f5ead6;
    border: none;
    padding: 4cqw;
    gap: 1.5cqw;
    justify-content: center;
    align-items: stretch;
}

.solo-layout .symbolo-menu-overlay h3 {
    text-align: center;
    font-size: 2cqw;
    margin: 0 0 1cqw;
}

.solo-layout .symbolo-menu-overlay button {
    min-height: 4.5cqw;
    font-size: 1.5cqw;
    font-weight: 700;
    color: #591f30;
    background: linear-gradient(
        #fffaf0, #f5ead6, #dfc18c);
    border: 2px solid #f5ead6;
    border-radius: 0.8cqw;
    box-shadow: 0 3px 0 #80613b;
}

/* SURFACE DE PAUSE PROVISOIRE */

.solo-pause-surface {
    position: absolute;
    top: var(--game-grid-border);
    left: var(--game-grid-border);
    width: var(--game-grid-interior);
    aspect-ratio: 1;
    background: #591f30 url("/assets/textures/symbolo-weave-uniforme.png") repeat;
    display: grid;
    place-items: center;
    color: #f5ead6;
    font-size: 2.5cqw;
}

.solo-pause-surface[hidden] {
    display: none;
}

/* FENETRE DE COMMUNICATION */

.solo-communication {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #650f29;
    color: #f5ead6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3cqw;
    font-family: var(--symbolo-font-brand);
    font-size: 2cqw;
    line-height: 1.4;
}

.solo-communication[hidden] {
    display: none;
}


/* HISTORIQUE SOLO */

.solo-history-list {
    overflow-y: auto;
    min-height: 0;
    text-align: center;
}

.solo-history-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5cqw 1cqw;
    align-items: center;
    text-align: left;
    padding: 1.2cqw;
    margin-bottom: 0.8cqw;
    border: 1px solid #bda479;
    border-radius: 0.6cqw;
    color: #f5ead6;
    font-size: 1.3cqw;
}

.solo-history-entry > :nth-child(even) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.solo-history-entry > span {
    font-size: 1.1cqw;
}


/* 57.5 — MENU RECORDS SOLO */

.solo-records-formats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8cqw;
}

.solo-layout .solo-records-formats button {
    min-height: 3.6cqw;
    font-size: 1.3cqw;
}

.solo-layout .solo-records-formats button[aria-pressed="true"] {
    background: linear-gradient(#efd9a9, #c6a16a);
    border-color: #fff4d9;
}

.solo-records-content {
    min-height: 0;
    overflow-y: auto;
    color: #f5ead6;
    text-align: center;
}

.solo-records-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #f5ead6;
    font-size: 1.35cqw;
    font-variant-numeric: tabular-nums;
}

.solo-records-table th {
    font-size: 1.15cqw;
    padding: 1cqw 0.5cqw;
    border-bottom: 1px solid #bda479;
}

.solo-records-table td {
    padding: 1cqw 0.5cqw;
    border-bottom: 1px solid rgba(189, 164, 121, 0.45);
    vertical-align: middle;
}

.solo-records-table th:first-child,
.solo-records-table td:first-child {
    text-align: left;
    overflow-wrap: anywhere;
}

.solo-records-table td:last-child strong {
    color: #dfc18c;
}

.solo-record-holder {
    display: block;
    font-size: 0.95cqw;
    font-weight: normal;
    margin-top: 0.3cqw;
    overflow-wrap: anywhere;
}


/* 57.6 — ABANDONNER SOLO */

.solo-abandon-identity {
    border: 1px solid #bda479;
    border-radius: 0.6cqw;
    padding: 2cqw;
    text-align: center;
    font-size: 1.5cqw;
    line-height: 1.7;
    color: #f5ead6;
}

.solo-abandon-identity strong {
    font-size: 1.8cqw;
}

.solo-abandon-question {
    text-align: center;
    font-size: 1.6cqw;
    color: #f5ead6;
    margin: 1cqw 0 0;
}

.solo-abandon-warning {
    text-align: center;
    font-size: 1.3cqw;
    color: #dfc18c;
    margin: 0 0 1cqw;
}

.solo-layout .symbolo-menu-overlay .solo-abandon-confirm {
    background: linear-gradient(#a34c60, #78182e, #591f30);
    color: #f5ead6;
    border-color: #bda479;
}


/* 57.6.13 — Retrait du bouton ABANDONNER historique */

.solo-layout .symbolo-abandon-button {
    display: none !important;
}



/* 58.2.2 — ACCUEIL personnel */
#personal-home {
    position: absolute;
    top: 13%;
    bottom: 7%;
    left: 3%;
    right: 3%;
    display: grid;
    grid-template-columns: 40% 60%;
}

#personal-home .welcome-left  {
    position: relative;
    border-right: 1px solid var(--symbolo-gold);
    padding: 0 9% 0 3%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#personal-home .welcome-commands  {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.4cqw;
}

#personal-home .welcome-commands .symbolo-button  {
    width: 100%;
    height: 5.8cqw;
    padding: 0 1cqw;
    font-size: 1.65cqw;
    white-space: nowrap;
}

#personal-home .welcome-contact  {
    position: absolute;
    bottom: -4cqw;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    color: var(--symbolo-ivory);
    font-family: var(--symbolo-font-text);
    font-size: 1.25cqw;
    cursor: pointer;
}

#personal-home .welcome-right  {
    position: relative;
    padding: 0 9%;
    text-align: center;
    font-weight: 300;
}

#personal-home .welcome-brand  {
    border-bottom: 1px solid var(--symbolo-gold);
    padding-bottom: 1.5cqw;
}

#personal-home .welcome-brand h1  {
    font-family: var(--symbolo-font-brand);
    font-weight: 400;
    font-size: 8.5cqw;
    line-height: 1.1;
    margin: 0;
}

#personal-home .welcome-signature  {
    font-size: 2.3cqw;
    margin-top: 0.7cqw;
}


#personal-home .welcome-commands  {
    gap: 1.15cqw;
}

#personal-home .welcome-commands .symbolo-button  {
    height: 4.5cqw;
    font-size: 1.45cqw;
}

#personal-home .personal-information  {
    margin-top: 4cqw;
    text-align: center;
}

#personal-home .personal-information h2  {
    font-size: 2.5cqw;
    font-weight: 400;
}

#personal-home .personal-news  {
    margin-top: 4cqw;
    font-size: 1.8cqw;
    line-height: 1.6;
    font-weight: 300;
}



#personal-home[hidden] {
    display: none !important;
}

#personal-home .personal-news[hidden] {
    display: none !important;
}

/* 58.2.6 — Presentation ACCUEIL personnel */

#player-home:has(> #personal-home:not([hidden])) > h2,
#player-home:has(> #personal-home:not([hidden])) > #player-name,
#player-home:has(> #personal-home:not([hidden])) > #logout-button {
    display: none !important;
}


/* 58.2.9 — Masquage de l'ancien en-tete */

.game-frame:has(#player-home:not([hidden]) > #personal-home:not([hidden])) > header {
    display: none !important;
}



/* 58.4.3 — Espace de consultation personnel */

#personal-consultation {
    position: absolute;
    inset: 0 5% 0 7%;
    display: flex;
    flex-direction: column;
    gap: 1.5cqw;
    min-height: 0;
    color: var(--symbolo-ivory);
}

#personal-consultation[hidden] {
    display: none !important;
}

#personal-home .welcome-right:has(
    #personal-consultation:not([hidden])
) > .welcome-brand,

#personal-home .welcome-right:has(
    #personal-consultation:not([hidden])
) > .personal-information {
    display: none;
}

#personal-consultation-title {
    margin: 0;
    padding: 0 0 1.5cqw;
    border-bottom: 1px solid var(--symbolo-gold);
    font-size: 2.3cqw;
    font-weight: 700;
    text-align: center;
}

#personal-consultation-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bda479 transparent;
    display: flex;
    flex-direction: column;
    gap: 0.8cqw;
    padding-right: 0.5cqw;
}

#personal-consultation-back {
    flex-shrink: 0;
    align-self: center;
    width: 14cqw;
    height: 4.2cqw;
    font-size: 1.5cqw;
}

#personal-home .personal-game-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1cqw;
    border: 1px solid #bda479;
    border-radius: 0.6cqw;
    padding: 1.2cqw;
    text-align: left;
}

#personal-home .personal-game-description {
    flex: 1;
    font-size: 1.4cqw;
    font-weight: 400;
    line-height: 1.5;
}

#personal-home .personal-game-entry button {
    flex-shrink: 0;
    width: 9.5cqw;
    height: 3.3cqw;
    font-size: 1.15cqw;
}



/* 58.4.6 — Centrage des commandes personnelles */

#personal-home .personal-game-entry button,
#personal-consultation-back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    line-height: 1;
}



/* 58.5.3 — HISTORIQUE personnel */

#personal-home .personal-history-date {
    font-size: 1.05cqw;
    color: #dfcbaa;
    margin-top: 0.35cqw;
}

#personal-home .personal-history-result {
    flex-shrink: 0;
    max-width: 42%;
    font-size: 1.3cqw;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #f5ead6;
}



/* 58.7.3 — Catalogue des preferences */

#personal-home .personal-preference-section {
    border: 1px solid #bda479;
    border-radius: 0.6cqw;
    padding: 1.8cqw;
    text-align: left;
}

#personal-home .personal-preference-section h3 {
    margin: 0 0 1.8cqw;
    font-size: 1.8cqw;
    color: #f5ead6;
}

#personal-home .personal-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1cqw;
    font-size: 1.5cqw;
}

#personal-home .personal-preference-section button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14cqw;
    height: 3.8cqw;
    padding: 0;
    font-size: 1.25cqw;
    line-height: 1;
}

#personal-home .personal-preference-explanation {
    font-size: 1.2cqw;
    color: #dfcbaa;
    margin: 1.4cqw 0 1.8cqw;
}

#personal-home .personal-preference-test {
    margin: 0 auto;
}

#personal-home .personal-preference-section button:disabled {
    opacity: 0.45;
    cursor: default;
}

#personal-home .personal-preference-message {
    min-height: 1.5cqw;
    font-size: 1.15cqw;
    color: #dfcbaa;
    text-align: center;
    margin: 1cqw 0 0;
}



/* 58.8.5 — MON COMPTE */

#personal-home .personal-account-section {
    border: 1px solid #bda479;
    border-radius: 0.6cqw;
    padding: 0 1.8cqw;
}

#personal-home .personal-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5cqw;
    padding: 1.8cqw 0;
}

#personal-home .personal-account-row
    + .personal-account-row {
    border-top: 1px solid rgba(189, 164, 121, 0.45);
}

#personal-home .personal-account-label {
    flex: 0 0 40%;
    color: #dfcbaa;
    font-size: 1.3cqw;
    text-align: left;
}

#personal-home .personal-account-value {
    flex: 1;
    min-width: 0;
    color: #f5ead6;
    font-size: 1.4cqw;
    font-weight: 400;
    text-align: right;
    overflow-wrap: anywhere;
}


/* 58.9.13 — Raffinement chromatique du MENU SOLO */

.solo-layout .symbolo-menu-overlay {
    background: #591f30;
}

.solo-layout .symbolo-menu-overlay h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
