html {
  background: radial-gradient(ellipse at bottom, #2a1c37 0%, #0c090f 100%);
  font-family: 'Roboto Mono', monospace;
  src: url(sansation_light.woff);
  min-height: 100%;
}

body {
  margin: 0;
  background-color: rgba(255, 255, 255, 0);
}

body::-webkit-scrollbar{
  display: none;
}

canvas {
  display: block;
  background-color: rgba(255, 255, 255, 0);
  position:relative;
  cursor: none;
}

div {
  position:absolute;
}

/* Reset position per elementi flex nel sidenav: normal flow */
.sidenav *,
.sidenav .settings-section,
.sidenav .settings-divider,
.sidenav .difficulty-form,
.sidenav .radio-label,
.sidenav .select-group,
.sidenav .select-field {
  position: static;
  box-sizing: border-box;
}

/* ===== SCORE & RESULT ===== */

#score {
  color: #ffe600;
  font-size:x-large;
  bottom: 5%;
  left: 5%;
  display: none;
  text-shadow:
    0 0 8px rgba(255, 230, 0, 0.72),
    0 0 18px rgba(255, 176, 0, 0.42),
    0 0 28px rgba(255, 0, 255, 0.16);
}

#result {
  color: rgb(255, 0, 255);
  font-size:48px;
  top: 10%;
  width: 100%;
  text-align: center;
  position: absolute;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.4);
}

#legend {
  color: #f6d8ff;
  width: 108px;
  position: fixed;
  bottom: 2%;
  right: 1%;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(10, 6, 20, 0.76), rgba(26, 9, 38, 0.66));
  border: 1px solid rgba(255, 0, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Roboto Mono', monospace;
  z-index: 10;
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: static;
  padding: 0 1px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legend-kicker {
  color: rgba(255, 0, 255, 0.68);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.camera-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: static;
}

.camera-option {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: static;
  padding: 4px 7px 4px 5px;
  color: rgba(246, 216, 255, 0.66);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  box-sizing: border-box;
}

.camera-option b {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 9px;
  line-height: 1;
}

.camera-option.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 0, 255, 0.18), rgba(255, 0, 255, 0.07));
  border-color: rgba(255, 0, 255, 0.34);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.12);
}

.camera-option.active b {
  background: #ff00ff;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.55);
}

/* ===== MAIN MENU ===== */

#mainArea {
  width: 100%;
  min-height: 100%;
  margin: 0;
  display: inline-block;
  text-align: center;
  color: #fff;
  position: absolute;
  z-index: 1;
}

.logo{
    margin-top: 5%;
    margin-bottom: 5%;
    right: 40%;
    width: 40%;
    image-rendering: auto;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
}

.button{
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(0, 245, 212, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(255, 0, 255, 0.1), rgba(8, 9, 20, 0.86));
  border: 1px solid rgba(0, 245, 212, 0.26);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  margin: 16px auto;
  padding: 18px 28px;
  position: relative;
  font-weight: 400;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 245, 212, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 52%);
  opacity: 0.5;
  pointer-events: none;
}

.button::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 76px;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.75), rgba(255, 0, 255, 0.42), transparent);
  pointer-events: none;
}

.button:hover {
  background:
    linear-gradient(90deg, rgba(0, 245, 212, 0.16), transparent 40%),
    linear-gradient(315deg, rgba(255, 0, 255, 0.16), rgba(9, 11, 24, 0.92));
  border-color: rgba(0, 245, 212, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.16),
    0 18px 48px rgba(0, 245, 212, 0.08),
    0 0 26px rgba(255, 0, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0px);
}

.button img{
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 8px;
  opacity: 0.86;
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.3s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: inset 0 0 14px rgba(0, 245, 212, 0.06);
  box-sizing: border-box;
  filter: brightness(0) invert(1);
  z-index: 1;
}

.button:hover img {
  opacity: 1.0;
  background: rgba(0, 245, 212, 0.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 245, 212, 0.28));
}

.button h1 {
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  color: #f6fbff;
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.28);
  position: relative;
  z-index: 1;
}

/* ===== SIDENAV SETTINGS ===== */

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(10, 0, 20, 0.92) 0%, rgba(20, 5, 40, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 0, 255, 0.15);
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidenav .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  color: #ff00ff;
  text-decoration: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 0, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.1);
  padding: 0;
  cursor: pointer;
}

.sidenav .closebtn:hover {
  background: rgba(255, 0, 255, 0.15);
  border-color: rgba(255, 0, 255, 0.4);
  transform: rotate(90deg);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

/* ---- Settings Section ---- */

.settings-section {
  width: min(326px, calc(100vw - 32px));
  margin: 8px auto;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(0, 245, 212, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(255, 0, 255, 0.1), rgba(6, 8, 18, 0.72));
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.difficulty-section {
  margin-top: 66px;
}

.advanced-section {
  margin-top: 12px;
}

.settings-title {
  color: #f6fbff;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.38);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.difficulty-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #060913;
  background: #00f5d4;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.28);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.settings-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.0), rgba(0, 245, 212, 0.55), rgba(255, 0, 255, 0.3), transparent);
  margin-bottom: 12px;
  margin-top: 12px;
}

/* ---- Radio Buttons ---- */

.difficulty-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidenav .radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  color: rgba(246, 251, 255, 0.75);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.065);
  overflow: hidden;
}

.radio-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.radio-label:hover {
  border-color: rgba(0, 245, 212, 0.26);
  background: rgba(0, 245, 212, 0.045);
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 3px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0, 245, 212, 0.08);
}

.radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #00f5d4;
  transform: scale(0);
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.65);
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #00f5d4;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  transform: scale(1);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.1);
}

.radio-label:has(input[type="radio"]:checked)::after {
  opacity: 1;
}

.radio-text {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  z-index: 1;
}

.radio-text.rookie {
  color: rgba(5, 255, 161, 0.76);
}

.radio-label input[type="radio"]:checked ~ .radio-text.rookie {
  color: #05ffa1;
  text-shadow: 0 0 10px rgba(5, 255, 161, 0.42);
}

.radio-text.runner {
  color: rgba(0, 245, 212, 0.76);
}

.radio-label input[type="radio"]:checked ~ .radio-text.runner {
  color: #00f5d4;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.42);
}

.radio-text.hacker {
  color: rgba(255, 176, 0, 0.78);
}

.radio-label input[type="radio"]:checked ~ .radio-text.hacker {
  color: #ffb000;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.42);
}

.radio-text.glitch {
  color: rgba(255, 94, 0, 0.78);
}

.radio-label input[type="radio"]:checked ~ .radio-text.glitch {
  color: #ff5e00;
  text-shadow: 0 0 10px rgba(255, 94, 0, 0.42);
}

.radio-text.overdrive {
  color: rgba(255, 54, 113, 0.82);
}

.radio-label input[type="radio"]:checked ~ .radio-text.overdrive {
  color: #ff3671;
  text-shadow: 0 0 12px rgba(255, 54, 113, 0.46);
}

.radio-text.blackout {
  color: rgba(208, 111, 255, 0.82);
}

.radio-label input[type="radio"]:checked ~ .radio-text.blackout {
  color: #d06fff;
  text-shadow: 0 0 12px rgba(208, 111, 255, 0.5);
}

.radio-text.singularity {
  color: rgba(255, 255, 255, 0.84);
}

.radio-label input[type="radio"]:checked ~ .radio-text.singularity {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.42), 0 0 18px rgba(0, 245, 212, 0.26);
}

/* ---- Select Dropdowns ---- */

.select-group {
  display: flex;
  gap: 15px;
}

.select-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 251, 255, 0.68);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.select-label span {
  color: #00f5d4;
}

.difficulty-section .advanced-section {
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: -16px;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0, 245, 212, 0.055), transparent 62%),
    rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(0, 245, 212, 0.18);
  border-radius: 0 0 8px 8px;
}

.advanced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: #f6fbff;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  list-style: none;
}

.advanced-summary::-webkit-details-marker {
  display: none;
}

.advanced-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #060913;
  background: #ff00ff;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.28);
}

.advanced-section[open] .advanced-glyph {
  background: #00f5d4;
}

.advanced-section[open] .advanced-glyph::before {
  content: '-';
}

.advanced-section[open] .advanced-glyph {
  font-size: 0;
}

.advanced-section .settings-divider {
  margin-top: 0;
}

.advanced-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 14px;
}

.advanced-control input[type="range"] {
  width: 100%;
  accent-color: #00f5d4;
  cursor: pointer;
}

.advanced-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.45), rgba(255, 0, 255, 0.42));
  border-radius: 999px;
}

.advanced-control input[type="range"]::-webkit-slider-thumb {
  margin-top: -6px;
}

.audio-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.audio-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 8px 10px;
  color: rgba(246, 251, 255, 0.78);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 6px;
}

.audio-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audio-toggle-title {
  color: #f6fbff;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.audio-toggle input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 0, 255, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: rgba(246, 251, 255, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.audio-toggle input[type="checkbox"]:checked + .toggle-switch {
  background: rgba(0, 245, 212, 0.14);
  border-color: rgba(0, 245, 212, 0.58);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.12), inset 0 0 12px rgba(0, 245, 212, 0.08);
}

.audio-toggle input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(20px);
  background: #00f5d4;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.58);
}

.audio-volume-control {
  padding: 0 10px 2px;
}

.settings-signature {
  position: static;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 326px;
  margin: 10px auto 24px;
  padding: 12px 14px 0;
  color: #ffe600;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 1.1px;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 230, 0, 0.72),
    0 0 18px rgba(255, 176, 0, 0.42),
    0 0 28px rgba(255, 0, 255, 0.16);
}

.settings-signature::before {
  content: '';
  display: block;
  width: 72%;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 0, 0.9), rgba(0, 245, 212, 0.42), transparent);
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.45);
}

.pixel-heart {
  position: relative;
  width: 27px;
  height: 24px;
  margin-top: 11px;
  margin-bottom: 8px;
  background: transparent;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 4px rgba(255, 230, 0, 0.9))
    drop-shadow(0 0 8px rgba(0, 245, 212, 0.32))
    drop-shadow(0 0 10px rgba(255, 0, 255, 0.18));
}

.pixel-heart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: 3px;
  height: 3px;
  background: #ffe600;
  box-shadow:
    3px 0 #ffe600,
    15px 0 #ffe600,
    18px 0 #ffe600,
    -3px 3px #ffe600,
    0 3px #ffe600,
    3px 3px #ffe600,
    6px 3px #ffe600,
    12px 3px #ffe600,
    15px 3px #ffe600,
    18px 3px #ffe600,
    21px 3px #ffe600,
    -3px 6px #ffe600,
    0 6px #ffe600,
    3px 6px #ffe600,
    6px 6px #ffe600,
    9px 6px #ffe600,
    12px 6px #ffe600,
    15px 6px #ffe600,
    18px 6px #ffe600,
    21px 6px #ffe600,
    -3px 9px #ffe600,
    0 9px #ffe600,
    3px 9px #ffe600,
    6px 9px #ffe600,
    9px 9px #ffe600,
    12px 9px #ffe600,
    15px 9px #ffe600,
    18px 9px #ffe600,
    21px 9px #ffe600,
    0 12px #ffe600,
    3px 12px #ffe600,
    6px 12px #ffe600,
    9px 12px #ffe600,
    12px 12px #ffe600,
    15px 12px #ffe600,
    18px 12px #ffe600,
    3px 15px #ffe600,
    6px 15px #ffe600,
    9px 15px #ffe600,
    12px 15px #ffe600,
    15px 15px #ffe600,
    6px 18px #ffe600,
    9px 18px #ffe600,
    12px 18px #ffe600,
    9px 21px #ffe600;
}

.select-field select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e0d0ff;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff00ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.select-field select:hover {
  border-color: rgba(255, 0, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
}

.select-field select:focus {
  border-color: rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.1);
}

.select-field select option {
  background: #1a0a2e;
  color: #e0d0ff;
  padding: 8px;
}

/* ---- Sidebar header pseudo-element ---- */

.sidenav::before {
  content: 'SETTINGS';
  display: block;
  position: absolute;
  top: 20px;
  left: 32px;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 0, 255, 0.3);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
}

#table{  
  position: absolute;
  margin-top: 20%;
  margin-left: 80%;
}

/* ---- Fullscreen Toggle ---- */

.fullscreen-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 0, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
}

.settings-toggle {
  left: 20px;
  right: auto;
  display: none;
}

.fullscreen-toggle:hover {
  background: rgba(255, 0, 255, 0.1);
  border-color: rgba(255, 0, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
}

.fullscreen-toggle svg {
  transition: all 0.3s ease;
}

.fullscreen-toggle:hover svg {
  stroke: rgba(255, 0, 255, 1);
}

.settings-toggle:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: rgba(0, 245, 212, 0.32);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.settings-toggle:hover svg {
  stroke: rgba(0, 245, 212, 1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 12, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
}

.modal-backdrop.visible {
  display: flex;
}

.modal-backdrop *,
.restart-modal {
  position: static;
  box-sizing: border-box;
}

.restart-modal {
  width: min(420px, 100%);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0, 245, 212, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(255, 0, 255, 0.14), rgba(6, 8, 18, 0.94));
  border: 1px solid rgba(0, 245, 212, 0.28);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.1),
    0 24px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.modal-kicker {
  color: #00f5d4;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.restart-modal h2 {
  margin: 0;
  color: #f6fbff;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.22);
}

.restart-modal p {
  margin: 12px 0 0;
  color: rgba(246, 251, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-button {
  min-width: 112px;
  min-height: 36px;
  color: #f6fbff;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.modal-button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.modal-button.primary {
  color: #060913;
  background: #00f5d4;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.24);
}

.modal-button.primary:hover {
  background: #7fffee;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.32);
}
