


h1 {
    text-align: center;
    color: #ea8df1;
    
}

body {
    background-color: #2a1736;
    background-image: url(https://cdn.leonardo.ai/users/4f5dc4be-bb0f-4717-81ce-cb29bda26d0c/generations/db6e251c-b76c-4ec4-b2c4-143aae881597/segments/1:1:1/Lucid_Origin_castle_in_the_clouds_in_genshin_impact_pixel_art__0.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image 1s ease;
}
.scene {
    position: fixed;
    inset: 0;                /* full screen */
    display: none;
    justify-content: center;
    align-items: center;
}
.scene.active {
    display: flex;
}
#instructions {
   width: 440px;
    height: 440px;
    background-color: #ab8abe;
    border-radius: 15px;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: #613f67;
    text-align: center;
}
#next {
    margin: 20px;
}
.title {
    color:#613f67;
 text-align: center;
}

.box {
    width: 300px;
    height: 200px;
    background-color: #ab8abe;
    border-radius: 15px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    color: #885891;
}
#gender h2 {
    margin-left: 30px;
}
#start-button {
    padding: 10px 20px;
    background-color: #9a64a3;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
label {
    display: flex;
    align-items: center; /* vertically center radio + text */
    gap: 10px; /* space between radio button and text */
    cursor: pointer; /* nice UX */
}
#continue {
    align-self: center; /* center button */
    padding: 8px 16px;
    background-color: #9a64a3;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
#next {
    align-self: center; /* center button */
    padding: 8px 16px;
    background-color: #9a64a3;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-bottom:60px;
}
#story {
    background: none;
    color: #e3b4ff;
    font-family: monospace;
    text-align: center;
    padding: 50px;
}


#story {
    background: none;
}
#story-box {
    background-color: #f9ddff;
    border-radius: 15px;
    padding: 20px 25px;
    width: 70%;
   max-width: 950px;
   min-height: 160px;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);

    color: #613f67;
}
#storyline {
    font-family: monospace;
    color: rgb(22, 22, 22);
    font-size: 24px;
    line-height: 1.6;
    white-space: pre-line; /* Preserve line breaks */
}
#skip-button {
  position: absolute;        /* ✅ THIS WAS MISSING */
  bottom: 12px;              /* true bottom */
  right: 18px;               /* right corner */

  background: transparent;
  border: none;
  color: #613f67;
  font-size: 14px;
  cursor: pointer;
}


#skip-button:hover {
  text-decoration: underline;
  opacity: 0.8;
}

#stars {
    position: absolute;    /* or fixed */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;  /* so clicks pass through */
    overflow: hidden;
}


#dashboard {
    position: relative;   /* or absolute */
    z-index: 10;          /* above stars */
}



#dashboard {
    position: fixed;
    top: 20px;
    right: 20px;

    min-width: 150px;
    border-radius: 8px;
    background-color: #6480a3;
    opacity: 0.85;

    color: white;
    font-size: 15px;
    text-align: left;
    padding: 8px 12px;

    flex-direction: column;
    gap: 8px;

    z-index: 2000;
}
#result {
    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 300px;
    height: 200px;
    background-color: #35597b;
    border-radius: 15px;
    padding: 20px;
    opacity: 0.95;

           /* flex will be enabled when shown */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    color: #ffffff;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
#result h1 {
    color:#122638;
    font-size: 32px;
    margin-bottom: 20px;
}
#result-message {
    font-size: 18px;
    color:#dde9fc;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}
#restart-button {
    padding: 10px 20px;
    background-color: #203653;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

.won {
    color: #ffd86b;
    text-shadow: 0 0 8px rgba(255,216,107,0.8);
}
