/* ========================= */
/*  GLOBAL                   */
/* ========================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

/* ========================= */
/*  SCÉNA + OSLÍK + BUBLINA  */
/* ========================= */
.scene {
    width: 100%;
    height: 100vh;
    background-image: url("pozadi-oslikovo.png");
    background-size: cover;
    background-position: center bottom;
    position: relative;
}

.oslik {
    position: absolute;
    bottom: 12vh;
    left: 10vw;
    width: 180px;
    height: 220px;
    background-image: url("oslik.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.bubble {
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    padding: 22px 34px;
    border-radius: 28px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-size: 26px;
    display: flex;
    gap: 10px;
    z-index: 50;
}

.speaker-oslik { color: #2b3a67; font-weight: bold; }
.speaker-user { color: #d64545; font-weight: bold; }

/* ========================= */
/*  MENU VLEVO               */
/* ========================= */
.side-menu {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 40;
}

.menu-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.90);
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
    transition: 0.2s ease;
}

.menu-button:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-2px);
}

/* ========================= */
/*  OKNA VPRAVO              */
/* ========================= */
.window {
    display: none;
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 560px;
    background: #fffdf8;
    border: 3px solid #e0d8c8;
    border-radius: 16px;
    padding: 24px 24px 70px 24px; /* Padding dole pro footer */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    z-index: 30;
}

.close {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

h2 { text-align: center; margin-top: 0; }

/* ========================================= */
/*  ZVĚTŠENÉ IKONKY (OBCHODY + DOBRODRUŽSTVÍ) */
/* ========================================= */

/* Pro Kováře, Farmáře, Knihovníka */
.shop-block {
    display: grid;
    grid-template-columns: 60px 1fr; /* Víc místa pro ikonku */
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #e8e0d0;
    align-items: center;
}

.shop-block .icon {
    font-size: 40px; /* ZVĚTŠENO */
    display: flex;
    justify-content: center;
}

/* Pro Dobrodružství a Prohledat */
.shop-item {
    display: grid;
    grid-template-columns: 60px 1fr; /* Víc místa pro ikonku */
    padding: 14px 0;
    border-bottom: 1px dashed #e8e0d0;
    gap: 14px;
    align-items: center;
}

.shop-item > span:first-child {
    font-size: 40px; /* ZVĚTŠENO */
    display: flex;
    justify-content: center;
}

/* PŮVODNÍ VELIKOST V BATOHU */
.bag-item {
    display: grid;
    grid-template-columns: 32px 1fr 70px;
    padding: 6px 0;
    border-bottom: 1px dashed #e8e0d0;
    font-size: 17px;
    align-items: center;
}

.bag-item span:first-child {
    font-size: 20px; /* Ponecháno menší */
}

/* ========================= */
/*  INFO LIŠTY DOLE          */
/* ========================= */
.window-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 24px;
    background: #fcfaf5;
    border-top: 2px solid #e0d8c8;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

/* Ostatní styly info bloku */
.info { font-size: 17px; line-height: 1.45; }
.info small { display: block; opacity: 0.75; font-size: 15px; margin-top: 4px; }
.shop-actions { margin-top: 10px; display: flex; gap: 20px; }
.shop-actions span {
    cursor: pointer; padding: 4px 10px; border-radius: 8px;
    border: 1px solid #d8cfc0; background: #ffffff; font-weight: bold;
}
.shop-actions span:hover { background: #f3eee4; }
.bag-special-title { margin-top: 16px; font-size: 14px; opacity: 0.7; }
/* RETRO STYL INDIANA JONES (TEXT PLOVOUCÍ V PROSTORU) */
.bubble {
    position: fixed;
    top: 8vh;            /* Posunuto NAHORU */
    left: 40vw;          /* Posunuto VLEVO OD STŘEDU (mezi oslíka a střed) */
    transform: translateX(-50%); /* Vycentrování na této pozici */
    max-width: 600px;
    padding: 0;
    background: none;    /* Bez bubliny */
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    z-index: 50;
    pointer-events: none;
    display: block;
}

/* TUČNÉ ŽLUTÉ PÍSMO S OBRYSEM (LUCASARTS STYL) */
#text {
    color: #ffcc00;      /* Klasická adventurní žlutá */
    font-size: 30px;     /* Velké a tučné */
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    /* Černý obrys pro čitelnost na každém pozadí */
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         4px  4px 8px rgba(0,0,0,0.8);
    transition: opacity 0.5s ease-in-out;
    display: block;
}

/* Skryjeme popisek jména "Oslík:", mluví přímo text */
.speaker-oslik {
    display: none;
}
.loot-card {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  text-align: left;
  border: 2px solid #ddd;
  overflow: hidden;
  min-height: 80px;
}
.loot-icon {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 40px;
  opacity: 0.8;
}
.loot-header {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}
.loot-info {
  font-size: 13px;
  color: #555;
  padding-right: 50px; /* Aby text nešel pod ikonku */
}

/* Barvy podle vzácnosti */
.blue { border-color: #3498db; background: #ebf5fb; }
.orange { border-color: #e67e22; background: #fef5e7; }
.gold { border-color: #f1c40f; background: #fef9e7; }
.green { border-color: #27ae60; background: #e9f7ef; }
.grey { border-color: #95a5a6; background: #f2f4f4; }
.game-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.8); /* Tmavé průhledné pozadí */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 9999; /* Musí být nad vším ostatním */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.footer-left input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    color: #ffcc00; /* Žluté jméno jako v LucasArts textu */
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    outline: none;
}

.footer-left input:focus {
    border-color: #ffcc00;
}

.reset-btn {
    cursor: pointer;
    color: #888;
    transition: 0.3s;
    font-size: 12px;
}

.reset-btn:hover {
    color: #ff4444;
}
