body.nv-character-creation-active #google-logout-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* NightVenture — single CSS owner for the race-first character creator. */
body.nv-mode-new-game {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.nv-mode-new-game #appShell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden !important;
}

body.nv-mode-new-game :where(#gameLayout, #main) {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden !important;
}

@supports (height: 100dvh) {
    body.nv-mode-new-game,
    body.nv-mode-new-game #appShell {
        height: 100dvh;
        max-height: 100dvh;
    }
}

body.nv-mode-new-game #vuePrincipale {
    width: 100%;
    height: 100vh;
    min-height: 0;
    margin: 0;
    padding:
        max(env(safe-area-inset-top), clamp(4px, 1.2vmin, 14px))
        max(env(safe-area-inset-right), clamp(4px, 1.2vmin, 14px))
        max(env(safe-area-inset-bottom), clamp(4px, 1.2vmin, 14px))
        max(env(safe-area-inset-left), clamp(4px, 1.2vmin, 14px)) !important;
    box-sizing: border-box;
    display: grid !important;
    place-items: center;
    overflow: hidden;
}

@supports (height: 100dvh) {
    body.nv-mode-new-game #vuePrincipale { height: 100dvh; }
}

.nv-character-creator {
    --nv-creator-accent: #f1ca70;
    --nv-creator-line: rgba(114, 201, 255, .24);
    --nv-creator-surface: linear-gradient(180deg, rgba(10, 25, 42, .76), rgba(5, 14, 27, .72));
    --nv-creator-content-width: 900px;
    --nv-creator-gutter: clamp(7px, 1.5vmin, 16px);
    --nv-creator-panel-radius: 4px;
    width: min(100%, clamp(320px, 94vw, 1120px));
    height: min(100%, 960px);
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: clamp(4px, .8vmin, 9px);
    color: #edf5ff;
    overflow: hidden;
}

.nv-character-creator--loading {
    min-height: min(52vh, 520px);
    place-items: center;
    align-content: center;
}

.nv-creator-header {
    width: min(calc(100% - (2 * var(--nv-creator-gutter))), var(--nv-creator-content-width));
    min-width: 0;
    margin: 0 auto;
    padding: clamp(8px, 1.5vmin, 14px) clamp(12px, 2.2vmin, 22px);
    border: 1px solid var(--nv-creator-line);
    border-radius: var(--nv-creator-panel-radius);
    background: linear-gradient(115deg, rgba(24, 47, 70, .66), rgba(7, 17, 31, .72));
    backdrop-filter: blur(8px) saturate(1.08);
    box-sizing: border-box;
}

.nv-creator-header h1 {
    margin: 0;
    color: #f7d77f;
    font-size: clamp(1.08rem, 2.4vmin, 1.8rem);
    line-height: 1.25;
    padding-bottom: .08em;
    text-align: center;
}

.nv-creator-header p {
    margin: clamp(2px, .5vmin, 6px) 0 0;
    color: #c8d5e4;
    font-size: clamp(.66rem, 1.35vmin, .84rem);
    line-height: 1.3;
    text-align: center;
}

body.nv-mode-new-game .nv-character-creator .nv-creator-sheet {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: var(--nv-creator-gutter);
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 201, 255, .54) rgba(4, 13, 25, .48);
}

.nv-character-creator *,
.nv-character-creator *::before,
.nv-character-creator *::after {
    box-sizing: border-box;
}

.nv-character-creator :where(section, main, header, footer, div, fieldset, label) {
    max-width: 100%;
}

.nv-character-creator :where(img, canvas, svg) {
    max-width: 100%;
}

.nv-identity-sheet,
.nv-appearance-sheet {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    gap: clamp(5px, 1vmin, 12px);
    overflow: hidden;
}

.nv-identity-sheet {
    grid-template-rows: auto auto minmax(max-content, 1fr);
    align-content: stretch;
}

.nv-appearance-sheet {
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    align-content: stretch;
}

.nv-creator-top {
    width: min(100%, var(--nv-creator-content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(7px, 1.25vmin, 14px);
    align-items: stretch;
}

.nv-creator-identity,
.nv-race-choice,
.nv-creator-stage,
.nv-creator-stats,
.nv-top-choice-section,
.nv-outfit-fixed-colors {
    min-width: 0;
    padding: clamp(8px, 1.25vmin, 13px);
    border: 1px solid var(--nv-creator-line);
    border-radius: var(--nv-creator-panel-radius);
    background: linear-gradient(180deg, rgba(12, 32, 51, .62), rgba(6, 20, 36, .56));
    box-sizing: border-box;
}

.nv-creator-identity {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: clamp(7px, 1.1vmin, 12px);
    align-items: end;
}

.nv-character-creator label,
.nv-sex-toggle {
    min-width: 0;
    color: #d8e5f2;
    font-size: clamp(.82rem, 1.45vmin, .96rem);
}

.nv-character-creator label {
    display: grid;
    gap: clamp(4px, .7vmin, 7px);
}

.nv-character-creator input,
.nv-character-creator select {
    width: 100%;
    min-width: 0;
    min-height: clamp(36px, 4.8vmin, 44px);
    padding: clamp(6px, .9vmin, 10px);
    border: 1px solid rgba(114, 201, 255, .3);
    border-radius: clamp(7px, 1vmin, 10px);
    color: #f5f9ff;
    background: rgba(7, 22, 38, .9);
    box-sizing: border-box;
    font: inherit;
}

.nv-sex-toggle {
    min-width: min(100%, 150px);
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4px, .7vmin, 7px);
    border: 0;
}

.nv-sex-toggle legend {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}

.nv-sex-toggle button,
.nv-character-creator button {
    min-height: clamp(36px, 4.8vmin, 44px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nv-sex-toggle button {
    min-width: 0;
    padding: clamp(6px, .9vmin, 9px);
}

.nv-sex-toggle button.active {
    border-color: rgba(255, 225, 145, .74);
    color: #fff8dc;
    background: linear-gradient(180deg, rgba(155, 117, 48, .92), rgba(91, 66, 28, .92));
}

.nv-race-choice {
    display: grid;
    grid-template-columns: clamp(54px, 8vw, 78px) minmax(0, 1fr);
    gap: clamp(5px, .9vmin, 10px);
    align-items: center;
}

.nv-race-description {
    grid-column: 1 / -1;
    min-height: clamp(38px, 5.5vmin, 54px);
    max-height: clamp(54px, 9vh, 86px);
    padding: clamp(6px, .9vmin, 9px);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    border: 1px solid rgba(114, 201, 255, .14);
    border-radius: 8px;
    color: #bdcddd;
    background: rgba(6, 21, 37, .48);
    font-size: clamp(.88rem, 1.5vmin, 1.02rem);
    line-height: 1.38;
    box-sizing: border-box;
}

.nv-creator-stats {
    width: min(100%, var(--nv-creator-content-width));
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
}

.nv-creator-stats header,
.nv-top-choice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(7px, 1.2vmin, 13px);
}

.nv-creator-stats h2,
.nv-top-choice-header h3 {
    margin: 0;
    color: #f4d488;
    font-size: clamp(1rem, 1.85vmin, 1.18rem);
}

.nv-creator-stats header > span {
    color: #b9cadb;
    font-size: clamp(.86rem, 1.45vmin, .98rem);
}

.nv-stat-grid {
    margin-top: clamp(6px, 1vmin, 10px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
    gap: clamp(4px, .75vmin, 7px);
}

.nv-stat-grid span,
.nv-start-summary > span {
    min-width: 0;
    padding: clamp(5px, .85vmin, 8px);
    border: 1px solid rgba(114, 201, 255, .11);
    border-radius: clamp(7px, 1vmin, 9px);
    color: #d6e5f3;
    background: rgba(7, 23, 40, .48);
    box-sizing: border-box;
    font-size: clamp(.86rem, 1.45vmin, .98rem);
}

.nv-stat-grid span { text-align: center; }
.nv-stat-grid strong,
.nv-start-summary strong { color: #f3d788; }

.nv-start-summary {
    margin-top: clamp(5px, .9vmin, 9px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(4px, .75vmin, 7px);
}

.nv-racial-summary {
    min-width: 0;
    padding: clamp(6px, 1vmin, 10px);
    border: 1px solid rgba(114, 201, 255, .14);
    border-radius: clamp(7px, 1vmin, 9px);
    color: #d6e5f3;
    background: rgba(7, 23, 40, .48);
}

.nv-racial-summary__title {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: clamp(6px, 1vmin, 10px);
    font-size: clamp(.88rem, 1.5vmin, 1rem);
}

.nv-racial-summary__title strong {
    color: #f3d788;
    text-align: right;
}

.nv-racial-effects {
    min-width: 0;
    margin-top: clamp(5px, .8vmin, 8px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: clamp(4px, .7vmin, 7px);
}

.nv-racial-effect {
    min-width: 0;
    padding: clamp(5px, .8vmin, 8px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px clamp(5px, .8vmin, 8px);
    align-items: center;
    border: 1px solid rgba(114, 201, 255, .12);
    border-radius: 7px;
    background: rgba(3, 15, 28, .48);
    font-size: clamp(.82rem, 1.4vmin, .96rem);
}

.nv-racial-effect > strong {
    color: #8de7a2;
    font-variant-numeric: tabular-nums;
}

.nv-racial-effect > small {
    grid-column: 1 / -1;
    color: #9eb1c5;
    font-size: clamp(.7rem, 1.15vmin, .8rem);
}

.nv-racial-effect-empty {
    color: #9eb1c5;
    font-size: clamp(.78rem, 1.3vmin, .9rem);
}

.nv-resource-bars {
    min-width: 0;
    display: grid;
    gap: clamp(3px, .55vmin, 6px);
}

.nv-resource-row {
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(58px, 9vmin, 86px) minmax(0, 1fr) clamp(30px, 5vmin, 48px);
    gap: clamp(5px, .8vmin, 9px);
    align-items: center;
}

.nv-resource-label,
.nv-resource-value {
    font-size: clamp(.84rem, 1.4vmin, .96rem);
    line-height: 1;
}

.nv-resource-label {
    color: #d6e5f3;
    font-weight: 750;
}

.nv-resource-value {
    color: #f3d788;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nv-resource-track {
    min-width: 0;
    height: clamp(7px, 1.15vmin, 11px);
    overflow: hidden;
    border: 1px solid rgba(202, 224, 244, .16);
    border-radius: 999px;
    background: rgba(3, 13, 25, .7);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .48);
}

.nv-resource-fill {
    display: block;
    width: var(--nv-resource-ratio, 0%);
    min-width: 0;
    height: 100%;
    border-radius: inherit;
}

.nv-resource-row--health .nv-resource-fill {
    background: linear-gradient(90deg, #762b32, #d7555f);
}

.nv-resource-row--mana .nv-resource-fill {
    background: linear-gradient(90deg, #285886, #55a5df);
}

.nv-resource-row--stamina .nv-resource-fill {
    background: linear-gradient(90deg, #39753d, #72bd63);
}

.nv-creator-stage {
    position: relative;
    z-index: 30;
    width: min(100%, var(--nv-creator-content-width));
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    overflow: visible;
}

.nv-preview-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: clamp(170px, 36dvh, 360px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: clamp(4px, .8vmin, 8px);
    place-items: center;
    overflow: visible;
    z-index: 40;
}

#nvCharacterPreview {
    position: relative;
    width: clamp(170px, 32vmin, 340px);
    max-width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    image-rendering: pixelated;
}

#nvCharacterPreview canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    image-rendering: pixelated;
}

/* Agrandissement purement visuel du résultat final : le compositeur ULPC
   conserve son échelle et son propriétaire uniques. */
#nvCharacterPreview canvas[data-nv-character-creation-direct-preview] {
    z-index: 100 !important;
    transform: translateY(-33%) scale(2);
    transform-origin: 50% 50%;
    pointer-events: none;
}

.nv-hair-overlay {
    position: relative;
    z-index: 3;
    width: min(100%, 440px);
    margin: 0 auto;
}

.nv-hair-control-card {
    min-width: 0;
    padding: clamp(5px, .8vmin, 8px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(6px, 1vmin, 10px);
    align-items: center;
    border: 1px solid rgba(114, 201, 255, .18);
    border-radius: 10px;
    background: rgba(5, 18, 33, .64);
}

.nv-hair-control-card > strong {
    color: #edcf7c;
    font-size: clamp(.82rem, 1.4vmin, .94rem);
}

.nv-hair-control-card--fixed small { color: #afc0d1; }

.nv-hair-control-line {
    min-width: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    gap: clamp(4px, .7vmin, 7px);
    align-items: center;
    justify-content: start;
}

.nv-hair-carousel {
    min-width: 0;
    width: max-content;
    display: grid;
    grid-template-columns: auto clamp(72px, 13vmin, 118px) auto;
    gap: clamp(2px, .45vmin, 5px);
    align-items: center;
}

.nv-carousel-arrow {
    flex: 0 0 auto;
    width: clamp(32px, 4.5vmin, 40px);
    min-width: clamp(32px, 4.5vmin, 40px);
    height: clamp(32px, 4.5vmin, 40px);
    min-height: clamp(32px, 4.5vmin, 40px) !important;
    padding: 0 !important;
    border: 1px solid rgba(241, 202, 112, .42);
    border-radius: 9px;
    color: #ffe294;
    background: linear-gradient(180deg, #172d43, #0b1b2c);
    font-size: clamp(1.25rem, 2.4vmin, 1.7rem);
    line-height: 1;
}

.nv-carousel-value,
.nv-color-name {
    min-width: 0;
    overflow: hidden;
    color: #c6d5e4;
    font-size: clamp(.92rem, 1.6vmin, 1.08rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-carousel-value {
    text-align: center;
}

.nv-body-colors {
    margin-top: clamp(4px, .8vmin, 9px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: clamp(5px, .85vmin, 9px);
}

.nv-body-colors > div,
.nv-outfit-fixed-colors > div {
    min-width: 0;
    padding: clamp(6px, .9vmin, 9px);
    border: 1px solid rgba(114, 201, 255, .13);
    border-radius: 9px;
    background: rgba(6, 21, 37, .42);
}

.nv-body-colors strong,
.nv-outfit-fixed-colors strong,
.nv-top-color-control > strong {
    display: block;
    margin-bottom: 4px;
    color: #e8ca78;
    font-size: clamp(.92rem, 1.55vmin, 1.06rem);
}

.nv-creator-features {
    margin-top: clamp(5px, .9vmin, 10px);
    padding-top: clamp(5px, .9vmin, 10px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, .85vmin, 9px);
    align-items: end;
    border-top: 1px solid rgba(114, 201, 255, .14);
}

.nv-creator-features h3 {
    grid-column: 1 / -1;
    margin: 0;
    align-self: center;
    color: #e8ca78;
    font-size: clamp(.88rem, 1.5vmin, 1rem);
}

.nv-outfit-palette {
    width: min(100%, var(--nv-creator-content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(5px, .9vmin, 10px);
}

.nv-top-choice-header { margin-bottom: clamp(6px, 1vmin, 10px); }

.nv-top-color-control {
    width: min(100%, max-content);
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(5px, .8vmin, 8px);
}

.nv-top-color-control > strong { margin: 0; }

.nv-top-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, .85vmin, 9px);
}

.nv-top-choice {
    min-width: 0;
    min-height: clamp(58px, 10vmin, 96px) !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.nv-top-choice.is-selected {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nv-top-choice-preview {
    width: clamp(60px, 10vmin, 108px);
    height: clamp(60px, 10vmin, 108px);
    display: grid;
    place-items: center;
    image-rendering: pixelated;
    transform: translateY(-15%);
    transition: transform 140ms ease-out;
}

.nv-top-choice.is-selected .nv-top-choice-preview {
    transform: translateY(-15%) scale(1.25);
}

.nv-top-choice-preview canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.nv-outfit-fixed-colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 1vmin, 10px);
    align-content: center;
}

.nv-creator-color-picker {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(5px, .8vmin, 8px);
}

.nv-color-trigger {
    flex: 0 0 auto;
    width: clamp(48px, 6vmin, 58px);
    min-width: clamp(48px, 6vmin, 58px);
    height: clamp(48px, 6vmin, 58px);
    min-height: clamp(48px, 6vmin, 58px) !important;
    padding: 4px !important;
    border: 1px solid rgba(241, 202, 112, .42);
    border-radius: 9px;
    background: #0d1d2d;
}

.nv-color-chip,
.nv-color-choice span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: var(--nv-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -8px 14px rgba(0, 0, 0, .15);
}

.nv-color-chip-fixed {
    background: linear-gradient(135deg, #596170 0 43%, #d7a04d 43% 50%, #596170 50% 100%);
}

.nv-color-popover {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2500;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 12px;
    color: #edf5ff;
    border: 1px solid rgba(241, 202, 112, .4);
    border-radius: 12px;
    background: rgba(5, 14, 26, .98);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .58);
}

.nv-color-popover::backdrop {
    background: rgba(0, 5, 12, .6);
}

.nv-color-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nv-color-popover-header h3 {
    margin: 0;
    font-size: 1rem;
}

.nv-color-popover-header button {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    font-size: 1.4rem;
}

.nv-color-popover[hidden] { display: none; }

.nv-character-creator .nv-color-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: clamp(4px, .7vmin, 7px);
}

.nv-character-creator .nv-color-choice {
    position: relative;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    padding: 3px !important;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 7px;
    background: #0c1a29;
    box-sizing: border-box;
}

.nv-color-choice.active {
    border-color: #ffe292;
    box-shadow: 0 0 0 2px rgba(241, 201, 109, .32);
}

.nv-color-choice.active::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff1bd;
}

.nv-creator-status {
    min-height: clamp(16px, 2.2vmin, 22px);
    margin: 0;
    color: #c6d4e2;
    font-size: clamp(.8rem, 1.35vmin, .92rem);
    line-height: 1.35;
    text-align: center;
}

.nv-creator-status[data-type="error"] { color: #ff9a9a; }
.nv-creator-status[data-type="success"] { color: #8de7a2; }
.nv-creator-status:empty { display: none; min-height: 0; }

.nv-character-creator--identity label,
.nv-character-creator--identity .nv-sex-toggle {
    font-size: clamp(.94rem, 1.65vmin, 1.08rem);
}

.nv-creator-footer {
    position: relative;
    z-index: 20;
    bottom: auto;
    width: min(100%, var(--nv-creator-content-width));
    min-height: clamp(48px, 6.5vmin, 58px);
    margin: 0 auto;
    padding-top: clamp(7px, 1vmin, 10px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(7px, 1.2vmin, 12px);
    align-self: end;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.nv-creator-footer button {
    width: fit-content;
    min-width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
    padding: clamp(7px, 1.1vmin, 12px) clamp(11px, 2vmin, 20px);
    white-space: nowrap;
}

.nv-creator-footer > button:first-child {
    justify-self: start;
}

.nv-creator-start {
    justify-self: end;
    margin-left: auto;
    font-weight: 850;
}

@media (max-width: 860px) {
    .nv-character-creator {
        width: 100%;
        height: 100%;
    }

    .nv-creator-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-creator-identity {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-creator-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-preview-stage {
        min-height: 0;
        height: 100%;
        max-height: clamp(150px, 30dvh, 280px);
    }

    .nv-top-choice { min-height: clamp(58px, 17vw, 88px) !important; }
}

@media (max-width: 480px) {
    body.nv-mode-new-game #vuePrincipale {
        padding:
            max(env(safe-area-inset-top), 3px)
            max(env(safe-area-inset-right), 3px)
            max(env(safe-area-inset-bottom), 3px)
            max(env(safe-area-inset-left), 3px) !important;
    }

    .nv-creator-sheet { padding: 6px; }
    .nv-race-choice { grid-template-columns: 52px minmax(0, 1fr); }
    .nv-start-summary { display: grid; grid-template-columns: 1fr; }
    .nv-outfit-fixed-colors { grid-template-columns: minmax(0, 1fr); }
    .nv-hair-control-card { grid-template-columns: minmax(0, 1fr); }
    .nv-hair-control-line { grid-template-columns: max-content max-content; }

    .nv-creator-footer button { width: fit-content; min-width: max-content; flex: 0 0 auto; }
}

@media (max-height: 650px) and (min-width: 620px) {
    .nv-appearance-sheet {
        grid-template-columns: minmax(320px, 1.2fr) minmax(280px, .8fr);
        grid-template-rows: minmax(0, 1fr) auto auto;
        align-items: stretch;
    }

    .nv-appearance-sheet .nv-creator-stage {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        overflow: visible;
    }

    .nv-appearance-sheet .nv-outfit-palette {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        overflow: hidden;
    }

    .nv-appearance-sheet .nv-creator-status {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .nv-appearance-sheet .nv-creator-footer {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .nv-preview-stage {
        min-height: 0;
        height: 100%;
        max-height: clamp(135px, 34dvh, 240px);
    }

    .nv-creator-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nv-creator-features h3 { grid-column: 1 / -1; }
    .nv-top-choice { min-height: clamp(54px, 12vh, 78px) !important; }
}

@media (max-height: 520px) {
    .nv-creator-header p { display: none; }
    .nv-creator-header { padding-block: 6px; }
    .nv-creator-identity,
    .nv-race-choice,
    .nv-creator-stage,
    .nv-creator-stats,
    .nv-top-choice-section,
    .nv-outfit-fixed-colors { padding: 6px; }
    .nv-preview-stage {
        min-height: 0;
        height: 100%;
        max-height: clamp(110px, 31dvh, 175px);
    }
    .nv-race-description { max-height: 48px; }
    .nv-creator-footer { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .nv-character-creator *,
    .nv-character-creator *::before,
    .nv-character-creator *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
