html, body {
  width:  100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.allow-mic {
  display: none;
  background-color: transparent;
}

.allow-mic--active {
  display: block;
}

.allow-mic__arrow {
  position: absolute;
  left: 408px;
  top: 60px;
  width: 60px;
  height: 72px;
  background-image: url("../img/allow_mic_arrow.png");
  background-size: cover;
}

.allow-mic__message {
  position: absolute;
  width: 250px;
  left: 330px;
  top: 140px;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #F1FAEE;
}

.header {
  display: flex;
  align-items: center;
  height: 60px;
}

.header__audio-wave {
  position: absolute;
  top: 2px;
  left: 10px;
}

.header__score {
  display: none;
  position: absolute;
  top: 20px;
  right: 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  line-height: 48px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.real-guitar-hero {
  background: linear-gradient(135deg, #0f1729 0%, #1a2744 50%, #0f1729 100%);
}

.real-guitar-hero__header {
  position: absolute;
}

.game-settings {
  width: 100%;
}

.game-settings__bpm-input-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1D3557;
  text-decoration: none;
}

.game-settings__bpm-input {
  display: block;
  padding: 10px 12px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 28px;
  border: 2px solid #457B9D;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.game-settings__bpm-input:focus {
  outline: none;
  border-color: #9B59B6;
}

.game-settings__song-select-label,
.game-settings__string-select-label,
.game-settings__mode-select-label {
  display: block;
  margin-top: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1D3557;
  text-decoration: none;
}

.game-settings__song-select,
.game-settings__string-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 10px;
  background-color: #FFF;
  font-family: 'Poppins', sans-serif;
  color: #1D3557;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  border: 2px solid #457B9D;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.game-settings__song-select:focus,
.game-settings__string-select:focus {
  outline: none;
  border-color: #9B59B6;
}

.game-settings__mode-select {
  font-family: 'Poppins', sans-serif;
  color: #1D3557;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
}

.game-settings__mode-select-hint {
  font-size: 13px;
  line-height: 16px;
  color: #666;
}

.game-settings__mode-select-item + .game-settings__mode-select-item {
  margin-top: 10px;
}

.game-settings__level-select {
  margin-top: 16px;
  padding: 12px;
  background: rgba(155, 89, 182, 0.1);
  border-radius: 8px;
  border: 2px solid #9B59B6;
}

.game-settings__level-select-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1D3557;
  margin-bottom: 8px;
}

.game-settings__level-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 10px;
  background-color: #FFF;
  font-family: 'Poppins', sans-serif;
  color: #1D3557;
  font-size: 14px;
  border: 2px solid #9B59B6;
  border-radius: 6px;
  cursor: pointer;
}

.game-settings__level-hint {
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666;
}

.game-settings__level-hint i {
  color: #9B59B6;
}

.game-settings__level-select.hidden,
.game-settings__string-settings.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.level-display {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #9B59B6;
  background: rgba(15, 23, 41, 0.9);
  padding: 10px 25px;
  border-radius: 25px;
  border: 2px solid #9B59B6;
  z-index: 50;
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.level-display__string {
  font-size: 14px;
  color: #FFD700;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.level-complete-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 41, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.level-complete-overlay h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  color: #2ECC71;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.level-complete-overlay p {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  color: #F1FAEE;
  margin-bottom: 30px;
}

.level-complete-overlay button {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 40px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #FFF;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.level-complete-overlay button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.level-complete-buttons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.level-complete-buttons .js-restart-level {
  background: linear-gradient(135deg, #457B9D 0%, #1D3557 100%);
}

.level-complete-buttons .js-next-level {
  background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
}

.level-complete-buttons .js-finish-game {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

.waiting-indicator {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #FFD700;
  background: rgba(15, 23, 41, 0.8);
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #FFD700;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.academy-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  border-radius: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 25px;
  position: absolute;
  width: 420px;
  height: 100%;
  top: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, #f0f4f8 0%, #e8f0f8 100%);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.sidebar-menu--active {
  display: flex;
}

.sidebar-menu__body {
  flex-shrink: 0;
}

.sidebar-menu__footer {
  text-align: center;
}

.game-tips {
  background: rgba(155, 89, 182, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.tip-item {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #1D3557;
  margin: 8px 0;
}

.tip-item i {
  color: #9B59B6;
  margin-right: 8px;
  width: 16px;
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #9B59B6;
  padding-top: 10px;
  border-top: 1px solid rgba(155, 89, 182, 0.3);
}

.sidebar-menu__header {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: #1D3557;
}

.sidebar-menu__subheader {
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #457B9D;
}

.sidebar-menu__tip-box {
  margin-top: 15px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-left: 4px solid #FFD700;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #1D3557;
  line-height: 1.5;
}

.sidebar-menu__tip-box i {
  color: #FFD700;
  margin-right: 8px;
}

.sidebar-menu__tip-box strong {
  color: #9B59B6;
}

.sidebar-menu__settings {
  margin-top: 20px;
}

.game-settings__audio-section {
  margin-top: 20px;
  padding: 15px;
  background: rgba(155, 89, 182, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(155, 89, 182, 0.2);
}

.game-settings__audio-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #9B59B6;
  margin-bottom: 12px;
}

.game-settings__toggle-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #9B59B6;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1D3557;
}

.toggle-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #666;
  width: 100%;
  margin-left: 60px;
  margin-top: -5px;
}

.game-settings__button-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.game-settings__calibrate-btn,
.game-settings__tuner-btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.game-settings__calibrate-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
}

.game-settings__calibrate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.game-settings__tuner-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: #fff;
}

.game-settings__tuner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.calibration-signal {
  display: none;
  margin-top: 15px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
  border: 2px solid #27ae60;
  border-radius: 10px;
  color: #27ae60;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  animation: pulse-signal 1.5s ease-in-out infinite;
}

.calibration-signal i {
  margin-right: 8px;
}

.calibration-signal--active {
  display: block;
}

@keyframes pulse-signal {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.settings-dropdown {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.settings-dropdown__toggle {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: #fff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  border-radius: 10px;
}

.settings-dropdown__toggle:hover {
  background: linear-gradient(135deg, #3d566e 0%, #34495e 100%);
}

.settings-dropdown__toggle i:first-child {
  margin-right: 8px;
}

.settings-dropdown__arrow {
  transition: transform 0.3s;
}

.settings-dropdown--open .settings-dropdown__arrow {
  transform: rotate(180deg);
}

.settings-dropdown--open .settings-dropdown__toggle {
  border-radius: 10px 10px 0 0;
}

.settings-dropdown__content {
  display: none;
  background: rgba(52, 73, 94, 0.1);
  border: 1px solid rgba(52, 73, 94, 0.2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 15px;
}

.settings-dropdown--open .settings-dropdown__content {
  display: block;
}

.settings-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-dropdown__item:last-child {
  margin-bottom: 0;
}

.settings-dropdown__item-text {
  display: flex;
  flex-direction: column;
}

.settings-dropdown__item-text .toggle-label {
  font-size: 14px;
}

.settings-dropdown__item-text .toggle-hint {
  margin-left: 0;
  margin-top: 2px;
  width: auto;
}

.settings-dropdown__buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(52, 73, 94, 0.2);
}

.settings-dropdown__btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
}

.settings-dropdown__btn--calibrate {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.settings-dropdown__btn--calibrate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.settings-dropdown__btn--tuner {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.settings-dropdown__btn--tuner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.sidebar-menu__start-button {
  margin: 30px auto 0;
  display: block;
  width: 100%;
  padding: 18px 25px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 50%, #7D3C98 100%);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #FFF;
  letter-spacing: 3px;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.sidebar-menu__start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

.sidebar-menu__start-button:active {
  transform: translateY(0);
}

.sidebar-menu__play-warning {
  margin: 15px 0;
  padding: 12px 15px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #000000;
  text-align: center;
}

.sidebar-menu__play-warning i {
  color: #E74C3C;
  margin-right: 6px;
}

.sidebar-menu__play-warning strong {
  color: #E74C3C;
}

.sidebar-menu__play-warning em {
  font-style: italic;
  text-decoration: underline;
}

.sidebar-menu__install-chrome,
.sidebar-menu__update-chrome {
  display: none;
  margin-top: 15px;
  padding: 12px;
  background: rgba(229, 89, 52, 0.1);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #1D3557;
}

.sidebar-menu__install-chrome--active,
.sidebar-menu__update-chrome--active {
  display: block;
}

.sidebar-menu__install-chrome i,
.sidebar-menu__update-chrome i {
  color: #E55934;
}

.sidebar-menu__install-chrome a,
.sidebar-menu__update-chrome a {
  color: #9B59B6;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-menu__install-chrome a:hover,
.sidebar-menu__update-chrome a:hover {
  text-decoration: underline;
}

.audio-wave {
  display: none;
  width: 60px;
  height: 32px;
}

.audio-wave--active {
  display: block;
}

.audio-wave path {
  stroke: #9B59B6;
  stroke-width: 2;
  fill: none;
}

.no-sound {
  display: none;
  padding-top: 8px;
  color: #9B59B6;
  font-size: 30px;
}

.no-sound--active {
  display: block;
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5); }
  50% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.8); }
}

@keyframes streakFlash {
  0% { transform: scale(1); color: #A8DADC; }
  50% { transform: scale(1.2); color: #FFD700; }
  100% { transform: scale(1); color: #A8DADC; }
}

.streak-flash {
  animation: streakFlash 0.3s ease-out;
}

.sidebar-menu__calibrate-button {
  margin: 15px auto 0;
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #9B59B6;
  border-radius: 10px;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #9B59B6;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-menu__calibrate-button:hover {
  background: rgba(155, 89, 182, 0.1);
}

.sidebar-menu__calibrate-button i {
  margin-right: 8px;
}

.sidebar-menu__tuner-button {
  margin: 10px auto 0;
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #2ECC71;
  border-radius: 10px;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #2ECC71;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-menu__tuner-button:hover {
  background: rgba(46, 204, 113, 0.1);
}

.sidebar-menu__tuner-button i {
  margin-right: 8px;
}

.tuning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f1729 0%, #1a2744 50%, #0f1729 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.tuning-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.tuning-overlay__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFD700;
}

.tuning-overlay__title i {
  margin-right: 12px;
}

.tuning-overlay__close {
  padding: 10px 20px;
  background: rgba(231, 76, 60, 0.2);
  border: 2px solid #E74C3C;
  border-radius: 8px;
  color: #E74C3C;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tuning-overlay__close:hover {
  background: rgba(231, 76, 60, 0.3);
}

.tuning-overlay__close i {
  margin-left: 8px;
}

.tuning-strings {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.tuning-string {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(26, 39, 68, 0.8);
  border: 2px solid #457B9D;
  border-radius: 12px;
  transition: all 0.3s;
}

.tuning-string--active {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tuning-string--in-tune {
  border-color: #2ECC71;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.1);
}

.tuning-string--flat {
  border-color: #E74C3C;
}

.tuning-string--sharp {
  border-color: #F39C12;
}

.tuning-string__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #457B9D;
  border-radius: 50%;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin-right: 15px;
}

.tuning-string__info {
  flex: 1;
}

.tuning-string__note {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #F1FAEE;
}

.tuning-string__name {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #A8DADC;
}

.tuning-string__freq {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #457B9D;
  margin-right: 20px;
}

.tuning-string__indicator {
  width: 120px;
  height: 30px;
  position: relative;
  background: linear-gradient(to right, 
    #E74C3C 0%, 
    #E74C3C 35%, 
    #2ECC71 45%, 
    #2ECC71 55%, 
    #F39C12 65%, 
    #F39C12 100%);
  border-radius: 15px;
  overflow: visible;
}

.tuning-string__indicator-center {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 36px;
  background: #FFF;
  border-radius: 2px;
}

.tuning-string__indicator-needle {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #FFF;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: left 0.1s ease-out;
  opacity: 0;
}

.tuning-string--active .tuning-string__indicator-needle {
  opacity: 1;
}

.tuning-string__status {
  width: 80px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #A8DADC;
}

.tuning-string--in-tune .tuning-string__status {
  color: #2ECC71;
}

.tuning-string--flat .tuning-string__status {
  color: #E74C3C;
}

.tuning-string--sharp .tuning-string__status {
  color: #F39C12;
}

.tuning-detected {
  margin-top: 30px;
  text-align: center;
}

.tuning-detected__label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #A8DADC;
  margin-bottom: 10px;
}

.tuning-detected__note {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
}

.tuning-detected__freq {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #457B9D;
}

.calibration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f1729 0%, #1a2744 50%, #0f1729 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  pointer-events: auto;
  overflow-y: auto;
}

.calibration-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
  z-index: 1001;
}

.calibration-overlay__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #9B59B6;
}

.calibration-overlay__title i {
  margin-right: 12px;
}

.calibration-overlay__close {
  padding: 10px 20px;
  background: rgba(231, 76, 60, 0.2);
  border: 2px solid #E74C3C;
  border-radius: 8px;
  color: #E74C3C;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1001;
}

.calibration-overlay__close:hover {
  background: rgba(231, 76, 60, 0.3);
}

.calibration-overlay__close i {
  margin-left: 8px;
}

.calibration-overlay__info {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(15, 23, 41, 0.9);
  padding: 20px 40px;
  border-radius: 16px;
  border: 2px solid #9B59B6;
  z-index: 1001;
}

.calibration-overlay__note {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 5px;
}

.calibration-overlay__freq {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #457B9D;
  margin-bottom: 10px;
}

.calibration-overlay__status {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #A8DADC;
}

.calibration-overlay__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  z-index: 1001;
}

.calibration-overlay__tab {
  padding: 12px 24px;
  background: rgba(155, 89, 182, 0.2);
  border: 2px solid #9B59B6;
  border-radius: 10px;
  color: #A8DADC;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.calibration-overlay__tab:hover {
  background: rgba(155, 89, 182, 0.3);
}

.calibration-overlay__tab--active {
  background: #9B59B6;
  color: #FFF;
}

.calibration-overlay__tab i {
  margin-right: 8px;
}

.calibration-overlay__content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calibration-tab-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.calibration-tab-panel--active {
  display: flex;
}

#calibration-canvas {
  border: 2px solid #457B9D;
  border-radius: 12px;
  margin-bottom: 20px;
}

.calibration-overlay__instructions {
  text-align: center;
  margin-top: 15px;
  color: #A8DADC;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.calibration-overlay__instructions p {
  margin-bottom: 10px;
}

.calibration-overlay__instructions i {
  margin-right: 8px;
  color: #9B59B6;
}

.calibration-overlay__strings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.calibration-overlay__strings span {
  padding: 6px 12px;
  background: rgba(69, 123, 157, 0.3);
  border: 1px solid #457B9D;
  border-radius: 6px;
  font-size: 12px;
  color: #F1FAEE;
}

.latency-test-overlay {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 30px;
}

.latency-test-overlay__description {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #A8DADC;
  margin-bottom: 25px;
  line-height: 1.6;
}

.latency-test-overlay__description i {
  margin-right: 8px;
  color: #9B59B6;
}

.latency-test-overlay__button {
  padding: 15px 40px;
  background: linear-gradient(135deg, #9B59B6, #8E44AD);
  border: none;
  border-radius: 12px;
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.latency-test-overlay__button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

.latency-test-overlay__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.latency-test-overlay__button i {
  margin-right: 10px;
}

.latency-test-overlay__status {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #A8DADC;
  margin-bottom: 20px;
}

.latency-test-overlay__status--waiting {
  color: #FFD700;
  animation: pulse 1s infinite;
}

.latency-test-overlay__result {
  margin-bottom: 15px;
}

.latency-test-overlay__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
}

.latency-test-overlay__label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #457B9D;
}

.latency-test-overlay__rating {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  padding: 10px 20px;
  border-radius: 8px;
}

.latency-test-overlay__rating--excellent {
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.2);
}

.latency-test-overlay__rating--good {
  color: #3498DB;
  background: rgba(52, 152, 219, 0.2);
}

.latency-test-overlay__rating--fair {
  color: #F39C12;
  background: rgba(243, 156, 18, 0.2);
}

.latency-test-overlay__rating--poor {
  color: #E74C3C;
  background: rgba(231, 76, 60, 0.2);
}

.latency-compensation-overlay {
  background: rgba(26, 39, 68, 0.8);
  border: 2px solid #457B9D;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.latency-compensation-overlay__header {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.latency-compensation-overlay__header i {
  margin-right: 8px;
}

.latency-compensation-overlay__control {
  margin-bottom: 15px;
}

.latency-compensation-overlay__control label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #A8DADC;
  margin-bottom: 10px;
}

.latency-compensation-overlay__control #overlay-latency-value {
  font-weight: 700;
  color: #FFD700;
}

.latency-compensation-overlay__buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.latency-compensation-overlay__btn {
  padding: 10px 20px;
  background: rgba(155, 89, 182, 0.3);
  border: 1px solid #9B59B6;
  border-radius: 8px;
  color: #F1FAEE;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.latency-compensation-overlay__btn:hover {
  background: rgba(155, 89, 182, 0.5);
}

.latency-compensation-overlay__btn--reset {
  background: rgba(231, 76, 60, 0.2);
  border-color: #E74C3C;
}

.latency-compensation-overlay__btn--reset:hover {
  background: rgba(231, 76, 60, 0.3);
}

.latency-compensation-overlay__btn i {
  margin-right: 6px;
}

.latency-compensation-overlay__hint {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #6B7280;
  font-style: italic;
}

.latency-test-overlay__tips {
  text-align: left;
  background: rgba(69, 123, 157, 0.2);
  border-radius: 10px;
  padding: 15px 20px;
}

.latency-test-overlay__tips p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #FFD700;
  margin-bottom: 10px;
}

.latency-test-overlay__tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latency-test-overlay__tips li {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #A8DADC;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.latency-test-overlay__tips li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #9B59B6;
}

.calibration-panel {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1a2744 0%, #0f1729 100%);
  border-radius: 12px;
  border: 2px solid #9B59B6;
}

.calibration-panel--active {
  display: block;
}

.calibration-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.calibration-panel__header i {
  margin-right: 8px;
}

.calibration-panel__close {
  background: none;
  border: none;
  color: #F1FAEE;
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.calibration-panel__close:hover {
  color: #E74C3C;
}

.calibration-panel__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.calibration-tab {
  flex: 1;
  padding: 10px 15px;
  background: rgba(155, 89, 182, 0.2);
  border: 1px solid #9B59B6;
  border-radius: 8px;
  color: #A8DADC;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.calibration-tab:hover {
  background: rgba(155, 89, 182, 0.3);
}

.calibration-tab--active {
  background: #9B59B6;
  color: #FFF;
  font-weight: 600;
}

.calibration-tab i {
  margin-right: 6px;
}

.calibration-tab-content {
  display: none;
}

.calibration-tab-content--active {
  display: block;
}

.latency-test {
  text-align: center;
}

.latency-test__description {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #A8DADC;
  margin-bottom: 20px;
  line-height: 1.5;
}

.latency-test__description i {
  color: #9B59B6;
  margin-right: 5px;
}

.latency-test__button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  border: none;
  border-radius: 8px;
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.latency-test__button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
}

.latency-test__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.latency-test__button i {
  margin-right: 8px;
}

.latency-test__status {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #457B9D;
  margin: 20px 0;
  min-height: 24px;
}

.latency-test__status--waiting {
  color: #F39C12;
  animation: pulse 1s infinite;
}

.latency-test__result {
  margin: 20px 0;
}

.latency-test__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
  line-height: 1.2;
}

.latency-test__label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #457B9D;
}

.latency-test__rating {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 24px;
}

.latency-test__rating--excellent {
  color: #2ECC71;
}

.latency-test__rating--good {
  color: #27AE60;
}

.latency-test__rating--fair {
  color: #F39C12;
}

.latency-test__rating--poor {
  color: #E74C3C;
}

.latency-test__tips {
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #A8DADC;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
}

.latency-test__tips p {
  margin: 0 0 8px 0;
}

.latency-test__tips ul {
  margin: 0;
  padding-left: 20px;
}

.latency-test__tips li {
  margin-bottom: 4px;
}

.latency-compensation {
  margin: 20px 0;
  padding: 15px;
  background: rgba(155, 89, 182, 0.15);
  border: 1px solid rgba(155, 89, 182, 0.4);
  border-radius: 10px;
}

.latency-compensation__header {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 12px;
}

.latency-compensation__header i {
  margin-right: 6px;
}

.latency-compensation__control {
  margin-bottom: 12px;
}

.latency-compensation__control label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #A8DADC;
  margin-bottom: 8px;
}

.latency-compensation__control label span {
  color: #FFD700;
  font-weight: 600;
}

.latency-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #2ECC71, #F39C12, #E74C3C);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.latency-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.latency-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.latency-compensation__buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.latency-compensation__btn {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  border: none;
  border-radius: 6px;
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.latency-compensation__btn:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 10px rgba(155, 89, 182, 0.4);
}

.latency-compensation__btn--reset {
  background: linear-gradient(135deg, #457B9D 0%, #1D3557 100%);
}

.latency-compensation__btn i {
  margin-right: 5px;
}

.latency-compensation__hint {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #457B9D;
  font-style: italic;
}

.calibration-tuner {
  text-align: center;
}

.calibration-tuner__note-display {
  margin-bottom: 15px;
}

.calibration-tuner__note {
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #F1FAEE;
  line-height: 1;
  transition: color 0.2s;
}

.calibration-tuner__note--in-tune {
  color: #2ECC71;
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

.calibration-tuner__note--flat {
  color: #E74C3C;
}

.calibration-tuner__note--sharp {
  color: #F39C12;
}

.calibration-tuner__octave {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  color: #457B9D;
  vertical-align: super;
}

.calibration-tuner__meter {
  margin: 20px 0;
}

.calibration-tuner__meter-bar {
  position: relative;
  height: 20px;
  background: linear-gradient(to right, 
    #E74C3C 0%, 
    #E74C3C 35%, 
    #2ECC71 45%, 
    #2ECC71 55%, 
    #F39C12 65%, 
    #F39C12 100%);
  border-radius: 10px;
  overflow: visible;
}

.calibration-tuner__meter-center {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 30px;
  background: #FFF;
  border-radius: 2px;
}

.calibration-tuner__meter-indicator {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #FFD700;
  transition: left 0.1s ease-out;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.calibration-tuner__meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #457B9D;
}

.calibration-tuner__frequency {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #9B59B6;
  margin: 15px 0;
}

.calibration-tuner__status {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #A8DADC;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.calibration-instructions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.calibration-instructions p {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #A8DADC;
  margin: 0 0 10px 0;
}

.calibration-instructions p i {
  color: #9B59B6;
  margin-right: 5px;
}

.calibration-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #F1FAEE;
  columns: 2;
  column-gap: 15px;
}

.calibration-instructions li {
  padding: 3px 0;
}

.calibration-instructions strong {
  color: #FFD700;
}

.calibration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 15px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 41, 0.95) 0%, rgba(15, 23, 41, 0.8) 100%);
  border-bottom: 2px solid #9B59B6;
}

.calibration-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calibration-overlay__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #9B59B6;
}

.calibration-overlay__title i {
  margin-right: 10px;
}

.calibration-overlay__close {
  padding: 10px 20px;
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #FFF;
  cursor: pointer;
  transition: transform 0.2s;
}

.calibration-overlay__close:hover {
  transform: scale(1.05);
}

.calibration-overlay__close i {
  margin-left: 8px;
}

.calibration-overlay__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

.calibration-overlay__note {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
  min-width: 100px;
  text-align: center;
}

.calibration-overlay__freq {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #9B59B6;
  min-width: 120px;
}

.calibration-overlay__status {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #A8DADC;
  min-width: 150px;
}

@media (max-width: 768px) {
  .sidebar-menu {
    width: 100%;
  }
  
  .allow-mic__arrow {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .allow-mic__message {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  
  .calibration-instructions ul {
    columns: 1;
  }
  
  .calibration-overlay__info {
    flex-direction: column;
    gap: 10px;
  }
  
  .calibration-overlay__note {
    font-size: 36px;
  }
}

/* High Score Panel */
.highscore-panel {
  background: rgba(15, 23, 41, 0.9);
  border: 2px solid #9B59B6;
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
}

.highscore-panel__header {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #fff;
  padding: 12px 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.highscore-panel__header i {
  color: #FFD700;
}

.highscore-panel__content {
  padding: 12px;
  max-height: 250px;
  overflow-y: auto;
}

.highscore-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highscore-entry {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(26, 39, 68, 0.8);
  border-radius: 8px;
  border-left: 3px solid #4a5568;
  transition: transform 0.2s;
}

.highscore-entry:hover {
  transform: translateX(4px);
}

.highscore-entry.gold {
  border-left-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.highscore-entry.silver {
  border-left-color: #C0C0C0;
  background: rgba(192, 192, 192, 0.1);
}

.highscore-entry.bronze {
  border-left-color: #CD7F32;
  background: rgba(205, 127, 50, 0.1);
}

.highscore-rank {
  width: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #9B59B6;
  text-align: center;
}

.highscore-entry.gold .highscore-rank {
  color: #FFD700;
}

.highscore-entry.silver .highscore-rank {
  color: #C0C0C0;
}

.highscore-entry.bronze .highscore-rank {
  color: #CD7F32;
}

.highscore-name {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #F1FAEE;
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highscore-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
  margin: 0 12px;
}

.highscore-info {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #A8DADC;
  background: rgba(155, 89, 182, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

.highscore-empty {
  text-align: center;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #A8DADC;
  font-style: italic;
}

/* New High Score Modal */
.highscore-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.highscore-modal--active {
  display: flex;
}

.highscore-modal__content {
  background: linear-gradient(135deg, #1a2744 0%, #0f1729 100%);
  border: 3px solid #FFD700;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  animation: modalPop 0.3s ease-out;
  position: relative;
}

.highscore-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s;
}

.highscore-modal__close:hover {
  color: #fff;
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.highscore-modal__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
}

.highscore-modal__score {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  color: #fff;
  margin-bottom: 20px;
}

.highscore-modal__input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 2px solid #9B59B6;
  border-radius: 8px;
  background: rgba(26, 39, 68, 0.8);
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.highscore-modal__input:focus {
  outline: none;
  border-color: #FFD700;
}

.highscore-modal__submit {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.highscore-modal__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

/* Exit Button */
.header__exit-button {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
}

.header__exit-button:hover {
  background: rgba(231, 76, 60, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.header__exit-button--active {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pause Button */
.header__pause-button {
  display: none;
  position: absolute;
  top: 15px;
  right: 120px;
  background: rgba(155, 89, 182, 0.9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
}

.header__pause-button:hover {
  background: rgba(155, 89, 182, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.header__pause-button--active {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
  .header__pause-button,
  .header__exit-button {
    padding: 15px 25px;
    font-size: 16px;
    min-height: 50px;
    min-width: 100px;
  }
  
  .header__pause-button {
    right: 130px;
    top: 10px;
  }
  
  .header__exit-button {
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 480px) {
  .header__pause-button,
  .header__exit-button {
    padding: 12px 18px;
    font-size: 14px;
    min-height: 44px;
    min-width: 80px;
  }
  
  .header__pause-button {
    right: 100px;
  }
}

/* Buy Me a Coffee Tip Button */
.tip-button-container {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(155, 89, 182, 0.3);
}

.tip-button-container--top {
  margin-top: 15px;
  margin-bottom: 10px;
  padding-top: 0;
  border-top: none;
}

.tip-message {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #a0aec0;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.4;
}

.tip-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f7931a 0%, #ffcc00 100%);
  color: #333;
  border: none;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.tip-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.5);
}

.tip-button:active {
  transform: translateY(-1px);
}

.tip-button i {
  font-size: 20px;
}

.tip-button-price {
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
}

/* Rotate to Landscape Overlay */
.rotate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1729 0%, #1a2744 50%, #0f1729 100%);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.rotate-overlay--active {
  display: flex;
}

.rotate-overlay__content {
  text-align: center;
  padding: 40px;
}

.rotate-overlay__icon {
  font-size: 80px;
  color: #9B59B6;
  margin-bottom: 20px;
  animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

.rotate-overlay__text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 20px 0;
  max-width: 300px;
}

.rotate-overlay__arrow {
  font-size: 40px;
  color: #FFD700;
  animation: pulse 1.5s ease-in-out infinite;
}

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