@charset "UTF-8";
/* =========================================
   BYR APP SHELL — PREMIUM HUD V2
========================================= */

:root {
  --byr-app-shell-height: 0px;
}

html {
  scroll-padding-top:
    calc(var(--byr-app-shell-height) + 12px);
}

#byr-app-shell {
  position: sticky;
  top: 0;
  z-index: 9999;
  isolation: isolate;

  width: 100%;

  background: #071b5c;

  box-shadow:
    0 10px 26px rgba(0, 0, 0, .26);
}

#byr-app-shell .site-header {
  position: relative;
  top: auto;
  right: auto;
  left: auto;

  width: 100%;
  min-height: 72px;

  z-index: 2;
}

/* =========================================
   PANEL DEL USUARIO
========================================= */

/* Sin sesión: ocultamos el panel con datos personales. */
.byr-app-shell--guest #byr-app-user-panel {
  display: none;
}

#byr-app-user-panel {
  position: relative;

  width: 100%;

  padding: 8px 20px 9px;

  overflow: hidden;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #123ca4 0%,
      #092a7a 100%
    );

  border-top:
    1px solid rgba(255, 255, 255, .11);

  border-bottom:
    3px solid #ffd12c;
}

#byr-app-user-panel::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255, 255, 255, .11) 1px,
      transparent 1px
    );

  background-size: 22px 22px;

  opacity: .4;

  pointer-events: none;
}

#byr-app-user-panel::after {
  content: "";

  position: absolute;

  top: -80%;
  left: -15%;

  width: 46%;
  height: 230%;

  background:
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, .08) 50%,
      transparent 65%
    );

  transform: rotate(7deg);

  pointer-events: none;
}

.byr-app-user__inner {
  position: relative;
  z-index: 1;

  max-width: 1140px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(175px, auto)
    minmax(118px, auto)
    minmax(180px, auto)
    minmax(300px, 1fr);

  align-items: center;

  gap: 10px;
}

/* =========================================
   PERFIL
========================================= */

.byr-app-user__profile {
  display: flex;

  align-items: center;

  gap: 9px;

  min-width: 0;

  color: #fff;

  text-decoration: none;

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.byr-app-user__profile:hover {
  transform: translateY(-1px);
}

.byr-app-user__profile:active {
  transform: translateY(1px);
}

.byr-app-user__avatar {
  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border: 3px solid #fff;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #ffd72e 0%,
      #ff9d00 100%
    );

  box-shadow:
    0 4px 0 #d99f00,
    0 7px 14px rgba(0, 0, 0, .22);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.byr-app-user__profile:hover
.byr-app-user__avatar {
  transform: rotate(-4deg) scale(1.04);

  box-shadow:
    0 5px 0 #d99f00,
    0 9px 16px rgba(0, 0, 0, .24);
}

.byr-app-user__avatar-icon {
  display: block;

  font-size: 24px;
  line-height: 1;

  transform: translateY(-1px);

  filter:
    drop-shadow(
      0 2px 1px rgba(0, 0, 0, .18)
    );
}

.byr-app-user__identity {
  display: flex;

  flex-direction: column;

  min-width: 0;
}

.byr-app-user__greeting {
  display: none;
}

.byr-app-user__name {
  overflow: hidden;

  max-width: 125px;

  color: #fff;

  font-size: 17px;
  font-weight: 900;
  line-height: 1;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.byr-app-user__name::after {
  content: "BYR CLUB";

  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, .67);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: .08em;
}

/* =========================================
   RANGO / NIVEL
========================================= */

.byr-app-user__level {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  min-height: 38px;

  padding: 6px 11px;

  border:
    1px solid rgba(255, 255, 255, .17);

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .13),
      rgba(255, 255, 255, .07)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.byr-app-user__rank-icon {
  flex: 0 0 auto;

  font-size: 15px;
  line-height: 1;
}

.byr-app-user__level-label {
  font-size: 9px;
  font-weight: 900;

  letter-spacing: .03em;

  text-transform: uppercase;

  opacity: .75;
}

.byr-app-user__level-value {
  color: #ffd72e;

  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

/* =========================================
   PUNTOS
========================================= */

.byr-app-user__points {
  position: relative;
  overflow: visible;
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  min-height: 38px;

  padding: 6px 12px;

  border-radius: 12px;

  color: #092b79;

  background:
    linear-gradient(
      180deg,
      #ffe64e 0%,
      #ffc61c 100%
    );

  box-shadow:
    0 4px 0 #d49c00,
    0 7px 14px rgba(0, 0, 0, .17);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.byr-app-points__gain {
  position: absolute;

  top: 0;
  right: 8px;

  z-index: 20;

  padding: 5px 9px;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #33d98a 0%,
      #13a85f 100%
    );

  border:
    2px solid rgba(255, 255, 255, .95);

  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;

  white-space: nowrap;

  box-shadow:
    0 4px 0 #08743f,
    0 8px 18px rgba(0, 0, 0, .24);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform:
    translateY(-20%)
    scale(.65);
}

.byr-app-points__gain.is-visible {
  visibility: visible;

  animation:
    byr-points-gain-float
    1.65s
    cubic-bezier(.18, .88, .25, 1)
    both;
}

.byr-app-user__points:hover {
  transform: translateY(-1px);

  box-shadow:
    0 5px 0 #d49c00,
    0 9px 16px rgba(0, 0, 0, .2);
}

.byr-app-user__points-icon {
  font-size: 20px;
}

.byr-app-user__points-copy {
  display: flex;

  align-items: baseline;

  gap: 4px;
}

.byr-app-user__points-value {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.byr-app-user__points-label {
  font-size: 9px;
  font-weight: 900;

  text-transform: uppercase;
}

/* =========================================
   EXPERIENCIA
========================================= */

.byr-app-xp {
  position: relative;
  overflow: visible;
  min-width: 0;

  padding: 10px 13px;

  border:
    1px solid rgba(255, 255, 255, .15);

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .11),
      rgba(255, 255, 255, .075)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.byr-app-xp__gain {
  position: absolute;

  top: 0;
  right: 12px;

  z-index: 20;

  padding: 5px 9px;

  color: #092b79;

  background:
    linear-gradient(
      180deg,
      #fff176 0%,
      #ffd326 100%
    );

  border:
    2px solid rgba(255, 255, 255, .9);

  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;

  white-space: nowrap;

  box-shadow:
    0 4px 0 #ca9100,
    0 8px 18px rgba(0, 0, 0, .24);

  opacity: 0;

  pointer-events: none;

  transform:
    translateY(-20%)
    scale(.65);

  visibility: hidden;
}

.byr-app-xp__gain.is-visible {
  visibility: visible;

  animation:
    byr-xp-gain-float
    1.65s
    cubic-bezier(.18, .88, .25, 1)
    both;
}

.byr-app-xp__top {
  display: flex;

  justify-content: space-between;

  align-items: baseline;

  gap: 10px;

  margin-bottom: 6px;

  color: rgba(255, 255, 255, .93);

  font-size: 12px;
  font-weight: 800;
}

.byr-app-xp__top strong {
  color: #fff;

  font-size: 15px;
  font-weight: 900;
}

.byr-app-xp__track {
  position: relative;

  height: 12px;

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, .13);

  border-radius: 999px;

  background:
    rgba(0, 12, 61, .62);

  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .25);
}

.byr-app-xp__fill {
  position: relative;

  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #28c7ff 0%,
      #88e6dc 46%,
      #ffd526 100%
    );

  box-shadow:
    0 0 10px rgba(255, 213, 38, .34);

  transition:
    width .7s cubic-bezier(.2, .8, .2, 1);
}

.byr-app-xp__fill::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      110deg,
      transparent 20%,
      rgba(255, 255, 255, .5) 46%,
      transparent 70%
    );

  transform: translateX(-130%);

  animation:
    byr-xp-shine 3.2s ease-in-out infinite;
}

@keyframes byr-xp-shine {
  0%,
  60% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(150%);
  }
}

/* =========================================
   MONEDAS VOLADORAS
========================================= */

.byr-coin-fly {
  position: fixed;

  z-index: 10000;

  width: 26px;
  height: 26px;

  display: grid;

  place-items: center;

  font-size: 20px;
  line-height: 1;

  pointer-events: none;

  filter:
    drop-shadow(
      0 2px 3px rgba(0, 0, 0, .35)
    );

  will-change: transform, opacity;
}

/* =========================================
   ANIMACIONES DEL HUD
========================================= */

.byr-app-user__points.is-points-gained {
  animation:
    byr-points-gained .72s
    cubic-bezier(.2, .85, .25, 1);
}

.byr-app-xp.is-xp-gained {
  animation:
    byr-xp-gained .8s
    cubic-bezier(.2, .85, .25, 1);
}

.byr-app-user__level.is-rank-up {
  animation:
    byr-rank-up 1s
    cubic-bezier(.2, .9, .2, 1);
}

.byr-app-user__avatar.is-celebrating {
  animation:
    byr-avatar-bounce .65s
    cubic-bezier(.2, .9, .25, 1);
}

.byr-app-user__avatar.is-rank-celebrating {
  animation:
    byr-avatar-rank 1.05s
    cubic-bezier(.2, .9, .2, 1);
}

@keyframes byr-points-gained {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  35% {
    transform:
      translateY(-4px)
      scale(1.08);

    filter:
      brightness(1.18)
      drop-shadow(
        0 0 12px rgba(255, 221, 40, .8)
      );
  }

  65% {
    transform:
      translateY(1px)
      scale(.98);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes byr-points-gain-float {
  0% {
    opacity: 0;

    transform:
      translateY(20%)
      scale(.65)
      rotate(-4deg);
  }

  15% {
    opacity: 1;

    transform:
      translateY(-35%)
      scale(1.12)
      rotate(2deg);
  }

  35% {
    opacity: 1;

    transform:
      translateY(-55%)
      scale(1)
      rotate(0);
  }

  75% {
    opacity: 1;

    transform:
      translateY(-80%)
      scale(1);
  }

  100% {
    opacity: 0;

    transform:
      translateY(-125%)
      scale(.92);
  }
}

@keyframes byr-xp-gain-float {
  0% {
    opacity: 0;

    transform:
      translateY(20%)
      scale(.65)
      rotate(-4deg);
  }

  15% {
    opacity: 1;

    transform:
      translateY(-35%)
      scale(1.12)
      rotate(2deg);
  }

  35% {
    opacity: 1;

    transform:
      translateY(-55%)
      scale(1)
      rotate(0);
  }

  75% {
    opacity: 1;

    transform:
      translateY(-80%)
      scale(1);
  }

  100% {
    opacity: 0;

    transform:
      translateY(-125%)
      scale(.92);
  }
}

@keyframes byr-xp-gained {
  0% {
    transform: scale(1);

    border-color:
      rgba(255, 255, 255, .15);
  }

  35% {
    transform: scale(1.035);

    border-color:
      rgba(255, 215, 39, .75);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .12),
      0 0 22px rgba(40, 199, 255, .48),
      0 0 12px rgba(255, 213, 38, .32);
  }

  70% {
    transform: scale(.995);
  }

  100% {
    transform: scale(1);

    border-color:
      rgba(255, 255, 255, .15);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}

@keyframes byr-rank-up {
  0% {
    transform: scale(1);
  }

  28% {
    transform:
      translateY(-4px)
      scale(1.1)
      rotate(-2deg);

    border-color:
      rgba(255, 215, 46, .9);

    box-shadow:
      0 0 20px rgba(255, 215, 46, .65);
  }

  52% {
    transform:
      translateY(1px)
      scale(.98)
      rotate(1deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes byr-avatar-bounce {
  0% {
    transform: scale(1);
  }

  35% {
    transform:
      translateY(-5px)
      rotate(-6deg)
      scale(1.12);
  }

  65% {
    transform:
      translateY(1px)
      rotate(3deg)
      scale(.97);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes byr-avatar-rank {
  0% {
    transform: scale(1);
  }

  25% {
    transform:
      translateY(-6px)
      rotate(-10deg)
      scale(1.16);

    box-shadow:
      0 5px 0 #d99f00,
      0 0 24px rgba(255, 215, 46, .8);
  }

  50% {
    transform:
      rotate(8deg)
      scale(1.08);
  }

  75% {
    transform:
      rotate(-3deg)
      scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

.byr-app-user__profile:focus-visible,
.byr-app-user__points:focus-visible {
  outline: 3px solid #ffd72e;
  outline-offset: 3px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {
  #byr-app-shell .site-header {
    min-height: 66px;
  }

  .byr-app-user__inner {
    grid-template-columns:
      minmax(165px, 1fr)
      auto
      auto;
  }

  .byr-app-xp {
    grid-column: 1 / -1;
  }
}

/* =========================================
   CELULAR
========================================= */

@media (max-width: 700px) {
  #byr-app-shell {
  max-height: 100dvh;
}

  #byr-app-shell {
    position: sticky;
    top: 0;
  }

  #byr-app-shell .site-header {
    min-height: 58px;
  }

  #byr-app-user-panel {
    padding: 6px 8px 7px;

    border-bottom-width: 3px;
  }

  .byr-app-user__inner {
    grid-template-columns:
      minmax(0, 1fr)
      auto
      auto;

    gap: 6px;
  }

  .byr-app-user__profile {
    gap: 6px;
  }

  .byr-app-user__avatar {
    width: 34px;
    height: 34px;

    border-width: 2px;

    box-shadow:
      0 3px 0 #d99f00;
  }

  .byr-app-user__avatar-icon {
    font-size: 19px;
  }

  .byr-app-user__name {
    max-width: 94px;

    font-size: 13px;
  }

  .byr-app-user__name::after {
    margin-top: 3px;

    font-size: 7px;
  }

  .byr-app-user__level {
    min-height: 32px;

    gap: 4px;

    padding: 4px 7px;

    border-radius: 9px;
  }

  .byr-app-user__rank-icon {
  font-size: 12px;
}

  .byr-app-user__level-label {
    display: none;
  }

  .byr-app-user__level-value {
    font-size: 15px;
  }

  .byr-app-user__points {
    min-height: 32px;

    padding: 4px 7px;

    border-radius: 9px;

    box-shadow:
      0 3px 0 #d49c00;
  }
  .byr-app-points__gain {
  top: 0;
  right: 4px;

  padding: 4px 7px;

  border-width: 1px;

  font-size: 9px;

  box-shadow:
    0 3px 0 #08743f,
    0 6px 13px rgba(0, 0, 0, .22);
}  
  .byr-app-user__points-icon {
    display: none;
  }

  .byr-app-user__points-value {
    font-size: 15px;
  }

  .byr-app-user__points-label {
    display: none;
  }

  .byr-app-xp {
    grid-column: 1 / -1;

    padding: 5px 7px;

    border-radius: 9px;
  }

  .byr-app-xp__gain {
  right: 7px;

  padding: 4px 7px;

  border-width: 1px;

  font-size: 9px;

  box-shadow:
    0 3px 0 #ca9100,
    0 6px 13px rgba(0, 0, 0, .22);
}

  .byr-app-xp__top {
    margin-bottom: 5px;

    font-size: 11px;
  }

  .byr-app-xp__track {
    height: 10px;
  }
}

/* =========================================
   CELULARES MUY ANGOSTOS
========================================= */

@media (max-width: 380px) {
  .byr-app-user__inner {
    gap: 5px;
  }

  .byr-app-user__avatar {
    width: 31px;
    height: 31px;
  }

  .byr-app-user__avatar-icon {
    font-size: 17px;
  }

  .byr-app-user__name {
    max-width: 78px;

    font-size: 12px;
  }

  .byr-app-user__level,
  .byr-app-user__points {
    padding-right: 6px;
    padding-left: 6px;
  }
}

/* =========================================
   REDUCIR MOVIMIENTO
========================================= */

@media (prefers-reduced-motion: reduce) {
  .byr-app-points__gain.is-visible {
  animation: none;

  opacity: 1;

  transform:
    translateY(-50%)
    scale(1);
  }
  .byr-app-user__profile,
  .byr-app-user__avatar,
  .byr-app-user__points,
  .byr-app-xp__fill {
    transition: none;
  }

  .byr-app-xp__fill::after {
    animation: none;
  }

  .byr-app-user__points,
.byr-app-user__level,
.byr-app-xp,
.byr-app-user__avatar {
  animation: none !important;
}
.byr-app-xp__gain.is-visible {
  animation: none;

  opacity: 1;

  transform:
    translateY(-50%)
    scale(1);
}
.byr-app-user,
.byr-app-user__inner {
  overflow: visible;
}
}