* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-true-black: #000;
    --color-black: #121A1D;
    --color-black-60: #121A1D9c;
    --color-dark-blue: #084C61;
    --color-dark-blue-background: #39838d;
    --color-blue: #3C89AA;
    --color-light-blue: #56A3A6;
    --color-green: #63D166;
    --color-red: #DB504A;
    --color-dark-red: #c44541;
    --color-yellow: #E3B505;
    --color-white: #FAF4EA;
    --color-true-white: #fff;

    --font-title: 'Grotesk';
    --font-text: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* GENERAL */

html {
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

h1 {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--color-white);
}

h1 {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--color-white);
}

/* HEADER */
header {
    /* position */
    width: 100%;
    height: auto;
    padding: 1rem;
    /* display */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* color */
    background-color: var(--color-dark-blue);
}

.customGame__backToHub {
    text-align: center;
    transition: all 0.2s ease;
}

.customGame__backToHub:hover {
    -webkit-mask-image: linear-gradient(-75deg,
            var(--color-black) 20%,
            var(--color-black-60) 50%,
            var(--color-black) 80%);
    -webkit-mask-size: 200%;
    animation: shine 1.5s infinite;
}

.customGame__backToHub>h2 {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-white);
}




main {
    /* position */
    height: auto;
    flex: 1;
    width: 100%;
    padding: 1rem;
    /* display */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #56a3a6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23084c61' fill-opacity='0.28' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.customGame__backToQuizzHub {
    width: auto;
    align-self: flex-start;
    font-family: var(--font-text);
    color: var(--color-white);
    font-size: 1.5rem;
}

.customGame__backToQuizzHub:hover {
    text-decoration: underline;
}

.customGame__body {
    /* position */
    width: 100%;
    height: auto;
    position: relative;
    flex: 1;
    /* display */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.customGame__form {
    width: auto;
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;

    border-radius: 0.5rem;
    background-color: var(--color-dark-blue-background);
}

.customGame__inputContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.customGame__inputContainer label {
    font-family: var(--font-text);
    color: var(--color-black);
    font-size: 1.25rem;
}

.customGame__inputContainer>*:not(label) {
    flex: 1;
}

/* #region SWITCH */
.customGame__switch {
    flex: initial !important;
    position: relative;
    height: 1.5rem;
    width: 3rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 9999px;
    background-color: var(--color-black-60);
    transition: all .3s ease;
}

.customGame__switch:checked {
    background-color: var(--color-red);
}

.customGame__switch::before {
    position: absolute;
    content: "";
    left: calc(1.5rem - 1.6rem);
    top: calc(1.5rem - 1.6rem);
    display: block;
    height: 1.6rem;
    width: 1.6rem;
    cursor: pointer;
    border: 1px solid rgba(100, 116, 139, 0.527);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.327);
    transition: all .3s ease;
}

.customGame__switch:hover::before {
    box-shadow: 0 0 0px 8px rgba(0, 0, 0, .15)
}

.customGame__switch:checked:hover::before {
    box-shadow: 0 0 0px 8px rgba(236, 72, 153, .15)
}

.customGame__switch:checked:before {
    transform: translateX(100%);
    border-color: rgba(236, 72, 153, 1);
}

/* #endregion SWITCH */

/* #region BUTTON */
.customGame__button {
    align-self: flex-end;
    --color: var(--color-red);
    --color-click: var(--color-dark-red);
    font-family: var(--font-text);
    display: inline-block;
    width: 8em;
    height: 2.6em;
    line-height: 2.5em;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--color);
    transition: color 0.5s;
    z-index: 1;
    font-size: 17px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color);
}

.customGame__button:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--color);
    height: 150px;
    width: 200px;
    border-radius: 50%;
}

.customGame__button:hover {
    color: #fff;
}

.customGame__button:before {
    top: 100%;
    left: 100%;
    transition: all 0.7s;
}

.customGame__button:hover:before {
    top: -30px;
    left: -30px;
}

.customGame__button:active:before {
    background: var(--color-click);
    transition: background 0s;
}

/* #endregion BUTTON */

/* #region SELECT */
.customGame__select {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: #fff;
    color: #000000;
    width: 300px;
    overflow: hidden;
    border: 1px solid rgba(53, 52, 52, 0.226);
}

.customGame__select input {
    display: none;
}

.customGame__select label {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    font-weight: 600;
    letter-spacing: -1px;
    font-size: 14px;
}

/* Le label coché devient l'ancre active */
.customGame__select label:has(input:checked) {
    color: #fff;
    anchor-name: --active-pill;
}

.customGame__select label:has(input:disabled) {
    color: #909090;
}

.selection {
    position: absolute;
    position-anchor: --active-pill;
    top: anchor(top);
    bottom: anchor(bottom);
    left: anchor(left);
    right: anchor(right);
    z-index: 0;
    border-radius: 8px;
    background-color: var(--color-red);
    transition: all 0.2s ease;
}

.customGame__select--green .selection {
    background-color: var(--color-green);
}

/* #endregion SELECT */

/* #region INPUT NUMBER */
.customGame__inputNumber {
    width: fit-content;
    flex: initial !important;
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customGame__inputNumber:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

.customGame__inputNumber .stepper-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background-color: #ffffff;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s, transform 0.05s;
}

.customGame__inputNumber .stepper-btn:hover {
    background-color: #f9fafb;
    color: #111827;
}

.customGame__inputNumber .stepper-btn:active {
    transform: scale(0.94);
    background-color: #e5e7eb;
}

/* Input central */
.customGame__inputNumber input[type="number"] {
    width: 3.5rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    outline: none;
    padding: 0 0.25rem;

    /* Cache les flèches natives sur Firefox */
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Cache les flèches natives sur Chrome, Safari, Edge */
.customGame__inputNumber input[type="number"]::-webkit-outer-spin-button,
.customGame__inputNumber input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* #endregion INPUT NUMBER */




@media (min-width: 600px) {
    h1 {
        font-size: 4rem;
    }

    .customGame__backToHub>h2 {
        font-size: 2.5rem;
    }

    .customGame__form {
        gap: 0.75rem;
        padding: 1.5rem;
    }
}