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

body {
    font-family: "Press Start 2P", monospace;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

main {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* SCREEN VISIBILITY */
#start-screen,
#form-screen,
#final-screen {
    display: none;
}

#start-screen.active,
#form-screen.active,
#final-screen.active {
    display: block;
}

/* ============================== */
/* START SCREEN */
/* ============================== */

/* FULL SCREEN AREA */
#start-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* TITLE POSITIONING */
.title-wrapper {
    text-align: center;
    margin-top: 110px;
}

/* MAIN TITLE */
.main-title {
    font-family: "Press Start 2P";
    font-size: 30px;
    color: gray;
    text-shadow: 4px 4px 0px #000;
}

/* YELLOW SPLASH TEXT */
.sub-title {
    font-family: "Press Start 2P";
    font-size: 28px;
    color: #ffe600;
    margin-top: 35px;
    text-shadow: 3px 3px 0px #000;
    transform: rotate(-15deg) translateX(250px);
    display: inline-block;
    animation: pulse 1s infinite;
}

/* ANIMATION (expand → shrink → expand) */
@keyframes pulse {
    0% { transform: rotate(-15deg) translateX(250px) scale(1); }
    50% { transform: rotate(-15deg) translateX(250px) scale(1.15); }
    100% { transform: rotate(-15deg) translateX(250px) scale(1); }
}

/* START BUTTON */
#start-btn {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: "Press Start 2P";
    font-size: 20px;

    padding: 18px 100px;
    background: #d6d6d6;
    border: 6px solid #707070;

    box-shadow: 6px 6px 0px #000;
    cursor: pointer;

    border-radius: 6px;
}

#start-btn:hover {
    background: #eeeeee;
}

/* ============================== */
/* FORM SCREEN */
/* ============================== */

#form-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* OUTER LIGHT GRAY FRAME */
.form-frame {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 650px;

    padding: 18px;
    background: #d6d6d6;
    border-radius: 18px;
    box-shadow: 8px 8px 0px #000;
}

/* DARK INNER PANEL */
.form-panel {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 6px solid #000000;
}

/* TITLE */
.form-title {
    font-family: "Press Start 2P";
    font-size: 20px;
    color: white;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 25px;
}

/* LABELS */
label {
    display: block;
    font-family: "Press Start 2P";
    font-size: 14px;
    color: white;
    margin-top: 18px;
}

/* INPUT BOXES */
input[type="text"] {
    width: 100%;
    padding: 12px;

    background: #2b2b2b;
    border: 4px solid #000;
    color: white;

    font-family: "Press Start 2P";
    font-size: 14px;

    display: block;
    margin-top: 8px;
}

/* FOCUS STATE */
input[type="text"]:focus {
    outline: none;
    background: #3a3a3a;
    border-color: #5599ff;
}

/* SUBMIT BUTTON */
#submit-btn {
    width: 100%;
    margin-top: 30px;

    padding: 14px;
    font-family: "Press Start 2P";
    font-size: 18px;
    color: white;
    text-shadow: 2px 2px 0px #000;

    background: #d6d6d6;
    border: 6px solid #000000;
    border-radius: 6px;

    box-shadow: 6px 6px 0px #000;

    cursor: pointer;
}

/* Hover effect */
#submit-btn:hover {
    background: #e6e6e6;
}

/* Active/Press effect */
#submit-btn:active {
    background: #218306;
}

/* ============================== */
/* FINAL SCREEN */
/* ============================== */

#final-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* semi-transparent box */
.final-box {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1120px;

    background: rgba(0, 0, 0, 0.55);
    padding: 30px;
    border-radius: 8px;

    font-family: "Press Start 2P";
    color: white;
    font-size: 16px;
    line-height: 1.8;
}

/* paragraph spacing */
.final-box p {
    margin-bottom: 22px;
}

/* Make bold tags normal weight (color only) */
.final-box b {
    font-weight: normal;
}

/* 5 input colors */
.name-color  { color: #ff5555; }   /* red */
.adj-color   { color: #55aaff; }   /* blue */
.color-color { color: #55ff55; }   /* green */
.item-color  { color: #ffaa00; }   /* yellow/gold */
.tool-color  { color: #cc66ff; }   /* purple */