.uhk-nick-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(1, 0, 11, 0.72);
  backdrop-filter: blur(3px);
}

.uhk-nick-modal[hidden] {
  display: none !important;
}

.uhk-nick-modal__panel {
  width: min(440px, 100%);
  background: #01000b;
  border: 1px solid #fe5d00;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  color: #faf9fa;
}

.uhk-nick-modal__title {
  margin: 0 0 0.35rem;
  color: #fe5d00;
  font-size: 1.1rem;
}

.uhk-nick-modal__text {
  margin: 0 0 0.7rem;
  color: #faf9fa;
}

.uhk-nick-modal__input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(254, 93, 0, 0.75);
  background: rgba(250, 249, 250, 0.06);
  color: #faf9fa;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.uhk-nick-modal__input:focus {
  border-color: #fe5d00;
  box-shadow: 0 0 0 2px rgba(254, 93, 0, 0.2);
}

.uhk-nick-modal__error {
  min-height: 1.25rem;
  margin: 0.45rem 0 0;
  color: #ff6b6b;
  font-size: 0.92rem;
}

.uhk-nick-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.uhk-nick-modal__btn {
  border: 1px solid rgba(254, 93, 0, 0.75);
  background: transparent;
  color: #faf9fa;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.uhk-nick-modal__btn:hover,
.uhk-nick-modal__btn:focus-visible {
  border-color: #fe5d00;
}

.uhk-nick-modal__btn--primary {
  background: #fe5d00;
  color: #01000b;
  border-color: #fe5d00;
}

.uhk-start-guessing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 460px);
  min-height: 78px;
  margin: 1.35rem auto 1.1rem;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  border: 2px solid #ffe45f;
  background: linear-gradient(135deg, #ffe45f 0%, #ffb000 52%, #ff6a00 100%);
  color: #12080b;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(255, 122, 0, 0.32),
    0 0 0 6px rgba(255, 228, 95, 0.12);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.uhk-start-guessing:hover,
.uhk-start-guessing:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(255, 122, 0, 0.4),
    0 0 0 8px rgba(255, 228, 95, 0.16);
  outline: none;
}

.uhk-start-guessing:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .uhk-start-guessing {
    min-height: 68px;
    font-size: 1.15rem;
    padding: 0.95rem 1.25rem;
  }
}

.uhk-auth-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  transition: opacity 0.3s ease;
}

.uhk-auth-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 58px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.5);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.uhk-auth-fab:hover,
.uhk-auth-fab:focus-visible {
  transform: scale(1.05);
  outline: none;
  box-shadow: 0 6px 26px rgba(255, 180, 0, 0.65);
}

.uhk-auth-fab__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.uhk-auth-fab__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.uhk-auth-fab__nick {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uhk-auth-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 176px;
  padding: 0.45rem;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 8px;
  background: #1a1a2e;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.uhk-auth-menu a {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 6px;
  color: #fff9d6;
  text-decoration: none;
  font-weight: 800;
}

.uhk-auth-menu a:hover,
.uhk-auth-menu a:focus-visible {
  background: rgba(255, 215, 0, 0.12);
}

.uhk-auth-sheet {
  position: fixed;
  inset: 0;
  z-index: 99989;
  pointer-events: none;
}

.uhk-auth-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 1.15rem;
  color: #fff9d6;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(255, 215, 0, 0.42);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45);
  transform: translateY(102%);
  transition: transform 240ms ease;
  pointer-events: auto;
}

.uhk-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.62);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: auto;
}

.uhk-auth-sheet.is-open .uhk-auth-backdrop {
  opacity: 1;
}

.uhk-auth-sheet.is-open .uhk-auth-sheet__panel {
  transform: translateY(0);
}

.uhk-auth-sheet__close,
.uhk-progress-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 50%;
  color: #fff9d6;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.uhk-auth-card,
.uhk-profile {
  color: #fff9d6;
  background: #1a1a2e;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 8px;
  padding: 1rem;
}

.uhk-auth-card--logged {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.uhk-auth-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.uhk-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0 2.5rem 0.9rem 0;
}

.uhk-auth-tab {
  min-height: 44px;
  border: 1px solid rgba(255, 215, 0, 0.38);
  border-radius: 8px;
  color: #fff9d6;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  cursor: pointer;
}

.uhk-auth-tab.is-active {
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.32);
}

.uhk-auth-panel {
  display: none;
}

.uhk-auth-panel.is-active {
  display: block;
}

.uhk-auth-form {
  display: grid;
  gap: 0.75rem;
}

.uhk-auth-form label {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  color: #fff9d6;
  font-weight: 800;
}

.uhk-auth-form input[type="email"],
.uhk-auth-form input[type="text"],
.uhk-auth-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.uhk-auth-form input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16);
}

.uhk-password-wrap {
  position: relative;
  display: block;
}

.uhk-password-wrap input {
  padding-right: 3rem;
}

.uhk-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #1a1a2e;
  background: #FFD700;
  cursor: pointer;
}

.uhk-auth-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 0.5rem;
}

.uhk-auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.35);
  font-weight: 950;
  cursor: pointer;
}

.uhk-auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.uhk-auth-link {
  color: #FFD700;
  font-weight: 800;
}

.uhk-auth-message,
.uhk-inline-validation {
  min-height: 1.2rem;
  margin: 0;
  color: #d7d7e8;
  font-size: 0.92rem;
}

.uhk-auth-message.is-success,
.uhk-inline-validation.is-valid {
  color: #55f08a;
}

.uhk-auth-message.is-error,
.uhk-inline-validation.is-invalid {
  color: #ff7373;
}

/* ─── GDPR CONSENT ROW ───────────────────────────────────────────── */

.uhk-gdpr-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.uhk-gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(250, 249, 250, 0.8);
  line-height: 1.4;
}

.uhk-gdpr-check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  border: 2px solid rgba(252, 178, 1, 0.45);
  border-radius: 5px;
  background: rgba(14, 11, 30, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.uhk-gdpr-check:checked {
  background: #FFD700;
  border-color: #FFD700;
}

.uhk-gdpr-check:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%231a1a2e' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.uhk-gdpr-check:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.uhk-gdpr-link {
  color: #FFD700;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uhk-gdpr-link:hover {
  color: #FFA500;
}

.uhk-gdpr-error {
  margin: 0;
  font-size: 0.86rem;
  color: #FF4444;
}

.uhk-top10__list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
}

.uhk-top10__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.78);
}

.uhk-top10__name {
  display: grid;
  min-width: 0;
}

.uhk-top10__name small {
  color: rgba(255, 249, 214, 0.75);
  font-size: 0.78rem;
}

.uhk-top10__streak {
  color: #FFD700;
  font-weight: 900;
  white-space: nowrap;
}

.uhk-profile {
  display: grid;
  gap: 1rem;
}

.uhk-profile__hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.uhk-profile__circle-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.uhk-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.uhk-circle svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.uhk-circle__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 8;
}

.uhk-circle__fill {
  fill: none;
  stroke: #FFD700;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
  transition: stroke-dashoffset 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.uhk-profile__avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.5);
  z-index: 1;
}

.uhk-circle__pct {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #FFD700;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

.uhk-profile__start-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  color: #1a1a2e;
  font-weight: 900;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 4px 18px rgba(255, 180, 0, 0.45);
}

.uhk-profile__start-btn:hover,
.uhk-profile__start-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 6px 26px rgba(255, 180, 0, 0.65);
  color: #1a1a2e;
  outline: none;
}

.uhk-profile__hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.uhk-profile__level-label {
  color: #FFA500;
  font-weight: 700;
  margin: 0;
}

.uhk-profile__next-level {
  font-size: 0.82rem;
  color: rgba(255, 249, 214, 0.65);
  margin: 0;
}

.uhk-profile h2,
.uhk-profile h3,
.uhk-profile p {
  margin-top: 0;
}

.uhk-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.uhk-profile__stats span {
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.uhk-profile__stats strong {
  display: block;
  color: #FFD700;
  font-size: 1.15rem;
}

.uhk-profile__progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.uhk-profile__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  transition: width 420ms ease;
}

.uhk-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.uhk-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  opacity: 0.45;
}

.uhk-badge--earned {
  opacity: 1;
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.18);
}

.uhk-badge__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.uhk-badge__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff9d6;
  line-height: 1.2;
}

.uhk-badge__need {
  font-size: 0.6rem;
  color: rgba(255, 249, 214, 0.5);
}

.uhk-profile__history ul {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.uhk-profile__history li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.uhk-profile__history a {
  color: #fff9d6;
  font-weight: 800;
}

.uhk-profile__history span {
  color: rgba(255, 249, 214, 0.72);
  white-space: nowrap;
}

.uhk-map {
  display: grid;
  gap: 0.65rem;
}

.uhk-map__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.uhk-map__bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
}

.uhk-map__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 24, 0.24);
}

.uhk-map__stone {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  font-weight: 950;
}

.uhk-map__stone.is-unlocked {
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.78);
}

.uhk-map__stone.is-locked {
  color: #d8d8df;
  background: #6b6b78;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  cursor: not-allowed;
}

.uhk-map__stone.is-current {
  animation: uhkPulseGold 1.3s ease-in-out infinite;
}

.uhk-map__need {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  color: #1a1a2e;
  background: rgba(255, 215, 0, 0.92);
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
}

.uhk-map__legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  color: #fff9d6;
}

.uhk-map__legend img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.5);
}

.uhk-map__legend div {
  display: grid;
}

.uhk-map__legend strong {
  color: #FFD700;
}

.uhk-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.uhk-progress-modal.is-open {
  display: flex;
}

.uhk-progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.66);
  backdrop-filter: blur(7px);
}

.uhk-progress-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 1rem;
  color: #fff9d6;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45);
  animation: uhkSlideUp 260ms ease both;
}

.uhk-progress-modal.is-level-up .uhk-progress-modal__panel {
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 215, 0, 0.34);
}

.uhk-confetti {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  overflow: hidden;
}

.uhk-confetti span {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  animation: uhkConfettiFall 2.1s ease-in forwards;
}

@keyframes uhkSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes uhkPulseGold {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.68);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.98);
  }
}

@keyframes uhkConfettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

@media (min-width: 720px) {
  .uhk-auth-sheet__panel {
    right: 1rem;
    bottom: 1rem;
    left: auto;
    width: min(430px, calc(100% - 2rem));
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.42);
  }

  .uhk-progress-modal {
    align-items: center;
    padding: 1rem;
  }

  .uhk-progress-modal__panel {
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .uhk-auth-floating {
    right: 16px;
    bottom: 16px;
  }

  .uhk-auth-fab {
    width: 56px;
    height: 56px;
    padding: 0;
  }

  .uhk-auth-fab__text,
  .uhk-auth-fab__nick {
    display: none;
  }

  .uhk-profile__hero {
    align-items: flex-start;
  }


  .uhk-profile__stats {
    grid-template-columns: 1fr;
  }

  .uhk-map__stage {
    border-radius: 6px;
  }

  .uhk-map__stone {
    width: 36px;
    height: 36px;
  }

  .uhk-top10__list li {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .uhk-top10__streak {
    grid-column: 2 / 3;
    font-size: 0.86rem;
  }
}

[data-uhk-quiz].is-answered-correct [data-choice].is-correct {
  border-color: #22c55e;
  color: #f0fff6;
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 52%, #087a2b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 14px rgba(34, 197, 94, 0.35);
}

[data-uhk-quiz].is-answered-correct [data-uhk-reveal] {
  border-color: #22c55e;
  background: linear-gradient(130deg, #4ade80 0%, #16a34a 50%, #087a2b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(34, 197, 94, 0.28);
}

/* ── Progress map modal: Ďalšia hádanka button ── */

.uhk-progress-modal__next-wrap {
  padding: 0 48px 0.85rem 0;
}

.uhk-progress-modal__close {
  top: 1.375rem;
}

.uhk-progress-modal__next-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.42);
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.uhk-progress-modal__next-btn:hover,
.uhk-progress-modal__next-btn:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(255, 180, 0, 0.58);
  outline: none;
}

@media (max-width: 560px) {
  .uhk-progress-modal__next-btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ── Profil stránka ── */

body.uhk-profil-active {
  background: #0f0f1e !important;
}

.uhk-profil-page {
  min-height: 100vh;
  background: #0f0f1e;
  color: #fff9d6;
}

.uhk-profil-page__bar {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.uhk-profil-page__back {
  color: #FFD700;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.uhk-profil-page__back:hover,
.uhk-profil-page__back:focus-visible {
  color: #FFA500;
}

.uhk-profil-page__main {
  padding: 1.5rem 1rem 4rem;
}

.uhk-profil-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Profile footer / logout ── */

.uhk-profile__footer {
  padding-top: 0.5rem;
}

/* ── Avatar lightbox ── */

.uhk-profile__avatar[data-uhk-avatar-lightbox] {
  cursor: pointer;
}

.uhk-avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 220ms ease;
  cursor: pointer;
}

.uhk-avatar-lightbox[hidden] {
  display: none !important;
}

.uhk-avatar-lightbox.is-open {
  opacity: 1;
}

.uhk-avatar-lightbox__img {
  max-width: min(420px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 50%;
  border: 4px solid #FFD700;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.42), 0 24px 64px rgba(0, 0, 0, 0.7);
  cursor: default;
  user-select: none;
  transform: scale(0.88);
  transition: transform 220ms ease;
}

.uhk-avatar-lightbox.is-open .uhk-avatar-lightbox__img {
  transform: scale(1);
}

.uhk-avatar-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #FFD700;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #FFD700;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease;
}

.uhk-avatar-lightbox__close:hover,
.uhk-avatar-lightbox__close:focus-visible {
  background: rgba(255, 215, 0, 0.18);
  outline: none;
}

@media (max-width: 480px) {
  .uhk-avatar-lightbox__img {
    max-width: 92vw;
  }
}

.uhk-profile__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1.5rem;
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.35);
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.uhk-profile__logout:hover,
.uhk-profile__logout:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 6px 26px rgba(255, 180, 0, 0.5);
  color: #1a1a2e;
  outline: none;
}

/* ─── AD SLOTS ───────────────────────────────────────────────────── */

.uhk-ad-slot {
  margin: 1.25rem auto;
  max-width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(10, 8, 32, 0.55);
  overflow: hidden;
}

.uhk-ad-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(250, 249, 250, 0.38);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.uhk-ad-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .uhk-ad-slot {
    border-radius: 8px;
    padding: 0.6rem;
  }
}

/* ─── SHARE BUTTONS ─────────────────────────────────────────────── */

.uhk-share {
  padding: 1.25rem 0;
}

.uhk-share__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 250, 0.5);
  margin: 0 0 0.65rem;
}

.uhk-share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.uhk-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.uhk-share__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.uhk-share__btn:hover,
.uhk-share__btn:focus-visible {
  transform: scale(1.05);
  outline: none;
  opacity: 0.9;
}

.uhk-share__btn--fb {
  background: #1877f2;
  color: #fff;
}

.uhk-share__btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.uhk-share__btn--email {
  background: rgba(255, 255, 255, 0.12);
  color: #fff9d6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uhk-share__copied {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: #FFD700;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ─── PLAYER CARD CLICK ──────────────────────────────────────────── */

[data-uhk-player-card] {
  cursor: pointer;
}

/* ─── PLAYER CARD MODAL ──────────────────────────────────────────── */

.uhk-player-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.uhk-player-modal[hidden] {
  display: none !important;
}

.uhk-player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 0, 11, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.uhk-player-modal__panel {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  background: #01000b;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.1);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  animation: uhkModalIn 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes uhkModalIn {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.uhk-player-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(250, 249, 250, 0.55);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 120ms ease;
}

.uhk-player-modal__close:hover {
  color: #FFD700;
}

.uhk-player-modal__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.5);
}

.uhk-player-modal__name {
  margin: 0.25rem 0 0;
  color: #fff9d6;
  font-size: 1.15rem;
}

.uhk-player-modal__level {
  margin: 0;
  color: #FFA500;
  font-size: 0.82rem;
  font-weight: 700;
}

.uhk-player-modal__stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.uhk-player-modal__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.uhk-player-modal__stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFD700;
}

.uhk-player-modal__stat-lbl {
  font-size: 0.7rem;
  color: rgba(250, 249, 250, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── SHAKE ANIMATION ────────────────────────────────────────────── */

@keyframes uhkShake {
  0%,  100% { transform: translateX(0); }
  15%       { transform: translateX(-9px) rotate(-1.2deg); }
  30%       { transform: translateX(8px)  rotate(1deg); }
  45%       { transform: translateX(-6px) rotate(-0.7deg); }
  60%       { transform: translateX(6px)  rotate(0.5deg); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}

.uhk-shake {
  animation: uhkShake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ─── RESULT MODAL (wrong answer / timeout) ──────────────────────── */

.uhk-result-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.uhk-result-modal[hidden] {
  display: none !important;
}

.uhk-result-modal__panel {
  position: relative;
  width: min(400px, 100%);
  background: #1a1a2e;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  animation: uhkModalIn 280ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.uhk-result-modal__icon {
  font-size: 3rem;
  line-height: 1;
}

.uhk-result-modal__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.15;
}

.uhk-result-modal__title--wrong {
  color: #FF4444;
}

.uhk-result-modal__title--timeout {
  color: #FFA500;
}

.uhk-result-modal__answer-label {
  margin: 0.3rem 0 0;
  color: rgba(250, 249, 250, 0.6);
  font-size: 0.84rem;
}

.uhk-result-modal__answer {
  margin: 0;
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.09);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  width: 100%;
  word-break: break-word;
}

.uhk-result-modal__cta {
  margin: 0.2rem 0 0;
  color: rgba(250, 249, 250, 0.62);
  font-size: 0.88rem;
}

.uhk-result-modal__btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.42);
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.uhk-result-modal__btn:hover,
.uhk-result-modal__btn:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(255, 180, 0, 0.6);
  outline: none;
}

@media (max-width: 480px) {
  .uhk-result-modal {
    align-items: flex-end;
    padding: 0;
  }

  .uhk-result-modal__panel {
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 1.75rem;
  }
}
