@font-face {
    font-family: 'undertale';
    src: url(DeterminationMonoWeb.woff);
}

:root {
    --select: rgb(255, 255, 74);
}

/* ─── BASE ─────────────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: undertale;
}

#bodies {
    font-family: undertale;
    color: white;
    background-image: url('img/depths.png'), url('img/depths.png');
    background-repeat: repeat, repeat;
    background-color: black;
    animation: scrollBackground 100s linear infinite;
    cursor: url("img/noSOUL.png"), auto;
}

@keyframes scrollBackground {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 1000px -600px, -180px 1000px; }
}

/* ─── DEPTHS ────────────────────────────────────────────────────────────────── */
#depths {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    background-color: rgba(0, 0, 0, 1);
    transition: background-color 3s ease-in-out;
}

/* Layout dividido durante o survey */
#depths.survey-mode {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 4rem;
    gap: 0;
}

/* ─── GASTERBOX ─────────────────────────────────────────────────────────────── */
#gasterbox {
    text-transform: uppercase;
    font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem);
    backface-visibility: hidden;
    max-width: 22rem;
    text-align: center;
    
}

.gastertxt {
    -webkit-text-stroke: 3.4px rgba(255, 255, 255, 0.309);
    animation: glow 6s ease-in-out infinite, flutuarCircular 10s ease-in-out infinite;
    display: inline-block;
}

@keyframes glow {
    0%   { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.27)); }
    50%  { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.944)); }
    100% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.258)); }
}

@keyframes flutuarCircular {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(3px, -3px); }
    50%  { transform: translate(-2px, 3px); }
    75%  { transform: translate(-3px, -2px); }
    100% { transform: translate(0, 0); }
}

#instru {
    position: absolute;
    bottom: 10px;
    left: 10px;
    opacity: 0.3;
    font-size: 0.75rem;
}

/* ─── GONER MAKER ───────────────────────────────────────────────────────────── */
.goner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#goner-message {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    text-transform: uppercase;
    min-height: 1em;
}

.goner-game-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

#goner-canvas {
    position: relative;
    width: 72px;
    height: 128px;
    cursor: pointer;
    transition: transform 0.1s;
}
#goner-canvas:active { transform: scale(0.95); }

.goner-part {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

#gonerhead { top: 0px;   z-index: 2; }
#gonerbody { top: 34px;  z-index: 3; }
#gonerlegs { top: 106px; z-index: 1; }

.goner-is-waiting  { opacity: 0; }
.goner-is-active   { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,255,255,0.6)); }
.goner-is-finished { opacity: 1; filter: none; }

.goner-arrow-btn {
    color: white;
    background: transparent;
    border: transparent;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}
.goner-arrow-btn:hover  { color: var(--select); }
.goner-arrow-btn:active { background: #fff; color: #000; }

.goner-hidden { display: none; }

/* ─── CONFIRMAÇÃO SIM/NÃO ───────────────────────────────────────────────────── */
#goner-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.5s ease;
}

#goner-confirm-btns {
    display: flex;
    gap: 0.75rem;
}

.goner-confirm-btn {
    background: transparent;
    border: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 5px;
    transition: color 0.3s;
}
.goner-confirm-btn:hover { color: var(--select); }

/* ─── SURVEY: PAINEL ESQUERDO ───────────────────────────────────────────────── */
#survey-left-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    flex: 1;
    max-width: 55%;
    padding-right: 2rem;
    animation: fadeIn 0.6s ease;
}

#survey-left-panel #gasterbox {
    text-align: left;
    max-width: 100%;
}

#survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.survey-option-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: clamp(1.3rem, 0.943rem + 0.952vw, 1.8rem);
    padding: 0.35rem 0.75rem;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    animation: fadeIn 0.4s ease both;
}

.survey-option-btn:nth-child(1) { animation-delay: 0.05s; }
.survey-option-btn:nth-child(2) { animation-delay: 0.12s; }
.survey-option-btn:nth-child(3) { animation-delay: 0.19s; }
.survey-option-btn:nth-child(4) { animation-delay: 0.26s; }
.survey-option-btn:nth-child(5) { animation-delay: 0.33s; }
.survey-option-btn:nth-child(6) { animation-delay: 0.40s; }

.survey-option-btn:hover {
    color: var(--select);
    padding-left: 1.2rem;
}

/* ─── SURVEY: PAINEL DIREITO (avatar pequeno) ───────────────────────────────── */
#survey-right-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

#survey-avatar {
    position: relative;
    width: 62px;
    height: 110px;
    animation: glow 6s ease-in-out infinite, fadeIn 0.8s ease, flutuarCircular 10s ease-in-out infinite;
}

.survey-part {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
}

#s-gonerhead { top: 0px;  z-index: 2; }
#s-gonerbody { top: 29px; z-index: 3; }
#s-gonerlegs { top: 91px; z-index: 1; }

/* ─── PÓS-SURVEY: AVATAR CENTRAL ────────────────────────────────────────────── */
/* Exibido quando o layout volta ao centro após o survey.                        */
/* Ajuste width/height e os valores de top conforme suas imagens.                */
#post-survey-avatar {
    position: relative;
    width: 72px;
    height: 128px;
    animation: glow 6s ease-in-out infinite, fadeIn 0.8s ease, flutuarCircular 10s ease-in-out infinite;
    
}

.ps-part {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
}

#ps-gonerhead { top: 0px;   z-index: 2; }
#ps-gonerbody { top: 34px;  z-index: 3; }
#ps-gonerlegs { top: 106px; z-index: 1; }

/* ─── INPUT DE NOME ─────────────────────────────────────────────────────────── */
#name-input-wrapper {
    animation: fadeIn 0.5s ease;
    display: flex;
    justify-content: center;
}

#name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-family: undertale, monospace;
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.8rem);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 0.3rem 0.5rem;
    outline: none;
    width: 14rem;
    transition: border-color 0.3s;
    caret-color: var(--select);
}

#name-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
}

#name-input:focus {
    border-bottom-color: var(--select);
}

#endbox {
    display: none;
    color: white;
    font-size: clamp(1rem, 1vw + 0.8rem, 1.5rem);
    text-align: center;
    width: 20rem;
    letter-spacing: 2px;
}
.endtxt {
    display: none; /* Começa escondido */
    text-align: center;
    width: 80%;
    color: white;
}