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

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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#app h1 {
  font-size: 28px;
  color: #ffffff;
  text-transform: uppercase;
}
#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 h2.firstCardLabel {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
}

.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;
  }
}

.btn.compact {
  width: auto;
  max-width: none;
  height: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease-out;
}
.btn.compact::before {
  content: none;
}
.btn.compact.primary:not(:disabled) {
  border: 1px solid rgba(0, 240, 208, 0.5);
  background: rgba(0, 240, 208, 0.12);
  color: #ffffff;
  box-shadow: none;
}
.btn.compact.primary:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 208, 0.75);
  background: rgba(0, 240, 208, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn.compact.primary:not(:disabled):active {
  transform: translateY(0);
  background: rgba(0, 240, 208, 0.26);
  box-shadow: none;
}
.btn.compact.secondary {
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
  filter: none;
}
.btn.compact.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.btn.compact:focus-visible {
  outline: 2px solid rgba(0, 255, 255, 0.8);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .btn.compact {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn.compact {
    transition: none;
  }
  .btn.compact:hover, .btn.compact:active {
    transform: none;
  }
}

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;
}

body.view-loggedIn .topbar.inside .previous {
  visibility: hidden;
  display: 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 transparent, 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.2), 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.15), 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, #0055FF 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;
}
body:not(.view-profilePage).view-main #innerView {
  align-items: stretch;
}

.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.2);
  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(255, 255, 255, 0.9);
  border: 2px solid rgba(204, 119, 253, 0.3);
  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: #000000;
  transition: all 0.3s ease;
}
#app form div input[type=text]:focus, #app form div input[type=text]:active, #app form div input[type=password]:focus, #app form div input[type=password]:active, #app form div input[type=email]:focus, #app form div input[type=email]:active, #app form div input[type=number]:focus, #app form div input[type=number]:active {
  outline: none;
  background: #ffffff;
  border-color: #CC77FD;
}
#app form div input[type=text]::placeholder, #app form div input[type=password]::placeholder, #app form div input[type=email]::placeholder, #app form div input[type=number]::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
#app form div label {
  display: none;
}
#app form div label[required]::after {
  content: "*";
  display: "inline";
  color: red;
}

/* The Fuzz Clock: a full-screen two-sided chess clock for one shared phone.
   The far side is rotated 180° so it reads upright across the table. */
.fuzz-clock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #0a1428;
  user-select: none;
  /* End-of-game dialog, on top of the clock */
}
.fuzz-clock .fuzz-clock-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.fuzz-clock .fuzz-clock-side.top {
  transform: rotate(180deg);
}
.fuzz-clock .fuzz-clock-side.active {
  background: linear-gradient(180deg, rgba(120, 20, 80, 0.35), rgba(60, 10, 50, 0.15));
}
.fuzz-clock .fuzz-clock-side.flagged .fuzz-clock-time {
  color: #ff6b6b;
}
.fuzz-clock .fuzz-clock-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.2em;
  visibility: hidden;
}
.fuzz-clock .fuzz-clock-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(64px, 18vw, 120px);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.active .fuzz-clock .fuzz-clock-time {
  color: #ffffff;
}
.fuzz-clock .fuzz-clock-player {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 0.15em;
}
.fuzz-clock .fuzz-clock-bar {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.fuzz-clock .fuzz-clock-start {
  border: none;
  border-radius: 999px;
  padding: 12px 40px;
  font: inherit;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, #e0407f, #a468f0);
}
.fuzz-clock .fuzz-clock-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.fuzz-clock .fuzz-clock-format {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.fuzz-clock .fuzz-clock-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 17, 49, 0.85);
  backdrop-filter: blur(6px);
}
.fuzz-clock .fuzz-clock-dialog-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  background: #0a1428;
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px 16px;
}
.fuzz-clock .fuzz-clock-dialog-box h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}
.fuzz-clock .fuzz-clock-result {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  padding: 12px;
  cursor: pointer;
}
.fuzz-clock .fuzz-clock-result.selected {
  border-color: rgba(0, 255, 255, 0.6);
  color: rgb(0, 255, 255);
  font-weight: bold;
}
.fuzz-clock .fuzz-clock-resume {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 13px;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
}
.fuzz-clock .fuzz-clock-dialog-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
.fuzz-clock .fuzz-clock-dialog-error {
  color: #ff6b6b;
  font-size: 13px;
}

.btn.fuzz-clock-open {
  width: auto;
  display: block;
  margin: 0 auto 12px;
  padding: 10px 24px;
}
.btn.fuzz-clock-open::before {
  content: none;
}

#app .welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  padding-top: 0;
  /* Skeleton on welcome should mimic compact card rows */
  /* No upcoming tournaments message styling */
}
#app .welcome .tournament-card-container {
  width: 100%;
  max-width: 800px;
  padding: 0 16px;
  box-sizing: border-box;
  margin-bottom: 50px;
}
#app .welcome .tournament-compact-card {
  min-height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  cursor: default;
}
#app .welcome .tournament-content-container {
  padding: 16px;
}
#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: #ffffff;
  position: absolute;
  top: 0;
  right: -13px;
}
#app .welcome .tournament-compact-card:hover {
  transform: none;
}
#app .welcome .tournament-skeleton-card {
  min-height: 150px;
}
#app .welcome .skeleton-image {
  display: none;
}
#app .welcome .skeleton-content {
  align-items: center;
  text-align: center;
}
#app .welcome .skeleton-title {
  width: 80%;
  max-width: 460px;
}
#app .welcome .skeleton-detail {
  width: 60%;
  max-width: 360px;
}
#app .welcome .skeleton-detail:nth-child(2) {
  width: 50%;
}
#app .welcome .skeleton-detail:nth-child(3) {
  width: 40%;
}
#app .welcome .no-upcoming-tournament {
  text-align: center;
  padding: 3rem 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(204, 119, 253, 0.12) 30%, rgba(0, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0.12) 100%);
  border-radius: 12px;
  margin: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(204, 119, 253, 0.15), 0 4px 16px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#app .welcome .no-upcoming-tournament .icon-container {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem auto;
  filter: drop-shadow(0 0 8px rgba(204, 119, 253, 0.4));
  /* Fallback emoji styling */
  /* Show emoji when image fails */
}
#app .welcome .no-upcoming-tournament .icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#app .welcome .no-upcoming-tournament .icon-container .fallback-emoji {
  font-size: 3rem;
  line-height: 48px;
  text-align: center;
  display: none;
}
#app .welcome .no-upcoming-tournament .icon-container.image-failed .fallback-emoji {
  display: block;
}
#app .welcome .no-upcoming-tournament .icon-container.image-failed img {
  display: none;
}
#app .welcome .no-upcoming-tournament h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(204, 119, 253, 0.3);
}
#app .welcome .no-upcoming-tournament p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.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.8);
}

#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 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, 71, 87, 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;
}

.login-expired-notice {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(18, 28, 62, 0.94);
  text-align: left;
}
.login-expired-notice p {
  margin: 0;
}
.login-expired-notice .login-expired-title {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}
.login-expired-notice .login-expired-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.4;
}
.login-expired-notice .login-expired-text + .login-expired-text {
  margin-top: 8px;
}
.login-expired-notice .login-expired-text 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 .service-notice {
  align-items: flex-start;
  gap: 12px;
  padding: 16px 4px 16px 4px;
  margin: 8px 0 16px 0;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(245, 124, 0, 0.12) 100%);
  border: 1px solid rgba(255, 152, 0, 0.5);
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: notice-pulse 3s ease-in-out infinite;
}
.password-request-form .service-notice .service-notice-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-bottom: 8px !important;
}
.password-request-form .service-notice .service-notice-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.password-request-form .service-notice .service-notice-content strong {
  display: block;
  color: #ff9800;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
  word-wrap: break-word;
}
.password-request-form .service-notice .service-notice-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  word-wrap: break-word;
}
.password-request-form .service-notice .service-notice-content .service-notice-email {
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-all;
  text-align: center;
}
.password-request-form .service-notice .service-notice-content .service-notice-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
  background: linear-gradient(135deg, rgb(255, 162.3, 25.5) 0%, #ff9800 100%);
}
.password-request-form .service-notice .service-notice-content .service-notice-email:active {
  transform: translateY(0);
}
@keyframes notice-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
.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;
}

/* ═══════════════════════════════════════
   Home page – three-section layout
   ═══════════════════════════════════════ */
.home-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 76px 16px 20px;
  box-sizing: border-box;
  gap: 32px;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-section-title {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 255, 255, 0.7);
  margin: 0;
}

/* Skeleton pulse for section titles */
.skeleton-line {
  background: rgba(40, 50, 90, 0.5);
  border-radius: 3px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.home-error {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.home-empty {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 12px 0;
}

/* Next tournament – limit card height to stay compact */
.next-tournament-card-container {
  width: 100%;
}
.next-tournament-card-container .tournament-compact-card {
  min-height: 160px;
}

.next-tournament-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn.next-tournament-join-button,
.btn.secondary.next-tournament-readmore-button {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 44px;
}

/* Suppress the queen (queeny.png) / knight (horsy.png) icons from `.btn` on these buttons. */
.btn.primary.next-tournament-join-button::before,
.btn.secondary.next-tournament-readmore-button::before {
  content: none;
}

.next-tournament-join-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ───────────────────────────────────────
   Profile card
   ─────────────────────────────────────── */
.profile-card {
  background: linear-gradient(135deg, rgba(20, 35, 80, 0.9) 0%, rgba(10, 20, 50, 0.95) 100%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.profile-card.skeleton-card {
  position: relative;
  overflow: hidden;
}
.profile-card.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 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;
}

.profile-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, 0.3);
}

.profile-pic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.profile-card .profile-name {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: left;
  max-width: none;
  animation: none;
  text-shadow: none;
  letter-spacing: normal;
}

.profile-class-badge {
  --class-color: #ffffff;
  color: color-mix(in oklab, var(--class-color) 65%, white);
  background: color-mix(in srgb, var(--class-color) 12%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--class-color) 30%, transparent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--class-color) 45%, transparent);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--class-color);
  border-radius: 3px;
  padding: 2px 8px;
  width: fit-content;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 255, 255, 0.7);
}

.profile-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.profile-btn {
  align-self: flex-end;
  font-size: 14px !important;
  padding: 8px 20px !important;
}

/* Suppress the knight (horsy.png) icon from `.btn.secondary` on this button only. */
.btn.secondary.profile-btn::before {
  content: none;
}

/* Previous tournament recap */
.profile-recap {
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recap-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 255, 255, 0.7);
}

.recap-loading {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.recap-tournament-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.recap-stats {
  display: flex;
  gap: 16px;
}

.recap-stat {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 255, 255, 0.9);
}

.recap-open-btn {
  background: none;
  border: none;
  color: rgba(100, 180, 255, 0.9);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.recap-open-btn:hover {
  color: #ffffff;
}

/* ───────────────────────────────────────
   Tournaments link card
   Same surface as the profile card; the whole card is the link.
   ─────────────────────────────────────── */
.tournaments-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, rgba(20, 35, 80, 0.9) 0%, rgba(10, 20, 50, 0.95) 100%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tournaments-link-card:hover, .tournaments-link-card:focus-visible {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 255, 255, 0.15);
  outline: none;
}
.tournaments-link-card:hover .tournaments-link-arrow, .tournaments-link-card:focus-visible .tournaments-link-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.tournaments-link-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tournaments-link-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.tournaments-link-facts {
  display: flex;
  gap: 20px;
}

.tournaments-link-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tournaments-link-fact-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.tournaments-link-fact-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 255, 255, 0.7);
}

.tournaments-link-arrow {
  font-size: 24px;
  color: rgba(0, 255, 255, 0.7);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════ */
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;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInSlideDown 0.4s ease-out 0.1s forwards;
}

@keyframes fadeInSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.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;
  color: white;
  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 220ms ease;
  backdrop-filter: blur(12px);
  will-change: opacity;
}

.tournament-modal-overlay.visible {
  opacity: 1;
}

.tournament-modal-overlay.fading-out {
  opacity: 0;
}

.tournament-modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.96);
  will-change: transform, opacity;
  transition: opacity 180ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.6, 0.2, 1);
  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: scale(1);
}
.tournament-modal-content.closing {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 140ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 140ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.tournament-modal-content.expanded {
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  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 .tournament-name-text {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.tournament-expanded-name .tournament-location-date-text {
  font-size: calc(20px - 2px);
  font-weight: 700;
  text-transform: uppercase;
}
.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 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-label {
  font-size: 14px;
  color: rgba(0, 255, 255, 0.8);
  margin-bottom: 3px;
  font-weight: 500;
  backface-visibility: hidden;
  transform: translateZ(0);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

.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%;
  text-decoration: none;
}
@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, #2196F3, #1976D2);
}

.registration-button:hover {
  background: linear-gradient(135deg, #2196F3, #041131);
  transform: translateY(-2px);
}

/* Specific styles for open button */
.open-button {
  background: linear-gradient(135deg, #1a2757, #0a1428);
}

.open-button:hover {
  background: linear-gradient(135deg, #1a2757, #1a2757);
  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 {
  opacity: 0;
  transition: opacity 140ms ease;
}

.tournament-modal-content.closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96) !important;
  transition: opacity 140ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 140ms cubic-bezier(0.2, 0.6, 0.2, 1) !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 */
  .location-row .tournament-info-item {
    min-width: unset;
  }
  /* 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: 150px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Skeleton image placeholder (not used in compact layout) */
.skeleton-image {
  display: none;
}

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

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

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

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

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

/* 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%);
  }
}
/* In-place opacity pulse for skeleton placeholders (no translation). */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@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;
}

.tournament-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  background: linear-gradient(180deg, rgba(10, 10, 30, 0.5) 0%, rgba(10, 10, 30, 0.2) 100%);
}
.tournament-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255, 10.2, 189) 0%, #FF33C8 18%, rgb(127.5, 145.5, 204) 38%, #00F0D0 55%, rgb(0, 162.5, 231.5) 72%, #0055FF 88%, #3377ff 100%);
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 51, 200, 0.45), 0 0 16px rgba(0, 240, 208, 0.3), 0 0 24px rgba(0, 85, 255, 0.2);
}
.tournament-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(0, 71.4, 214.2) 0%, #0055FF 15%, rgb(0, 162.5, 231.5) 35%, #00F0D0 50%, rgb(127.5, 145.5, 204) 68%, #FF33C8 85%, rgb(255, 91.8, 211) 100%);
  opacity: 1;
  box-shadow: 0 0 6px rgba(0, 85, 255, 0.3), 0 0 12px rgba(255, 51, 200, 0.2);
}
.tournament-hero.beginner-subclass-gradient::before {
  background: var(--hero-top-gradient);
  box-shadow: var(--hero-top-shadow);
}
.tournament-hero.beginner-subclass-gradient::after {
  background: var(--hero-bottom-gradient);
  box-shadow: var(--hero-bottom-shadow);
}
.tournament-hero .hero-top-row,
.tournament-hero .hero-stats-row {
  opacity: 0;
  transform: translateY(6px);
}
.tournament-hero.loaded .hero-top-row {
  animation: heroFadeIn 0.4s ease-out forwards;
}
.tournament-hero.loaded .hero-stats-row {
  animation: heroFadeIn 0.4s ease-out 0.1s forwards;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}
.hero-stat .hero-stat-icon {
  display: flex;
  align-items: center;
  color: rgba(0, 255, 255, 0.6);
}
.hero-stat .hero-stat-icon svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.hero-stat .hero-stat-value {
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}
.hero-stat .hero-stat-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-accent-line {
  display: none;
}

.hero-title {
  margin: 0;
  font-size: 26px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(0, 240, 208, 0.2), 0 0 40px rgba(255, 51, 200, 0.1);
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 20px !important;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hero-registration-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.4), 0 0 10px rgba(0, 255, 255, 0.1);
  transition: all 0.25s ease;
}
.hero-registration-btn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 6px #00ffff;
  transition: all 0.25s ease;
}
.hero-registration-btn:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.6), 0 0 15px rgba(0, 255, 136, 0.15);
}
.hero-registration-btn:hover:not(:disabled)::before {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}
.hero-registration-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.hero-registration-btn.registered {
  padding: 5px 12px;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}
.hero-registration-btn.registered::before {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  width: 4px;
  height: 4px;
}
.hero-registration-btn.registered:hover:not(:disabled) {
  background: rgba(255, 80, 80, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 80, 80, 0.35);
  color: rgba(255, 255, 255, 0.8);
}
.hero-registration-btn.registered:hover:not(:disabled)::before {
  background: #ff5050;
  box-shadow: 0 0 6px rgba(255, 80, 80, 0.5);
}
.hero-registration-btn.not-registered::before {
  animation: dotPulse 2s ease-in-out infinite;
}
.hero-registration-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.hero-registration-btn.loading::before {
  animation: dotSpin 0.6s linear infinite;
}
.hero-registration-btn:disabled {
  background: rgba(50, 50, 50, 0.3);
  box-shadow: inset 0 0 0 1px rgba(100, 100, 100, 0.2);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
.hero-registration-btn:disabled::before {
  opacity: 0.3;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
@keyframes dotSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.tournamentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-registration-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.2s ease;
}
.header-registration-btn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.header-registration-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.header-registration-btn.not-registered {
  color: #ffffff;
  background: rgba(0, 255, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.5), 0 0 12px rgba(0, 255, 136, 0.15);
}
.header-registration-btn.not-registered::before {
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
}
.header-registration-btn.not-registered:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.65), 0 0 16px rgba(0, 255, 136, 0.2);
}
.header-registration-btn.registered {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 80, 80, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 80, 80, 0.35);
}
.header-registration-btn.registered::before {
  background: #ff5050;
  box-shadow: 0 0 5px rgba(255, 80, 80, 0.5);
  width: 5px;
  height: 5px;
}
.header-registration-btn.registered:hover:not(:disabled) {
  background: rgba(255, 80, 80, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 80, 80, 0.5);
  color: #ffffff;
}
.header-registration-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.header-registration-btn.loading::before {
  animation: dotSpin 0.6s linear infinite;
}
.header-registration-btn:disabled {
  background: rgba(50, 50, 50, 0.3);
  box-shadow: inset 0 0 0 1px rgba(100, 100, 100, 0.2);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
.header-registration-btn:disabled::before {
  opacity: 0.3;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 136, 0, 0.4), 0 0 10px rgba(255, 136, 0, 0.1);
  transition: all 0.25s ease;
}
.admin-button:hover {
  background: rgba(255, 136, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 136, 0, 0.6), 0 0 15px rgba(255, 136, 0, 0.15);
}
.admin-button:active {
  transform: scale(0.98);
}

.liveIndicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FF44AA;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.liveIndicator .liveReloadBtn {
  display: none;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.liveIndicator.updating {
  opacity: 1;
}
.liveIndicator.updating .liveDot {
  animation: updateFlash 0.6s ease-out;
}
.liveIndicator.offline {
  color: rgba(255, 255, 255, 0.4);
}
.liveIndicator.offline .liveDot {
  background-color: #ff6b6b;
  animation: offlinePulse 2s infinite;
}
.liveIndicator.offline .liveReloadBtn {
  display: inline-flex;
}

.liveDot {
  width: 8px;
  height: 8px;
  background-color: #FF44AA;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@keyframes updateFlash {
  0% {
    background-color: #FF44AA;
    transform: scale(1);
  }
  50% {
    background-color: #00D084;
    transform: scale(1.4);
    box-shadow: 0 0 15px #00D084;
  }
  100% {
    background-color: #FF44AA;
    transform: scale(1);
  }
}
@keyframes offlinePulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
.tabMenu {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  max-width: 600px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabMenu a {
  background: none;
  color: #ffffff;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  border-bottom: 2px solid rgba(221, 221, 221, 0.5);
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
  padding: 6px 8px;
}
.tabMenu a.active {
  border-bottom: 2px solid rgb(221, 221, 221);
}
@media (max-width: 420px) {
  .tabMenu a {
    font-size: 0.9em;
    padding: 6px 4px;
  }
}

/* Result/players table styling */
.playersWrapper table {
  color: #ffffff;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  border-spacing: 0;
}

.playersWrapper #resultsTable {
  width: calc(100% - 16px);
  max-width: 760px;
}

#resultsTable {
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 28, 62, 0.94) 0%, rgba(12, 19, 46, 0.94) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
  width: 100%;
  contain: layout style;
}
#resultsTable th,
#resultsTable td {
  padding: 12px 8px;
  background: transparent;
  border: none;
}
#resultsTable th {
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: none;
  text-transform: uppercase;
}
#resultsTable td {
  color: #ffffff;
}
#resultsTable tbody tr {
  transition: background-color 160ms ease-out;
}
#resultsTable tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}
#resultsTable tbody tr:hover td {
  background: rgba(0, 240, 208, 0.06);
}
#resultsTable tbody tr.is-me td, #resultsTable tbody tr.my-match-row td {
  background: rgba(0, 240, 208, 0.1);
  box-shadow: none;
}
#resultsTable th, #resultsTable td {
  text-align: center;
  white-space: nowrap;
}
#resultsTable th:first-of-type, #resultsTable th:nth-of-type(2) {
  text-align: left;
}
#resultsTable td:first-of-type {
  width: 1%;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.6);
}
#resultsTable th:first-of-type {
  padding-left: 16px;
}
#resultsTable tr td:nth-of-type(2) {
  text-align: left;
  padding-left: 8px;
  white-space: normal;
  font-weight: 500;
}
#resultsTable td:last-of-type,
#resultsTable th:last-of-type {
  padding-right: 16px;
}
#resultsTable td:last-of-type .rClass {
  margin: 0 auto;
  transform: translateY(2px);
}
#resultsTable tbody tr {
  contain: layout style paint;
}
#resultsTable tbody tr.is-me td:first-of-type {
  color: #00F0D0;
  font-weight: 700;
}
#resultsTable tbody tr.is-me td:nth-of-type(2) {
  font-weight: 700;
}

/* Finished-tournament round list (My match tab) */
.roundListView {
  width: 93%;
  max-width: 600px;
  margin: 0 auto;
}
.roundListView table {
  color: #ffffff;
  width: 100%;
  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.06);
}
.roundListView #resultsTable.roundListTable thead th:first-of-type {
  text-align: center;
}
.roundListView #resultsTable.roundListTable thead th:nth-of-type(2),
.roundListView #resultsTable.roundListTable thead th:nth-of-type(3),
.roundListView #resultsTable.roundListTable thead th:nth-of-type(4) {
  text-align: left;
}
.roundListView #resultsTable.roundListTable tbody tr.roundListRow {
  cursor: pointer;
}
.roundListView #resultsTable.roundListTable tbody tr.roundListRow:hover td {
  background: rgba(255, 255, 255, 0.2);
}

/* 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;
  width: calc(100% - 16px);
  max-width: 760px;
  margin: 0 auto 4px;
}
.matchesWrapper table th,
.matchesWrapper table td {
  text-align: center;
}
.matchesWrapper table th:nth-of-type(2), .matchesWrapper table th:nth-of-type(4),
.matchesWrapper table td:nth-of-type(2),
.matchesWrapper table td:nth-of-type(4) {
  text-align: left;
}
.matchesWrapper table th:first-of-type,
.matchesWrapper table td:first-of-type,
.matchesWrapper table th:nth-of-type(3),
.matchesWrapper table td:nth-of-type(3) {
  width: 1%;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .matchesWrapper table th,
  .matchesWrapper table td {
    padding-left: 4px;
    padding-right: 4px;
  }
  .matchesWrapper table th:first-of-type,
  .matchesWrapper table td:first-of-type {
    padding-left: 12px;
  }
  .matchesWrapper table th:last-of-type,
  .matchesWrapper table td:last-of-type {
    padding-right: 12px;
  }
  .matchesWrapper table:has(th:nth-of-type(5)) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.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: #000000;
  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;
  background-color: var(--rating-color, #FF33C8);
}
.rClass.expert::before {
  background-color: var(--rating-color, #0055FF);
}
.rClass.challenger::before {
  background-color: var(--rating-color, #00F0D0);
}
.rClass.beginner::before {
  background-color: var(--rating-color, #FF33C8);
}
.rClass.no-rating::before {
  background-color: var(--rating-color, silver);
}
.rClass.transitioning::before {
  background: conic-gradient(var(--to-color, #00F0D0) 0deg, var(--to-color, #00F0D0) calc(var(--progress, 0.5) * 360deg), var(--from-color, #FF33C8) calc(var(--progress, 0.5) * 360deg), var(--from-color, #FF33C8) 360deg);
}

@keyframes transitionPulse {
  0%, 100% {
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  }
}
.transition-tooltip-popup {
  position: fixed;
  z-index: 9999;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
  white-space: nowrap;
  transform: translateY(-100%);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.transition-tooltip-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.reportedResult {
  margin-top: 30px;
  text-align: center;
  background: rgba(96, 8, 154, 0.3);
  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;
  /* Round selector buttons: the table's quiet surface; the current round in
     the table's cyan, unavailable rounds receding */
}
.matchesWrapper table {
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 28, 62, 0.94) 0%, rgba(12, 19, 46, 0.94) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
}
.matchesWrapper table th,
.matchesWrapper table td {
  padding: 12px 8px;
  background: transparent;
  border: none;
}
.matchesWrapper table th {
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: none;
  text-transform: uppercase;
}
.matchesWrapper table td {
  color: #ffffff;
}
.matchesWrapper table tbody tr {
  transition: background-color 160ms ease-out;
}
.matchesWrapper table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}
.matchesWrapper table tbody tr:hover td {
  background: rgba(0, 240, 208, 0.06);
}
.matchesWrapper table tbody tr.is-me td, .matchesWrapper table tbody tr.my-match-row td {
  background: rgba(0, 240, 208, 0.1);
  box-shadow: none;
}
.matchesWrapper .roundSelector button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(18, 28, 62, 0.94);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  box-shadow: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.matchesWrapper .roundSelector button:hover:not(.disabled):not(.active) {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.matchesWrapper .roundSelector button:focus-visible {
  outline: 2px solid rgba(0, 255, 255, 0.8);
  outline-offset: 2px;
}
.matchesWrapper .roundSelector button.active {
  border-color: rgba(0, 240, 208, 0.5);
  background: rgba(0, 240, 208, 0.26);
  color: #ffffff;
  font-weight: 600;
}
.matchesWrapper .roundSelector button.disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

/* Rounds view specific form elements */
.matchesWrapper {
  /* Edit/Submit buttons: quiet in-table controls on the scoreboard surface */
  /* Result dropdown */
  /* Loading indicator */
  /* Tournament finished indicator */
}
.matchesWrapper .edit-result-btn, .matchesWrapper .submit-result-btn {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.matchesWrapper .edit-result-btn:hover:not(.disabled):not(:disabled), .matchesWrapper .submit-result-btn:hover:not(.disabled):not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}
.matchesWrapper .edit-result-btn:focus-visible, .matchesWrapper .submit-result-btn:focus-visible {
  outline: 2px solid rgba(0, 255, 255, 0.8);
  outline-offset: 2px;
}
.matchesWrapper .edit-result-btn.disabled, .matchesWrapper .edit-result-btn:disabled, .matchesWrapper .submit-result-btn.disabled, .matchesWrapper .submit-result-btn:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}
.matchesWrapper td.result-edit {
  white-space: nowrap;
}
.matchesWrapper td.result-edit .result-dropdown {
  width: 76px;
  padding: 6px;
  vertical-align: middle;
}
.matchesWrapper td.result-edit .result-actions:not([hidden]) {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  animation: confirm-in 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.matchesWrapper td.result-edit .result-reports {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.matchesWrapper td.result-edit .result-reports.is-disputed {
  color: rgb(247.1754716981, 121.2716981132, 112.0245283019);
  font-weight: 600;
}
.matchesWrapper td.result-edit .submit-result-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .matchesWrapper td.result-edit .result-actions:not([hidden]) {
    animation: none;
  }
}
.matchesWrapper .submit-result-btn {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.14);
  color: rgb(163.3167330677, 215.1832669323, 165.4123505976);
}
.matchesWrapper .submit-result-btn:hover:not(.disabled):not(:disabled) {
  background: rgba(76, 175, 80, 0.24);
}
.matchesWrapper .result-dropdown {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(8, 14, 34, 0.9);
  color: #ffffff;
  font-size: 12px;
  transition: border-color 160ms ease-out;
}
.matchesWrapper .result-dropdown:focus {
  outline: none;
  border-color: rgba(0, 255, 255, 0.8);
}
.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: rgba(18, 28, 62, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  width: calc(100% - 16px);
  max-width: 760px;
}

/* 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.3), rgba(0, 191, 255, 0.3));
  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);
  }
}

@keyframes confirm-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/**
 * Players Tournament View Styles
 * Premium "Clean Satin" Filter Buttons
 * Design: Solid bright colors. Active state is marked by a crisp white dot. 
 * Glows removed for a matte, high-end finish.
 */
.playersWrapper #resultsTable tbody tr {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.playersWrapper #resultsTable tbody tr.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
.playersWrapper #resultsTable tbody tr.fade-in {
  animation: fadeInRowPlayers 0.4s ease forwards;
}
@keyframes fadeInRowPlayers {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.playersWrapper .ratingClassPyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  margin-top: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.playersWrapper .ratingClassPyramid .pyramidTop {
  display: flex;
  justify-content: center;
  width: 100%;
}
.playersWrapper .ratingClassPyramid .pyramidBottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
@media (max-width: 768px) {
  .playersWrapper .ratingClassPyramid .pyramidBottom {
    gap: 8px;
    margin-bottom: 10px;
  }
}
.playersWrapper .ratingClassPyramid button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 110px;
  border: none;
  outline: none;
  color: #FFFFFF;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .playersWrapper .ratingClassPyramid button {
    padding: 9px 18px;
    font-size: 12px;
    min-width: 100px;
  }
}
.playersWrapper .ratingClassPyramid button::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
  width: 0px;
  margin-right: 0px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.playersWrapper .ratingClassPyramid button:hover:not(.disabled):not(.active) {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.playersWrapper .ratingClassPyramid button.disabled {
  background: rgba(100, 100, 100, 0.3) !important;
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.6;
}
.playersWrapper .ratingClassPyramid button.disabled:hover {
  transform: none;
}
.playersWrapper .ratingClassPyramid button[data-class-id=all] {
  font-size: 14px;
  padding: 11px 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .playersWrapper .ratingClassPyramid button[data-class-id=all] {
    font-size: 13px;
    padding: 10px 24px;
  }
}
.playersWrapper .ratingClassPyramid button[data-class-id=all].active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.playersWrapper .ratingClassPyramid button[data-class-id=all].active::before {
  width: 6px;
  margin-right: 10px;
  opacity: 1;
  transform: scale(1);
}
.playersWrapper .ratingClassPyramid button[data-class-color]:not([data-class-id=all]) {
  background-color: var(--class-color);
}
.playersWrapper .ratingClassPyramid button[data-class-color]:not([data-class-id=all]).active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.playersWrapper .ratingClassPyramid button[data-class-color]:not([data-class-id=all]).active::before {
  width: 6px;
  margin-right: 8px;
  opacity: 1;
  transform: scale(1);
}
.playersWrapper .ratingClassPyramid button[data-class-color="#00F0D0"]:not([data-class-id=all]) {
  background-color: rgb(0, 189, 163.8);
}
.playersWrapper .ratingClassPyramid button[data-class-color="#00F0D0"]:not([data-class-id=all]).active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/**
 * Lounge tabs - Standings and Matches.
 *
 * Reuses the shared #resultsTable styling where it applies; this partial adds
 * what is specific to lounge: the explainer boxes, sortable headers, the
 * signed rating delta, and the matches table (which had no styling at all).
 */
.lounge-standings-explainer {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}
.lounge-standings-explainer .lounge-standings-explainer-title {
  color: rgb(0, 255, 255);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.lounge-standings-explainer .lounge-standings-explainer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.lounge-standings-empty {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 600px) {
  #resultsTable.loungeStandingsTable th,
  #resultsTable.loungeStandingsTable td {
    padding-left: 4px;
    padding-right: 4px;
  }
  #resultsTable.loungeStandingsTable td {
    font-size: 14px;
  }
  #resultsTable.loungeStandingsTable td:first-of-type,
  #resultsTable.loungeStandingsTable th:first-of-type {
    padding-left: 12px;
  }
  #resultsTable.loungeStandingsTable td:last-of-type,
  #resultsTable.loungeStandingsTable th:last-of-type {
    padding-right: 12px;
  }
}
#resultsTable.loungeStandingsTable th.sortable {
  cursor: pointer;
  user-select: none;
}
#resultsTable.loungeStandingsTable th.sortable:hover {
  color: #ffffff;
}
#resultsTable.loungeStandingsTable th.sortable.sorted {
  color: rgb(0, 255, 255);
}
#resultsTable.loungeStandingsTable td.lounge-standings-delta {
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
#resultsTable.loungeStandingsTable td.lounge-standings-delta.positive {
  color: #4CAF50;
}
#resultsTable.loungeStandingsTable td.lounge-standings-delta.negative {
  color: #f44336;
}
#resultsTable.loungeStandingsTable td.lounge-standings-name {
  text-align: left;
}
#resultsTable.loungeStandingsTable tr.inactive-player {
  opacity: 0.55;
}
#resultsTable.loungeStandingsTable tr.inactive-player td.lounge-standings-name {
  font-style: italic;
}
#resultsTable.loungeStandingsTable .flag {
  margin: 0 auto;
  display: block;
}

.lounge-visibility-toggle {
  margin-top: 16px;
  text-align: center;
}
.lounge-visibility-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: pointer;
}
.lounge-visibility-toggle label:hover {
  color: rgba(255, 255, 255, 0.7);
}
.lounge-visibility-toggle input[type=checkbox] {
  cursor: pointer;
}

.lounge-matches-table {
  max-width: 900px;
}

.lounge-matches-table .lounge-vs {
  color: #4CAF50;
  font-weight: bold;
}
.lounge-matches-table .dispute-label {
  background: #f44336;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 11px;
  text-align: center;
}
.lounge-matches-table .lounge-admin-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 6px;
}

.lounge-active-matches,
.lounge-recent-matches {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lounge-active-matches h3,
.lounge-recent-matches h3 {
  text-align: center;
}

.lounge-info,
.lounge-standings-explainer {
  max-width: 900px;
  margin-left: max(8px, (100% - 900px) / 2);
  margin-right: max(8px, (100% - 900px) / 2);
}

#resultsTable.loungeStandingsTable {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Challenge tab -------------------------------------------------- */
.available-players-section,
.current-match-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.current-match-section {
  position: relative;
  margin-bottom: 20px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 35, 80, 0.9) 0%, rgba(10, 20, 50, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.current-match-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255, 10.2, 189) 0%, #FF33C8 18%, rgb(127.5, 145.5, 204) 38%, #00F0D0 55%, rgb(0, 162.5, 231.5) 72%, #0055FF 88%, #3377ff 100%);
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 51, 200, 0.45), 0 0 16px rgba(0, 240, 208, 0.3), 0 0 24px rgba(0, 85, 255, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.current-match-section .current-match-title {
  margin-bottom: 8px;
  color: #00F0D0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.current-match-section .current-match-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: #ffffff;
  font-size: 16px;
}
.current-match-section .current-match-colour {
  align-self: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.current-match-section .current-match-colour.is-white {
  background: rgba(255, 255, 255, 0.85);
  color: #000000;
}
.current-match-section .current-match-colour.is-black {
  background: #000000;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.current-match-section .current-match-opponent {
  overflow-wrap: anywhere;
}
.current-match-section .current-match-board {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.player-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 35, 80, 0.55) 0%, rgba(10, 20, 50, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: border-color 160ms ease-out;
}
.player-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.player-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent, #00F0D0) 0%, transparent 65%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #00F0D0) 35%, transparent);
}
.player-card .player-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.player-card .player-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.player-card .player-card-name {
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-card .player-card-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.14);
  color: #ff9800;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.player-card .player-card-stats {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.player-card .player-card-note {
  color: rgba(255, 152, 0, 0.85);
  font-size: 12px;
}
.player-card .player-card-action {
  flex: none;
}
.player-card .player-card-status {
  display: block;
  max-width: 130px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: right;
}
.player-card .player-card-status.is-positive {
  color: #4CAF50;
}

/* ---- Time control picker --------------------------------------------- */
.time-control-picker {
  max-width: 900px;
  margin: 0 auto 16px;
  text-align: center;
}
.time-control-picker .time-control-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.time-control-picker .time-control-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.time-control-picker .time-control-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
}
.time-control-picker .time-control-option:hover {
  color: #ffffff;
}
.time-control-picker .time-control-option.selected {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.6);
  color: rgb(0, 255, 255);
  font-weight: bold;
}
.time-control-picker .time-control-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 8px;
}

/* ---- Challenge queue ------------------------------------------------- */
.challenge-queue {
  max-width: 900px;
  margin: 0 auto 16px;
}
.challenge-queue .challenge-queue-title {
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.challenge-queue.incoming .challenge-queue-title {
  color: #4CAF50;
}
.challenge-queue.outgoing .challenge-queue-title {
  color: rgba(255, 255, 255, 0.7);
}

.challenge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.incoming .challenge-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(76, 175, 80, 0.5);
}
.incoming .challenge-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255, 10.2, 189) 0%, #FF33C8 18%, rgb(127.5, 145.5, 204) 38%, #00F0D0 55%, rgb(0, 162.5, 231.5) 72%, #0055FF 88%, #3377ff 100%);
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(255, 51, 200, 0.45), 0 0 16px rgba(0, 240, 208, 0.3), 0 0 24px rgba(0, 85, 255, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.challenge-card .challenge-card-info {
  min-width: 0;
}
.challenge-card .challenge-card-name {
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.challenge-card .challenge-card-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 4px;
}
.challenge-card .challenge-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.challenge-card .btn.challenge-action {
  width: auto;
  min-width: 100px;
  padding: 8px 14px;
  font-size: 13px;
  margin: 0;
}
.challenge-card .btn.challenge-action::before {
  content: none;
}

@media (max-width: 600px) {
  .challenge-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .challenge-card .challenge-card-actions {
    width: 100%;
  }
  .challenge-card .challenge-card-actions .btn.challenge-action {
    flex: 1 1 0;
    width: auto;
  }
}
/* ---- Boards ------------------------------------------------------------ */
.lounge-boards {
  max-width: 900px;
  margin: 0 auto 16px;
  padding-inline: 8px;
}
.lounge-boards .lounge-boards-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.lounge-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.board-card.is-playing {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.4);
}
.board-card.is-claimed {
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.5);
}
.board-card .board-card-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.board-card .board-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.board-card .board-card-number {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.board-card .board-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.board-card .board-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.board-card.is-playing .board-card-status {
  background: rgba(0, 255, 255, 0.1);
  color: rgb(0, 255, 255);
}
.board-card.is-playing .board-card-status::before {
  animation: board-live 1.8s ease-out infinite;
}
.board-card.is-claimed .board-card-status {
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
}
.board-card.is-free .board-card-status {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  text-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}
.board-card.is-free .board-card-status::before {
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}
.board-card .board-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.board-card .board-card-player {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.board-card .board-card-player.is-white::before, .board-card .board-card-player.is-black::before {
  content: "";
  flex: none;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.board-card .board-card-player.is-white::before {
  background: rgba(255, 255, 255, 0.85);
}
.board-card .board-card-player.is-black::before {
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.board-card .board-card-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.board-card .board-card-rating {
  flex: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.board-card .board-card-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.board-card.is-free .board-card-note {
  color: rgba(255, 255, 255, 0.5);
}
.board-card .board-card-flag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.14);
  color: #ff9800;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.board-card .board-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.board-card .board-card-stats {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.4;
}
.board-card .btn.board-card-claim {
  align-self: flex-start;
}

@keyframes board-live {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(0, 255, 255, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .board-card.is-playing .board-card-status::before {
    animation: none;
  }
}
/* ---- Challenge setup popup ---------------------------------------------- */
.challenge-setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 17, 49, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px;
}

.challenge-setup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a1428;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 16px;
}
.challenge-setup-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255, 10.2, 189) 0%, #FF33C8 18%, rgb(127.5, 145.5, 204) 38%, #00F0D0 55%, rgb(0, 162.5, 231.5) 72%, #0055FF 88%, #3377ff 100%);
  opacity: 0.9;
  box-shadow: 0 0 8px rgba(255, 51, 200, 0.45), 0 0 16px rgba(0, 240, 208, 0.3), 0 0 24px rgba(0, 85, 255, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.challenge-setup-card .challenge-setup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  cursor: pointer;
}
.challenge-setup-card .challenge-setup-title {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 4px;
}
.challenge-setup-card .challenge-setup-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 16px;
}
.challenge-setup-card .challenge-setup-group {
  margin-bottom: 16px;
}
.challenge-setup-card .challenge-setup-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.challenge-setup-card .challenge-setup-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.challenge-setup-card .setup-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 8px 18px;
}
.challenge-setup-card .setup-option:hover {
  color: #ffffff;
}
.challenge-setup-card .setup-option.selected {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.6);
  color: rgb(0, 255, 255);
  font-weight: bold;
}
.challenge-setup-card .challenge-setup-claimed {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.challenge-setup-card .btn.challenge-setup-send {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
}
.challenge-setup-card .btn.challenge-setup-send::before {
  content: none;
}
.challenge-setup-card .challenge-setup-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
}
.challenge-setup-card .challenge-setup-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

/* ---- Session recap ----------------------------------------------------- */
.lounge-recap-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 17, 49, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px;
}

.lounge-recap-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: #0a1428;
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
}
.lounge-recap-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255, 10.2, 189) 0%, #FF33C8 18%, rgb(127.5, 145.5, 204) 38%, #00F0D0 55%, rgb(0, 162.5, 231.5) 72%, #0055FF 88%, #3377ff 100%);
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 51, 200, 0.45), 0 0 16px rgba(0, 240, 208, 0.3), 0 0 24px rgba(0, 85, 255, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lounge-recap-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(0, 71.4, 214.2) 0%, #0055FF 15%, rgb(0, 162.5, 231.5) 35%, #00F0D0 50%, rgb(127.5, 145.5, 204) 68%, #FF33C8 85%, rgb(255, 91.8, 211) 100%);
  opacity: 1;
  box-shadow: 0 0 6px rgba(0, 85, 255, 0.3), 0 0 12px rgba(255, 51, 200, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lounge-recap-card .lounge-recap-title {
  color: rgb(0, 255, 255);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lounge-recap-card .lounge-recap-games {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}
.lounge-recap-card .lounge-recap-record {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 12px;
}
.lounge-recap-card .lounge-recap-delta {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}
.lounge-recap-card .lounge-recap-delta.positive {
  color: #4CAF50;
}
.lounge-recap-card .lounge-recap-delta.negative {
  color: #ff6b6b;
}
.lounge-recap-card .lounge-recap-delta.neutral {
  color: rgba(255, 255, 255, 0.6);
}
.lounge-recap-card .lounge-recap-rank {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 12px;
}
.lounge-recap-card .lounge-recap-bye {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-bottom: 16px;
}
.lounge-recap-card .btn.lounge-recap-close {
  width: auto;
  margin: 0 auto;
  padding: 10px 28px;
}
.lounge-recap-card .btn.lounge-recap-close::before {
  content: none;
}

.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 .resultSubmissionContainer .walkOverInfo {
  text-align: center;
}
.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(76, 175, 80, 0.5);
}
.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;
  margin-bottom: 8px;
  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.2), 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.1);
  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;
}

.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);
}
.registerResultModal.show {
  opacity: 1;
  height: 400px;
}
.registerResultModal .registerResultModalContent {
  padding: 20px;
  position: relative;
}
.registerResultModal .registerResultModalContent .close {
  color: rgba(0, 255, 255, 0.8);
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
}
.registerResultModal .registerResultModalContent .close:hover, .registerResultModal .registerResultModalContent .close:focus {
  color: rgb(0, 255, 255);
  text-decoration: none;
}
.registerResultModal .registerResultModalContent h3 {
  color: white;
  text-align: center;
  margin: 20px 0;
  font-size: 1.3rem;
}
.registerResultModal .registerResultModalContent .resultButtons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}
.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);
}
.registerResultModal .registerResultModalContent .resultButtons .selectResultButton:hover:not(.selected) {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.6);
}
.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);
}
.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;
}
.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);
}
.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);
}

.registerResultModal .selectResultButton {
  display: flex;
  align-items: center;
  font-family: inherit;
  gap: 12px;
  text-align: left;
}
.registerResultModal .selectResultButton .result-chip {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.registerResultModal .selectResultButton .result-chip.is-white {
  background: rgba(255, 255, 255, 0.85);
}
.registerResultModal .selectResultButton .result-chip.is-black {
  background: #000000;
}
.registerResultModal .selectResultButton .result-chip.is-draw {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 50%, #000000 50%);
}
.registerResultModal .selectResultButton .result-option-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registerResultModal .selectResultButton .result-option-score {
  flex: none;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.registerResultModal .selectResultButton .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.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: #ffffff;
}
.upcomingCard.more.expanded .cardContent .cardRow #date::before {
  content: "Dato";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #time {
  color: #ffffff;
}
.upcomingCard.more.expanded .cardContent .cardRow #time::before {
  content: "Tid";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #fee {
  color: #ffffff;
}
.upcomingCard.more.expanded .cardContent .cardRow #fee::before {
  content: "Pris";
  display: block;
  color: #A871F3;
}
.upcomingCard.more.expanded .cardContent .cardRow #rounds {
  color: #ffffff;
}
.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: 4.5rem auto 0 auto;
  padding: 1rem;
  padding-bottom: 70px;
  overflow-x: clip;
  width: 100%;
  box-sizing: border-box;
}
.profilePage * {
  max-width: 100%;
}

.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: visible;
  width: 100%;
  box-sizing: border-box;
}
.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: visible;
  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: 10;
}

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

.edit-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  -webkit-tap-highlight-color: transparent;
}
.edit-icon-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3));
}
.edit-icon-btn:active {
  transform: scale(1.08);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3));
}
.edit-icon-btn .edit-icon {
  width: 32px;
  height: 32px;
  pointer-events: none;
  display: block;
}

.picture-edit-icon {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 20;
}
.picture-edit-icon[data-rating-class=expert-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(44, 87, 255, 0.68));
}
@media (hover: hover) {
  .picture-edit-icon[data-rating-class=expert-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(44, 87, 255, 0.8));
  }
}
.picture-edit-icon[data-rating-class=expert-class]:active {
  animation: glow-flash-expert 0.3s ease-out;
}
.picture-edit-icon[data-rating-class=challenger-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(23, 211, 230, 0.68));
}
@media (hover: hover) {
  .picture-edit-icon[data-rating-class=challenger-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(23, 211, 230, 0.8));
  }
}
.picture-edit-icon[data-rating-class=challenger-class]:active {
  animation: glow-flash-challenger 0.3s ease-out;
}
.picture-edit-icon[data-rating-class=beginner-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(255, 70, 226, 0.68));
}
@media (hover: hover) {
  .picture-edit-icon[data-rating-class=beginner-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(255, 70, 226, 0.8));
  }
}
.picture-edit-icon[data-rating-class=beginner-class]:active {
  animation: glow-flash-beginner 0.3s ease-out;
}

.name-edit-icon {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 5;
  display: none;
}
.name-edit-icon[data-rating-class=expert-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(44, 87, 255, 0.68));
}
@media (hover: hover) {
  .name-edit-icon[data-rating-class=expert-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(44, 87, 255, 0.8));
  }
}
.name-edit-icon[data-rating-class=expert-class]:active {
  animation: glow-flash-expert 0.3s ease-out;
}
.name-edit-icon[data-rating-class=challenger-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(23, 211, 230, 0.68));
}
@media (hover: hover) {
  .name-edit-icon[data-rating-class=challenger-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(23, 211, 230, 0.8));
  }
}
.name-edit-icon[data-rating-class=challenger-class]:active {
  animation: glow-flash-challenger 0.3s ease-out;
}
.name-edit-icon[data-rating-class=beginner-class] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(255, 70, 226, 0.68));
}
@media (hover: hover) {
  .name-edit-icon[data-rating-class=beginner-class]:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(255, 70, 226, 0.8));
  }
}
.name-edit-icon[data-rating-class=beginner-class]:active {
  animation: glow-flash-beginner 0.3s ease-out;
}

#pictureInput {
  display: none;
}

.name-header-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 8px;
  max-width: 100%;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.profile-name {
  text-transform: none !important;
  font-size: 2.8rem;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(130, 150, 255, 0.6), 0 0 20px rgba(78, 99, 245, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  text-align: center;
  animation: nameGlow 3s ease-in-out infinite;
  max-width: calc(100% - 50px);
  word-wrap: break-word;
  word-break: break-word;
}

@keyframes nameGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(130, 150, 255, 0.6), 0 0 20px rgba(78, 99, 245, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 16px rgba(130, 150, 255, 0.75), 0 0 28px rgba(78, 99, 245, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
  }
}
.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-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.rating-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.rating-badge-row .playerColor.expert {
  background-color: #0055FF;
}
.rating-badge-row .playerColor.challenger {
  background-color: #00F0D0;
}
.rating-badge-row .playerColor.beginner {
  background-color: #FF33C8;
}
.rating-badge-row .rating-class.expert-class {
  background: #0055FF;
}
.rating-badge-row .rating-class.challenger-class {
  background: #00F0D0;
}
.rating-badge-row .rating-class.beginner-class {
  background: #FF33C8;
}

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

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

.rating-badge {
  border-radius: 18px;
  padding: 0px 16px;
  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);
  justify-content: start;
  padding-left: 0;
}
.rating-badge:has(.expert-class) {
  background: rgba(44, 87, 255, 0.3);
}
.rating-badge:has(.challenger-class) {
  background: rgba(23, 211, 230, 0.3);
}
.rating-badge:has(.beginner-class) {
  background: rgba(255, 70, 226, 0.3);
}

.rating-number {
  font-size: 0.9rem;
  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: 16px;
  padding: 1px 11px;
  border: 2px solid transparent;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.rating-class:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.rating-badge-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.rating-badge-row.transitioning {
  flex-direction: column;
  gap: 0;
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin-top: 4px;
}

.transition-message {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.transition-message:hover {
  background: rgba(255, 255, 255, 0.06);
}
.transition-message:hover .transition-expand-toggle {
  opacity: 1;
  transform: scale(1.1);
}
.transition-message:active {
  transform: scale(0.98);
}
.transition-message .transition-progress {
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.transition-message .transition-remaining {
  font-style: italic;
  color: color-mix(in srgb, var(--target-color, white) 35%, rgba(255, 255, 255, 0.6));
}
.transition-message .transition-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  animation: expandHint 2s ease-in-out 0.5s 2;
}
.transition-message .transition-expand-toggle .chevron-icon {
  width: 7px;
  height: 7px;
  border-right: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 3px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -3px;
}
.transition-message .transition-expand-toggle.expanded .chevron-icon {
  transform: rotate(-135deg);
  margin-top: 3px;
}

@keyframes expandHint {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}
.transition-history {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 1;
  margin-top: 12px;
}
.transition-history.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.history-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
}

.history-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.history-pill.in-target {
  background: color-mix(in srgb, var(--pill-color, #17d3e6) 20%, transparent);
  border-color: color-mix(in srgb, var(--pill-color, #17d3e6) 40%, transparent);
  color: var(--pill-color, #17d3e6);
}
.history-pill.in-established {
  background: color-mix(in srgb, var(--pill-color, #ff46e2) 15%, transparent);
  border-color: color-mix(in srgb, var(--pill-color, #ff46e2) 30%, transparent);
  color: color-mix(in srgb, var(--pill-color, #ff46e2) 70%, white);
}
.history-pill.current {
  font-weight: 600;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}
.history-pill.current::after {
  content: " ←";
  font-size: 0.6rem;
  opacity: 0.6;
}

.history-legend {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

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

.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-header .profile-name {
    font-size: 1.75rem;
  }
  .profile-picture-container {
    width: 120px;
    height: 120px;
  }
  .name-header-row {
    margin-bottom: 6px;
  }
  .edit-icon-btn .edit-icon {
    width: 28px;
    height: 28px;
  }
  .picture-edit-icon {
    top: -4px;
    right: -4px;
  }
}
.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;
  text-transform: uppercase;
}

.bw-best .bw-label {
  background: linear-gradient(135deg, #00F0D0 0%, #22c55e 50%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.bw-best::before {
  content: "▲"; /* up triangle */
  color: #00FF88;
  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: #00FF88;
}

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

.mr-draws .mr-value {
  color: rgb(255, 255, 0);
}

.mr-percentage {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(150, 100, 255, 0.6);
  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-total .streak-inline {
  margin-left: 12px;
  cursor: default;
  color: #ff7a00;
}

.stat-tournaments {
  margin-bottom: 10px;
}

.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, rgba(0, 255, 136, 0.8), #00FF88);
}

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

.seg-draws {
  background: linear-gradient(90deg, rgb(255, 255, 0), rgba(255, 255, 0, 0.8));
}

.rivals-section {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.rivals-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.rival-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(150, 200, 255, 0.85);
  text-decoration: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 8px;
}
.rival-row:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.rival-row .rival-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.rival-row .rival-name {
  color: white;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rival-row .rival-games {
  margin-left: auto;
  flex-shrink: 0;
}
.rival-row .rival-record {
  flex-shrink: 0;
}
.rival-row .rival-record .rival-wins {
  color: #00FF88;
  font-weight: 600;
}
.rival-row .rival-record .rival-draws {
  color: rgba(255, 255, 0, 0.8);
  font-weight: 600;
}
.rival-row .rival-record .rival-losses {
  color: #FF3366;
  font-weight: 600;
}

.stat-winpct {
  font-size: 0.8rem;
  color: rgba(150, 100, 255, 0.6);
  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: #00FF88;
}

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

.li-draws .legend-label {
  color: rgb(255, 255, 0);
}

.name-editor-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.name-editor {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.name-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.name-input-wrapper label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
.name-input-wrapper input.name-input {
  width: 100%;
  max-width: 250px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 130, 255, 0.3);
  border-radius: 8px;
  background: rgba(20, 30, 70, 0.6);
  color: white;
  font-size: 16px;
  text-align: center;
}
.name-input-wrapper input.name-input:focus {
  outline: none;
  border-color: rgba(130, 150, 255, 0.6);
  box-shadow: 0 0 10px rgba(78, 99, 245, 0.3);
}
.name-input-wrapper input.name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.name-editor-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.name-editor-actions .btn.small {
  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: 6px 14px;
  margin: 4px 0;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  width: auto;
  min-width: 90px;
  height: auto;
}
.name-editor-actions .btn.small:hover:not(:disabled) {
  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);
}
.name-editor-actions .btn.small.primary {
  background: linear-gradient(135deg, rgba(78, 99, 245, 0.8) 0%, rgba(50, 70, 200, 0.9) 100%);
}
.name-editor-actions .btn.small.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(98, 119, 255, 0.9) 0%, rgb(70, 90, 220) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(78, 99, 245, 0.4);
}
.name-editor-actions .btn.small.secondary {
  background: linear-gradient(135deg, rgba(80, 80, 100, 0.6) 0%, rgba(60, 60, 80, 0.8) 100%);
}
.name-editor-actions .btn.small.secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(100, 100, 120, 0.7) 0%, rgba(80, 80, 100, 0.9) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(150, 150, 180, 0.2);
}
.name-editor-actions .btn.small:active {
  transform: translateY(0px);
}

.country-editor-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.country-editor-row .btn.small {
  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: 6px 14px;
  margin: 4px 0;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  width: auto;
  min-width: 120px;
  height: auto;
}
.country-editor-row .btn.small:hover:not(:disabled) {
  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);
}
.country-editor-row .btn.small:active {
  transform: translateY(0px);
}
.country-editor-row .btn.small:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.country-editor-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.country-editor-actions .btn.small {
  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: 6px 14px;
  margin: 4px 0;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  width: auto;
  min-width: 90px;
  height: auto;
}
.country-editor-actions .btn.small:hover:not(:disabled) {
  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);
}
.country-editor-actions .btn.small.primary {
  background: linear-gradient(135deg, rgba(78, 99, 245, 0.8) 0%, rgba(50, 70, 200, 0.9) 100%);
}
.country-editor-actions .btn.small.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(98, 119, 255, 0.9) 0%, rgb(70, 90, 220) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(78, 99, 245, 0.4);
}
.country-editor-actions .btn.small.secondary {
  background: linear-gradient(135deg, rgba(80, 80, 100, 0.6) 0%, rgba(60, 60, 80, 0.8) 100%);
}
.country-editor-actions .btn.small.secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(100, 100, 120, 0.7) 0%, rgba(80, 80, 100, 0.9) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(150, 150, 180, 0.2);
}
.country-editor-actions .btn.small:active {
  transform: translateY(0px);
}

@keyframes glow-flash-expert {
  0% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(44, 87, 255, 0.68));
  }
  50% {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(44, 87, 255, 0.8));
  }
  100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(44, 87, 255, 0.68));
  }
}
@keyframes glow-flash-challenger {
  0% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(23, 211, 230, 0.68));
  }
  50% {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(23, 211, 230, 0.8));
  }
  100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(23, 211, 230, 0.68));
  }
}
@keyframes glow-flash-beginner {
  0% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(255, 70, 226, 0.68));
  }
  50% {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(78, 99, 245, 0.3)) drop-shadow(0px 1px 3px rgba(255, 70, 226, 0.8));
  }
  100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0px 1px 2px rgba(255, 70, 226, 0.68));
  }
}
@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, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(96, 8, 154, 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;
    }
  }
}
/**
 * Admin Tab Styles
 * Manages player active/inactive status in tournaments
 */
.admin-tab {
  padding: 20px;
}
.admin-tab .admin-title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.4em;
  font-weight: 600;
  color: #ffffff;
}
.admin-tab .admin-instructions {
  text-align: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  line-height: 1.4;
}
.admin-tab .admin-players-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: rgba(68, 22, 98, 0.2);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-tab .admin-players-table thead {
  background: rgba(204, 119, 253, 0.2);
  border-bottom: 1px solid rgba(204, 119, 253, 0.3);
}
.admin-tab .admin-players-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-tab .admin-players-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}
.admin-tab .admin-players-table tbody tr:hover {
  background: rgba(204, 119, 253, 0.08);
}
.admin-tab .admin-players-table tbody tr:last-child {
  border-bottom: none;
}
.admin-tab .admin-players-table tbody tr td {
  padding: 12px 16px;
  vertical-align: middle;
}
.admin-tab .admin-players-table tbody tr td.player-name {
  font-weight: 600;
  color: #ffffff;
}
.admin-tab .admin-players-table tbody tr td.status-cell .status-dropdown {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.9em;
  min-width: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab .admin-players-table tbody tr td.status-cell .status-dropdown:focus {
  outline: none;
  border-color: #CC77FD;
  box-shadow: 0 0 0 2px rgba(204, 119, 253, 0.3);
}
.admin-tab .admin-players-table tbody tr td.status-cell .status-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
}
.admin-tab .admin-players-table tbody tr td.status-cell .status-dropdown option {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
}
.admin-tab .admin-players-table tbody tr td.action-cell .submit-status-btn {
  padding: 8px 16px;
  background: #CC77FD;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-tab .admin-players-table tbody tr td.action-cell .submit-status-btn:hover:not(:disabled) {
  background: rgb(209.1, 132.6, 253.2);
  transform: translateY(-1px);
}
.admin-tab .admin-players-table tbody tr td.action-cell .submit-status-btn:disabled {
  background: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  opacity: 0.6;
}
.admin-tab .admin-players-table tbody tr td.action-cell .submit-status-btn:active {
  transform: translateY(0);
}
.admin-tab .error-message {
  text-align: center;
  padding: 20px;
  color: #ff6b6b;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 20, 147, 0.3);
  border-radius: 4px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-tab .loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}
.admin-tab .loading::after {
  content: "...";
  animation: loading-dots 1.5s infinite;
}
.admin-tab .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.admin-button {
  padding: 8px 16px;
  background: linear-gradient(135deg, #7615c3, #A871F3);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  margin-left: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.admin-button:hover {
  background: linear-gradient(135deg, rgba(118, 21, 195, 0.6), rgba(150, 100, 255, 0.8));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.admin-button:active {
  transform: translateY(0);
}
.admin-button.hidden {
  display: none;
}

@keyframes loading-dots {
  0%, 20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%, 100% {
    content: "...";
  }
}
@media (max-width: 768px) {
  .admin-tab {
    padding: 15px;
  }
  .admin-tab .admin-players-table {
    font-size: 0.9em;
  }
  .admin-tab .admin-players-table thead th,
  .admin-tab .admin-players-table tbody td {
    padding: 10px 12px;
  }
  .admin-tab .admin-players-table .status-dropdown {
    min-width: 90px;
  }
  .admin-tab .admin-players-table .submit-status-btn {
    padding: 6px 12px;
    font-size: 0.8em;
  }
  .admin-button {
    padding: 6px 12px;
    font-size: 0.8em;
    margin-left: 8px;
  }
}
/* ============================================
   Knockout tab — bracket visualization
   ============================================ */
.knockoutWrapper {
  width: 100%;
  padding: 20px 0;
}

.knockout-tab {
  color: #ffffff;
  /* Champion banner shown when the bracket is complete */
  /* The bracket: one column per knockout round, scrolls horizontally */
  /* Slots distribute matches so the bracket paths line up vertically */
}
.knockout-tab .loading-indicator {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 20px;
}
.knockout-tab .knockout-info {
  margin: 20px auto;
  max-width: 480px;
  text-align: center;
  padding: 15px;
  background: rgba(204, 119, 253, 0.1);
  border: 1px solid rgba(204, 119, 253, 0.5);
  border-radius: 8px;
  color: #ffffff;
}
.knockout-tab .knockout-champion {
  margin: 10px auto 20px;
  max-width: 480px;
  text-align: center;
  padding: 18px;
  background: rgba(204, 119, 253, 0.2);
  border: 1px solid rgba(204, 119, 253, 0.8);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(204, 119, 253, 0.3);
}
.knockout-tab .knockout-champion .knockout-champion-trophy {
  font-size: 2em;
  margin-bottom: 6px;
}
.knockout-tab .knockout-champion .knockout-champion-name {
  font-size: 1.3em;
  font-weight: 700;
  color: #CC77FD;
  text-shadow: 0 0 12px rgba(204, 119, 253, 0.6);
}
.knockout-tab .knockout-bracket {
  display: flex;
  align-items: stretch;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.knockout-tab .knockout-round {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  flex: 1 0 210px;
}
.knockout-tab .knockout-round-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #CC77FD;
  text-shadow: 0 0 8px rgba(204, 119, 253, 0.4);
  margin-bottom: 12px;
}
.knockout-tab .knockout-slots {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 12px;
}
.knockout-tab .knockout-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}
.knockout-tab .knockout-match {
  width: 100%;
  background: rgba(68, 22, 98, 0.2);
  border: 1px solid rgba(204, 119, 253, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(204, 119, 253, 0.1);
  /* Admin: decide or correct the result of a current-round match */
}
.knockout-tab .knockout-match.current {
  border-color: rgba(204, 119, 253, 0.9);
  box-shadow: 0 0 14px rgba(204, 119, 253, 0.4);
}
.knockout-tab .knockout-match.placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  opacity: 0.65;
}
.knockout-tab .knockout-match.placeholder .knockout-player {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.knockout-tab .knockout-match.mine {
  border-color: rgba(0, 191, 255, 0.8);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.7);
  background: rgba(0, 191, 255, 0.08);
}
.knockout-tab .knockout-match .knockout-match-table {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 191, 255, 0.8);
  margin-bottom: 6px;
}
.knockout-tab .knockout-match .knockout-player {
  font-size: 0.95em;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.knockout-tab .knockout-match .knockout-player.winner {
  color: #00FF88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}
.knockout-tab .knockout-match .knockout-player.loser {
  color: rgba(255, 255, 255, 0.7);
}
.knockout-tab .knockout-match .knockout-vs {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0;
}
.knockout-tab .knockout-match .knockout-vs .knockout-score {
  font-size: 1.1em;
  letter-spacing: 1px;
  color: #CC77FD;
}
.knockout-tab .knockout-match .knockout-admin-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-result-dropdown {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(204, 119, 253, 0.4);
  color: #ffffff;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.8em;
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-result-dropdown:focus {
  outline: none;
  border-color: rgba(0, 191, 255, 0.8);
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-result-dropdown option {
  background: #041131;
  color: #ffffff;
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-submit-btn {
  background: rgba(204, 119, 253, 0.3);
  border: 1px solid rgba(204, 119, 253, 0.6);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-edit-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8em;
  cursor: pointer;
}
.knockout-tab .knockout-match .knockout-admin-controls .knockout-edit-btn:hover {
  border-color: rgba(0, 191, 255, 0.6);
  color: #ffffff;
}

@media (max-width: 768px) {
  .knockout-tab .knockout-bracket {
    gap: 16px;
    padding: 10px 8px 16px;
  }
  .knockout-tab .knockout-round {
    min-width: 170px;
    flex: 1 0 170px;
  }
  .knockout-tab .knockout-match {
    padding: 8px;
  }
  .knockout-tab .knockout-match .knockout-player {
    font-size: 0.85em;
  }
}
html, body {
  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;
  background-attachment: fixed;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}