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

:root {
    --ice-opacity: .6;
    --ice-color: #a4d4ff;
    --ice-dark: #1a3253;
    --tomb-glow: 0 0 30px rgba(172, 215, 232, .8);
    --frost-white: rgba(255, 255, 255, .8);
    --warning-red: #ff4040;
    --success-green: #40ff40;
    --warning-glow: 0 0 15px rgba(255, 64, 64, .6);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/ice-age.png');
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

body {
    background: linear-gradient(to bottom, #a4d4ff, #e6f8ff, #f0f0ff);
    height: 100vh;
    overflow-x: hidden;
    font-family: 'Raleway', Arial, sans-serif;
    color: #264654;
    position: relative;
    transition: background 3s ease;
}

body.dark-mode {
    background: linear-gradient(to bottom, #0a2035, #1a3754, #294767);
    color: #e0f0ff;
}

body.awakened-mode {
    background: linear-gradient(to bottom, #0a0a20, #20101f, #2d1a24);
    color: #f0e0e0;
}

header {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.description {
    text-align: center;
    font-style: italic;
    color: #244653;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    transition: color .5s ease;
}


body.dark-mode .description {
    color: #a4d4ff;
}

body.awakened-mode .description {
    color: #ff9e9e;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.title { 
    text-align: center;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
    padding: 20px;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--ice-dark);
    text-shadow: 0 0 10px rgba(255, 255, 255, .8), 0 0 20px rgba(173, 215, 230, .8);
    transition: color .5s ease, text-shadow .5s ease;
}

body.dark-mode .title {
    color: #a4d4ff;
    text-shadow: 0 0 10px rgba(164, 212, 255, .8), 0 0 20px rgba(73, 115, 130, .8);
}

body.awakened-mode .title {
    color: #ff7070;
    text-shadow: 0 0 10px rgba(255, 100, 100, .8), 0 0 20px rgba(130, 73,73, .8);
}

.tomb-container {
    width: 80%;
    height: 60vh;
    margin: 0 auto;
    background-color: rgba(220, 240, 255, .5);
    border-radius: 10px;
    border: 2px solid #a5d5ff;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px rgba(173, 215, 232, .8), inset 0 0 50px rgba(255, 255, 255, .55);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .4s ease;
    perspective: 1000px;
}

.tomb-container:hover {
    box-shadow: 0 0 30px rgba(173, 215, 232, 1), inset 0 0 70px rgba(255, 255, 255, .7);
    transform:scale(1.02);
}

body.awakened-mode .tomb-container {
  background-color: rgba(30, 20, 25, .7);
  border: 2px solid #7a0000;
  box-shadow: 0 0 20px rgba(232, 173, 173, .8), inset 0 0 50px rgba(255, 200, 200, .2);
}

body.awakened-mode .tomb-container:hover {
  box-shadow: 0 0 30px rgba(232, 173, 173, 1), inset 0 0 70px rgba(255, 150, 150, .3);
}


.tomb-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(164, 212, 255, .3);
    backdrop-filter: blur(4px);

    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 10;
}

.tomb-surface.cracked {
    opacity: .3;
}

.tomb-interior {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease;
}

.tomb-interior.revealed {
    opacity: 1;
}

.frozen-figure {
    width: 70%;
    max-width: 300px;
    height: 60%;
    background: url('https://hc-cdn.hel1.your-objectstorage.com/s/v3/7568d7092ebdd0cadd6293abe3a24b953e178669_image.png') center/contain no-repeat;
    position: relative;
    opacity: 1;
    filter: brightness(1.2) saturate(.8);
    transition: all 2s ease;
    transform: translateY(20px);
    margin-top: 30px;
    z-index: 3;
}

.frozen-figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    border-radius: 10px;
}

.frozen-figure.awakened {
    filter: brightness(1.3) saturate(1.3) hue-rotate(330deg);
    transform: translateY(0) scale(1.1);
}

.frozen-figure.fully-awakened {
    filter: brightness(1.8) saturate(2) hue-rotate(340deg);
    animation: hover 4s infinite ease-in-out;
}


.ice-crystal {
    position: fixed;
    background-color: rgba(255, 255, 255, .8);
    border-radius: 50%;
    filter: blur(1.5px);
    animation: float 12s infinite linear;
    z-index: 1;
}

body.awakened-mode .ice-crystal {
    background-color: rgba(255, 220, 220, .8);
    filter: blur(1.5px) hue-rotate(330deg);
}

.navigation {
    display: flex;
    justify-content: space-between;

    width: 90%;
    max-width: 800px;

    margin: 50px auto 30px;
    position: relative;
    z-index: 2;
}

.nav-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, .3);
    border: 1px solid var(--ice-color);
    color: var(--ice-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all .3s;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 10px rgba(173, 215, 230, .5);
}

body.dark-mode .nav-link {
    background: rgba(26, 50, 83, .4);
    color: #a4d4ff;
}

body.awakened-mode .nav-link {
    background: rgba(83, 25, 25, .4);
    color: #ffa4a4;
    border: 1px solid #ff7070;
    box-shadow: 0 0 10px rgba(230, 173, 173, .5);
}

.nav-link:hover {
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 0 15px rgba(173, 215,  232, .8);
    transform: translateY(-3px);
}

body.dark-mode .nav-link:hover {
  background: rgba(41, 71, 103, .7);
}
body.awakened-mode .nav-link:hover {
  background: rgba(103, 41, 41, .7);
  box-shadow: 0 0 15px rgba(232, 173, 173, .8);
}


.frost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(255, 255, 255, .15) 100%);
    pointer-events: none;
}

body.awakened-mode .frost-overlay {
    background: radial-gradient(circle at center, transparent 40%, rgba(255, 200, 200, .15) 100%);
}

.crack {
    position: absolute;
    background: rgba(255, 255, 255, .8);
    transform-origin: center;
    box-shadow: 0 0 8px rgba(255, 255, 255, .5);
    opacity: 0;
    transition: opacity .5s;
    z-index: 11;
}

body.awakened-mode .crack {
    background: rgba(255, 220, 220, .8);    
    box-shadow: 0 0 8px rgba(255, 200, 200, .5);
}

.controls-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.audio-controls, .mode-toggle {
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
}

.audio-controls:hover, .mode-toggle:hover {
    background: rgba(255, 255, 255, .5);
    transform: scale(1.1);
}

body.dark-mode .audio-controls, 
body.dark-mode .mode-toggle {
    background: rgba(26, 50, 83, 0.4);
}

body.dark-mode .audio-controls:hover, 
body.dark-mode .mode-toggle:hover {
    background: rgba(41, 71, 103, .5);
}

body.awakened-mode .audio-controls, 
body.awakened-mode .mode-toggle {
    background: rgba(83, 26, 26, 0.4);
}

body.awakened-mode .audio-controls:hover, 
body.awakened-mode .mode-toggle:hover {
    background: rgba(103, 41, 41, .7);
}

.interact-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--ice-dark);
    background: rgba(255, 255, 255, .4);
    padding: 10px 20px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
    z-index: 25;
}

body.dark-mode .interact-hint {
    color: #a4d4ff;
    background: rgba(26, 50, 83, .4);
}

body.awakened-mode .interact-hint {
    color: #ffa4a4;
    background: rgba(83, 26, 26, .4);
}

.tomb-container:hover .interact-hint {
    opacity: 1;
}

.frost-breath {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);;
    opacity: 0;
    pointer-events: none;
    animation: breathe 3s infinite ease-in-out;
    z-index: 12;
}

body.awakened-mode .frost-breath {
    background: radial-gradient(circle at center, rgba(255, 100, 100, .15) 0%, transparent 70%);
}

.riddle-container {
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(5px);
      padding: 20px;
      border-radius: 10px;
      border: 1px solid var(--ice-color);
      width: 80%;
      max-width: 400px;
      display: flex;
      flex-direction: column;
   align-items: center;
      gap: 15px;
      box-shadow: var(--tomb-glow);
}
    
 .riddle-question {
      font-size: 1.2rem;
      text-align: center;
      color: var(--ice-dark);
      margin-bottom: 10px;
 }
    
    .riddle-input {
      width: 100%;
      padding: 10px;
    border-radius: 5px;
      border: 1px solid var(--ice-color);
      background: rgba(255, 255, 255, 0.6);
      font-family: inherit;
    }
    
    .riddle-submit, .riddle-hint, .lore-button {
      padding: 8px 20px;
      background: rgba(164, 212, 255, 0.4);
      border: 1px solid var(--ice-color);
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s;
      font-family: inherit;
    }
    
    .riddle-submit:hover, .riddle-hint:hover, .lore-button:hover {
      background: rgba(164, 212, 255, 0.7);
     transform: translateY(-2px);
    }
    
   .riddle-feedback {
      min-height: 20px;
      text-align: center;
      font-style: italic;
   }
    
    .riddle-feedback.hint {
      color: #1a3253;
    }
    
    .riddle-feedback.correct {
      color: #4CAF50;
    }
    
    .riddle-feedback.incorrect {
      color: #f44336;
    }
    
    .completion-message {
      text-align: center;
      max-width: 80%;
    }
    
    .completion-message h2 {
      font-family: 'Cinzel', serif;
      margin-bottom: 15px;
      color: var(--ice-dark);
    }
    
  .collected-items {
     display: flex;
      justify-content: center;
      gap: 20px;
      margin: 20px 0;
  }
    
    .item {
      padding: 8px 15px;
    border-radius: 5px;
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid var(--ice-color);
      opacity: 0.5;
    }
    
    .item.found {
      background: rgba(164, 212, 255, 0.4);
      border: 1px solid #70a3ff;
      box-shadow: 0 0 10px rgba(164, 212, 255, 0.8);
      opacity: 1;
    }
    
    .story-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 100;
    }
    
    .story-content {
      background: linear-gradient(to bottom, #a4d4ff, #e6f8ff);
      padding: 30px;
   border-radius: 10px;
      max-width: 80%;
      max-height: 80%;
      overflow-y: auto;
      box-shadow: 0 0 20px rgba(164, 212, 255, 0.8);
    }
    
    .story-content p {
      margin-bottom: 20px;
      line-height: 1.6;
    }

    





/* puzzle container */
.puzzle-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(164, 212, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(164, 212, 255, 0.8);
    z-index: 20;
    width: 90%;
    max-width: 500px;
    transition: all 0.5s ease;
}

body.dark-mode .puzzle-container {
    background: rgba(26, 50, 83, 0.8);
}

body.awakened-mode .puzzle-container {
    background: rgba(83, 26, 26, 0.8);
  box-shadow: 0 0 15px rgba(255, 100, 100, 0.8);
}

.puzzle-container h3 {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
 color: var(--ice-dark);
}

body.dark-mode .puzzle-container h3 {
    color: #a4d4ff;
}

body.awakened-mode .puzzle-container h3 {
    color: #ffa4a4;
}

.puzzle-message {
    text-align: center;
    margin: 10px 0;
    min-height: 1.5rem;
    font-style: italic;
}

/* rune lock */
.rune-lock {
    margin-bottom: 20px;
}

.rune-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
 margin-bottom: 10px;
}

.rune {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #a5d5ff;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.rune:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

body.dark-mode .rune {
    background: rgba(41, 71, 103, 0.5);
    border-color: #1a3253;
}

body.dark-mode .rune:hover {
    background: rgba(41, 71, 103, 0.8);
}

body.awakened-mode .rune {
    background: rgba(103, 41, 41, 0.5);
    border-color: #531a1a;
}

body.awakened-mode .rune:hover {
    background: rgba(103, 41, 41, 0.8);
}

.rune.active {
    background: rgba(164, 212, 255, 0.8);
    box-shadow: 0 0 10px rgba(164, 212, 255, 0.8);
}

body.dark-mode .rune.active {
    background: rgba(72, 124, 178, 0.8);
}

body.awakened-mode .rune.active {
    background: rgba(178, 72, 72, 0.8);
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.8);
}

#sealMessage.hint, 
#incantationMessage.hint,
#runeMessage.correct {
    color: var(--success-green);
    text-shadow: 0 0 10px rgba(64, 255, 64, 0.6);
}

#sealMessage.hint, 
#incantationMessage.hint,
#runeMessage.incorrect {
    color: var(--warning-red);
    text-shadow: 0 0 10px rgba(255, 64, 64, 0.6);
}

#sealMessage.hint, 
#incantationMessage.hint,
#runeMessage.hint {
    color: var(--ice-dark);
    font-style: italic;
}

/* seal */
.seal-puzzle {
    display: none;
}

.seal-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.seal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://hc-cdn.hel1.your-objectstorage.com/s/v3/4a6ddf3fb126198cf38039bf592cab1771ebae45_image.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: center;
    transition: transform 0.5s ease;
}

.seal-segment {
    position: absolute;
   width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seal-segment:hover {
    background: rgba(255, 255, 255, 0.2);
}

.seal-segment.active {
    background: rgba(164, 212, 255, 0.3);
    box-shadow: 0 0 10px rgba(164, 212, 255, 0.5);
}

body.dark-mode .seal-segment.active {
    background: rgba(72, 124, 178, 0.3);
}

body.awakened-mode .seal-segment.active {
    background: rgba(178, 72, 72, 0.3);
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

.seal-segment[data-index="0"] {
    top: 0;
    left: 30%;
}

.seal-segment[data-index="1"] {
    top: 30%;
    right: 0;
}

.seal-segment[data-index="2"] {
    bottom: 0;
    left: 30%;
}

.seal-segment[data-index="3"] {
    top: 30%;
    left: 0;
}

/* Incantation */
.incantation-puzzle {
    display: none;
}

.incantation-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #a5d5ff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    color: var(--ice-dark);
    font-family: 'Raleway', sans-serif;
}

body.dark-mode .incantation-input {
    border-color: #1a3253;
    background: rgba(41, 71, 103, 0.5);
    color: #a4d4ff;
}

body.awakened-mode .incantation-input {
    border-color: #531a1a;
    background: rgba(103, 41, 41, 0.5);
    color: #ffa4a4;
}

.word-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 15px;
}

.word-hint {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.9rem;
}

.hint-button {
    display: block;
    width: auto;
    margin: 10px auto;
    padding: 8px 15px;
    background: rgba(164, 212, 255, 0.4);
    border: 1px solid var(--ice-color);
    border-radius: 5px;
    color: var(--ice-dark);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hint-button:hover {
    background: rgba(164, 212, 255, 0.7);
    transform: translateY(-2px);
}

body.dark-mode .hint-button {
    background: rgba(72, 124, 178, 0.4);
    color: #e0f0ff;
    border-color: #1a3253;
}

body.dark-mode .hint-button:hover {
    background: rgba(72, 124, 178, 0.7);
}

body.awakened-mode .hint-button {
    background: rgba(178, 72, 72, 0.4);
    color: #ffe0e0;
    border-color: #531a1a;
}

body.awakened-mode .hint-button:hover {
    background: rgba(178, 72, 72, 0.7);
}

.puzzle-message.hint {
    color: var(--ice-dark);
    font-style: italic;
}

body.dark-mode .puzzle-message.hint {
    color: #a4d4ff;
}

body.awakened-mode .puzzle-message.hint {
    color: #ffa4a4;
}

body.dark-mode .word-hint {
    background: rgba(41, 71, 103, 0.4);
}

body.awakened-mode .word-hint {
    background: rgba(103, 41, 41, 0.4);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(164, 212, 255, 0.6);
    color: var(--ice-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(164, 212, 255, 0.8);
}

body.dark-mode .submit-btn {
    background: rgba(72, 124, 178, 0.6);
    color: #e0f0ff;
}

body.dark-mode .submit-btn:hover {
    background: rgba(72, 124, 178, 0.8);
}

body.awakened-mode .submit-btn {
    background: rgba(178, 72, 72, 0.6);
    color: #ffe0e0;
}

body.awakened-mode .submit-btn:hover {
    background: rgba(178, 72, 72, 0.8);
}

/* story */
.story-message {
    position: absolute;
    bottom: 0;
    left: 0;
 width: 100%;
   padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    color: var(--ice-dark);
    font-size: 1.1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 15;
}

body.dark-mode .story-message {
    background: rgba(26, 50, 83, 0.7);
    color: #a4d4ff;
}

body.awakened-mode .story-message {
    background: rgba(83, 26, 26, 0.7);
    color: #ffa4a4;
}

.story-message.visible {
    transform: translateY(0);
}

.warning-message {
    color: var(--warning-red);
    text-shadow: var(--warning-glow);
}

.figure-note {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 5px;
    max-width: 80%;
    box-shadow: 0 0 10px rgba(173, 215, 232, 0.8);
    color: var(--ice-dark);
    font-style: italic;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 14;
}

body.dark-mode .figure-note {
    background: rgba(26, 50, 83, 0.85);
    color: #a4d4ff;
}

body.awakened-mode .figure-note {
    background: rgba(83, 26, 26, 0.85);
    color: #ffa4a4;
    box-shadow: 0 0 10px rgba(232, 173, 173, 0.8);
}

.figure-note.visible {
    transform: scale(1);
    opacity: 1;
}

/* energy effects */
.warning-mark {
    position: absolute;
    width: 60px;
  height: 60px;
    background: rgba(255, 64, 64, 0.2);
    border: 2px solid rgba(255, 64, 64, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 64, 64, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 13;
}

.warning-mark.visible {
    opacity: 1;
    animation: pulse-warning 2s infinite ease-in-out;
}

.energy-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, rgba(255, 100, 100, 0.8), rgba(255, 150, 150, 0.4));
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.8), 0 0 20px rgba(255, 150, 150, 0.4);
    z-index: 0;
    transition: height 2s ease;
}

.energy-beam.active {
    height: 300vh;
    
}

.energy-beam.beam-1 {
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
}

.energy-beam.beam-2 {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.energy-beam.beam-3 {
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
}

.energy-beam.beam-4 {
    transform: translateX(-50%) translateY(-50%) rotate(135deg);
}

.energy-beam.beam-5 {
    transform: translateX(-50%) translateY(-50%) rotate(22.5deg);
}

.energy-beam.beam-6 {
    transform: translateX(-50%) translateY(-50%) rotate(67.5deg);
}

.energy-beam.beam-7 {
    transform: translateX(-50%) translateY(-50%) rotate(112.5deg);
}

.energy-beam.beam-8 {
    transform: translateX(-50%) translateY(-50%) rotate(157.5deg);
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 11;
}

.energy-particles.active {
  opacity: 1;
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 150, 150, 0.8);
    border-radius: 50%;
   filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 100, 100, 0.8);
    animation: particle-float 3s infinite linear;
    opacity: 0;
}

/* journal stuff */
.journal-entry {
    display: none;
  position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-width: 400px;
 background: rgba(255, 245, 230, 0.9);
    border: 1px solid #d0c0a0;
    padding: 15px;
    font-family: 'Raleway', cursive;
    font-size: 0.9rem;
    color: #352515;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 30;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.journal-entry.visible {
    display: block;
}

.journal-entry h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
  text-align: center;
    color: #4a3520;
}

.journal-entry p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.journal-entry .date {
    text-align: right;
    font-style: italic;
 margin-top: 15px;
    color: #6a5540;
}

.journal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

/* glitch */
#glitchOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.1);
    mix-blend-mode: overlay;
 z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* animations */
@keyframes pulse-warning {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 64, 64, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 64, 64, 0.5); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    } 
 20% {
        opacity: 1;
 }
    80% {
        opacity: 1;
    }
  100% {
        transform: translate(var(--end-x), var(--end-y)) rotate(360deg);
        opacity: 0;
  }
}


@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    } 50% {
        transform: translateY(-20px) rotate(180deg);
    } 100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes hover {
    0%, 100% { transform: translateY(0) scale(1.1);}
    50% {transform: translateY(-20px) scale(1.15);}
}
    
    @keyframes breathe {
      0% { opacity: 0; transform: scale(.8);}
      50% { opacity: 0.3; transform: scale(1.2);}
   100% { opacity: 0; transform: scale(.8);}
    }

@media (max-width: 768px) {
    .tomb-container {
        width: 90%;
        height: 300px;
    }

    .navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .title {
        padding: 15px 10px;
    }

    .tomb-container {
        height: 250px;
    }
}