body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    background-size: 200% 200%;
    animation: bgmove 12s ease-in-out infinite;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s, filter 0.4s;
}
@keyframes bgmove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.game-container {
    background: rgba(30,32,36,0.92);
    border-radius: 2.2em;
    box-shadow: 0 8px 40px 0 #0008, 0 1.5px 8px #0002;
    max-width: 420px;
    margin: 60px auto 0 auto;
    padding: 38px 32px 34px 32px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(2px);
    transition: background 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1), backdrop-filter 0.28s cubic-bezier(0.4,0,0.2,1), filter 0.28s cubic-bezier(0.4,0,0.2,1), border 0.28s cubic-bezier(0.4,0,0.2,1);
    background-size: 200% 200%;
    border: 2.5px solid transparent;
}
.game-container:hover {
    box-shadow: 0 8px 44px 0 #23252644, 0 1.5px 8px #41434522;
    background: rgba(34,36,40,0.97);
    border: 2.5px solid rgba(42,45,51,0.18);
    background-size: 200% 200%;
    filter: brightness(1.012) saturate(1.01);
    transition: background 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1), filter 0.28s cubic-bezier(0.4,0,0.2,1), border 0.28s cubic-bezier(0.4,0,0.2,1);
}
h1 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 2.1em;
    margin-bottom: 18px;
    letter-spacing: 1.2px;
    font-weight: 700;
}
.shiny-blue-title {
    background: linear-gradient(90deg, #33eaff 0%, #00c6ff 50%, #0072ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: clamp(1.3em, 5vw, 2.6em);
}
.big-play-btn {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
    font-size: 1.1em;
    font-family: inherit;
    border: none;
    border-radius: 1.2em;
    padding: 14px 30px;
    margin-top: 18px;
    box-shadow: 0 2px 12px #0072ff33;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.big-play-btn:hover {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    transform: scale(1.04);
    box-shadow: 0 4px 24px #00c6ff55;
}
.big-play-btn#play-again-btn, #play-again-btn {
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 1.18em;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
    border: none;
    border-radius: 1.2em;
    box-shadow: 0 2px 12px #0072ff33;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#play-again-btn:hover {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    transform: scale(1.04);
    box-shadow: 0 4px 24px #00c6ff55;
}
.score {
  font-size: 1.1em;
  color: #00c6ff;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#high-score {
    color: #00c6ff;
    font-weight: 700;
    margin-left: 6px;
    text-shadow: 0 1px 6px #e5393533;
}
.main-dog-img-container {
    position: relative;
    display: inline-block;
    border-radius: 1.2em;
    max-width: 320px;
    max-height: 320px;
    margin: 0 auto 18px auto;
    background: rgba(30,32,36,0.92);
    box-shadow: 0 2px 18px #0072ff33, 0 1.5px 8px #0002;
    overflow: hidden;
}
.main-dog-img-container .main-dog-img {
    display: block;
    border-radius: 1.2em;
    max-width: 320px;
    max-height: 320px;
    box-shadow: 0 2px 18px #0072ff33, 0 1.5px 8px #0002;
    border: 3px solid #232526;
    position: relative;
    z-index: 1;
}
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 18px;
}
.option-btn {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    border: 1.5px solid #333;
    border-radius: 1em;
    padding: 13px 26px;
    font-size: 1.08em;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px #23252633;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
}
.option-btn:hover, .option-btn.selected {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
    border: 1.5px solid #00c6ff;
    transform: scale(1.06);
}
.option-btn.selected, .option-btn:disabled.selected {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #888;
    border: 1.5px solid #444;
    opacity: 0.5;
    text-decoration: line-through;
    transform: none;
    cursor: not-allowed;
}
.option-btn.incorrect {
    background: linear-gradient(90deg, #e53935 0%, #b71c1c 100%) !important;
    color: #fff !important;
    border: 1.5px solid #e53935 !important;
    opacity: 1 !important;
    text-decoration: line-through;
    cursor: not-allowed;
    box-shadow: 0 2px 12px #e5393533;
}
.option-btn.correct {
    background: linear-gradient(90deg, #08aa3e 50%, #12d654 100%) !important;
    color: #fff !important;
    border: none !important;
    opacity: 1 !important;
    text-decoration: none;
    cursor: not-allowed;
    box-shadow: 0 2px 12px #43e97b33;
}
.result {
    font-size: 1.13em;
    color: #00c6ff;
    font-weight: 600;
    min-height: 1.5em;
    margin-top: 10px;
    letter-spacing: 0.2px;
}
.spinner {
  border: 4px solid #222;
  border-top: 4px solid #00c6ff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
  box-shadow: 0 2px 12px #00c6ff33;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.lifeline-btn {
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  color: #00c6ff;
  border: 1.5px solid #333;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: clamp(0.85em, 3.2vw, 1.05em);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px #23252633;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0 4px;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
  position: relative;
  overflow: visible;
}
.lifeline-badge {
  position: absolute;
  top: -0.55em;
  right: -0.45em;
  background: #e53935;
  color: #fff;
  font-size: clamp(0.82em, 2.8vw, 1em);
  font-weight: 700;
  border-radius: 50%;
  width: clamp(1.1em, 3vw, 1.7em);
  height: clamp(1.1em, 3vw, 1.7em);
  aspect-ratio: 1/1;
  min-width: 1.1em;
  min-height: 1.1em;
  max-width: 1.7em;
  max-height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px #e5393533;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
.lifeline-btn:disabled {
  background: #232526;
  color: #555;
  border: 1.5px solid #222;
  cursor: not-allowed;
  opacity: 0.6;
}
.lifeline-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: 1.5px solid #00c6ff;
  transform: scale(1.06);
}
#lifelines {
    font-size: clamp(0.85em, 3.2vw, 1.05em);
  display: flex;
  justify-content: center;
  gap: 18px;
}
.double-dip-active {
  font-size: clamp(0.85em, 3vw, 0.98em);
  font-weight: 800;
  color: #fff;
  background: #e53935;
  border-radius: 999px;
  padding: 6px 18px 6px 18px;
  margin-bottom: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px #e5393533;
  display: inline-block;
  text-align: center;
  border: none;
}
.lifeline-btn.lifeline-5050 {
  font-size: clamp(0.85em, 3vw, 1.05em);
}

/* Subtitle hover effect */
.subtitle {
    font-size: 1.18em;
    color: #b2eaff;
    margin-bottom: 22px;
    letter-spacing: 0.7px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
    display: inline-block;
    background: linear-gradient(90deg, #00c6ff 0%, #33eaff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: filter 0.7s, text-shadow 0.7s, background-position 1.2s;
    background-size: 200% 200%;
    background-position: 0% 50%;
}
.subtitle:hover {
    filter: brightness(1.003) drop-shadow(0 0 1px #00c6ff11);
    text-shadow: 0 1px 1.5px #00c6ff0d, 0 1px 1px #fff0;
    background-position: 100% 50%;
}

.score-sidebar {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    height: 480px; /* Fixed height, adjust as needed */
    min-height: 420px;
    max-height: 520px;
    width: 54px;
    background: rgba(30,32,36,0.97);
    border-radius: 1.2em;
    box-shadow: 0 2px 12px #0072ff22;
    padding: 12px 0 12px 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}
.score-step {
    width: 36px;
    text-align: center;
    padding: 2px 0;
    font-size: 1.08em;
    color: #b2eaff;
    border-radius: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: none;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.score-step.active, .score-step.achieved {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
    box-shadow: 0 2px 8px #00c6ff33;
    border: 2px solid #00c6ff;
}
.score-step.achieved:not(.active) {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #00c6ff;
    border: 2px solid #00c6ff55;
    box-shadow: none;
}
.game-credits {
    font-size: 0.78em;
    color: #888;
    text-align: center;
    margin: 80px 0 18px 0;
    letter-spacing: 0.1px;
    opacity: 0.82;
    user-select: none;
}
.game-credits a {
    color: #b2eaff;
    text-decoration: underline;
    opacity: 0.92;
}
#joseppy-home-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(30,32,36,0.92);
  border: 1.5px solid #111;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  padding: 0;
  opacity: 0.92;
  backdrop-filter: blur(2px);
  transition: box-shadow 0.22s, transform 0.22s, border 0.22s;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#joseppy-home-btn:hover, #joseppy-home-btn:focus {
  box-shadow: 0 4px 16px rgba(25,118,210,0.18);
  transform: scale(1.07);
  border: 1.5px solid #111;
}
#joseppy-home-btn img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}
#lifeline-info-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,32,36,0.82);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#lifeline-info-popup.show {
  opacity: 1;
  pointer-events: auto;
}
.lifeline-info-content {
  background: rgba(34,36,40,0.98);
  border-radius: 1.2em;
  box-shadow: 0 8px 40px 0 #0008, 0 1.5px 8px #0002;
  padding: 36px 28px 28px 28px;
  max-width: 95vw;
  width: 340px;
  color: #b2eaff;
  text-align: left;
  position: relative;
  animation: popupIn 0.32s cubic-bezier(0.4,0,0.2,1);
}
.lifeline-info-content h2 {
  color: #00c6ff;
  font-size: 1.35em;
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}
.lifeline-info-content ul {
  padding-left: 1.1em;
  margin-bottom: 0;
}
.lifeline-info-content li {
  margin-bottom: 12px;
  font-size: 1.08em;
  line-height: 1.5;
}
#close-lifeline-info {
  display: block;
  margin: 0 auto;
  margin-top: 18px;
}
.lifeline-info-btn {
  background: rgba(30,32,36,0.92);
  border: none !important;
  color: #00c6ff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.92em;
  margin-left: 6px;
  margin-top: 4px;
  transition: box-shadow 0.22s, transform 0.22s, border 0.22s;
  outline: none;
  position: static;
  box-shadow: none !important;
}
.lifeline-info-btn:hover, .lifeline-info-btn:focus {
  box-shadow: 0 4px 16px #00c6ff33;
  transform: scale(1.07);
  border: none !important;
}
.lifeline-info-btn span {
  font-size: 1em;
}
@keyframes popupIn {
  0% { transform: scale(0.92) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
    .game-container { max-width: 98vw; padding: 10px 2vw 20px 2vw; }
    .main-dog-img-container { max-width: 90vw; }
    .option-btn { padding: 10px 8vw; font-size: 1em; }
    .score-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        border-radius: 1em;
        margin-bottom: 12px;
        box-shadow: none;
        padding: 0 0 8px 0;
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
    }
    .score-list {
        flex-direction: row;
        gap: 4px;
        width: 100%;
        justify-content: center;
        height: auto !important;
        align-items: center;
    }
    .score-step {
        font-size: 1em;
        padding: 6px 0;
        min-width: 24px;
        margin: 0 2px;
    }
    .lifelines {
    gap: 8px;
    padding: 0 6vw;
    justify-content: center;
  }
  .lifeline-btn {
    font-size: clamp(0.85em, 3.2vw, 1.05em);
    padding: 7px 18px;
    min-width: 0;
    border-radius: 2em;
  }
  .lifeline-badge {
    top: -4px;
    right: -4px;
    font-size: 1em;
    aspect-ratio: 1/1;
    min-width: 1.3em;
    min-height: 1.3em;
    max-width: 1.9em;
    max-height: 1.9em;
    padding: 0;
  }
    h1.shiny-blue-title {
        font-size: 1.5em;
    }
  .lifeline-info-content {
    width: 98vw;
    padding: 18px 6vw 18px 6vw;
    font-size: 1em;
  }
  .lifeline-info-content h2 {
    font-size: 1.1em;
  }
}

