@charset "UTF-8";
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Open Sans", sans-serif;
  background-image: url("../../assets/img/backgound.png");
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

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

.font-red {
  color: #dc3545 !important;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/OpenSans-VariableFont_wdth.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Mohave-Medium-Italic";
  src:
    url("../assets/fonts/Mohave/Mohave-Medium-Italic.ttf.woff") format("woff"),
    url("../assets/fonts/Mohave/Mohave-Medium-Italic.ttf.svg#Mohave-Medium-Italic") format("svg"),
    url("../assets/fonts/Mohave/Mohave-Medium-Italic.ttf.eot"),
    url("../assets/fonts/Mohave/Mohave-Medium-Italic.ttf.eot?#iefix") format("embedded-opentype");
  font-weight: normal;
  font-style: normal;
}

a {
  color: #6c757d;
  text-decoration: none;
  transition: 200ms;
}

a:hover {
  color: #343a40;
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
  flex: 1 0 auto;
}

@media (min-width: 900px) {
  section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    padding: 2rem;
  }

  .operatorBox {
    grid-row: 1 / 3;
    justify-self: center;
  }

  .operator-weapons {
    grid-column: 2;
    grid-row: 1;
  }

  .sectiopnplus {
    grid-column: 2;
    grid-row: 2;
  }
}

.operatorBox {
  background: rgba(0, 0, 0, 0.5019607843);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Image Loading Styles */
.img-wrapper {
  position: relative;
  overflow: hidden;
}

.img-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1a1f26 25%, #2d333b 50%, #1a1f26 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.25rem;
  z-index: 1;
}

.img-skeleton.small {
  min-height: 60px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.img-wrapper img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.img-wrapper img.loaded {
  opacity: 1;
}

.img-wrapper img.loaded + .img-skeleton,
.img-wrapper .img-skeleton.hidden {
  display: none;
}

.img-wrapper img.error {
  opacity: 0.5;
  filter: grayscale(100%);
}

.operator-img-wrapper {
  width: 100%;
  max-width: 250px;
  margin: 0 auto 1rem;
  min-height: 280px;
}

.operator-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0;
    border: 0.3rem solid #161b22;
}

.operator-badge {
    width: 25%;
    transform: translate(0, -70%);
    margin: -0.5rem auto;
    z-index: 1;
    display: block;
}

section .operatorBox .operator-bottom {
    display: block;
    width: 100%;
    margin: 1rem auto 2rem auto;
    text-align: center;
}

.operator-name {
  font-family: "Mohave-Medium-Italic";
  font-size: 2.6rem;
  margin: 2rem 0 1rem;
  word-break: break-word;
}

.btn-container {
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .btn-container {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .btn-container .btn:not(#random-challenge-button) {
    flex: 1;
    max-width: 150px;
  }

  .btn-container #random-challenge-button {
    flex-basis: 100%;
    margin-top: 0.5rem;
  }
}

.btn {
  position: relative;
  font-family: "Mohave-Medium-Italic";
  font-size: 1.6rem;
  text-align: center;
  padding: 0.6rem 1.2rem;
  border: none;
  outline: none;
  transition: all 200ms ease;
  border-radius: 0.25rem;
  cursor: pointer;
  border-top: 0.4rem solid;
  border-bottom: 0.4rem solid;
  margin: 0.4rem 0;
}

.btn span {
  transition: transform 200ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 255, 230, 0.8), rgba(0, 255, 230, 0) 65%);
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: inherit;
}

.btn:hover {
  border-bottom-color: #00ffe6 !important;
  transform: translateY(-2px);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover span {
  transform: scale(1.1);
}

.btn:active {
  transform: translateY(0);
}

#attacker {
  background: #2499ff;
  border-color: #2499ff;
  color: white;
  width: 100%;
}

#defender {
  background: #ff7424;
  border-color: #ff7424;
  color: white;
  width: 100%;
}

#random-challenge-button {
  background: #0d1117;
  border-color: #0d1117;
  color: white;
  width: 100%;
}

.operator-weapons {
  background: rgba(0, 0, 0, 0.5019607843);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.weapon-section {
  margin-bottom: 2.5rem;
}

.weapon-section:last-child {
  margin-bottom: 0;
}

section .operator-weapons .primaryweapon h2,
section .operator-weapons .secondweapon h2 {
  font-family: "Mohave-Medium-Italic";
  font-size: 1.8rem;
  margin: 1rem 0;
  text-align: center;
}

section .operator-weapons .primaryweapon span,
section .operator-weapons .secondweapon span {
  font-family: "Mohave-Medium-Italic";
  font-size: 1.6rem;
  margin: 0.6rem 0;
}

.weapon-info {
    display: grid;
    grid-template-columns: 35% auto auto auto;
    gap: 0.4rem;
}

.weapon-info div {
    display: grid;
}

@media (min-width: 768px) {
  .weapon-info {
    grid-template-columns: 35% auto auto auto;
    gap: 0.4rem;
  }

  .weapon-info div {
    display: grid;
  }
}

.weapon {
  display: grid;
  text-align: center;
  justify-items: center;
  align-items: center;
}

.weapon-name,
.secondweapon-name {
  font-family: "Mohave-Medium-Italic";
  font-size: 1.6rem;
  margin: 0.6rem 0;
  word-break: break-word;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  justify-self: center;
}

.weapon-img-wrapper {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weapon-img,
.secondweapon-img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: brightness(1.1);
  justify-self: center;
}

.attachment,
.grip,
.scope {
  display: grid;
  text-align: center;
}

.attachment-description,
.grip-description,
.scope-description {
  font-size: 1.6rem;
  font-weight: bold;
  display: block;
  margin: 0.6rem 0;
  color: #fff;
  font-family: "Mohave-Medium-Italic";
  line-height: 1.2;
}

.weapon-attachment-name,
.weapon-grip-name,
.weapon-scope-name,
.secondweapon-attachment-name,
.secondweapon-grip-name,
.secondweapon-scope-name {
  font-size: 1.1rem;
  word-break: break-word;
  color: #ccc;
  line-height: 1.3;
}

.sectiopnplus {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .sectiopnplus {
    grid-template-columns: 1fr 1fr;
  }
}

.operator-gadget,
.challenges {
  background: rgba(0, 0, 0, 0.5019607843);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.operator-gadget h2,
.challenges h2 {
  font-family: "Mohave-Medium-Italic";
  font-size: 1.8rem;
  margin: 0;
}

.gadget-name {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1rem;
  word-break: break-word;
}

.gadget-img-wrapper {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gadget-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.random-challenge {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
}

.random-challenge span {
  font-weight: bold;
}

.random-challenge p {
  margin: 0.6rem 0;
}

.challenge-de,
.challenge-en {
  text-align: left;
  padding: 0.5rem;
  margin: 0 0.8rem;
}

.challenge-de::before {
  content: "🇩🇪";
}

.challenge-en::before {
  content: "🇬🇧";
}

.challenge-title_de,
.challenge-title_en {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.challenge-description_de,
.challenge-description_en {
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
  word-break: break-word;
}

#changelogbox,
#privacybox,
#impressumbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5019607843);
  z-index: 1000;
}

.modalbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border-radius: 0.5rem;
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
  width: 90%;
  max-width: 800px;
}

#changelogbox .modalbox,
#impressumbox .modalbox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  #changelogbox .modalbox,
  #impressumbox .modalbox {
    grid-template-columns: 1fr 1fr;
  }
}

.close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  font-size: 1.4rem;
  color: #fff;
  cursor: pointer;
  transition: color 200ms;
  z-index: 1001;
}

.close:hover {
  color: #6c757d;
}

.log-tab h2 {
  text-align: center;
  font-size: 1.6rem;
  font-family: "Mohave-Medium-Italic";
  margin-bottom: 1rem;
}

.log {
  margin: 0.5rem 0.4rem;
  padding: 0.8rem;
  border-radius: 0.3125rem;
  background: #0d1117;
  line-height: 1.4;
}

.log p {
  margin: 0.2rem 0;
}

.log code {
  display: block;
  text-align: right;
  margin-top: 1rem;
}

#languageToggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.language-btn {
  background: #243154;
  border-color: #243154;
  color: white;
  flex: 1;
  min-width: 120px;
}

.language-btn:hover {
  background: #2d3d66;
  border-color: #2d3d66;
}

.language-btn:active {
  background: #1e2945;
  border-color: #1e2945;
  transform: scale(0.98);
}

#privacy {
  color: #c9d1d9;
  line-height: 1.6;
  font-size: 0.95rem;
}

#privacy h4 {
  color: #58a6ff;
  font-family: "Mohave-Medium-Italic";
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #30363d;
}

#privacy h4:first-child {
  margin-top: 0;
}

#privacy p {
  margin: 0.8rem 0;
  text-align: justify;
  color: #8b949e;
}

#privacy ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

#privacy ul li {
  margin: 0.5rem 0;
  color: #8b949e;
}

#privacy ul[style*="list-style: none"] {
  padding-left: 0;
}

#privacy ul[style*="list-style: none"] li {
  padding-left: 0;
}

#privacy a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 200ms;
}

#privacy a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

#privacy strong {
  color: #c9d1d9;
  font-weight: 600;
}

#privacy br {
  line-height: 1.8;
}

#privacybox .modalbox {
  max-width: 900px;
  padding: 1.5rem;
}

#privacy {
  overflow-y: auto;
  max-height: calc(80vh - 120px);
  scroll-behavior: smooth;
}

#privacy::-webkit-scrollbar {
  width: 8px;
}

#privacy::-webkit-scrollbar-track {
  background: rgba(13, 17, 23, 0.5);
  border-radius: 4px;
}

#privacy::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

#privacy::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

#privacy > div {
  padding: 1.5rem;
  background: rgba(13, 17, 23, 0.5);
  border-radius: 0.375rem;
  animation: fadeIn 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5019607843);
  z-index: 1000;
}

.modal-content {
  background-color: #040404;
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

footer {
  width: 100%;
  display: grid;
  grid-template-columns: 30% auto 30%;
  align-items: center;
  bottom: 0;
  left: 0;
  background: #0d1117;
  color: #6c757d;
  padding: 0.4rem 0;
  flex-shrink: 0;
}

footer span {
  font-size: 0.7rem;
  text-align: center;
}

footer div {
  font-size: 0.8rem;
  padding: 0 0.8rem;
}

footer div.left {
  text-align: center;
}

footer div.left a {
  padding: 0 0.2rem;
}

footer div.right {
  text-align: center;
}

footer .pn {
  color: #0d6efd;
}

@media (min-width: 900px) {
  footer {
    grid-template-columns: 30% auto 30%;
    text-align: left;
    align-items: center;
  }

  footer div.left {
    text-align: left;
    justify-self: start;
  }

  footer span {
    text-align: center;
  }

  footer div.right {
    text-align: right;
    justify-self: end;
  }
}

footer a {
  margin: 0 0.25rem;
  white-space: nowrap;
}

footer .pn {
  color: #0d6efd;
}

@media (max-width: 600px) {
  footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 0.6rem 0.2rem;
    row-gap: 0.2rem;
  }
  footer div,
  footer span {
    font-size: 0.9rem;
    padding: 0.2rem 0;
  }
  footer div.left,
  footer div.right {
    text-align: center;
    justify-self: center;
    padding: 0.2rem 0;
  }
  footer a {
    margin: 0 0.3rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  section {
    padding: 1rem 0.5rem;
  }

  .operatorBox {
    padding: 1rem;
  }

  .operator-weapons,
  .operator-gadget,
  .challenges {
    padding: 1rem;
  }

  .weapon-info {
    gap: 0.5rem;
  }

  .modalbox {
    padding: 1rem;
    width: 95%;
  }
}

@media (max-width: 320px) {
  .btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .operator-name {
    font-size: 1.5rem;
  }

  .weapon-section h2 {
    font-size: 1.3rem;
  }
}

.privacy-container,
.impressum-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(13, 17, 23, 0.8);
  border-radius: 0.5rem;
  flex: 1;
}

.privacy-header,
.impressum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #30363d;
  flex-wrap: wrap;
  gap: 1rem;
}

.privacy-header h1,
.impressum-header h1 {
  font-family: "Mohave-Medium-Italic", sans-serif;
  color: #58a6ff;
  margin: 0;
  font-size: 2rem;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher button {
  padding: 0.5rem 1rem;
  background: #243154;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 200ms;
  font-size: 0.9rem;
}

.language-switcher button:hover {
  background: #2d3d66;
}

.language-switcher button.active {
  background: #1e2945;
}

.back-button {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #243154;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background 200ms;
}

.back-button:hover {
  background: #2d3d66;
}

.privacy-content,
.impressum-content {
  display: none;
}

.privacy-content.active,
.impressum-content.active {
  display: block;
}

.privacy-content h4,
.impressum-content h4 {
  color: #58a6ff;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #30363d;
}

.privacy-content h4:first-child,
.impressum-content h4:first-child {
  margin-top: 0;
}

.privacy-content p,
.impressum-content p {
  margin: 0.8rem 0;
  color: #8b949e;
}

.privacy-content p {
  text-align: justify;
}

.privacy-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.privacy-content ul li {
  margin: 0.5rem 0;
  color: #8b949e;
}

.privacy-content ul[style*="list-style: none"] {
  padding-left: 0;
}

.privacy-content a,
.impressum-content a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 200ms;
}

.privacy-content a:hover,
.impressum-content a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.privacy-content strong,
.impressum-content strong {
  color: #c9d1d9;
  font-weight: 600;
}

.contact-section {
  background: rgba(13, 17, 23, 0.5);
  padding: 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
}

.disclaimer-section {
  background: rgba(13, 17, 23, 0.3);
  padding: 1.5rem;
  border-radius: 0.375rem;
}

@media (max-width: 768px) {
  .privacy-container,
  .impressum-container {
    margin: 1rem;
    padding: 1rem;
  }

  .privacy-header h1,
  .impressum-header h1 {
    font-size: 1.5rem;
  }
}

.wheel-page {
  background: #0d1117;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.wheel-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 12, 15, 0.95) 0%, transparent 100%);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  color: #fff;
  text-decoration: none;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-back:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
}

.nav-back i {
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #a0aec0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
}

.wheel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  gap: 1.5rem;
}

.role-selector {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.role-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: none;
  border-radius: 1.5rem;
  color: #8b9ab0;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.role-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #00ffe6 0%, #00ccb8 100%);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 255, 230, 0.3);
}

.role-btn[data-role="attackers"].active {
  background: linear-gradient(135deg, #2499ff 0%, #1a7acc 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(36, 153, 255, 0.4);
}

.role-btn[data-role="defenders"].active {
  background: linear-gradient(135deg, #ff7424 0%, #cc5c1d 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 116, 36, 0.4);
}

.role-btn i {
  font-size: 1rem;
}

.wheel-wrapper {
  position: relative;
  width: min(80vw, 450px);
  height: min(80vw, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
}


@keyframes pulse-glow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.spin-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00ffe6 0%, #00ccb8 100%);
  color: #000;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 5px 25px rgba(0, 255, 230, 0.4),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-button:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow:
    0 8px 35px rgba(0, 255, 230, 0.5),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.spin-button:active:not(:disabled) {
  transform: scale(0.95);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spin-button.spinning {
  animation: spin-pulse 0.5s ease infinite;
}

@keyframes spin-pulse {
  0%, 100% { box-shadow: 0 5px 25px rgba(0, 255, 230, 0.4); }
  50% { box-shadow: 0 5px 40px rgba(0, 255, 230, 0.7); }
}

.wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #fff;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

.result-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 2rem;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 200px;
  text-align: center;
}

.result-display.hidden {
  display: none;
}

.result-display.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.result-label {
  font-size: 0.75rem;
  color: #8b9ab0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-name {
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #00ffe6;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: rgba(13, 17, 23, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 200;
  transition: right 0.3s ease;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.settings-panel.open {
  right: 0;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
  margin: 0;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-header h2 i {
  color: #00ffe6;
}

.settings-close {
  background: none;
  border: none;
  color: #8b9ab0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
}

.settings-close:hover {
  color: #fff;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c9d1d9;
  font-size: 0.95rem;
  cursor: pointer;
}

.setting-group label span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-group label i {
  color: #8b9ab0;
  width: 20px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
  background: #00ffe6;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #fff;
}

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.setting-label span {
  color: #fff;
  font-weight: 500;
}

.setting-label small {
  color: #8b9ab0;
  font-size: 0.8rem;
}

.setting-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-group:last-child {
  border-bottom: none;
}

.setting-group.range-setting {
  flex-direction: column;
  align-items: flex-start;
}

.color-picker {
  width: 50px;
  height: 35px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.color-picker:hover {
  border-color: #00ffe6;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-picker::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c9d1d9;
  font-size: 0.95rem;
}

.range-header span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-header i {
  color: #8b9ab0;
}

.range-value {
  color: #00ffe6;
  font-weight: 600;
  font-family: "Mohave-Medium-Italic", sans-serif;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #00ffe6;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner::before {
  content: "";
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 230, 0.2);
  border-top-color: #00ffe6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner span {
  color: #8b9ab0;
  font-size: 0.9rem;
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(30, 35, 45, 0.95);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  font-size: 1.1rem;
}

.toast-success i { color: #00ff88; }
.toast-error i { color: #ff4444; }
.toast-warning i { color: #ffaa00; }
.toast-info i { color: #00ffe6; }

body.streamer-mode,
body.streamer-mode html {
  background: var(--streamer-bg, #ffffff) !important;
  background-image: none !important;
}

body.streamer-mode .wheel-page {
  background: var(--streamer-bg, #ffffff) !important;
}

body.streamer-mode .wheel-nav,
body.streamer-mode .loading-overlay {
  display: none !important;
}

body.streamer-mode .role-selector {
  opacity: 0;
  background: rgba(13, 17, 23, 0.9);
  transition: opacity 1.5s ease;
  pointer-events: auto;
}

body.streamer-mode .role-selector:hover {
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.streamer-mode .toast-container {
  bottom: auto;
  top: 60px;
}

body.streamer-mode .result-display {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

body.streamer-mode .settings-panel {
  background: rgba(13, 17, 23, 0.98);
}

body.streamer-mode .wheel-main {
  padding: 0;
}

.exit-streamer-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  cursor: pointer;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.exit-streamer-btn:hover {
  background: rgba(255, 68, 68, 0.9);
  color: #fff;
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
  transform: scale(1.1);
}

body.streamer-mode .exit-streamer-btn {
  display: flex;
}

@media (max-width: 600px) {
  .wheel-nav {
    padding: 0.8rem 1rem;
  }

  .nav-back span {
    display: none;
  }

  .nav-back {
    padding: 0.5rem 0.8rem;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .wheel-main {
    padding: 4rem 0.5rem 1rem;
    gap: 1rem;
  }

  .role-selector {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.3rem;
    gap: 0.3rem;
  }

  .role-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .role-btn span {
    display: none;
  }

  .wheel-wrapper {
    width: min(85vw, 350px);
    height: min(85vw, 350px);
  }

  .spin-button {
    width: 65px;
    height: 65px;
    font-size: 0.75rem;
  }

  .wheel-pointer {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 25px solid #fff;
  }

  .result-display {
    padding: 0.8rem 1.5rem;
    min-width: 150px;
  }

  .result-name {
    font-size: 1.4rem;
  }

  .settings-panel {
    width: 100%;
    right: -100%;
  }

  .toast-container {
    bottom: 1rem;
    width: 90%;
  }

  .toast {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 380px) {
  .wheel-wrapper {
    width: min(90vw, 280px);
    height: min(90vw, 280px);
  }

  .spin-button {
    width: 55px;
    height: 55px;
    font-size: 0.7rem;
  }

  .role-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .result-name {
    font-size: 1.2rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .wheel-nav {
    padding: 0.5rem 1rem;
  }

  .wheel-main {
    flex-direction: row;
    padding: 3.5rem 1rem 0.5rem;
    gap: 1.5rem;
  }

  .role-selector {
    flex-direction: column;
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
  }

  .role-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .role-btn span {
    display: none;
  }

  .wheel-wrapper {
    width: min(70vh, 350px);
    height: min(70vh, 350px);
    margin-left: 60px;
  }

  .spin-button {
    width: 55px;
    height: 55px;
    font-size: 0.7rem;
  }

  .result-display {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: auto;
  }

  .result-name {
    font-size: 1.2rem;
  }
}

#edit-mode-btn.edit-active {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
  color: #000 !important;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5) !important;
}

.draggable-active {
  outline: 2px dashed #00ff88 !important;
  outline-offset: 4px;
  cursor: move !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
  animation: pulse-outline 2s ease-in-out infinite;
}

@keyframes pulse-outline {
  0%, 100% {
    outline-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  }
  50% {
    outline-color: #00ffaa;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
  }
}

.dragging {
  opacity: 0.8;
  z-index: 9999 !important;
  cursor: grabbing !important;
  transform: scale(1.05);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

#edit-instructions {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13, 17, 23, 0.95);
  border: 2px solid #00ff88;
  border-radius: 1em;
  padding: 2em;
  z-index: 10000;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#edit-instructions h3 {
  margin: 0 0 1em 0;
  color: #00ff88;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 1.5em;
}

#edit-instructions p {
  margin: 0.5em 0;
  color: #c9d1d9;
  line-height: 1.6;
}

#edit-instructions ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

#edit-instructions ul li {
  padding: 0.5em;
  margin: 0.3em 0;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 0.5em;
  color: #fff;
}

#edit-instructions .close-instructions {
  margin-top: 1.5em;
  padding: 0.8em 2em;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
  border: none;
  border-radius: 2em;
  font-weight: 600;
  cursor: pointer;
  font-family: "Mohave-Medium-Italic", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#edit-instructions .close-instructions:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

#reset-positions-btn {
  background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
  color: #fff;
  display: none;
}

#reset-positions-btn:hover {
  background: linear-gradient(135deg, #ff5555 0%, #dd4444 100%);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
}

.edit-mode-active #reset-positions-btn {
  display: inline-block;
}

.edit-mode-active.show-grid::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.edit-mode-active.is-dragging::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(var(--drag-x, -100px) - 1px), rgba(0, 255, 136, 0.5) calc(var(--drag-x, -100px) - 1px), rgba(0, 255, 136, 0.5) calc(var(--drag-x, -100px) + 1px), transparent calc(var(--drag-x, -100px) + 1px)),
    linear-gradient(to bottom, transparent calc(var(--drag-y, -100px) - 1px), rgba(0, 255, 136, 0.5) calc(var(--drag-y, -100px) - 1px), rgba(0, 255, 136, 0.5) calc(var(--drag-y, -100px) + 1px), transparent calc(var(--drag-y, -100px) + 1px));
}

#position-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff88;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  z-index: 10001;
  display: none;
  border: 1px solid #00ff88;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

#grid-toggle-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(13, 17, 23, 0.95);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  z-index: 10001;
  display: none;
  align-items: center;
  gap: 10px;
  font-family: "Mohave-Medium-Italic", sans-serif;
  backdrop-filter: blur(10px);
}

.edit-mode-active #grid-toggle-container {
  display: flex;
}

#grid-toggle-container label {
  color: #c9d1d9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#grid-toggle-container label i {
  color: #00ff88;
}

#grid-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #333;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

#grid-toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #666;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

#grid-toggle:checked {
  background: #00ff88;
}

#grid-toggle:checked::before {
  background: #fff;
  left: 22px;
}

@keyframes snap-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(0, 255, 136, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
  }
}

.snap-pulse {
  animation: snap-pulse 0.3s ease-out;
}

.draggable-active {
  touch-action: none;
}

@media (max-width: 600px) {
  #edit-instructions {
    width: 95%;
    padding: 1.5em;
    max-height: 80vh;
    overflow-y: auto;
  }

  #edit-instructions h3 {
    font-size: 1.2em;
  }

  #edit-instructions p,
  #edit-instructions ul li {
    font-size: 0.9em;
  }

  #position-indicator {
    bottom: calc(40vh + 10px);
    left: 10px;
    font-size: 11px;
    padding: 5px 10px;
  }

  #grid-toggle-container {
    bottom: calc(40vh + 10px);
    right: 10px;
    padding: 6px 10px;
    font-size: 0.85em;
  }

  #grid-toggle {
    width: 36px;
    height: 20px;
  }

  #grid-toggle::before {
    width: 16px;
    height: 16px;
  }

  #grid-toggle:checked::before {
    left: 18px;
  }

  #grid-toggle-container label span {
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #position-indicator {
    bottom: 10px;
    left: 10px;
  }

  #grid-toggle-container {
    bottom: 10px;
    right: 150px;
  }

  #edit-instructions {
    max-height: 90vh;
    width: 80%;
  }
}
