body {
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: sans-serif;
}

/* =====================
   START SCREEN
===================== */
#startScreen {
    position: fixed;
    inset: 0;
    background: url('assets/startik.png') no-repeat center;
    background-size: cover;
}

/* plátno */
.start-layout {
    position: relative;
    width: 100%;
    height: 100%;
}

/* NÁZEV */
.title {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
}

.jmeno {
    position: absolute;
    top: 240px;
    left: 49%;
    transform: translateX(-50%);
    width: 550px;
}

.skola {
    position: absolute;
    top: 330px;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
}

.rok {
    position: absolute;
    top: 398px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

.rocnik {
    position: absolute;
    top: 455px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

/* =====================
   START SCREEN BUTTON
===================== */
#startBtn { /* tlačítko na úvodní obrazovce */
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px; /* velké tlačítko na start screen */
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

#startBtn:hover { transform: translateX(-50%) scale(1.1); }
#startBtn:active { transform: translateX(-50%) scale(0.95); }

/* obal pro start screen obsah */
.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(160px);
    scale: 0.8;
}

/* jednotlivé obrázky */
.start-info {
    width: 280px;
    max-width: 70%;
}

/* IN-GAME START BUTTON */
.in-game-start-btn {
    width: 120px;           /* správná velikost ve hře */
    height: auto;
    cursor: pointer;
    position: absolute;
    z-index: 20;
    transition: transform 0.2s ease;
    transform: none;        /* odstraní dědičné scale z start-content */
    top: 105px;             /* posunuto níže mimo text */
}




/* hover efekt */
.in-game-start-btn:hover {
    transform: scale(1.1);  /* pouze při hover */
}

/* klik efekt */
.in-game-start-btn:active {
    transform: scale(0.95);
}

/* =====================
   GAME SCREEN
===================== */
#gameScreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

/* =====================
   SCREENS
===================== */
.screen {
    position: absolute;
    inset: 0;
    display: none;
}

/* =====================
   LAYERS
===================== */
.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =====================
   OBJECTS
===================== */
.object {
    position: absolute;
    cursor: pointer;
    z-index: 20;
    transition: opacity 1s ease;
}
.object.lit { opacity: 1; }

/* =====================
   NAVIGATION ARROWS
===================== */
.arrow-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}
.arrow-wrap.left { left: 20px; }
.arrow-wrap.right { right: 20px; }

.arrow {
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.arrow:hover { transform: scale(1.2); }
.arrow:active { transform: scale(0.95); }

/* =====================
   FUN FACT
===================== */
.fact {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: #abdbea;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 50;
}
.fact.show { opacity: 1; }

/* =====================
   Z-INDEX
===================== */
.z1 { z-index: 1; }
.z2 { z-index: 2; }
.z3 { z-index: 3; }
.z4 { z-index: 4; }
.z5 { z-index: 5; }
.z6 { z-index: 6; }

/* =====================
   REWARD SCREEN
===================== */
#rewardScreen {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#rewardScreen .reward-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#restartBtn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    cursor: pointer;
}
#restartBtn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* =====================
   UVÍTACÍ BOX + POTÁPĚČ
===================== */
#welcomeMessage {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-end;
    gap: 25px;
    background: none;
    z-index: 300;
}

.diver {
    width: 280px;
    height: auto;
    flex-shrink: 0;
}

.welcome-box {
    background: rgba(0,0,0,0.88);
    padding: 20px 28px;
    border-radius: 20px;
    width: 320px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.welcome-text {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #abdbea;
    display: none;
}
.welcome-text.active { display: block; }

.welcome-arrow {
    position: absolute;
    bottom: 10px;
    width: 60px;
    cursor: pointer;
}
.welcome-arrow.left  { left: 10px; }
.welcome-arrow.right { right: 10px; }

/* default hidden */
.hidden { display: none; }
