@charset "UTF-8";
:root {
  font-family: "Sora", "San Fransisco", "Segoe UI", sans-serif;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
}

#app h1 {
  font-size: 28px;
  color: #ffffff;
}
#app h2:not(.tournament-name), #app h3, #app h4, #app h5, #app h6 {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
}

#app .tournamentView h1 {
  font-size: 24px;
}
@media (min-width: 768px) {
  #app .tournamentView h1 {
    font-size: 28px;
  }
}

.btn {
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  padding: 12px 48px;
  gap: 12px;
  display: flex;
  width: 300px;
  height: 55px;
  margin: 12px 0;
  border-radius: 5px;
  border: 0;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
.btn.primary {
  background: rgba(32, 23, 182, 0.8);
  box-shadow: 0px 12px 40px rgba(35, 24, 212, 0.32), inset 4px 12px 40px rgba(151, 71, 255, 0.4);
  color: #ffffff;
  position: relative;
  font-size: 16px;
}
.btn.primary:disabled {
  background: rgba(100, 100, 100, 0.3);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn.primary:disabled::before {
  opacity: 0.3;
}
.btn.primary.tertiary {
  background: rgba(239, 0, 0, 0.2);
  width: 73%;
}
.btn.primary.tertiary::before {
  left: 23%;
  bottom: 28%;
}
.btn.primary.tertiary:disabled {
  background: rgba(100, 100, 100, 0.3);
}
.btn.primary::before {
  content: "";
  background-image: url("../../../images/queeny.png");
  display: block;
  position: absolute;
  width: 40%;
  height: 54%;
  z-index: 3;
  background-size: contain;
  background-repeat: no-repeat;
  left: 50px;
}
.btn.secondary {
  box-shadow: inset -10px 20px 51px -27px rgba(151, 71, 255, 0.22);
  filter: drop-shadow(0px 12px 40px rgba(35, 24, 212, 0.32));
  border-radius: 4px;
  color: #ffffff;
  position: relative;
  margin: 8px 0;
  width: 80%;
  max-width: 300px;
  background: linear-gradient(135deg, rgba(0, 76, 255, 0.2) 0%, rgba(0, 0, 0, 0.3) 117%);
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #ffffff;
}
.btn.secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(204, 119, 253, 0.4) 100%);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}
.btn.secondary:disabled {
  background: rgba(100, 100, 100, 0.3);
  border: 1px solid rgba(100, 100, 100, 0.5);
  box-shadow: none;
  filter: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn.secondary:disabled::before {
  opacity: 0.3;
}
.btn.secondary::before {
  content: "";
  background-image: url("../../../images/horsy.png");
  display: block;
  position: absolute;
  z-index: 3;
  background-size: contain;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  left: 50px;
}
.btn.login.secondary.register {
  margin-top: 5vh;
}
.btn.login.secondary.register::before {
  left: 16%;
}
.btn.pulsing {
  animation: 1.2s ease-in-out infinite pulsing-btn;
}

.pwa-onboarding-navigation .btn::before {
  content: none !important;
  display: none !important;
}

.logoutBtn {
  padding: 6px 24px;
  background: rgba(32, 23, 182, 0.8);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 5px;
}

@keyframes pulsing-btn {
  from {
    box-shadow: initial;
  }
  50% {
    box-shadow: 0px 12px 40px rgba(35, 24, 212, 0.32), inset 8px 24px 60px rgba(151, 71, 255, 0.8);
  }
  to {
    box-shadow: initial;
  }
}
.btn.ticket-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #ae30bd;
  color: #ffffff;
  padding-right: 56px;
  position: relative;
  text-decoration: none;
  filter: drop-shadow(0px 12px 40px rgba(35, 24, 212, 0.32));
  box-shadow: inset -12px 20px 51px -27px rgba(151, 71, 255, 0.22);
}
.btn.ticket-button:hover {
  background: rgba(174, 48, 189, 0.15);
  text-decoration: underline;
}
.btn.ticket-button::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("../../images/external_link-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 599px) {
  .tournament-expanded-content .btn::before {
    left: 30px;
  }
}

div.logo {
  height: 49.5px;
  width: 139.5px;
  background-image: url("/images/fuzzsjakk_logo_gradient_v2.PNG");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.view-main div.logo {
  height: 78.5px;
  width: 140px;
  margin-top: 40px;
}

div.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  z-index: 1010;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
}
div.topbar:not(.inside) {
  position: static;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 24px;
  z-index: auto;
}
div.topbar.inside {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
div.topbar .left_navigation,
div.topbar .right_navigation {
  flex: 1;
  display: flex;
}
div.topbar .left_navigation {
  justify-content: flex-start;
}
div.topbar .right_navigation {
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
}
div.topbar .logo {
  flex: 0 0 auto;
  margin: 0 auto;
}
div.topbar .previous {
  visibility: hidden;
  display: none;
}
div.topbar .previous::before, div.topbar .previous::after {
  content: " ";
  visibility: hidden;
  display: block;
  position: relative;
  border: 2px solid #ffffff;
  border-right: 0;
  border-top: 0;
}
div.topbar .previous::before {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
}
div.topbar .previous::after {
  width: 16px;
  bottom: 8px;
}
div.topbar.inside .previous, div.topbar.inside .previous::before, div.topbar.inside .previous::after {
  visibility: visible;
  display: block;
}
div.topbar .menu img {
  height: 35px;
  width: 35px;
  border-radius: 20px;
  object-fit: cover;
}

body.view-login .topbar.inside, body.password-reset .topbar.inside, body.password-reset-confirm .topbar.inside, body.view-request-password-reset .topbar.inside, body.view-register .topbar.inside {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dropdown {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 40px;
  list-style: none;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 20px;
  border-radius: 8px;
  margin-right: 8px;
  border: 2px solid rgba(204, 119, 253, 0.3);
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
}

.dropdown.hidden {
  height: 0;
  display: none;
}

.check-updates-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.2s ease;
  outline: none;
}
.check-updates-btn:hover, .check-updates-btn:focus {
  background: rgba(204, 119, 253, 0.2);
}

.topbar-version {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  margin-top: 2px;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  user-select: text;
}

#toast-container {
  position: fixed;
  top: 30%;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  pointer-events: none;
}

.toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.3s ease-in-out;
  transition: opacity 0.3s, transform 0.3s;
  margin-bottom: 8px;
  pointer-events: auto;
}
.toast.toast-hiding {
  opacity: 0;
  transform: translateX(100%);
}
.toast.error {
  background-color: rgba(220, 53, 69, 0.95);
  color: white;
  border-left: 4px solid #721c24;
}
.toast.success {
  background-color: rgba(40, 167, 69, 0.95);
  color: white;
  border-left: 4px solid #155724;
}
.toast.warning {
  background-color: rgba(255, 193, 7, 0.95);
  color: #212529;
  border-left: 4px solid #856404;
}
.toast.info {
  background-color: rgba(23, 162, 184, 0.95);
  color: white;
  border-left: 4px solid #0c5460;
}
.toast .toast-message {
  flex: 1;
  margin-right: 10px;
}
.toast .toast-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toast .toast-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Mobile responsiveness */
@media (max-width: 480px) {
  #toast-container {
    top: 30%;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: none;
  }
}
/* Real-time update indicators */
.tournament-update-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 14px;
  max-width: 300px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.tournament-update-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.tournament-update-toast.success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.tournament-update-toast.warning {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.tournament-update-toast.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.upcomingCard {
  width: 73vw;
  min-width: 314px;
  max-width: 800px;
  min-height: 270px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  padding-top: 95px;
  margin: 100px auto 50px;
  box-sizing: border-box;
  background-image: radial-gradient(circle at 30% 40%, rgba(255, 0, 128, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(0, 255, 255, 0.1) 0%, transparent 60%), radial-gradient(circle at center, rgba(128, 0, 255, 0.2) 0%, transparent 70%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.02), transparent 90%);
  background-blend-mode: screen;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: inset 0 0 145px rgba(204, 119, 253, 0), 0 0 1px rgba(0, 255, 255, 0.4), 0 0 0px rgba(204, 119, 253, 0.05), 0 4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .upcomingCard {
    aspect-ratio: unset;
    min-height: 320px;
    width: 85vw;
    padding: 12px;
    padding-top: 87px;
  }
}
.upcomingCard::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 16px;
  z-index: -1;
  animation: holographic-border 3s ease-in-out infinite;
}
.upcomingCard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center center;
  border-radius: 16px;
  z-index: -1;
  animation: neo-scanner-sweep 8s ease-in-out infinite;
}
.upcomingCard .tournamentCardPicture {
  width: 150px;
  height: 150px;
  position: absolute;
  object-fit: cover;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.8), rgba(204, 119, 253, 0.8), rgba(0, 255, 255, 0.8)) border-box;
  background-clip: border-box;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), 0 0 12px rgba(0, 255, 255, 0.2), 0 0 16px rgba(204, 119, 253, 0.15), inset 0 0 8px rgba(0, 255, 255, 0.06);
}
.upcomingCard .tournamentCardPicture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(transparent 40%, rgba(0, 255, 255, 0.6) 50%, transparent 60%);
  animation: scanner-sweep 2s ease-in-out infinite;
}
.upcomingCard .firstCardLabel {
  color: rgba(0, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  margin-top: 11px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8), 0 0 12px rgba(0, 255, 255, 0.4);
}
.upcomingCard .firstCardLabel::before {
  content: "◢◣ ";
  color: rgba(204, 119, 253, 0.9);
  animation: data-pulse 1.5s ease-in-out infinite alternate;
}
.upcomingCard h1 {
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
  word-break: break-word;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 24px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4), 0 0 11px rgba(204, 119, 253, 0.2), 0 0 16px rgba(0, 255, 255, 0.1);
  position: relative;
}
.upcomingCard h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8) 20%, rgba(204, 119, 253, 0.8) 50%, rgba(0, 255, 255, 0.8) 80%, transparent);
  animation: title-underline 7s ease-in infinite;
}
.upcomingCard p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 18px;
  text-align: center;
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}
.upcomingCard address {
  color: rgba(204, 119, 253, 0.9);
  font-size: 28px;
  font-weight: 600;
  margin-top: 8px;
  word-break: break-word;
  text-align: center;
  font-style: normal;
  flex-shrink: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 20px;
  text-shadow: 0 0 2px rgba(204, 119, 253, 0.8), 0 0 12px rgba(204, 119, 253, 0.1);
}
.upcomingCard address::before {
  content: "◊ ";
  color: rgba(0, 255, 255, 0.9);
  font-size: 0.8em;
}
@media (max-width: 768px) {
  .upcomingCard address {
    font-size: 20px;
    margin-top: 4px;
  }
}
.upcomingCard .time-date {
  margin-top: 5px;
}
.upcomingCard:hover {
  transform: translateY(-4px) scale(1.02);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: inset 0 0 20px rgba(204, 119, 253, 0.08), 0 0 16px rgba(0, 255, 255, 0.12), 0 0 32px rgba(204, 119, 253, 0.08), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.upcomingCard:hover .tournamentCardPicture {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 0 16px rgba(0, 255, 255, 0.3), 0 0 20px rgba(204, 119, 253, 0.2), inset 0 0 8px rgba(0, 255, 255, 0.1);
}
.upcomingCard:focus-within {
  outline: 3px solid rgba(0, 255, 255, 0.6);
  outline-offset: 4px;
}

@keyframes holographic-border {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0.6;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.9;
  }
}
@keyframes neo-scanner-sweep {
  0%, 100% {
    background-position: center center, center center, center center, center center, center center, center center, center center;
    transform: scale(1);
    opacity: 0.7;
  }
  25% {
    background-position: center center, center center, center center, center center, center center, center center, center center;
    transform: scale(1.01);
    opacity: 0.9;
  }
  50% {
    background-position: center center, center center, center center, center center, center center, center center, center center;
    transform: scale(1);
    opacity: 1;
  }
  75% {
    background-position: center center, center center, center center, center center, center center, center center, center center;
    transform: scale(0.99);
    opacity: 0.8;
  }
}
@keyframes scanner-sweep {
  0%, 100% {
    transform: rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.8;
  }
}
@keyframes data-pulse {
  0% {
    text-shadow: 0 0 4px rgba(204, 119, 253, 0.6);
  }
  100% {
    text-shadow: 0 0 12px rgb(204, 119, 253);
  }
}
@keyframes title-underline {
  0%, 100% {
    width: 60%;
    opacity: 0.6;
  }
  50% {
    width: 80%;
    opacity: 1;
  }
}
@media only screen and (max-height: 700px) {
  .upcomingCard {
    min-width: 292px;
    margin-bottom: 6vh;
    aspect-ratio: unset;
    min-height: 280px;
    padding-top: 62px;
  }
  .upcomingCard .tournamentCardPicture {
    width: 100px;
    height: 100px;
    top: -50px;
  }
  .upcomingCard h1 {
    font-size: 24px;
    margin-top: 0;
  }
  .upcomingCard p {
    font-size: 16px;
  }
  .upcomingCard address {
    font-size: 20px;
  }
  .upcomingCard .firstCardLabel {
    margin-top: 0;
  }
}
@media only screen and (max-width: 480px) {
  .upcomingCard {
    width: 90vw;
    min-width: 280px;
    padding: 8px;
    padding-top: 83px;
  }
  .upcomingCard h1 {
    font-size: 20px;
  }
  .upcomingCard p {
    font-size: 14px;
  }
  .upcomingCard address {
    font-size: 18px;
  }
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.welcome .upcomingCard .firstCardLabel {
  margin-bottom: 8px;
}
.welcome .upcomingCard::before {
  animation-duration: 2s;
}
.welcome .btn {
  margin: 8px 0;
  width: 80%;
  max-width: 300px;
  background: linear-gradient(135deg, rgba(0, 76, 255, 0.2) 0%, rgba(0, 0, 0, 0.3) 117%);
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #ffffff;
}
.welcome .btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(204, 119, 253, 0.4) 100%);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.upcomingCard.loading .tournamentCardPicture::before {
  animation: scanner-sweep 0.8s linear infinite;
}
.upcomingCard.loading h1, .upcomingCard.loading p, .upcomingCard.loading address {
  animation: data-pulse 1s ease-in-out infinite alternate;
}

.upcomingCard.live::before {
  box-shadow: 0 0 24px rgba(255, 0, 100, 0.6);
  animation: live-pulse 1s ease-in-out infinite alternate;
}
.upcomingCard.starting-soon .firstCardLabel::before {
  content: "⚡ ";
  animation: urgency-flash 0.5s ease-in-out infinite alternate;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 24px rgba(255, 0, 100, 0.4);
  }
  100% {
    box-shadow: 0 0 32px rgba(255, 0, 100, 0.8);
  }
}
@keyframes urgency-flash {
  0% {
    color: rgba(255, 255, 0, 0.8);
  }
  100% {
    color: rgb(255, 255, 0);
  }
}
body:not(.view-profilePage) #innerView {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding-top: 60px;
  box-sizing: border-box;
}

.country-dropdown-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.country-dropdown-container input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  color: white;
  font-size: 16px;
}
.country-dropdown-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.country-dropdown-container input:focus {
  outline: none;
  border-color: rgba(204, 119, 253, 0.6);
  background: rgba(204, 119, 253, 0.1);
  box-shadow: 0 0 0 2px rgba(204, 119, 253, 0.2);
}

.country-dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  pointer-events: auto;
  z-index: 1;
  width: auto !important;
}
.country-dropdown-arrow:hover {
  color: rgba(204, 119, 253, 0.8);
}
.country-dropdown-arrow.open {
  transform: translateY(-50%) rotate(180deg);
  color: rgb(204, 119, 253);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(30, 30, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.country-dropdown .country-option {
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.country-dropdown .country-option:hover, .country-dropdown .country-option.selected {
  background: rgba(204, 119, 253, 0.2);
  color: white;
}
.country-dropdown .country-option:last-child {
  border-radius: 0 0 8px 8px;
}
.country-dropdown::-webkit-scrollbar {
  width: 6px;
}
.country-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(204, 119, 253, 0.5);
  border-radius: 3px;
}
.country-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 119, 253, 0.7);
}

/* Rating Change Modal - Chess.com style with neon theme */
.rating-change-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 17, 49, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity all 0.3s ease;
}
.rating-change-modal-backdrop.show {
  opacity: 1;
}

.rating-change-modal-container {
  background: linear-gradient(135deg, #0a1428 0%, #1a2757 50%, #0a1428 100%);
  border: 2px solid rgba(118, 21, 195, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(118, 21, 195, 0.3), 0 0 80px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-width: 420px;
  max-width: 520px;
  width: clamp(420px, 90vw, 520px);
  position: relative;
  margin: auto;
  transform: scale(0.5);
  transition: transform all 0.3s ease;
  animation: modalZoomIn all 0.3s ease ease-out forwards;
  padding: 24px;
}

@keyframes modalZoomIn {
  0% {
    transform: scale(0.5) rotate(-3deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
/* Chromium/Brave browser fix for flexbox centering */
@supports (-webkit-appearance: none) {
  .rating-change-modal-backdrop {
    align-items: center !important;
    justify-content: center !important;
  }
  .rating-change-modal-container {
    position: relative !important;
    margin: 0 !important;
  }
}
.rating-change-modal-header {
  position: relative;
  padding: 8px;
}

.rating-change-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.2s ease;
  z-index: 9500;
}
.rating-change-modal-close:hover {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  transform: scale(1.1);
}
.rating-change-modal-close:active {
  transform: scale(0.95);
}

.rating-change-modal-content {
  padding: 40px 32px 36px;
  text-align: center;
}

.rating-change-modal-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.rating-change-modal-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-number {
  font-size: 42px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.2);
  animation: ratingGlow 2s ease-in-out infinite alternate;
}

@keyframes ratingGlow {
  0% {
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.3);
  }
}
.rating-diff {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0 0 10px currentColor;
  animation: diffPulse 0.6s ease-out;
}
.rating-diff.positive {
  color: #2ed573;
  text-shadow: 0 0 15px rgba(46, 213, 115, 0.6);
}
.rating-diff.negative {
  color: #ff4757;
  text-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
}
.rating-diff.neutral {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes diffPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Enhanced mobile responsiveness */
@media (max-width: 520px) {
  .rating-change-modal-container {
    min-width: 100%;
    max-width: 90vw;
    margin: 16px;
  }
  .rating-change-modal-content {
    padding: 38px 24px;
  }
  .rating-change-modal-content .rating-number {
    font-size: 3rem;
  }
  .rating-change-modal-content .rating-diff {
    font-size: 34px;
  }
}
/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .rating-change-modal-backdrop,
  .rating-change-modal-container,
  .rating-number,
  .rating-diff {
    animation: none;
    transition: opacity all 0.2s ease;
  }
  @keyframes modalZoomIn {
    to {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
  }
}
/* Tournament polling notification dots */
.tabMenu a {
  position: relative;
}

.notification-dot {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  width: 8px !important;
  height: 8px !important;
  background-color: #ff4444 !important;
  border-radius: 50% !important;
  z-index: 10 !important;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}
/* Real-time update indicators */
.tournament-update-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 14px;
  max-width: 300px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.tournament-update-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.tournament-update-toast.success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.tournament-update-toast.warning {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.tournament-update-toast.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Enhanced tab styling for better notification visibility */
.tabMenu a {
  transition: all 0.2s ease;
}

.tabMenu a:hover {
  transform: translateY(-1px);
}

.tabMenu a.active {
  transform: none;
}

#app form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
#app form div {
  width: 80%;
  margin: 0 auto;
}
#app form div input {
  width: 100%;
}
#app form div input[type=text], #app form div input[type=password], #app form div input[type=email], #app form div input[type=number] {
  background: rgba(204, 119, 253, 0.2);
  border: none;
  box-shadow: none;
  border-radius: 5px;
  height: 60px;
  appearance: none;
  padding: 8px 8px 8px 8px;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
}
#app form div label {
  display: none;
}
#app form div label[required]::after {
  content: "*";
  display: "inline";
  color: red;
}

#app .welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  padding-top: 0;
}
#app .welcome .btn.secondary::before {
  width: 40%;
  height: 54%;
}
#app .welcome .upcomingCard {
  min-height: 200px;
  max-height: 300px;
}
#app .welcome .upcomingCard address {
  margin-top: 0;
}
#app .welcome .upcomingCard .time-date {
  display: flex;
  gap: 20px;
}
#app .welcome .upcomingCard .time-date p:first-of-type {
  position: relative;
}
#app .welcome .upcomingCard .time-date p:first-of-type::after {
  content: "|";
  color: #fff;
  position: absolute;
  top: 0;
  right: -13px;
}

.innerView form h1 {
  font-size: 32px;
  color: white;
  margin-bottom: 1rem;
}

#innerView form {
  gap: 1rem;
}

#innerView form input {
  width: 100%;
}
#innerView form input[type=text], #innerView form input[type=number], #innerView form input[type=password], #innerView form input[type=email] {
  box-sizing: border-box;
  transition: all 0.3s ease;
}
#innerView form input[type=text]::placeholder, #innerView form input[type=number]::placeholder, #innerView form input[type=password]::placeholder, #innerView form input[type=email]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
#innerView form input[type=text]:focus, #innerView form input[type=number]:focus, #innerView form input[type=password]:focus, #innerView form input[type=email]:focus {
  background: rgba(204, 119, 253, 0.35);
  box-shadow: 0 0 15px rgba(204, 119, 253, 0.3);
  outline: none;
  transform: translateY(-2px);
}
#innerView form input[type=text]:hover:not(:focus), #innerView form input[type=number]:hover:not(:focus), #innerView form input[type=password]:hover:not(:focus), #innerView form input[type=email]:hover:not(:focus) {
  background: rgba(204, 119, 253, 0.25);
}

#innerView form .formRow {
  display: flex;
  flex-direction: column;
  width: 80%;
}
#innerView form .formRow .country-dropdown-container {
  width: 100%;
  box-sizing: border-box;
}
#innerView form .formRow .country-dropdown-container input {
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
#innerView form .formRow .country-dropdown-container input:focus {
  background: rgba(204, 119, 253, 0.35);
  box-shadow: 0 0 15px rgba(204, 119, 253, 0.3);
  outline: none;
  transform: translateY(-2px);
}
#innerView form .formRow .country-dropdown-container input:hover:not(:focus) {
  background: rgba(204, 119, 253, 0.25);
}

.innerView form button[type=submit] {
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}
.innerView form button[type=submit]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 119, 253, 0.4);
}
.innerView form button[type=submit]:active {
  transform: translateY(1px);
}

.registerHeading {
  margin-bottom: 5vh;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#innerView form .formRow.is-invalid .country-dropdown-container input,
#innerView form .formRow.is-invalid input {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}
#innerView form .formRow .field-error {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-left: 0;
  font-weight: 500;
  animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logIn .btn.secondary.login {
  margin-top: 0;
}

.forgot_pass, .register2 {
  text-align: center;
  color: #ffffff;
}
.forgot_pass a, .register2 a {
  color: #CC77FD;
}

.password-reset-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}
.password-reset-form .password-reset-heading {
  text-align: center;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
}
.password-reset-form .password-reset-subheading {
  text-align: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 400;
}
.password-reset-form .formRow {
  margin-bottom: 20px;
}
.password-reset-form .formRow.is-invalid input {
  border: 2px solid #ff4444;
  background: rgba(255, 68, 68, 0.1);
}
.password-reset-form .formRow .field-error {
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
}
.password-reset-form .btn.password-reset-submit {
  margin-top: 20px;
  width: 100%;
}
.password-reset-form .btn.password-reset-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.password-reset-form .back-to-login {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.password-reset-form .back-to-login a {
  color: #CC77FD;
  text-decoration: none;
}
.password-reset-form .back-to-login a:hover {
  text-decoration: underline;
}

.password-reset-error {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.password-reset-error .error-heading {
  color: #ff4444;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}
.password-reset-error .error-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}
.password-reset-error .btn {
  margin-top: 20px;
}

.password-request-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.password-request-form .password-request-heading {
  text-align: center;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
}
.password-request-form .password-request-subheading {
  text-align: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 400;
}
.password-request-form .formRow {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
.password-request-form .formRow.is-invalid input {
  border: 2px solid #ff4444;
  background: rgba(255, 68, 68, 0.1);
}
.password-request-form .formRow input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0; /* Prevents input from growing beyond container */
}
.password-request-form .formRow .field-error {
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
  word-wrap: break-word;
}
.password-request-form .btn.password-request-submit {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
}
@media (min-width: 768px) {
  .password-request-form .btn.password-request-submit {
    font-size: 16px;
  }
}
.password-request-form .btn.password-request-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.password-request-form .btn.password-request-submit::before {
  left: 40px;
}
.password-request-form .back-to-login {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.password-request-form .back-to-login a {
  color: #CC77FD;
  text-decoration: none;
}
.password-request-form .back-to-login a:hover {
  text-decoration: underline;
}

h1.welcomeName {
  text-align: center;
  font-size: 16px !important;
  font-weight: 400;
}

.screenTitle {
  text-align: center;
  font-weight: 500 !important;
  margin-top: calc(60px + 1rem);
  font-size: 28px !important;
}

p.format {
  color: #A871F3;
}

.slider-container {
  overflow: hidden;
  transform: translateX(0);
  transition: transform all 0.3s ease;
  cursor: grab;
  height: 100%;
  display: inline-flex;
  width: fit-content;
  position: absolute;
  left: 0;
}

.slide {
  user-select: none;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 9vw;
  margin-top: 15vh;
}

.upcomingCard.more.slide img {
  top: -14%;
}

.upcomingCard.more.slide.expanded address {
  display: none;
}

.grabbing {
  cursor: grabbing;
}

.grabbing .upcomingCard.more.slide {
  transform: scale(0.9);
}

#app.overflow-hidden {
  overflow: hidden;
}

/* Tournament list styling */
.tournament-list-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .tournament-list-container {
    max-width: 1920px;
    padding: 16px 20px;
  }
}

.tournament-list-header {
  margin-bottom: 20px;
  text-align: center;
}

.tournament-cards-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-bottom: 5rem;
}
@media (min-width: 900px) {
  .tournament-cards-container {
    display: grid !important;
    flex-direction: unset;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 1800px;
    margin: 0 auto 5rem;
    gap: 20px;
  }
}
@media (min-width: 1800px) {
  .tournament-cards-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tournament-card-container {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  min-width: 0;
}

/* 🌌 Performance-Optimized Tournament Cards */
.tournament-compact-card {
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-height: 150px;
}

/* 🌟 Performance-Optimized Hover Effects */
.tournament-compact-card:hover {
  transform: translateY(-2px) scale(1.005);
}

/* 🖼️ Image is now set as background via JS */
.tournament-image-container {
  display: none;
}

/* 📝 Content container with frosted glass effect */
.tournament-content-container {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tournament-compact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tournament-compact-card:hover .tournament-compact-image {
  transform: scale(1.05);
}

/* Enhanced content container */
.tournament-content-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.tournament-content-container .tournament-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  position: relative;
  background: conic-gradient(from 57deg, #6e0087, #ffffff, #6e0087);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.tournament-content-container .tournament-name::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.8) 20%, rgba(150, 100, 255, 0.8) 50%, rgba(0, 255, 255, 0.8) 80%);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.tournament-content-container .tournament-detail.date-time {
  font-size: 18px;
}
.tournament-content-container .tournament-detail.location {
  text-transform: uppercase;
}

/* 📝 Enhanced tournament details with center alignment */
.tournament-detail {
  font-size: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding-left: 0;
  color: rgb(255, 255, 255);
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.date-time::before {
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(150, 100, 255, 0.4) 70%, transparent 100%);
  border-radius: 20px;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

.location::before {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.8) 0%, rgba(150, 100, 255, 0.6) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 6px rgba(150, 100, 255, 0.3);
}

.format::before {
  background: radial-gradient(circle, rgba(150, 100, 255, 0.8) 0%, rgba(0, 255, 255, 0.4) 70%, transparent 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: 0 0 6px rgba(150, 100, 255, 0.3);
}

.rounds::before {
  background: linear-gradient(135deg, rgba(150, 100, 255, 0.8) 0%, rgba(0, 255, 255, 0.6) 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

.tournament-compact-card:hover .date-time::before,
.tournament-compact-card:hover .location::before,
.tournament-compact-card:hover .format::before,
.tournament-compact-card:hover .rounds::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Alternative indicator without FontAwesome */
.tournament-compact-card .card-indicator {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 20px;
  height: 8px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.tournament-compact-card .card-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  clip-path: polygon(0% 20%, 75% 20%, 75% 0%, 100% 50%, 75% 100%, 75% 80%, 0% 80%);
  transition: all 0.3s ease;
}

.tournament-compact-card:hover .card-indicator {
  opacity: 1;
  transform: translateX(0);
}

.tournament-compact-card:hover .card-indicator::before {
  background: rgba(255, 255, 255, 0.7);
}

/* Tournament image container - always full width for column layout */
.tournament-image-container {
  width: 100%;
  min-width: 100%;
  height: 130px;
}

.tournament-image-container::after {
  background: linear-gradient(to top, rgba(20, 30, 70, 0.8) 0%, transparent 60%);
}

.tournament-content-container {
  padding: 16px;
}

.tournament-compact-card::before {
  top: -20%;
  right: -10%;
}

/* Remove the old 600px media query since we always use column layout now */
/* Loading and error states */
.loading-indicator, .no-tournaments, .error-message {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Expanded card styling */
.close-expanded-card {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.close-expanded-card:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Animation for expanding cards */
.upcomingCard.expanded {
  animation: expandCard 0.3s ease forwards;
}

@keyframes expandCard {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Modal styling for expanded tournament card */
.tournament-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1020;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity;
}

/* 🌌 Enhanced Modal with Holographic Design */
.tournament-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 0, 128, 0.04) 0%, transparent 40%), radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.03) 0%, transparent 50%), radial-gradient(ellipse at center, rgba(10, 20, 50, 0.88) 0%, rgba(8, 15, 40, 0.94) 30%, rgba(5, 10, 30, 0.97) 60%, rgba(2, 5, 20, 0.99) 100%);
  opacity: 0;
  transition: opacity all 0.3s ease;
  animation: fadeIn all 0.3s ease forwards;
  backdrop-filter: blur(12px);
  will-change: opacity;
}

.tournament-modal-overlay.fading-out {
  animation: fadeOut all 0.3s ease forwards;
}

.tournament-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: linear-gradient(135deg, rgba(30, 50, 100, 0.95) 0%, rgba(15, 25, 60, 0.98) 100%);
  border-radius: 8px;
  z-index: 9000;
  box-shadow: inset 0 0 80px rgba(150, 100, 255, 0.02), 0 0 2px rgba(0, 255, 255, 0.2), 0 0 15px rgba(150, 100, 255, 0.08), 0 0 30px rgba(0, 255, 255, 0.08), 0 0 50px rgba(150, 100, 255, 0.04);
  will-change: transform, width, height, top, left;
  transform-origin: center center;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 2px rgba(0, 255, 255, 0.3), 0 0 20px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
}
.tournament-modal-content.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.tournament-modal-content.closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tournament-modal-content.expanded {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: 90% !important;
  max-width: 600px !important;
  height: auto !important;
  max-height: 90vh !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  contain: layout;
}

.modal-loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.modal-loading-indicator.error {
  color: #ff6b6b;
}

/* Expanded tournament content styling */
.tournament-expanded-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
  z-index: 5;
}

.tournament-expanded-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 6;
}

.tournament-expanded-image-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, rgba(15, 25, 60, 0.8), transparent);
}

.tournament-expanded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🏆 Enhanced expanded tournament name */
.tournament-expanded-name {
  padding: 16px 20px;
  margin: 0;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  z-index: 6;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 0 8px rgba(150, 100, 255, 0.15), 0 0 12px rgba(0, 255, 255, 0.1);
}
.tournament-expanded-name::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6) 20%, rgba(150, 100, 255, 0.6) 50%, rgba(0, 255, 255, 0.6) 80%, transparent);
  animation: modal-gradient-line 4s ease-in-out infinite;
}

/* Enhanced info sections with holographic backgrounds */
.tournament-info-section {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 0, 128, 0.03) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.02) 0%, transparent 50%), radial-gradient(ellipse at center, rgba(20, 40, 80, 0.2) 0%, rgba(15, 30, 60, 0.15) 60%, rgba(10, 20, 50, 0.1) 100%);
  gap: 16px;
  position: relative;
  z-index: 6;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tournament-info-item {
  flex: 1;
  min-width: 120px; /* Ensure items don't get too narrow */
}

/* 📝 Enhanced info labels and values */
.info-label {
  font-size: 14px;
  color: rgba(0, 255, 255, 0.8);
  margin-bottom: 3px;
  font-weight: 500;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}
.info-label::before {
  content: "◢ ";
  color: rgba(150, 100, 255, 0.8);
  animation: data-pulse 2s ease-in-out infinite alternate;
}

.tournament-info-item .info-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.tournament-description-container {
  padding: 16px;
  background-image: radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.02) 0%, transparent 45%), radial-gradient(circle at 70% 30%, rgba(204, 119, 253, 0.015) 0%, transparent 50%), radial-gradient(ellipse at center, rgba(15, 30, 70, 0.2) 0%, rgba(10, 20, 50, 0.15) 60%, rgba(5, 15, 40, 0.1) 100%);
  flex-grow: 1;
  overflow-y: auto;
  max-height: 40vh;
  position: relative;
  z-index: 6;
}

.tournament-description-text {
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
}

.description-preview {
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  white-space: pre-line;
}

.description-toggle-button {
  background: none;
  border: none;
  color: rgb(100, 180, 255);
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  margin-top: 4px;
}

.description-toggle-button:hover {
  color: rgb(150, 210, 255);
}

.hidden {
  display: none;
}

.tournament-action-buttons {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  background-image: radial-gradient(circle at 40% 40%, rgba(255, 0, 128, 0.025) 0%, transparent 50%), radial-gradient(circle at 60% 60%, rgba(0, 255, 255, 0.02) 0%, transparent 55%), radial-gradient(ellipse at center, rgba(20, 40, 80, 0.2) 0%, rgba(15, 30, 60, 0.15) 60%, rgba(10, 25, 50, 0.1) 100%);
  gap: 16px;
  position: relative;
  z-index: 6;
}
@media (min-width: 599px) {
  .tournament-action-buttons {
    flex-wrap: wrap;
  }
}
.tournament-action-buttons .action-button {
  flex: 1;
  min-height: 44px;
  font-size: 14px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 599px) {
  .tournament-action-buttons .action-button {
    flex-basis: 48%;
  }
}
.tournament-action-buttons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6) 20%, rgba(150, 100, 255, 0.6) 50%, rgba(0, 255, 255, 0.6) 80%, transparent);
  animation: modal-gradient-line 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Enhanced action buttons with holographic styling */
.action-button {
  padding: 12px 16px 12px 40px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #ffffff;
  font-size: 14px;
  flex: 1;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.08) 0%, transparent 70%), linear-gradient(135deg, rgba(0, 76, 255, 0.25) 0%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.08), 0 0 6px rgba(0, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.action-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.15) 0%, transparent 70%), linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(150, 100, 255, 0.25) 100%);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.12), 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(150, 100, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 255, 255, 0.5);
}

.action-button::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(0, 255, 255, 0.8);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
}

/* Specific styles for registration button */
.registration-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.registration-button:hover {
  background: linear-gradient(135deg, #3498db, #1a5276);
  transform: translateY(-2px);
}

/* Specific styles for open button */
.open-button {
  background: linear-gradient(135deg, #2c3e50, #1a2530);
}

.open-button:hover {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  transform: translateY(-2px);
}

.close-expanded-card {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 20, 50, 0.7);
  border: none;
  color: rgba(200, 220, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 20px;
  font-size: 1.8rem;
  line-height: 0.9;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-expanded-card:hover {
  background: rgba(0, 30, 70, 0.9);
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(100, 150, 255, 0.3);
}

/* Improved animation for closing the modal */
.tournament-modal-overlay.fading-out {
  animation: fadeOut all 0.3s ease forwards;
}

.tournament-modal-content.closing {
  opacity: 0;
  transform: scale(0.95) !important;
  transition: all 0.3s ease !important;
}

/* Hide content immediately when closing */
.tournament-expanded-content.hiding {
  opacity: 0;
  transition: opacity all 0.15s ease;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* Loading state for buttons */
.action-button.loading {
  position: relative;
  color: transparent;
}

.action-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive adjustments for tournament info section */
@media (max-width: 500px) {
  .info-row {
    gap: 8px;
  }
  .tournament-info-item {
    min-width: unset;
  }
  /* Ensure the location row items have enough space */
  /* For the details row, allow items to take appropriate space */
  .details-row .tournament-info-item {
    flex-basis: 0;
    flex-grow: 1;
  }
}
/* For very small screens, stack items vertically */
@media (max-width: 350px) {
  .info-row {
    flex-direction: column;
    gap: 8px;
  }
  .tournament-info-item {
    width: 100%;
  }
  .action-button {
    font-size: 14px; /* Slightly smaller text */
    padding: 12px 8px 12px 40px; /* Adjust padding */
  }
  .action-button::before {
    font-size: 16px; /* Slightly smaller icon */
  }
}
/* Improve scrollbar styling for the description */
.tournament-description-container::-webkit-scrollbar {
  width: 6px;
}

.tournament-description-container::-webkit-scrollbar-track {
  background: rgba(0, 20, 50, 0.3);
  border-radius: 3px;
}

.tournament-description-container::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.5);
  border-radius: 3px;
}

/* Ensure the modal doesn't get too tall on smaller screens */
@media (max-height: 700px) {
  .tournament-description-container {
    max-height: 30vh;
  }
  .tournament-expanded-image-container {
    height: 150px;
  }
}
/* For very small screens, further optimize space */
@media (max-height: 500px) {
  .tournament-expanded-image-container {
    height: 120px;
  }
  .tournament-description-container {
    max-height: 25vh;
  }
  .tournament-expanded-name {
    padding: 8px 16px;
    font-size: 20px;
  }
}
/* Stack buttons vertically on small screens */
@media (max-width: 599px) {
  .tournament-action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .action-button {
    width: 100%; /* Full width buttons */
    margin: 0; /* Remove any margin */
  }
  /* Remove specific margins that might have been set elsewhere */
  .registration-button, .open-button {
    margin-left: 0;
    margin-right: 0;
  }
}
/* Skeleton Loading for Tournament Cards */
.tournament-skeleton-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(30, 40, 80, 0.4) 0%, rgba(15, 25, 50, 0.5) 100%);
  border-radius: 12px;
  min-height: 120px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Skeleton image placeholder */
.skeleton-image {
  width: 100%;
  min-width: 100%;
  height: 130px;
  background-color: rgba(40, 50, 90, 0.5);
  position: relative;
  overflow: hidden;
}

/* Skeleton content container */
.skeleton-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

/* Skeleton text lines */
.skeleton-title {
  height: 22px;
  width: 70%;
  background-color: rgba(40, 50, 90, 0.5);
  border-radius: 3px;
}

.skeleton-detail {
  height: 16px;
  background-color: rgba(40, 50, 90, 0.5);
  border-radius: 3px;
  margin-bottom: 4px;
}

.skeleton-detail:nth-child(2) {
  width: 60%;
}

.skeleton-detail:nth-child(3) {
  width: 45%;
}

/* Shimmer animation effect */
.tournament-skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0));
  animation: shimmer 2s infinite;
  z-index: 1;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
@keyframes radial-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.6;
  }
}
/* 🎬 Holographic animations (imported from upcomingCard) */
@keyframes holographic-border {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0.5;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.8;
  }
}
@keyframes neo-scanner-sweep {
  0%, 100% {
    background-position: center center, center center, center center, center center;
    transform: scale(1);
    opacity: 0.6;
  }
  25% {
    background-position: center center, center center, center center, center center;
    transform: scale(1.005);
    opacity: 0.8;
  }
  50% {
    background-position: center center, center center, center center, center center;
    transform: scale(1);
    opacity: 1;
  }
  75% {
    background-position: center center, center center, center center, center center;
    transform: scale(0.995);
    opacity: 0.7;
  }
}
@keyframes scanner-sweep {
  0%, 100% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.6;
  }
}
@keyframes data-pulse {
  0% {
    text-shadow: 0 0 4px rgba(150, 100, 255, 0.6);
  }
  100% {
    text-shadow: 0 0 8px rgb(150, 100, 255);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes subtle-glow {
    0% {
      opacity: 0.3;
    }
    100% {
      opacity: 0.8;
    }
  }
  .tournament-compact-card:hover::before {
    animation: subtle-glow 0.3s ease-in-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tournament-compact-card,
  .tournament-compact-card *,
  .tournament-modal-content,
  .tournament-modal-overlay {
    animation: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
  }
}
@keyframes neo-scanner-sweep {
  0%, 100% {
    background-position: center center, center center, center center, center center;
    transform: scale(1);
    opacity: 0.6;
  }
  25% {
    background-position: center center, center center, center center, center center;
    transform: scale(1.005);
    opacity: 0.8;
  }
  50% {
    background-position: center center, center center, center center, center center;
    transform: scale(1);
    opacity: 1;
  }
  75% {
    background-position: center center, center center, center center, center center;
    transform: scale(0.995);
    opacity: 0.7;
  }
}
@keyframes scanner-sweep {
  0%, 100% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.6;
  }
}
/* 🌊 Fixed border traveling animation */
@keyframes border-travel-sequence {
  0% {
    background-position: -30% top, right -30%, 130% bottom, left 130%;
  }
  25% {
    background-position: 130% top, right -30%, 130% bottom, left 130%;
  }
  50% {
    background-position: 130% top, right 130%, 130% bottom, left 130%;
  }
  75% {
    background-position: 130% top, right 130%, -30% bottom, left 130%;
  }
  100% {
    background-position: 130% top, right 130%, -30% bottom, left -30%;
  }
}
/* Skeleton content has consistent styling across all screen sizes */
.skeleton-content {
  padding: 16px;
}

.tournamentView {
  width: 100vw;
  min-height: 100vh; /* Force minimum height to viewport */
  padding-top: 12px;
}

.tabMenu {
  display: flex;
  justify-content: center;
}
.tabMenu a {
  background: none;
  color: #ffffff;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  border-bottom: 2px solid rgba(221, 221, 221, 0.5);
  padding-left: 8%;
  padding-right: 8%;
  padding-bottom: 2px;
}
.tabMenu a.active {
  border-bottom: 2px solid rgb(221, 221, 221);
}

/* Result/players table styling */
.playersWrapper table {
  color: #ffffff;
  width: 93%;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.08);
}

#resultsTable {
  width: 100%;
}
#resultsTable th, #resultsTable td {
  padding: 8px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#resultsTable th {
  color: #e0e0e0;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
#resultsTable th:first-of-type, #resultsTable th:nth-of-type(2) {
  text-align: left;
}
#resultsTable tr td:nth-of-type(2) {
  text-align: left;
  padding-left: 8px;
}
#resultsTable td {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#resultsTable tbody tr:last-of-type td {
  border-bottom: none;
}
#resultsTable tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

/* Round view (ie. all matches per round) */
.matchesWrapper {
  display: none;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
}
.matchesWrapper h1 {
  text-align: center;
}
.matchesWrapper .roundSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.matchesWrapper .roundSelector.active {
  border-bottom: none;
  font-weight: 900;
}
.matchesWrapper #adminStartButton, .matchesWrapper #adminUndoButton {
  margin: 0 auto;
}
.matchesWrapper #adminStartButton::before, .matchesWrapper #adminUndoButton::before {
  left: 12%;
}
.matchesWrapper #adminStartButton:first-of-type, .matchesWrapper #adminUndoButton:first-of-type {
  margin-top: 28px;
  margin-bottom: 20px;
}
.matchesWrapper table {
  color: #ffffff;
  border-spacing: 4px;
  width: 98%;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(68, 22, 98, 0.2);
  border-radius: 5px;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 2px;
}
.matchesWrapper table th {
  border-bottom: 1px solid rgba(221, 221, 221, 0.5);
  width: 10%;
}
.matchesWrapper table th:nth-of-type(2), .matchesWrapper table th:nth-of-type(4) {
  text-align: left;
  width: 40%;
}
.matchesWrapper table tr {
  padding-left: 4px;
}
.matchesWrapper table td {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid RGBA(255, 255, 255, 0.5);
  width: 10%;
}
.matchesWrapper table td:nth-of-type(2), .matchesWrapper table td:nth-of-type(4) {
  text-align: left;
  width: 40%;
}
.matchesWrapper table td:nth-of-type(4) {
  border-right: none;
}
.matchesWrapper button {
  background: none;
  color: #ffffff;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  border-bottom: 2px solid rgba(221, 221, 221, 0.5);
}
.matchesWrapper button.active {
  border-bottom: 2px solid rgb(221, 221, 221);
}

/* Next game view */
.nextGameWrapper {
  display: none;
  color: #ffffff;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.nextGameWrapper #gameHistory table#summaryTable th {
  padding-bottom: 10px;
}
.nextGameWrapper .nextGame {
  margin-bottom: 30px;
  /* The Modal (background) */
  /* Modal Content */
  /* The Close Button */
}
.nextGameWrapper .nextGame .btn.register.secondary.result {
  margin: 0 auto;
  margin-top: 30px;
}
.nextGameWrapper .nextGame .btn.register.secondary.result::before {
  left: 14%;
}
.nextGameWrapper .nextGame .registerResultModal {
  width: 85%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition-property: opacity, height;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Location of the box */
  left: 0;
  /* Full width */
  overflow: auto;
  /* Enable scroll if needed */
  left: 50%;
  background: #041131;
  transform: translate(-50%, -50%);
  border-radius: 12px;
}
.nextGameWrapper .nextGame .registerResultModal .selectResultButton.btn.primary.secondary.selected {
  background: rgba(239, 0, 0, 0.2);
}
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.secondary,
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.primary.tertiary {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.5);
}
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.secondary::before,
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.primary.tertiary::before {
  left: 12%;
}
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.secondary.selected,
.nextGameWrapper .nextGame .registerResultModal .registerFinalResultBtn.btn.primary.tertiary.selected {
  color: rgb(255, 255, 255);
  background: rgba(239, 0, 0, 0.2);
}
.nextGameWrapper .nextGame .registerResultModalContent {
  margin: auto;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.nextGameWrapper .nextGame .registerResultModalContent .btn.secondary {
  margin: 0 auto;
  margin-bottom: 42px;
  margin-top: 28px;
  width: 78%;
}
.nextGameWrapper .nextGame .registerResultModalContent .btn.secondary::before {
  left: 23%;
}
.nextGameWrapper .nextGame .registerResultModalContent .btn.primary.tertiary {
  margin: 0 auto;
  margin-bottom: 42px;
  margin-top: 28px;
}
.nextGameWrapper .nextGame .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 8px;
  padding: 2px;
  z-index: 1;
}
.nextGameWrapper .nextGame .close:hover,
.nextGameWrapper .nextGame .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.nextGameWrapper .nextGame .tableNumber {
  text-align: center;
}
.nextGameWrapper .nextGame .versusWrapper {
  display: flex;
  margin-top: 42px;
}
.nextGameWrapper .nextGame .versusWrapper .blackWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 47%;
}
.nextGameWrapper .nextGame .versusWrapper .blackWrapper p {
  text-align: center;
  margin-bottom: 0;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 47%;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p {
  text-align: center;
  margin-bottom: 0;
}
.nextGameWrapper .nextGame .versusWrapper .versus {
  width: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0px 20px;
}
.nextGameWrapper .nextGame .versusWrapper .profilePicture {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 20px;
}
.nextGameWrapper .gameHistory {
  text-align: center;
  background: rgba(68, 22, 98, 0.2);
  border-radius: 8px;
}
.nextGameWrapper .gameHistory #summaryTable th {
  text-align: center;
}
.nextGameWrapper .gameHistory table {
  color: #ffffff;
  border-spacing: 4px;
  width: 100%;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}
.nextGameWrapper .gameHistory table th {
  border-bottom: 1px solid rgba(221, 221, 221, 0.5);
  width: 20%;
}
.nextGameWrapper .gameHistory table th:nth-of-type(1), .nextGameWrapper .gameHistory table th:nth-of-type(3) {
  text-align: left;
  width: 40%;
}
.nextGameWrapper .gameHistory table th:nth-of-type(2) {
  text-align: center;
}
.nextGameWrapper .gameHistory table tr {
  padding-left: 4px;
}
.nextGameWrapper .gameHistory table td {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid RGBA(255, 255, 255, 0.5);
  width: 20%;
}
.nextGameWrapper .gameHistory table td:nth-of-type(1), .nextGameWrapper .gameHistory table td:nth-of-type(3) {
  text-align: left;
  width: 40%;
}
.nextGameWrapper .gameHistory table td:nth-of-type(3) {
  border-right: none;
}

.gameHistoryFull {
  display: block;
  border: 1px solid #7615c3;
  border-radius: 6px;
  margin-bottom: 4px;
  overflow-x: scroll;
  padding-top: 4px;
  transform: scaleY(1);
  transition: all 0.2s ease;
  height: 100%;
}
.gameHistoryFull.hidden {
  transform: scaleY(0);
  transition: all 0.2s ease;
  visibility: collapse;
  height: 0;
}

.rClass {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.rClass::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 20px;
}
.rClass.expert::before {
  background-color: #0055FF !important;
}
.rClass.challenger::before {
  background-color: #00F0D0 !important;
}
.rClass.amateur::before {
  background-color: #FF33C8 !important;
}
.rClass.no-rating::before {
  background-color: silver;
}

.reportedResult {
  margin-top: 30px;
  text-align: center;
  background: rgba(96, 8, 154, 0.11);
  padding: 12px 0px;
  border-radius: 8px;
}

.round-indicator {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.round-indicator h2 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

/* Rounds View - Pink & Blue Neon Styling */
.matchesWrapper {
  display: block;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  /* Enhanced table styling for rounds view */
  /* Round selector buttons */
}
.matchesWrapper table {
  color: #ffffff;
  border-spacing: 4px;
  width: 98%;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(0, 191, 255, 0.08));
  border: 1px solid rgba(255, 20, 147, 0.3);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.15), 0 0 40px rgba(0, 191, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.matchesWrapper table th {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(0, 191, 255, 0.15));
  border-bottom: 1px solid rgba(255, 20, 147, 0.6);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
  position: relative;
}
.matchesWrapper table th::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.8), transparent);
}
.matchesWrapper table td {
  background: rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 20, 147, 0.3);
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  transition: all 0.3s ease;
}
.matchesWrapper table td:hover {
  background: rgba(255, 20, 147, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 191, 255, 0.3);
}
.matchesWrapper table tbody tr:hover td {
  background: rgba(255, 20, 147, 0.15);
  transform: scale(1.02);
}
.matchesWrapper .roundSelector button {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(0, 191, 255, 0.2));
  border: 1px solid rgba(255, 20, 147, 0.4);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 20, 147, 0.6);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.matchesWrapper .roundSelector button:hover {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(0, 191, 255, 0.3));
  box-shadow: 0 0 25px rgba(255, 20, 147, 0.5), 0 0 35px rgba(0, 191, 255, 0.3);
  transform: translateY(-2px);
}
.matchesWrapper .roundSelector button.active {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.6), rgba(0, 191, 255, 0.4));
  border: 1px solid rgba(0, 191, 255, 0.8);
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.6), 0 0 50px rgba(0, 191, 255, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 15px rgb(0, 191, 255);
}
.matchesWrapper .roundSelector button.disabled {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(80, 80, 80, 0.2));
  border: 1px solid rgba(100, 100, 100, 0.4);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  text-shadow: none;
  box-shadow: none;
  transform: none;
}
.matchesWrapper .roundSelector button.disabled:hover {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(80, 80, 80, 0.2));
  box-shadow: none;
  transform: none;
}

/* Rounds view specific form elements */
.matchesWrapper {
  /* Edit/Submit buttons */
  /* Result dropdown */
  /* Loading indicator */
  /* Tournament finished indicator */
}
.matchesWrapper .edit-result-btn, .matchesWrapper .submit-result-btn {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.3), rgba(0, 191, 255, 0.2));
  border: 1px solid rgba(255, 20, 147, 0.6);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 20, 147, 0.8);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.matchesWrapper .edit-result-btn:hover:not(.disabled), .matchesWrapper .submit-result-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.5), rgba(0, 191, 255, 0.3));
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.5), 0 0 30px rgba(0, 191, 255, 0.3);
  transform: translateY(-1px);
}
.matchesWrapper .edit-result-btn.disabled, .matchesWrapper .submit-result-btn.disabled {
  background: rgba(100, 100, 100, 0.3);
  border: 1px solid rgba(100, 100, 100, 0.5);
  color: #888;
  cursor: not-allowed;
  text-shadow: none;
  box-shadow: none;
}
.matchesWrapper .submit-result-btn {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.3), rgba(0, 191, 255, 0.2));
  border: 1px solid rgba(0, 255, 127, 0.6);
  text-shadow: 0 0 8px rgba(0, 255, 127, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.matchesWrapper .submit-result-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.5), rgba(0, 191, 255, 0.3));
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.5), 0 0 30px rgba(0, 191, 255, 0.3);
}
.matchesWrapper .result-dropdown {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 20, 147, 0.1));
  border: 1px solid rgba(255, 20, 147, 0.6);
  color: #ffffff;
  padding: 8px 8px;
  border-radius: 3px;
  font-size: 12px;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.matchesWrapper .result-dropdown:focus {
  outline: none;
  border: 1px solid rgba(0, 191, 255, 0.8);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.5), 0 0 35px rgba(255, 20, 147, 0.3);
}
.matchesWrapper .result-dropdown option {
  background: #041131;
  color: #ffffff;
  padding: 4px;
  border: none;
}
.matchesWrapper .loading-indicator {
  color: #ffff00;
  font-size: 12px;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
  animation: pulse 1.5s ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 20px rgb(255, 255, 0);
  }
}
.matchesWrapper .tournament-finished {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)) !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, #ff1493, #00bfff) 1 !important;
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 0 10px #ff1493, 0 0 20px #00bfff, 0 0 30px #ff1493;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.6), 0 0 50px rgba(0, 191, 255, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.5);
  animation: finishedGlow 2s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}
.matchesWrapper .tournament-finished::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 191, 255, 0.1));
  z-index: -1;
}
@keyframes finishedGlow {
  from {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6), 0 0 50px rgba(0, 191, 255, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 10px #ff1493, 0 0 20px #00bfff, 0 0 30px #ff1493;
  }
  to {
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8), 0 0 80px rgba(0, 191, 255, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 15px #ff1493, 0 0 30px #00bfff, 0 0 45px #ff1493, 0 0 60px #00bfff;
  }
}

/* Staff toggle and user selector for testing (rounds view) */
.matchesWrapper {
  /* Disputed match styling for staff */
}
.matchesWrapper .staff-toggle button, .matchesWrapper .staff-toggle select, .matchesWrapper .user-selector button, .matchesWrapper .user-selector select {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(0, 191, 255, 0.15));
  border: 1px solid rgba(255, 20, 147, 0.4);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
  transition: all 0.3s ease;
}
.matchesWrapper .staff-toggle button:hover, .matchesWrapper .staff-toggle select:hover, .matchesWrapper .user-selector button:hover, .matchesWrapper .user-selector select:hover {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.25), rgba(0, 191, 255, 0.25));
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}
.matchesWrapper .staff-toggle button option, .matchesWrapper .staff-toggle select option, .matchesWrapper .user-selector button option, .matchesWrapper .user-selector select option {
  background: #041131;
  color: #ffffff;
}
.matchesWrapper .disputed-cell {
  background-color: rgba(255, 68, 68, 0.1) !important;
  position: relative;
}
.matchesWrapper .disputed-cell .dispute-label {
  display: inline-block;
  animation: disputePulse 2s ease-in-out infinite alternate;
}
.matchesWrapper .disputed-cell .result-dropdown {
  border-color: #ff4444 !important;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
@keyframes disputePulse {
  from {
    background: #ff4444;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.8);
  }
  to {
    background: #cc3333;
    box-shadow: 0 0 15px rgb(255, 68, 68);
  }
}

.nextGameWrapper .nextGame .roundTableIndicator {
  text-align: center;
  margin-bottom: 20px;
}
.nextGameWrapper .nextGame .roundTableIndicator h2 {
  color: rgba(0, 255, 255, 0.9);
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(96, 8, 154, 0.6);
}
.nextGameWrapper .nextGame .versusWrapper {
  display: flex;
  margin-top: 42px;
  align-items: center;
  justify-content: space-between;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper, .nextGameWrapper .nextGame .versusWrapper .blackWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 47%;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p {
  text-align: center;
  margin-bottom: 0;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.colorIndicator, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.colorIndicator {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 5px 0;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.playerName, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.playerName {
  color: white;
  font-weight: bold;
  margin: 5px 0;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.playerRating, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.playerRating {
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.playerRating.rating-gain, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.playerRating.rating-gain {
  color: #00FF88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.8), 0 0 16px rgba(0, 255, 136, 0.4);
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.playerRating.rating-loss, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.playerRating.rating-loss {
  color: #FF3366;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.8), 0 0 16px rgba(255, 51, 102, 0.4);
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper p.walkOver, .nextGameWrapper .nextGame .versusWrapper .blackWrapper p.walkOver {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.nextGameWrapper .nextGame .versusWrapper .whiteWrapper .profilePicture, .nextGameWrapper .nextGame .versusWrapper .blackWrapper .profilePicture {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}
.nextGameWrapper .nextGame .versusWrapper .versus {
  width: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
.nextGameWrapper .nextGame .resultSubmissionContainer {
  margin-top: 30px;
}
.nextGameWrapper .nextGame .resultSubmissionContainer .btn.register.secondary.result {
  background: linear-gradient(135deg, rgba(96, 8, 154, 0.6), rgba(0, 255, 255, 0.3));
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  display: block;
  margin: 0 auto;
  transition: all 200ms ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}
.nextGameWrapper .nextGame .resultSubmissionContainer .btn.register.secondary.result:hover {
  background: linear-gradient(135deg, rgba(96, 8, 154, 0.8), rgba(0, 255, 255, 0.5));
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}
.nextGameWrapper .nextGame .registerResultModal {
  width: 85%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 150ms ease-out, height 150ms ease-out;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #041131, rgba(96, 8, 154, 0.3));
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}
.nextGameWrapper .nextGame .registerResultModal.show {
  opacity: 1;
  height: 400px;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent {
  padding: 20px;
  position: relative;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .close {
  color: rgba(0, 255, 255, 0.8);
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .close:hover, .nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .close:focus {
  color: rgb(0, 255, 255);
  text-decoration: none;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent h3 {
  color: white;
  text-align: center;
  margin: 20px 0;
  font-size: 1.3rem;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .resultButtons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .resultButtons .selectResultButton {
  background: rgba(161, 99, 183, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.3);
  color: white;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .resultButtons .selectResultButton:hover:not(.selected) {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.6);
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .resultButtons .selectResultButton.selected {
  background: rgba(58, 193, 58, 0.36);
  border-color: rgba(75, 255, 75, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .registerFinalResultBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  padding: 15px 30px;
  border-radius: 12px;
  cursor: not-allowed;
  transition: all 200ms ease;
  font-size: 1rem;
  display: block;
  margin: 20px auto;
  pointer-events: none;
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .registerFinalResultBtn.selected {
  color: rgb(255, 255, 255);
  background: linear-gradient(135deg, rgba(96, 8, 154, 0.6), rgba(0, 255, 255, 0.3));
  border-color: rgba(0, 255, 255, 0.5);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}
.nextGameWrapper .nextGame .registerResultModal .registerResultModalContent .registerFinalResultBtn.selected:hover {
  background: linear-gradient(135deg, rgba(96, 8, 154, 0.8), rgba(0, 255, 255, 0.5));
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}
.nextGameWrapper .nextGame .reportedResult {
  margin-top: 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(96, 8, 154, 0.3), rgba(0, 255, 255, 0.1));
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nextGameWrapper .nextGame .reportedResult p {
  margin: 0;
}
.nextGameWrapper .nextGame .reportedResult p.resultText {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}
.nextGameWrapper .nextGame .reportedResult p.statusText {
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0 0 0;
  font-size: 0.9rem;
}
.nextGameWrapper .nextGame .reportedResult .btn.secondary.changeResult {
  align-self: center;
}
.nextGameWrapper .nextGame .reportedResult .btn.secondary.changeResult::before {
  left: 25px;
}
.nextGameWrapper .nextGame .gameHistory {
  margin: 60px auto 10px auto;
  background: linear-gradient(135deg, rgba(68, 22, 98, 0.3), rgba(0, 255, 255, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  text-align: center;
}
@media (min-width: 1199px) {
  .nextGameWrapper .nextGame .gameHistory {
    width: 43%;
  }
}
.nextGameWrapper .nextGame .gameHistory h3 {
  color: white;
  margin: 0 0 15px 0;
  text-align: center;
  font-size: 1.1rem;
}
.nextGameWrapper .nextGame .gameHistory h4 {
  color: rgba(0, 255, 255, 0.9);
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.nextGameWrapper .nextGame .gameHistory .firstMeeting, .nextGameWrapper .nextGame .gameHistory .walkOverHistory, .nextGameWrapper .nextGame .gameHistory .historyLoading {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-style: italic;
  margin: 15px 0;
  font-size: 0.9rem;
}
.nextGameWrapper .nextGame .gameHistory .firstMeeting {
  color: rgba(76, 175, 80, 0.8);
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 10px 0;
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem {
  text-align: center;
  flex: 1;
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-legend {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 599px) {
  .nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-legend {
    font-size: 10px;
  }
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-data {
  font-size: 20px;
  font-weight: bold;
  color: white;
}
@media (max-width: 599px) {
  .nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-data {
    font-size: 18px;
  }
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-data.user-score {
  color: #4CAF50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}
.nextGameWrapper .nextGame .gameHistory .historyStats .gameStats .statItem .statItem-data.opponent-score {
  color: #f44336;
  text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}
.nextGameWrapper .nextGame .gameHistory .historyStats .winPercentage {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.nextGameWrapper .nextGame .gameHistory #summaryTable {
  width: 100%;
  color: white;
  border-spacing: 0;
}
.nextGameWrapper .nextGame .gameHistory #summaryTable th {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.9rem;
}
.nextGameWrapper .nextGame .gameHistory #summaryTable td {
  padding: 12px;
  text-align: center;
}
.nextGameWrapper .nextGame .gameHistory #summaryTable td.userScore, .nextGameWrapper .nextGame .gameHistory #summaryTable td.opponentScore {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}
.nextGameWrapper .nextGame .gameHistory #summaryTable td.resultScore {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.upcomingCard.more {
  transition: transform 0.3s ease-in-out;
  transform: rotateY(0deg);
}

.upcomingCard.more.expanded {
  display: block;
  margin-top: 20px;
  height: 78vh;
  margin-bottom: 10px;
  overflow: auto;
}
.upcomingCard.more.expanded .tournamentDescription {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.upcomingCard.more.expanded .tournamentDescription.show-more {
  -webkit-line-clamp: unset;
  overflow: visible;
  cursor: pointer;
}
.upcomingCard.more.expanded .tournamentCardPicture {
  width: 100%;
  border-top-right-radius: 14px;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  height: 200px;
  position: static;
}
.upcomingCard.more.expanded .cardContent {
  display: flex;
  flex-direction: column;
  width: 85%;
  margin: 0 auto;
}
.upcomingCard.more.expanded .cardContent p {
  margin-bottom: 20px;
}
.upcomingCard.more.expanded .cardContent .cardRow {
  display: flex;
  justify-content: space-between;
}
.upcomingCard.more.expanded .cardContent .cardRow #date {
  color: #fff;
}
.upcomingCard.more.expanded .cardContent .cardRow #date::before {
  content: "Dato";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #time {
  color: #fff;
}
.upcomingCard.more.expanded .cardContent .cardRow #time::before {
  content: "Tid";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #fee {
  color: #fff;
}
.upcomingCard.more.expanded .cardContent .cardRow #fee::before {
  content: "Pris";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #rounds {
  color: #fff;
}
.upcomingCard.more.expanded .cardContent .cardRow #rounds::before {
  content: "Runder";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent button {
  align-self: center;
}

.profilePage {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 70px;
}

.profile-header {
  position: relative;
  background: linear-gradient(135deg, rgba(45, 52, 95, 0.8) 0%, rgba(20, 30, 70, 0.9) 100%);
  border-radius: 12px;
  padding: 30px 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(78, 99, 245, 0.1);
  border: 1px solid rgba(120, 130, 255, 0.15);
  overflow: hidden;
}
.profile-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(130, 87, 229, 0.2) 0%, rgba(78, 99, 245, 0) 70%);
  border-radius: 50%;
  opacity: 0.7;
  z-index: 0;
}
.profile-header::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(162, 89, 255, 0.15) 0%, rgba(78, 99, 245, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.profile-picture-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(78, 99, 245, 0.2);
  border: 3px solid rgba(130, 150, 255, 0.3);
  z-index: 1;
}

#profilePicture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picture-change-button {
  background: linear-gradient(135deg, rgba(30, 50, 100, 0.8) 0%, rgba(20, 35, 80, 0.9) 100%);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.picture-change-button:hover {
  background: linear-gradient(135deg, rgba(40, 60, 120, 0.9) 0%, rgb(30, 45, 90) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(78, 99, 245, 0.2);
  transform: translateY(-2px);
}
.picture-change-button:active {
  transform: translateY(0px);
}

#pictureInput {
  display: none;
}

.profile-name {
  font-size: 1.8rem;
  margin: 10px 0 5px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
  position: relative;
  z-index: 1;
}

.rating-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 5px 0 15px;
  position: relative;
  z-index: 1;
}
.rating-display .rating-position {
  margin-top: 20px;
}

.rating-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rating-badge-row .playerColor.expert {
  background-color: #0055FF;
}
.rating-badge-row .playerColor.challenger {
  background-color: #00F0D0;
}
.rating-badge-row .playerColor.amateur {
  background-color: #FF33C8;
}
.rating-badge-row .rating-class.expert-class {
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.4), rgba(0, 85, 255, 0.2));
  border-color: rgba(0, 85, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.4);
}
.rating-badge-row .rating-class.challenger-class {
  background: linear-gradient(135deg, rgba(0, 240, 208, 0.4), rgba(0, 240, 208, 0.2));
  border-color: rgba(0, 240, 208, 0.6);
  box-shadow: 0 0 15px rgba(0, 240, 208, 0.4);
}
.rating-badge-row .rating-class.amateur-class {
  background: linear-gradient(135deg, rgba(255, 51, 200, 0.4), rgba(255, 51, 200, 0.2));
  border-color: rgba(255, 51, 200, 0.6);
  box-shadow: 0 0 15px rgba(255, 51, 200, 0.4);
}

.rating-trend-graph {
  margin-top: 4px;
}

.rating-trend-caption {
  font-size: 0.75rem;
  color: white;
  margin-top: 2px;
}

.rating-badge {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.playerColor {
  margin: 0;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-block;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3), 0 0 10px currentColor;
}

.rating-class {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 16px;
  border: 2px solid transparent;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}
.rating-class:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.userInfo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
  position: relative;
}

.info-card {
  background: linear-gradient(135deg, rgba(30, 50, 100, 0.3) 0%, rgba(15, 25, 60, 0.3) 100%);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(100, 150, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(78, 99, 245, 0.2);
}

.info-title {
  color: rgba(150, 200, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.info-value {
  color: white;
  font-size: 1.1rem;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chess-account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chess-account .platform-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.account-link {
  color: rgb(130, 180, 255);
  text-decoration: none;
}
.account-link:hover {
  text-decoration: underline;
}

.bio-card {
  grid-column: 1/-1;
}

/* Animation for skeleton loading */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
/* Responsive adjustments */
@media (max-width: 600px) {
  .userInfo {
    grid-template-columns: 1fr;
  }
  .profile-header {
    padding: 20px 15px;
  }
  .profile-picture-container {
    width: 120px;
    height: 120px;
  }
  .profile-name {
    font-size: 1.5rem;
  }
}
.bw-card {
  margin: 15px auto;
  max-width: 300px;
  text-align: center;
}

.bw-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0;
}

.bw-row:not(:last-of-type) {
  margin-bottom: 16px;
}

.bw-label {
  font-weight: 600;
  color: rgba(150, 200, 255, 0.8);
}

.bw-value {
  font-style: italic;
  color: #ffffff;
}

.bw-best::before {
  content: "▲"; /* up triangle */
  color: #5fffa1;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.bw-worst::before {
  content: "▼"; /* down triangle */
  color: #ff6b6b;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.bw-container-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.bw-inline {
  margin: 4px 0;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

.bw-inline:not(:last-of-type) {
  margin-bottom: 6px;
}

.match-record-box {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-top: 16px;
  padding: 18px 26px 20px;
  background: rgba(20, 30, 70, 0.35);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border-radius: 14px;
  border: 1px solid rgba(120, 130, 255, 0.25);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(78, 99, 245, 0.2); /* outer soft glow */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mr-total-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(130, 150, 255, 0.35);
}

.mr-total-label {
  margin-top: 2px;
  font-size: 0.75rem;
  color: rgba(150, 200, 255, 0.9);
}

.mr-mid-row {
  display: flex;
  gap: 22px;
  margin: 12px 0 10px;
}

.mr-mid-col {
  text-align: center;
  min-width: 50px;
}

.mr-mid-col .mr-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.mr-mid-col .mr-label {
  font-size: 0.65rem;
  margin-top: 1px;
  color: rgba(150, 200, 255, 0.85);
}

.mr-wins .mr-value {
  color: #5fffa1;
}

.mr-losses .mr-value {
  color: #ff6b6b;
}

.mr-draws .mr-value {
  color: #ffd56b;
}

.mr-percentage {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a5b4ff;
  text-shadow: 0 0 4px rgba(165, 180, 255, 0.35);
}

@media (max-width: 600px) {
  .match-record-box {
    max-width: 80%;
  }
}
.match-stat-wrapper {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
  gap: 6px;
}

.stat-total {
  font-size: 0.75rem;
  color: rgba(150, 200, 255, 0.85);
}

.stat-bar {
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6), 0 0 8px rgba(78, 99, 245, 0.15);
  display: flex;
}

.stat-seg {
  height: 100%;
  transition: width 0.6s ease;
}

.seg-wins {
  background: linear-gradient(90deg, #3cff85, #26ff6b);
}

.seg-losses {
  background: linear-gradient(90deg, #ff6b6b, #ff4b4b);
}

.seg-draws {
  background: linear-gradient(90deg, #ffd56b, #ffcb4b);
}

.stat-winpct {
  font-size: 0.8rem;
  color: #a5b4ff;
  text-shadow: 0 0 4px rgba(165, 180, 255, 0.35);
}

@media (max-width: 600px) {
  .match-stat-wrapper {
    max-width: 80%;
  }
}
.stat-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(150, 200, 255, 0.85);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.li-wins .legend-label {
  color: #5fffa1;
}

.li-losses .legend-label {
  color: #ff6b6b;
}

.li-draws .legend-label {
  color: #ffd56b;
}

@media (max-width: 800px) {
  #fuzz-splash {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    background-image: radial-gradient(circle at center, rgba(40, 80, 160, 0.1), rgb(20, 40, 80) 80%, rgb(10, 10, 25) 90%), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 50%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: all;
  }
  #fuzz-splash.splash-hide {
    opacity: 0;
    pointer-events: none;
  }
  #fuzz-splash-logo {
    width: 60vw;
    max-width: 320px;
    min-width: 120px;
    animation: splash-zoom 1.2s cubic-bezier(0.4, 1.4, 0.4, 1) forwards;
    filter: drop-shadow(0 0 32px rgba(0, 207, 255, 0.5333333333)) drop-shadow(0 0 8px rgba(89, 29, 167, 0.8));
  }
  @keyframes splash-zoom {
    0% {
      transform: scale(0.7);
      opacity: 0.7;
    }
    60% {
      transform: scale(1.08);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background-image: radial-gradient(circle at center, rgba(40, 80, 160, 0.1), rgb(20, 40, 80) 80%, rgb(10, 10, 25) 90%), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 50%, transparent 50%);
  background-color: #000000;
  background-repeat: no-repeat;
}

body {
  overscroll-behavior: none; /* Prevent bounce in modern browsers */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.pwa-refresh-loading {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.pwa-refresh-loading.pwa-refresh-visible {
  opacity: 1;
}
.pwa-refresh-loading.pwa-refresh-active {
  transform: translateX(-50%) translateY(0px);
}

.pwa-refresh-spinner {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.pwa-refresh-icon {
  width: 100%;
  height: 100%;
  color: #CC77FD;
  transition: transform all 0.3s ease;
}
.pwa-refresh-icon.pwa-refresh-spinning {
  animation: pwa-refresh-spin 1s linear infinite;
}

.pwa-refresh-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  white-space: nowrap;
}

@keyframes pwa-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@supports (padding: env(safe-area-inset-top)) {
  .pwa-refresh-loading {
    top: env(safe-area-inset-top);
  }
}