@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Rubik:wght@400;500&display=swap');

:root {
  --page-pad-y: clamp(10px, 4vh, 26px);
  --page-pad-x: clamp(12px, 5vw, 26px);
  --game-height-offset: 0px;
}
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: calc(var(--page-pad-y) + env(safe-area-inset-top)) var(--page-pad-x) calc(var(--page-pad-y) + env(safe-area-inset-bottom));
  font-family: 'Poppins', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.32), transparent 45%), radial-gradient(circle at 80% 10%, rgba(0, 231, 255, 0.25), transparent 40%), linear-gradient(130deg, #0c0d1b, #111329, #1c0f29);
  color: #f6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#game {
  width: min(720px, 96vw);
  padding: 16px 20px 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(24, 26, 46, 0.92), rgba(21, 19, 38, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  box-sizing: border-box;
  max-height: calc(100vh - (var(--page-pad-y) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--game-height-offset));
  min-height: clamp(560px, 75vh, 640px);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#game::-webkit-scrollbar {
  display: none;
}

#log::-webkit-scrollbar {
  display: none;
}

#game::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 20, 147, 0.55), rgba(0, 255, 240, 0.55), rgba(145, 105, 246, 0.55));
  filter: blur(24px);
  opacity: 0.45;
  z-index: -1;
}

h1 {
  text-align: center;
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.3px;
  text-shadow: 0 6px 18px rgba(255, 20, 147, 0.32);
}


.day-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.stats {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0px;
}

.stats-left {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(80px, 120px);
  column-gap: 10px;
  row-gap: 0px;
  align-items: center;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 0;
  justify-content: flex-start;
  white-space: nowrap;
}

.stat-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stat-icon-wrap.subs {
  background: linear-gradient(135deg, rgba(255, 45, 139, 0.18), rgba(255, 45, 139, 0.05));
  box-shadow: 0 6px 16px rgba(255, 45, 139, 0.22);
}

.stat-icon-wrap.money {
  background: linear-gradient(135deg, rgba(0, 255, 240, 0.2), rgba(0, 255, 240, 0.06));
  box-shadow: 0 6px 16px rgba(0, 255, 240, 0.22);
}

.stat-icon-wrap.karma {
  background: linear-gradient(135deg, rgba(172, 105, 255, 0.22), rgba(172, 105, 255, 0.06));
  box-shadow: 0 6px 16px rgba(172, 105, 255, 0.25);
}

.stat-icon {
  width: 12px;
  height: 12px;
  display: block;
  filter: brightness(0) saturate(100%) invert(100%);
  opacity: 0.95;
}

.stat-value {
  text-align: left;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #ffffff;
  font-size: 11px;
  justify-self: flex-start;
}


.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 5px 12px;
  background: linear-gradient(120deg, rgba(255, 20, 147, 0.2), rgba(0, 255, 240, 0.22));
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.day-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.day-label {
  letter-spacing: 0.35px;
  font-size: 13px;
}


.btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

button {
  background: linear-gradient(135deg, #ff2d8b, #8b4bff);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(255, 45, 139, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 32px rgba(255, 45, 139, 0.38);
}

button:hover::after {
  opacity: 0.7;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  min-height: 92px;
}

.action-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 28px rgba(0, 0, 0, 0.28);
}

.action-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.action-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.action-btn:nth-child(1) .action-icon {
  background: linear-gradient(135deg, rgba(255, 45, 139, 0.32), rgba(75, 111, 255, 0.18));
}

.action-btn:nth-child(2) .action-icon {
  background: linear-gradient(135deg, rgba(0, 255, 240, 0.32), rgba(64, 124, 255, 0.18));
}

.action-btn:nth-child(3) .action-icon {
  background: linear-gradient(135deg, rgba(172, 105, 255, 0.32), rgba(255, 145, 83, 0.18));
}

.upgrade-nav::after,
#settingsBtn::after {
  display: none;
}

.primary {
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  box-shadow: 0 12px 30px rgba(0, 219, 222, 0.34);
}

.primary:hover {
  box-shadow: 0 18px 36px rgba(0, 219, 222, 0.4);
}

.secondary {
  background: linear-gradient(135deg, rgba(40, 44, 75, 0.95), rgba(64, 72, 112, 0.95));
  box-shadow: 0 10px 20px rgba(20, 22, 40, 0.45);
}

.secondary:hover {
  box-shadow: 0 14px 24px rgba(20, 22, 40, 0.55);
}

#log-container {
  width: 100%;
  margin: 0px 0 0;
  background: linear-gradient(135deg, rgba(18, 19, 32, 0.85), rgba(18, 19, 32, 0.55));
  padding: 1px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

#log {
  width: 100%;
  background: rgba(12, 13, 24, 0.85);
  padding: 12px;
  border-radius: 15px;
  min-height: 32px;
  max-height: 48px;
  white-space: pre-line;
  word-wrap: break-word;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  box-shadow: inset 0 0 18px rgba(255, 45, 139, 0.05);

  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.72);
  justify-content: center;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(12px);
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(24px, 6vh, 64px) clamp(24px, 6vw, 80px);
  box-sizing: border-box;
}

.modal-box {
  background: linear-gradient(145deg, rgba(30, 32, 55, 0.95), rgba(26, 30, 58, 0.92));
  border-radius: 22px;
  padding: 20px;
  width: min(92vw, 360px);
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.modal-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 20, 147, 0.48), rgba(0, 255, 240, 0.36));
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
}


#videoModal .modal-box {
  width: min(92vw, 320px);
  padding: 16px 18px 18px;
  max-height: 82vh;
  overflow: hidden;
}

#upgradeBox {
  max-height: 82vh;
  overflow: hidden;
}

#videoModal .option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 14px;
  text-align: left;
}

#videoModal .video-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  background: linear-gradient(145deg, rgba(42, 46, 78, 0.92), rgba(27, 30, 59, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
  border-radius: 18px;
}

#videoModal .video-option:hover {
  background: linear-gradient(145deg, rgba(56, 61, 110, 0.95), rgba(38, 33, 78, 0.95));
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

#videoModal .option-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 24px rgba(0, 0, 0, 0.26);
}

#videoModal .option-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

#videoModal .option-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  line-height: 0.9;
}


#videoModal .option-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

#videoModal .option-summary {
  font-size: 9px;
  opacity: 0.85;
}

#videoModal .option-prob-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#videoModal .prob-segment {
  height: 100%;
  transition: width 0.3s ease;
}

#videoModal .prob-segment.success {
  background: linear-gradient(90deg, #16ff83, #66ffcc);
}

#videoModal .prob-segment.normal {
  background: rgba(255, 255, 255, 0.7);
}

#videoModal .prob-segment.fail {
  background: linear-gradient(90deg, #ff4b6b, #ff7373);
}


#videoModal .option-prob-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

.option-prob-legend .legend {
  text-align: center;
}

.option-prob-legend .legend.success {
  color: #59ffa0;
}

.option-prob-legend .legend.normal {
  color: #f5f5f5;
}

.option-prob-legend .legend.fail {
  color: #ff6b86;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.settings-actions {
  width: 100%;
}

.language-block {
  margin: 16px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

#languageSelect {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

input,
select,
textarea {
  user-select: auto;
  -webkit-user-select: auto;
  -ms-user-select: auto;
  touch-action: manipulation;
}

#languageSelect:focus {
  border-color: rgba(0, 255, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 255, 240, 0.2);
}

@media (max-width: 640px) {
  .modal.modal-top {
    align-items: flex-start;
    padding-top: max(24px, calc(env(safe-area-inset-top, 0px) + 16px));
    padding-bottom: clamp(16px, 12vh, 48px);
  }
  .modal.modal-top .modal-box {
    margin-top: 0;
  }
}

@media (max-height: 560px) {
  .modal.modal-top {
    align-items: flex-start;
    padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px));
  }
}

@media (max-width: 520px) {
  .stats-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btns {
    gap: 8px;
  }
  .exp-chip {
    font-size: 11px;
    padding: 5px 8px;
  }
  #log {
    font-size: 8px;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .btns {
    gap: 6px;
  }
  .action-btn {
    min-height: 84px;
  }
  .action-icon {
    width: 48px;
    height: 48px;
  }
  .action-icon img {
    width: 26px;
    height: 26px;
  }
  .action-label {
    font-size: 12px;
  }
  #experienceBars {
    gap: 8px;
  }
  #log {
    min-height: 32px;
    max-height: 48px;
    overflow: hidden;
  }
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
    height: 100dvh;
  }
  #game {
    max-height: calc(100dvh - (var(--page-pad-y) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

#muteBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  justify-content: center;
}

.sound-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.upgrade-carousel {
  display: flex;
  align-items: stretch;
  gap: 0px;
  margin: 14px 0 1px;
  line-height: 0.9;
}

.upgrade-window {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}

.upgrade-track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.upgrade-card {
  background: linear-gradient(150deg, rgba(36, 39, 68, 0.95), rgba(26, 24, 50, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upgrade-card.active {
  border-color: rgba(0, 255, 246, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 255, 246, 0.25), 0 16px 40px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.upgrade-card.owned {
  opacity: 0.92;
}

.upgrade-card.locked {
  opacity: 0.65;
}

.upgrade-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 45, 139, 0.32), rgba(0, 255, 240, 0.28));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 24px rgba(0, 0, 0, 0.24);
  margin-bottom: 6px;
}

.upgrade-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.upgrade-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.upgrade-tagline {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.upgrade-benefit {
  font-size: 11px;
  opacity: 0.78;
  margin: 0;
}

.upgrade-cost {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: auto;
  color: rgba(0, 255, 240, 0.85);
}

.upgrade-status {
  font-size: 10.5px;
  opacity: 0.75;
}

.upgrade-nav {
  flex: 0 0 30px;
  width: 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 56, 92, 0.95), rgba(34, 34, 64, 0.95));
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
  padding: 0;
}

.upgrade-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(74, 80, 132, 0.98), rgba(48, 46, 92, 0.98));
  transform: translateX(-1px);
}

.upgrade-nav[aria-label="Следующее улучшение"]:hover:not(:disabled) {
  transform: translateX(1px);
}

.upgrade-nav:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  box-shadow: none;
}

#upgradeDescription {
  white-space: pre-line;
  font-size: 14px;
  opacity: 0.87;
  margin-bottom: 8px;
  line-height: 1.5;
}
.action-progress {
  width: 100%;
  height: 16px;
  background: rgba(20, 22, 40, 0.8);
  border-radius: 12px;
  overflow: hidden;
  margin: 22px 0 12px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.action-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff2d8b 0%, #00f2fe 50%, #a855ff 100%);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.25);
}

.action-result {
  min-height: 28px;
  margin-bottom: 18px;
  font-size: 14px;
  opacity: 0.9;
}

.action-result,
#upgradeDescription {
  white-space: pre-line;
}

.hidden {
  display: none;
}

input[type='range'] {
  width: 100%;
  accent-color: #ff2d8b;
}

#progressBar {
  width: 100%;
  height: 15px;
  background: rgba(20, 22, 40, 0.85);
  border-radius: 10px;
  overflow: hidden;
  margin: 0px 0 0px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#progressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe 0%, #fc00ff 100%);
  transition: width 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.24);
}

#game .section-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 4px 0;
  position: relative;
}

#game .section-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.4), rgba(0, 255, 240, 0.4), transparent 90%);
}

#experienceSection {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.exp-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.55px;
  opacity: 0.95;
  text-transform: uppercase;
  margin-bottom: 2px;
}

#experienceBars {
  display: grid;
  gap: 5px;
}


.exp-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  opacity: 0.9;
}

.exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 0px 9px;
  font-size: 12spx;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 16px rgba(0, 0, 0, 0.14);
  justify-self: stretch;
  min-width: 0px;
}

.exp-icon-wrap {
  width: 30px;
  height: 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exp-icon-wrap img {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.95;
}

.exp-chip.exp-lip {
  background: linear-gradient(135deg, rgba(255, 45, 139, 0.24), rgba(255, 45, 139, 0.07));
  box-shadow: 0 6px 12px rgba(255, 45, 139, 0.22);
}

.exp-chip.exp-talk {
  background: linear-gradient(135deg, rgba(0, 255, 240, 0.22), rgba(0, 255, 240, 0.07));
  box-shadow: 0 6px 12px rgba(0, 255, 240, 0.22);
}

.exp-chip.exp-sketch {
  background: linear-gradient(135deg, rgba(172, 105, 255, 0.24), rgba(172, 105, 255, 0.07));
  box-shadow: 0 6px 12px rgba(172, 105, 255, 0.22);
}

.exp-chip.exp-stream {
  background: linear-gradient(135deg, rgba(255, 145, 83, 0.24), rgba(255, 145, 83, 0.07));
  box-shadow: 0 6px 12px rgba(255, 145, 83, 0.22);
}

.exp-chip-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-bar {
  flex: 1;
  height: 12px;
  background: rgba(18, 19, 32, 0.8);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.exp-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #ff2d8b);
  transition: width 0.35s ease;
  box-shadow: 0 4px 12px rgba(255, 45, 139, 0.28);
}

#settingsBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  font-size: 24px;
  color: #f6f7ff;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: none;
}

#settingsBtn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

#settingsBtn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(12deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
 
.modal-box h2 {
  margin-top: 0px;
  letter-spacing: 0.6px;
  font-size: 22px;
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 8px;
}

.modal-settings-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 8px;
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 242, 254, 0.35));
  mix-blend-mode: screen;
}
#videoModal .modal-box h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

#videoModal .modal-box p {
  margin: 6px 0 8px;
  font-size: 12.5px;
}

#videoModal .option-title {
  font-size: 11px;
}

#videoModal .option-summary {
  font-size: 9.5px;
}

#videoModal .option-prob-bar {
  height: 6px;
}

#videoModal .option-prob-legend {
  gap: 4px;
  font-size: 9.5px;
}
