/* ═══════════════════════════════════════════════
   QR Quest — Brand Design System
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --purple-deep:   #4D0160;
  --purple-mid:    #6B1B77;
  --purple-light:  #A645BB;
  --purple-glow:   rgba(166, 69, 187, 0.45);
  --deep_orange_oculoom: #FF5E22;
  --soft_orange_oculoom: #ffa600;
  --gold:          var(--deep_orange_oculoom);
  --gold-light:    var(--soft_orange_oculoom);
  --gold-glow:     rgba(255, 180, 0, 0.35);
  --gold-dark:     #CC8E00;
  --gold-contrast: #4A3100;
  --success-contrast: #0E3F1D;
  --white:         #FFFFFF;
  --white-80:      rgba(255,255,255,0.8);
  --white-75:      rgba(255,255,255,0.75);
  --white-60:      rgba(255,255,255,0.6);
  --white-30:      rgba(255,255,255,0.3);
  --white-10:      rgba(255,255,255,0.1);
  --white-07:      rgba(255,255,255,0.07);
  --glass-border:  rgba(255,255,255,0.12);
  --qrquest-logo-glow: var(--purple-glow);
  --success:       #43CB66;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --shadow-purple: 0 8px 32px rgba(42,6,51,0.6);
  --shadow-gold:   0 8px 28px rgba(255,180,0,0.28);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background-color: var(--purple-deep);
  color: var(--white);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url('../img/bg.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none; opacity: 0.8;
}

body > * { position: relative; z-index: 1; }

.qrquest-model-viewer {
  display: block;
  height: 100%;
  min-height: 160px;
  position: relative;
  width: 100%;
}
.qrquest-model-viewer canvas {
  display: block;
  height: 100% !important;
  width: 100% !important;
}
.model-viewer-error {
  align-items: center;
  color: rgba(255,255,255,0.48);
  display: flex;
  font-size: 2rem;
  justify-content: center;
}

@media (max-width: 768px) {
  body::before {
    background-image: url('../img/bg-responsive.png');
    background-position: center top;
  }
}

.gfont {
  font-family: inherit;
  letter-spacing: 0.5px;
}

/* ── LINKS ── */
a { color: var(--white) !important; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--deep_orange_oculoom) !important; text-decoration: none !important; }

.form-link-muted {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.82rem;
}

.form-link-muted:hover,
.form-link-muted:focus {
  color: var(--deep_orange_oculoom) !important;
  text-decoration: none !important;
}

.form-link-muted i {
  margin-right: 4px;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  background: var(--qrquest-secondary-surface, rgb(60 0 75 / 55%));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 100;
}

@media (min-width: 768px) {
  .navbar { flex-direction: row; }
}

.navbar p {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--white-60);
  margin: 0;
}

.navbar p b { color: var(--white); }

.navbar nav {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
@media (min-width: 768px) { .navbar nav { margin-top: 0; } }

/* ── NAV BUTTONS ── */
.btn-primary,
.navbar nav a.btn-primary,
a.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--deep_orange_oculoom), var(--soft_orange_oculoom));
  color: #2c1d00 !important;
  border: none !important;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 16px var(--gold-glow);
  font-family: inherit;
  text-decoration: none;
}
.btn-primary:hover,
a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
  color: #2c1d00 !important;
  text-decoration: none !important;
}
.btn-primary:active { transform: translateY(0); }

.btn-registro,
.navbar nav a.btn-registro {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white) !important;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.25s;
  background: var(--white-07);
}
.btn-registro:hover {
  border-color: var(--deep_orange_oculoom);
  background: linear-gradient(135deg, var(--deep_orange_oculoom), var(--soft_orange_oculoom));
  color: #2c1d00 !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-registro:active {
  transform: translateY(0);
}

/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.logo {
  display: block; margin: 0 auto 12px;
  filter: drop-shadow(0 0 24px var(--qrquest-logo-glow, var(--purple-glow)));
  transition: filter 0.3s;
  max-width: 300px;
}
.logo:hover { filter: drop-shadow(0 0 36px var(--qrquest-logo-glow, var(--purple-glow))); }

/* ══════════════════════════════════════
   HERO TEXT
══════════════════════════════════════ */
.container-text {
  color: var(--white-80);
  font-size: 0.9rem; line-height: 1.7;
}
.container-text-pd { padding-bottom: 0px; }

#game-summary {
  background: rgba(0,0,0,0.16);
  border-radius: 999px;
  box-shadow: none;
  color: var(--white);
  display: block;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px auto 34px !important;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  position: relative;
  width: fit-content;
}
#game-summary::after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 11px solid rgba(0,0,0,0.16);
  bottom: -11px;
  content: '';
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
#game-summary:empty {
  display: none;
}

.container-title {
  font-family: inherit;
  font-size: 2rem; letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 40px var(--purple-glow);
  margin-bottom: 12px;
}

.game-complete-celebration #game-status-title {
  animation: textGlowPulse 2.8s ease-in-out infinite;
}

.form-title {
  font-family: inherit;
  font-size: 2rem; letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════
   ALERT / COMPLETION BANNER
══════════════════════════════════════ */
.alert-complete {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 34px;
  max-width: 900px;
  overflow: hidden;
  padding: 12px 22px;
  position: relative;
  width: 94%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  animation: alertSearchGlow 3s ease-in-out infinite;
}
.alert-complete::before {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 46px;
  font-family: "Font Awesome 5 Free";
  font-size: 1.12rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  position: relative;
  width: 46px;
  z-index: 1;
}
.alert-complete::after {
  content: '';
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}
.alert-search {
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.52), transparent 28%),
    linear-gradient(135deg, rgba(255,180,0,0.96), rgba(255,208,96,0.96));
  box-shadow: 0 18px 52px rgba(255,180,0,0.32), 0 8px 24px rgba(42,6,51,0.38);
}
.alert-search::before {
  background: rgba(74,49,0,0.88);
  box-shadow: inset 0 0 18px rgba(255,180,0,0.45), 0 0 18px rgba(255,180,0,0.28);
  color: #FFB400;
  content: '\f14e';
}
.alert-winner {
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.38), transparent 30%),
    linear-gradient(135deg, rgba(86,224,122,0.98), rgba(48,190,88,0.96));
  box-shadow: 0 18px 52px rgba(86,224,122,0.34), 0 8px 24px rgba(42,6,51,0.38);
  animation-name: alertWinnerGlow;
}
.alert-winner::before {
  background: rgba(74,49,0,0.88);
  box-shadow: inset 0 0 20px rgba(143,242,168,0.72), 0 0 24px rgba(143,242,168,0.46);
  color: #56e07a;
  content: '\f091';
}
@keyframes alertSearchGlow {
  0%, 100% { box-shadow: 0 8px 32px var(--gold-glow), 0 2px 8px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 12px 44px rgba(255,180,0,0.55), 0 2px 8px rgba(0,0,0,0.3); }
}
@keyframes alertWinnerGlow {
  0%, 100% { box-shadow: 0 18px 52px rgba(86,224,122,0.32), 0 8px 24px rgba(42,6,51,0.38); }
  50%      { box-shadow: 0 22px 62px rgba(86,224,122,0.5), 0 10px 28px rgba(42,6,51,0.42); }
}
.alert-complete p {
  color: #2c1d00;
  font-size: 0.82rem; font-weight: 800;
  line-height: 1.35;
  margin: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase; letter-spacing: 0.7px;
  z-index: 1;
}
.alert-winner p {
  color: var(--success-contrast);
}

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
form {
  background: var(--qrquest-secondary-surface, rgba(255,255,255,0.07));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  padding: 48px 44px;
  margin-bottom: 0;
  margin-top: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

form label {
  display: block;
  font-size: 0.72rem; text-transform: uppercase;
  font-weight: 700; letter-spacing: 1px;
  color: var(--white); margin-bottom: 6px;
}

form .form-control {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--white) !important; font-family: inherit; font-size: 0.92rem;
  -webkit-text-fill-color: var(--white);
  outline: none; transition: all 0.2s;
  box-shadow: none !important;
}
form .form-control:focus {
  background: rgba(255,180,0,0.07) !important;
  border-color: var(--deep_orange_oculoom) !important;
  box-shadow: 0 0 0 3px rgba(255,180,0,0.15) !important;
}
form .form-control::placeholder {
  color: rgba(255,255,255,0.38);
  -webkit-text-fill-color: rgba(255,255,255,0.38);
  opacity: 1;
}
form .form-control:-webkit-autofill,
form .form-control:-webkit-autofill:hover,
form .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
form select.form-control option {
  color: #1f1025;
}
.form-message {
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 11px 14px;
}
.form-message-error {
  background: rgba(255,90,90,0.15);
  border: 1px solid rgba(255,90,90,0.35);
  color: #ffb3b3;
}
.form-message-success {
  background: rgba(67,203,102,0.15);
  border: 1px solid rgba(67,203,102,0.35);
  color: #a4efb8;
}
.otp-page .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.otp-form {
  margin-bottom: 0;
}
.otp-copy {
  margin: 0 auto 28px;
  max-width: 430px;
}
.otp-copy strong {
  color: var(--white);
  font-weight: 800;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 26px;
}
.otp-inputs input {
  width: 54px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.otp-inputs input:focus {
  border-color: var(--deep_orange_oculoom);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.18), 0 0 24px rgba(255, 184, 0, 0.16);
}
.otp-submit {
  margin-top: 4px;
}
.otp-alt-action {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 28px;
}
.otp-resend-link {
  background: transparent;
  border: 0;
  color: var(--white) !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.otp-resend-link:hover,
.otp-resend-link:focus {
  color: var(--deep_orange_oculoom) !important;
  outline: none;
}
.otp-resend-link:disabled {
  color: rgba(255,255,255,0.42) !important;
  cursor: not-allowed;
  opacity: 1;
}

form .btn-primary.btn-block {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%; padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.9rem; letter-spacing: 1.5px;
  margin-top: 4px;
  box-shadow: 0 6px 20px var(--gold-glow);
}
form .btn-primary.btn-block + br + .text-center {
  margin-top: 18px !important;
}

/* ══════════════════════════════════════
   3D MODEL CARDS (album.html)
══════════════════════════════════════ */
.card {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,180,0,0.1), transparent 32%),
    var(--qrquest-secondary-surface, rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 38px rgba(255,180,0,0.045), 0 18px 42px rgba(42,6,51,0.34);
  transition: all 0.25s;
  color: var(--white);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,180,0,0.28) !important;
  box-shadow: inset 0 0 46px rgba(255,180,0,0.075), 0 24px 54px rgba(42,6,51,0.48), 0 0 0 1px rgba(255,180,0,0.12);
}
.card-sdw:hover {
  box-shadow: inset 0 0 46px rgba(255,180,0,0.075), 0 24px 54px rgba(42,6,51,0.48), 0 0 0 1px rgba(255,180,0,0.12);
}

.card-model {
  border-radius: var(--radius-sm);
  padding: 36px 10px;
  position: relative; overflow: hidden;
}
.card-model::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.model {
  pointer-events: none; display: block;
  width: 30vmin; height: 30vmin; margin: 0 auto;
}
.model-found { animation: spinY 10s linear infinite; }
@keyframes spinY { to { transform: rotateY(1turn); } }
.album-model-viewer {
  height: 30vmin;
  margin: 0 auto;
  max-height: 260px;
  min-height: 190px;
  width: 30vmin;
}

.card-title {
  font-size: 0.75rem; text-transform: uppercase;
  font-weight: 700; letter-spacing: 1px;
  color: var(--white) !important; margin-top: 14px;
}

.card-link { font-size: 0.82rem; font-weight: 600; }

.card-not-found {
  background: var(--qrquest-secondary-surface, rgba(255,255,255,0.045)) !important;
  border: 1px dashed rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card-not-found .card-title { color: var(--white-60) !important; }
.card-not-found .text-muted  { color: var(--white-30) !important; opacity: 1 !important; }
.album-placeholder-icon {
  align-items: center;
  color: rgba(255,255,255,0.6);
  display: flex;
  font-size: clamp(4rem, 9vw, 6.5rem);
  height: 30vmin;
  justify-content: center;
  margin: 0 auto;
  width: 30vmin;
}
.album-placeholder-model {
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.22));
  max-height: 204px;
  min-height: 160px;
  width: min(24vmin, 204px);
}

#album-grid.card-deck {
  display: grid !important;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#album-grid.card-deck .card {
  margin: 0 !important;
  min-width: 0;
}

.album-share-wrap {
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 18px auto 10px;
  flex-wrap: wrap;
  width: 100%;
}

.album-share-btn {
  min-width: min(100%, 280px);
}

.album-share-btn .fab {
  font-size: 0.95rem;
}

.album-share-facebook,
.album-share-facebook:hover,
.album-share-facebook:focus {
  background: #1877F2 !important;
  box-shadow: 0 8px 24px rgba(24,119,242,0.3) !important;
  color: #fff !important;
}

.album-share-instagram,
.album-share-instagram:hover,
.album-share-instagram:focus {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 48%, #8134AF 100%) !important;
  box-shadow: 0 8px 24px rgba(221,42,123,0.3) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════
   PUBLIC RANKING
══════════════════════════════════════ */
.ranking-page {
  margin: 0 auto;
  max-width: 980px;
  min-height: 100vh;
  padding: 12px 20px 52px;
}
.ranking-navbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 0;
}
.ranking-navbar .container-title {
  align-items: center;
  display: inline-flex;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  gap: 12px;
  margin: 0;
  text-align: left;
}
.ranking-navbar .container-title::before {
  animation: liveDotPulse 1.55s ease-in-out infinite;
  background: #ff365f;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,54,95,0.42), 0 0 18px rgba(255,54,95,0.58);
  content: '';
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}
.ranking-navbar .logo {
  margin: 0;
  max-width: 220px;
}
.ranking-board {
  display: grid;
  gap: 0;
}
.ranking-podium {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1.18fr 1fr;
  margin: 0px auto 0;
  max-width: 880px;
  min-height: 360px;
  perspective: 900px;
  width: 100%;
}
.ranking-podium-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  text-align: center;
}
.ranking-podium-avatar {
  align-items: center;
  background:
    radial-gradient(
      circle at 50% 50%,
      var(--medal-center-light) 0%,
      var(--medal-center-mid) 50%,
      var(--medal-rim-mid) 70%,
      var(--medal-rim-dark) 86%,
      color-mix(in srgb, var(--medal-rim-dark) 88%, black) 100%
    );
  --medal-rim-dark: #5d3500;
  --medal-rim-mid: #d18a00;
  --medal-center-mid: #FFB400;
  --medal-center-light: #FFD060;
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 10px 16px rgba(0,0,0,0.14),
    inset 0 8px 10px rgba(255,255,255,0.18),
    inset 0 -12px 14px rgba(0,0,0,0.24),
    inset 0 0 0 7px rgba(0,0,0,0.22);
  color: #2c1d00;
  display: flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 82px;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  width: 82px;
  z-index: 2;
  overflow: hidden;
}
.ranking-podium-avatar::before {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.08) 22%,
      rgba(255,255,255,0.30) 50%,
      rgba(255,255,255,0.08) 68%,
      rgba(255,255,255,0) 100%
    );
  border-radius: inherit;
  content: '';
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.ranking-podium-avatar::after {
  background: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.32),
    inset 0 3px 5px rgba(255,255,255,0.12),
    inset 0 -4px 8px rgba(0,0,0,0.20);
  content: '';
  inset: 7px;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  transform: none;
  z-index: 3;
}
.ranking-podium-avatar i {
  font-size: 1.55rem;
  position: relative;
  z-index: 4;
}
.ranking-trophy-model {
  height: 100%;
  margin-bottom: -10px;
  overflow: visible;
  width: 100%;
}
.ranking-podium-1 .ranking-podium-avatar {
  --medal-rim-dark: #5d3500;
  --medal-rim-mid: #d18a00;
  --medal-center-mid: #FFB400;
  --medal-center-light: #FFD060;
  color: #7a4a00;
  height: 98px;
  width: 98px;
}
.ranking-podium-avatar.has-3d-trophy {
  background: transparent;
  box-shadow: none;
  height: 92px;
  overflow: visible;
  width: 92px;
}
.ranking-podium-1 .ranking-podium-avatar.has-3d-trophy {
  height: 116px;
  width: 116px;
}
.ranking-podium-avatar.has-3d-trophy::after {
  display: none;
}
.ranking-podium-avatar.has-3d-trophy::before {
  background: radial-gradient(circle, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.30) 38%, rgba(255,255,255,0.10) 64%, rgba(255,255,255,0) 84%);
  border-radius: 50%;
  content: '';
  display: block;
  filter: blur(22px);
  inset: -10px -20px -18px;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  transform: scale(1.28);
  z-index: -1;
}
.ranking-podium-1 .ranking-podium-avatar::after {
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 28%,
      rgba(255,255,255,0.28) 40%,
      rgba(255,255,255,0.95) 50%,
      rgba(255,255,255,0.28) 60%,
      transparent 72%,
      transparent 100%
    );
  box-shadow: none;
  inset: 0;
}
.ranking-podium-1 .ranking-podium-avatar i {
  font-size: 2.15rem;
}
.ranking-podium-2 .ranking-podium-avatar {
  transform-origin: 38% 50%;
  --medal-rim-dark: #3d4145;
  --medal-rim-mid: #7b8085;
  --medal-center-mid: #d3d5d7;
  --medal-center-light: #f0f0f0;
  color: #6f7782;
}
.ranking-podium-2 .ranking-podium-avatar::after {
  display: none;
}
.ranking-podium-3 .ranking-podium-avatar {
  transform-origin: 62% 50%;
  --medal-rim-dark: #421d0c;
  --medal-rim-mid: #944f28;
  --medal-center-mid: #cf9a79;
  --medal-center-light: #e6bb9f;
  color: #7a4527;
}
.ranking-podium-3 .ranking-podium-avatar::after {
  display: none;
}
.ranking-podium-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 5px;
  max-width: 180px;
}
.ranking-podium-1 .ranking-podium-name {
  font-size: 1.22rem;
  max-width: 220px;
}
.ranking-podium-block {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 18%),
    linear-gradient(180deg, var(--qrquest-podium-base, color-mix(in srgb, var(--purple-light) 45%, transparent)) 0%, rgba(77,1,96,0) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow:
    inset 0 18px 30px rgba(255,255,255,0.12),
    inset 18px 0 36px rgba(255,255,255,0.04),
    inset -22px 0 40px rgba(42,6,51,0.18),
    0 22px 46px rgba(42,6,51,0.28);
  color: rgba(255,255,255,0.88);
  display: flex;
  font-size: 5.4rem;
  font-weight: 900;
  height: 156px;
  justify-content: center;
  margin-top: 16px;
  position: relative;
  text-shadow: 0 10px 18px rgba(42,6,51,0.2);
  transform: none;
  transform-origin: bottom center;
  width: 100%;
}
.ranking-podium-block::before {
  display: none;
}
.ranking-podium-block::after {
  display: none;
}
.ranking-podium-block span {
  opacity: 0.65;
  position: relative;
  z-index: 1;
}
.ranking-podium-1 .ranking-podium-block span {
  opacity: 0.8;
}
.ranking-podium-2 .ranking-podium-block,
.ranking-podium-3 .ranking-podium-block {
  font-size: 4.3rem;
}
.ranking-podium-2 .ranking-podium-block {
  transform: none;
}
.ranking-podium-1 .ranking-podium-block {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), transparent 18%),
    linear-gradient(180deg, var(--qrquest-podium-base, color-mix(in srgb, var(--purple-light) 45%, transparent)) 0%, rgba(77,1,96,0) 100%);
  height: 204px;
  transform: none;
}
.ranking-podium-3 .ranking-podium-block {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(180deg, var(--qrquest-podium-base, color-mix(in srgb, var(--purple-light) 45%, transparent)) 0%, rgba(77,1,96,0) 100%);
  height: 124px;
  transform: none;
}
.ranking-podium-empty {
  min-height: 180px;
}
.ranking-live-list {
  background: var(--qrquest-secondary-surface, rgba(255,255,255,0.07));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: inset 0 0 34px rgba(255,255,255,0.04), 0 18px 44px rgba(42,6,51,0.22);
  display: grid;
  gap: 6px;
  padding: 16px;
}
.ranking-list-title {
  align-items: center;
  color: var(--soft_orange_oculoom);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  letter-spacing: 1.2px;
  margin: 2px 2px 10px;
  text-align: center;
  text-transform: uppercase;
}
.ranking-row {
  align-items: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 44px minmax(0, 1fr) auto auto;
  min-height: 78px;
  overflow: hidden;
  padding: 12px 14px;
  position: relative;
}
.ranking-row-leader {
  border-color: rgba(255,255,255,0.08);
  animation: rankingLeaderPulse 3.6s ease-in-out infinite;
  box-shadow: 0 18px 36px rgba(255,94,34,0.12), inset 0 0 28px rgba(255,166,0,0.07);
}
.ranking-row-leader::after {
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.03) 36%, rgba(255,255,255,0.28) 48%, rgba(255,255,255,0.05) 60%, transparent 100%);
  content: "";
  height: 180%;
  left: -55%;
  pointer-events: none;
  position: absolute;
  top: -40%;
  transform: rotate(8deg);
  width: 42%;
  z-index: 0;
  animation: rankingLeaderShine 4.4s ease-in-out infinite;
}
.ranking-row-leader > * {
  position: relative;
  z-index: 1;
}
@keyframes rankingLeaderPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}
@keyframes rankingLeaderShine {
  0%, 42% {
    left: -55%;
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  78%, 100% {
    left: 116%;
    opacity: 0;
  }
}
.ranking-place {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
}
.ranking-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--deep_orange_oculoom), var(--soft_orange_oculoom));
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 0.96rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}
.ranking-avatar-winner::after {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  color: #7a4a00;
  content: "\f091";
  display: flex;
  font-family: "Font Awesome 5 Free";
  font-size: 0.6rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  left: -5px;
  position: absolute;
  right: auto;
  top: -8px;
  width: 22px;
}
.ranking-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.ranking-main {
  min-width: 0;
  position: relative;
}
.ranking-main::before {
  color: var(--white);
  content: attr(data-previous-name);
  font-size: 1rem;
  font-weight: 800;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateY(0);
}
.ranking-row-swapped .ranking-main::before {
  animation: rankingOldNameOut 0.72s ease both;
}
.ranking-row-swapped .ranking-name {
  animation: rankingNewNameIn 0.72s ease both;
}
.ranking-progress {
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.ranking-progress span {
  background: linear-gradient(90deg, var(--deep_orange_oculoom), #ff4b88);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.55s ease;
}
.ranking-score {
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}
.ranking-move {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 400;
  gap: 6px;
  justify-content: center;
  min-width: 96px;
  padding: 8px 10px;
  white-space: nowrap;
}
.ranking-move i {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.ranking-move-up {
  color: #56e07a;
}
.ranking-move-up i {
  background: rgba(86,224,122,0.14);
}
.ranking-move-down {
  color: #ff5f8f;
}
.ranking-move-down i {
  background: rgba(255,95,143,0.14);
}
.ranking-move-stable {
  color: var(--white-60);
}
.ranking-move-stable i {
  background: rgba(255,255,255,0.08);
}
.ranking-empty {
  align-items: center;
  background: var(--qrquest-secondary-surface, rgba(255,255,255,0.08));
  border: 1px dashed var(--glass-border);
  border-radius: 20px;
  color: var(--white-75);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 220px;
}
.ranking-empty i {
  color: var(--deep_orange_oculoom);
  font-size: 2rem;
}
.ranking-loading {
  align-items: center;
  color: var(--white-80);
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 800;
  gap: 14px;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}
.ranking-loading span {
  animation: rankingLoader 0.9s ease-in-out infinite;
  background: linear-gradient(135deg, #FF5E22, var(--soft_orange_oculoom));
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255,180,0,0.45);
  height: 18px;
  position: relative;
  width: 18px;
}
.ranking-loading span::before,
.ranking-loading span::after {
  animation: rankingLoaderDots 0.9s ease-in-out infinite;
  background: linear-gradient(135deg, #FF5E22, var(--soft_orange_oculoom));
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,180,0,0.36);
  content: "";
  height: 10px;
  position: absolute;
  top: 4px;
  width: 10px;
}
.ranking-loading span::before { left: -22px; }
.ranking-loading span::after {
  animation-delay: 0.15s;
  right: -22px;
}
@keyframes rankingPulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 32px rgba(255,255,255,0.04), 0 0 18px rgba(255,180,0,0.18); }
  50% { transform: scale(1.015); box-shadow: inset 0 0 38px rgba(255,255,255,0.06), 0 0 30px rgba(255,180,0,0.28); }
}
@keyframes rankingAvatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes medalShine {
  0%, 34% { transform: translateX(-115%) rotate(12deg); }
  68%, 100% { transform: translateX(115%) rotate(12deg); }
}
@keyframes rankingLoader {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.12); }
}
@keyframes rankingLoaderDots {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.85); }
  50% { opacity: 1; transform: translateY(-3px) scale(1); }
}
@keyframes goldMedalShine {
  0% { opacity: 0; transform: translateX(-130%) rotate(12deg) scale(1.35); }
  18% { opacity: 1; }
  52% { opacity: 1; transform: translateX(130%) rotate(12deg) scale(1.35); }
  70%, 100% { opacity: 0; transform: translateX(130%) rotate(12deg) scale(1.35); }
}
@keyframes medalTiltLeft {
  0%, 100% { transform: perspective(460px) rotateY(0deg) rotateZ(0deg) scaleX(1); }
  50% { transform: perspective(460px) rotateY(-30deg) rotateZ(-3deg) scaleX(0.92); }
}
@keyframes medalTiltRight {
  0%, 100% { transform: perspective(460px) rotateY(0deg) rotateZ(0deg) scaleX(1); }
  50% { transform: perspective(460px) rotateY(30deg) rotateZ(3deg) scaleX(0.92); }
}
@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,54,95,0.46), 0 0 18px rgba(255,54,95,0.58); transform: scale(0.9); }
  70% { box-shadow: 0 0 0 10px rgba(255,54,95,0), 0 0 22px rgba(255,54,95,0.72); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(255,54,95,0), 0 0 18px rgba(255,54,95,0.58); transform: scale(0.9); }
}
@keyframes rankingOldNameOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}
@keyframes rankingNewNameIn {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bumpAway {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.95); }
}
@keyframes textGlowPulse {
  0%, 100% { text-shadow: 0 0 14px rgba(255,180,0,0.16), 0 0 28px rgba(255,255,255,0.08); }
  50% { text-shadow: 0 0 24px rgba(255,180,0,0.38), 0 0 42px rgba(255,255,255,0.16); }
}

/* Color themes */
.bg-00,
.bg-01,
.bg-02,
.bg-03 {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.14), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
  box-shadow: inset 0 0 34px rgba(255,180,0,0.07);
}
.bg-00 img { opacity: .75; }

.color-01 { color: rgba(255,255,255,0.48) !important; }
.color-01:hover,
.color-01:focus { color: var(--deep_orange_oculoom) !important; }
.color-02 { color: #7ED495 !important; }
.color-03 { color: #F5A97A !important; }

/* ══════════════════════════════════════
   TIMELINE (inicio.html)
══════════════════════════════════════ */
.timeline {
  list-style: none;
  margin: 24px auto 34px;
  max-width: 360px;
  padding: 0;
  position: relative;
}
.timeline::before { display: none; }
.timeline > li {
  display: flex;
  justify-content: center;
  margin: 0 0 42px;
  min-height: 136px;
  position: relative;
}
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before,
.timeline > li::after { content: ' '; display: table; }
.timeline > li::after {
  background: linear-gradient(to bottom, rgba(255,180,0,0.95), rgba(166,69,187,0.45));
  border-radius: 99px;
  bottom: -42px;
  clear: both;
  content: '';
  display: block;
  left: 50%;
  position: absolute;
  top: 132px;
  transform: translateX(-50%);
  width: 4px;
  z-index: 1;
}
.timeline > li:last-child::after { display: none; }

.timeline > li > .timeline-badge {
  color: var(--white);
  width: 132px; height: 132px;
  position: relative;
  z-index: 10;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.timeline > li > .timeline-badge:hover { transform: scale(1.06); }

.timeline-notfound {
  background: var(--qrquest-secondary-color, radial-gradient(circle at 42% 34%, #c0189c 0%, #a61189 52%, #7b197e 100%));
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.timeline-found {
  background: radial-gradient(circle at 40% 35%, #56e07a, #2ca84a);
  box-shadow: 0 14px 32px rgba(0,0,0,0.38);
}
.timeline-empty {
  opacity: 0.82;
}
.timeline > li > .timeline-badge img {
  height: 86px;
  margin-top: 4px;
  object-fit: contain;
  width: 86px;
}

/* ══════════════════════════════════════
   SPEECH BUBBLE (busqueda.html)
══════════════════════════════════════ */
.speech-bubble {
  display: none;
  position: fixed; bottom: 40px; left: 12px; right: 12px;
  background:
    radial-gradient(circle at 16% 15%, rgba(255,255,255,0.45), transparent 30%),
    linear-gradient(135deg, rgba(255,180,0,0.96), rgba(255,208,96,0.96));
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 18px 24px 18px 74px;
  color: #2c1d00;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(255,180,0,0.34), 0 8px 22px rgba(42,6,51,0.4);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 30010;
}
.speech-bubble::before {
  align-items: center;
  background: rgba(74,49,0,0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(74,49,0,0.2);
  color: var(--deep_orange_oculoom);
  content: '\f002';
  display: flex;
  font-family: "Font Awesome 5 Free";
  font-size: 1.2rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}
.ar-topbar {
  align-items: center;
  background: rgba(42,6,51,0.72);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 12px;
  padding: 10px 12px;
  position: fixed;
  right: 12px;
  top: 12px;
  pointer-events: auto;
  z-index: 30010;
}
.ar-topbar a,
.ar-topbar span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ar-status {
  background: rgba(42,6,51,0.74);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
  color: var(--white-80);
  font-size: 0.78rem;
  font-weight: 800;
  left: 50%;
  max-width: min(620px, calc(100vw - 32px));
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  top: 70px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 30010;
}
.ar-status.is-active {
  background: linear-gradient(135deg, rgba(255,94,34,0.94), rgba(255,166,0,0.94));
  color: #2c1d00;
}
.ar-capture-btn {
  background: linear-gradient(135deg, var(--deep_orange_oculoom), var(--soft_orange_oculoom));
  border: 0;
  border-radius: 999px;
  bottom: 34px;
  box-shadow: 0 18px 46px rgba(255,94,34,0.38), 0 8px 22px rgba(42,6,51,0.4);
  color: #2c1d00;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  left: 50%;
  letter-spacing: 0.7px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 28px;
  position: fixed;
  text-transform: uppercase;
  transform: translateX(-50%);
  width: max-content;
  z-index: 30010;
}
.ar-capture-btn[hidden] {
  display: none;
}
.ar-fallback {
  background: rgba(42,6,51,0.72);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
  left: 12px;
  padding: 10px;
  pointer-events: auto;
  position: fixed;
  right: 12px;
  top: 62px;
  z-index: 30010;
}
.ar-debug-panel {
  display: none;
  top: 118px;
}
.ar-debug-panel.is-visible {
  display: block;
}
.ar-fallback span {
  color: var(--white-60);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ar-fallback button {
  background: linear-gradient(135deg, var(--deep_orange_oculoom), var(--soft_orange_oculoom));
  border: 0;
  border-radius: var(--radius-sm);
  color: #2c1d00;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 6px 6px 0;
  padding: 9px 18px;
}
.ar-fallback-empty {
  color: var(--white-60);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 0 2px;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AR.js hiding */
#arjsDebugUIContainer { display: none; }
.a-enter-vr { display: none; }

/* ══════════════════════════════════════
   INSTRUCTION IMAGES (index.html)
══════════════════════════════════════ */
.img-item-description {
  margin: 20px 0 48px;
}
.img-item-description img {
  filter: drop-shadow(0 8px 20px rgba(42,6,51,0.5));
  transition: transform 0.3s;
}
.img-item-description img:hover { transform: scale(1.03); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  margin-top: 118px !important;
  padding: 58px 0 28px !important;
  border-top: 0 !important;
}
.form-page footer {
  margin-top: 24px !important;
  padding-top: 18px !important;
}
footer p {
  color: var(--white-75); font-size: 0.72rem;
  letter-spacing: 0.5px; margin: 0;
}
footer img { opacity: 1; transition: none; }
footer img:hover { opacity: 1; }
footer .footer-logo {
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 124px;
  width: 28vw;
}
.ranking-footer {
  margin-top: 18px !important;
  padding: 18px 0 24px !important;
}
.ranking-footer .footer-logo {
  max-width: 124px;
}

/* ══════════════════════════════════════
   PAGE ENTER ANIMATION
══════════════════════════════════════ */
.container { animation: pageFadeIn 0.5s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal {
  z-index: 30000 !important;
}
.modal-backdrop {
  z-index: 29990 !important;
}
.modal-dialog {
  z-index: 30001;
}
.modal-content {
  background: rgba(42,6,51,0.95) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(20px);
  color: var(--white) !important;
}
.modal-header {
  border-bottom-color: var(--glass-border) !important;
}
.modal-title { color: var(--deep_orange_oculoom) !important; font-family: inherit; font-weight: 800; letter-spacing: 0.5px; }
.close { color: var(--white-60) !important; opacity: 1 !important; }
.close:hover { color: var(--white) !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 576px) {
  .navbar { padding: 14px 20px; }
  .logo { margin-top: 0; }
  .ranking-page { padding: 30px 14px 42px; }
  .ranking-navbar {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .ranking-navbar .container-title {
    font-size: 0.88rem;
    line-height: 1.15;
  }
  .ranking-navbar .container-title::before {
    height: 9px;
    width: 9px;
  }
  .ranking-navbar .logo {
    max-width: 150px;
  }
  .ranking-podium {
    gap: 8px;
    min-height: 260px;
  }
  .ranking-podium-avatar {
    border-radius: 50%;
    font-size: 1rem;
    height: 58px;
    width: 58px;
  }
  .ranking-podium-avatar i { font-size: 1.1rem; }
  .ranking-podium-1 .ranking-podium-avatar {
    height: 68px;
    width: 68px;
  }
  .ranking-podium-1 .ranking-podium-avatar i { font-size: 1.5rem; }
  .ranking-podium-avatar::before {
    display: block;
  }
  .ranking-podium-avatar::after {
    inset: 5px;
  }
  .ranking-podium-name {
    font-size: 0.78rem;
    max-width: 104px;
  }
  .ranking-podium-1 .ranking-podium-name {
    font-size: 0.9rem;
    max-width: 126px;
  }
  .ranking-podium-block {
    border-radius: 18px 18px 0 0;
    font-size: 3.2rem;
    height: 112px;
    margin-top: 10px;
    transform: none;
  }
  .ranking-podium-2 .ranking-podium-block,
  .ranking-podium-3 .ranking-podium-block {
    font-size: 2.55rem;
  }
  .ranking-podium-block::before {
    display: none;
  }
  .ranking-podium-1 .ranking-podium-block { height: 144px; transform: none; }
  .ranking-podium-2 .ranking-podium-block { transform: none; }
  .ranking-podium-3 .ranking-podium-block { height: 92px; transform: none; }
  .ranking-live-list {
    border-radius: 18px;
    padding: 10px;
  }
  .ranking-row {
    gap: 10px;
    grid-template-columns: 30px 36px minmax(0, 1fr);
    min-height: 84px;
    padding: 10px;
  }
  .ranking-place { font-size: 0.95rem; }
  .ranking-avatar {
    display: flex;
    font-size: 0.86rem;
    height: 36px;
    width: 36px;
  }
  .ranking-row-leader .ranking-avatar::after {
    font-size: 0.52rem;
    height: 18px;
    left: -4px;
    top: -7px;
    width: 18px;
  }
  .ranking-name {
    font-size: 0.94rem;
    line-height: 1.2;
    margin-bottom: 7px;
  }
  .ranking-score {
    font-size: 0.78rem;
    grid-column: 3;
    justify-self: start;
  }
  .ranking-move {
    grid-column: 3;
    justify-self: start;
    margin-top: -4px;
    min-width: 0;
    padding: 5px 0;
  }
  .alert-complete { border-radius: 24px; padding: 12px 16px; gap: 10px; }
  .alert-complete::before { flex-basis: 40px; height: 40px; width: 40px; font-size: 1rem; }
  .card-deck { padding: 0 20px; }
  #album-grid.card-deck { grid-template-columns: 1fr; }
  .timeline > li > .timeline-badge { width: 100px; height: 100px; }
  .timeline > li {
    margin-bottom: 34px;
    min-height: 104px;
  }
  .timeline > li::after {
    bottom: -34px;
    top: 100px;
  }
  form { padding: 28px 22px 36px; }
  .container-title { font-size: 1.6rem; }
  .otp-inputs {
    gap: 7px;
  }
  .otp-inputs input {
    width: 42px;
    height: 50px;
    font-size: 1.25rem;
  }
}
