@font-face {
    font-family: 'Intro';
    src: url('fonts/intro.otf') format('opentype');
}

@font-face {
    font-family: 'Halvar';
    src: url('fonts/halvar_breitschrift.ttf') format('truetype');
}

body {
    background: url('img/2.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    height: 100%;
    overflow: auto;
    font-family: 'Intro', sans-serif;
}


.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 90px;
    width: 100%;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 250px;
    position: relative;
}

.container img.skull {
    width: 130px;
    margin: 0px;
    transition: transform 0.5s cubic-bezier(0.32, 0.64, 0.45, 1);
    position: relative;
    z-index: 2;
}

#diamond {
    position: absolute;
    width: 120px;
    z-index: 1;
    display: none;
    pointer-events: none;
}

#message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
    margin-top: -480px;
}

.glass-message {
    display: inline-block;
    padding: 20px 38px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(255, 255, 255, 0.23) inset,
        0 0 0 6px rgba(16, 185, 129, 0.10) inset;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: 'Halvar', sans-serif;
    font-size: 2.1rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-align: center;
    text-shadow: 0 2px 12px #0008, 0 1px 0 #fff4;
    transition: box-shadow 0.2s, background 0.2s;
    user-select: none;
    margin: 0 auto;
}

.start-button {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    width: 130px;
    border-radius: 25px;
    background: linear-gradient(145deg, #e52d27 0%, #b31217 100%);
    box-shadow: 0 6px #9f0f0f, 0 -6px #e52d27 inset;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Intro', sans-serif;
}

.start-button:hover {
    background: linear-gradient(145deg, #b31217 0%, #e52d27 100%);
    box-shadow: 0 8px #9f0f0f, 0 -6px #e52d27 inset;
    transform: translateY(-3px);
}

.start-button:active {
    box-shadow: 0 3px #9f0f0f, 0 -3px #e52d27 inset;
    transform: translateY(2px);
}

.return-button {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 12px;
    width: 130px;
    border-radius: 25px;
    background: linear-gradient(145deg, #e52d27 0%, #b31217 100%);
    box-shadow: 0 6px #9f0f0f, 0 -6px #e52d27 inset;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Intro', sans-serif;
    margin-top: 20px;
    text-align: center;
}

.return-button:hover {
    background: linear-gradient(145deg, #b31217 0%, #e52d27 100%);
    box-shadow: 0 8px #9f0f0f, 0 -6px #e52d27 inset;
    transform: translateY(-3px);
}

.return-button:active {
    box-shadow: 0 3px #9f0f0f, 0 -3px #e52d27 inset;
    transform: translateY(2px);
}

.selected-skull {
    filter: drop-shadow(0 0 40px #aa5128) brightness(1.20);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-img {
  max-width: 180px;
  max-height: 180px;
  margin-bottom: 52px;
  display: block;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2); /* полупрозрачный круг */
  border-top: 4px solid #18a0fb;          /* основной цвет */
  box-shadow: 0 4px 24px #18a0fb33;
  animation: spin 0.85s linear infinite;   /* чуть быстрее */
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
