@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

.text-loop-container {
  position: fixed;
  inset: 0;
  top: -20%;
  width: 150vw;
  height: 150vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  opacity: 0.2;
  transform: rotate(-5deg) translateY(-5vh);
}


.text-loop {
  font-family: 'Gilroy', Arial, sans-serif;
  font-size: 7.5vh;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.15em;
  line-height: 1.05;
  /* Removed negative margins for more space */
  user-select: none;
  will-change: transform;
  pointer-events: none;
  width: 100vw;
}

.filled-loop {
  color: #fff;
  -webkit-text-stroke: 0px;
  animation: scroll-left 18s linear infinite;
}

.outline-loop {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  animation: scroll-right 22s linear infinite;
}

.text-loop:nth-child(odd) {
  animation: scroll-left 18s linear infinite;
}
.text-loop:nth-child(even) {
  animation: scroll-right 22s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    font-family: 'Gilroy', Arial, sans-serif;
    background: #232323;
}

.inclined-nav-rotator {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 20;
    transform: rotate(5deg);
    transform-origin: bottom right;
    pointer-events: none;
}

.inclined-nav {
    background: #fff;
    box-shadow: 0 -2px 32px rgba(0,0,0,0.10);
    border-radius: 0;
    min-width: 260px;
    min-height: 210px;
    padding: 2.2rem 3.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1.1rem;
    pointer-events: auto;
}


.nav-links-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2.5vw;
    transform: rotate(-19deg);
    transform-origin: right bottom;
    position: absolute;
    right: 4vw;
    bottom: 2.5rem;
}




.inclined-nav .nav-link {
    font-family: 'Gilroy', 'Segoe UI', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 2.32rem;
    color: #111;
    background: transparent;
    border: none;
    outline: none;
    text-decoration: none;
    padding: 0.2em 0.9em;
    margin: 0.1em 0;
    box-sizing: border-box;
    transition: background 0.18s, color 0.18s;
    display: block;
    cursor: pointer;
    letter-spacing: 0.01em;
    border-radius: 0;
    position: relative;
    text-align: right;
}

.inclined-nav .nav-link span {
    display: inline-block;
    transform: none;
}


.inclined-nav .nav-link span {
    display: inline-block;
    transform: none;
}



.inclined-nav .nav-link:hover,
.inclined-nav .nav-link:focus {
    background: #3a1856;
    color: #fff;
    outline: none;
    box-shadow: 0 2px 8px 0 rgba(58,24,86,0.08);
    z-index: 1;
}


@media (max-width: 600px) {
    .inclined-nav {
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
        gap: 0.7rem;
        border-radius: 0;
    }
    .inclined-nav .nav-link {
        font-size: 1rem;
        padding: 0.3em 0.7em;
        border-radius: 0em;
    }
}

.logo-container {
    position: static;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.logo-stack {
    position: relative;
    width: 25vw;
    max-width: 25vw;
    height: 25vh;
    max-height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    left: 0;
    top: 0;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
    pointer-events: auto;
}

.logo.outline {
    opacity: 1;
    z-index: 2;
}

.logo.filled {
    opacity: 0;
    z-index: 3;
}

.logo-stack:hover .outline,
.logo-stack:focus .outline {
    opacity: 0;
}

.logo-stack:hover .filled,
.logo-stack:focus .filled {
    opacity: 1;
}

/* --- Blurred background when socials open --- */
.blurred {
  filter: blur(7px) brightness(0.6);
  transition: filter 0.32s cubic-bezier(.4,0,.2,1);
  pointer-events: none !important;
}

/* --- Socials Overlay Styles --- */
.socials-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 18, 32, 0.68);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.socials-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Socials Popup Styles --- */
.socials-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 80%) scale(1.1);
  z-index: 1010;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.socials-popup.active {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
  pointer-events: auto;
}
.socials-list {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
}
.social-circle {
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  animation: socials-wave-in 0.48s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
.socials-popup.active .social-circle {
  opacity: 1;
  pointer-events: auto;
}
.socials-popup:not(.active) .social-circle {
  opacity: 0;
  pointer-events: none;
}
@keyframes socials-wave-in {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.social-circle a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3.5px solid #fff;
  background: transparent;
  color: #fff;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
  position: relative;
  overflow: visible;
  box-shadow: 0 6px 36px 0 rgba(0,0,0,0.16);
}
.social-circle a img {
  max-width: 50%;
  max-height: 50%;
  display: block;
  margin: auto;
  filter: invert(1) brightness(1.6) grayscale(0.1);
  transition: filter 0.22s cubic-bezier(.4,0,.2,1);
}
.social-circle a:hover img,
.social-circle a:focus img {
  filter: none;
}

.social-circle a:hover img,
.social-circle a:focus img {
  filter: none;
}

.osu-card {
  display: flex;
  align-items: center;
  background: rgba(24, 24, 32, 0.98);
  border-radius: 1.2em;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.16);
  margin: 2.2em 0 0 0;
  padding: 1em 1.5em 1em 1em;
  font-family: 'Gilroy', 'Segoe UI', Arial, sans-serif;
  color: #fff;
  min-width: 0;
}
.osu-profile-img-link {
  display: block;
  margin-right: 1.1em;
  border-radius: 50%;
  overflow: hidden;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.18);
  transition: box-shadow 0.18s;
}
.osu-profile-img-link:hover, .osu-profile-img-link:focus {
  box-shadow: 0 4px 18px 0 #3a1856;
}
#osu-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.osu-profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.osu-username-container {
  display: flex;
  align-items: flex-end;
  gap: 0.4em;
  position: relative;
}
.osu-flag-bg {
  height: 1.2em;
  width: auto;
  margin-left: 0.2em;
  z-index: 1;
  pointer-events: auto;
  transition: filter 0.2s;
  filter: brightness(0.98) saturate(1.1);
  bottom: 0.4em;
  position: relative;
}
.osu-username {
  position: relative;
  z-index: 2;
  font-size: 1.27em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4em;
  font-family: 'Gilroy', 'Segoe UI', Arial, sans-serif;
  color: #fff;
  word-break: break-all;
}
.osu-flag-tooltip {
  visibility: hidden;
  background: #222;
  color: #fff;
  text-align: center;
  border-radius: 0.4em;
  padding: 0.2em 0.6em;
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  font-size: 0.95em;
  transition: opacity 0.2s;
  pointer-events: none;
}
.osu-username-container:hover .osu-flag-tooltip,
.osu-username-container:focus-within .osu-flag-tooltip {
  visibility: visible;
  opacity: 1;
}
.osu-username-container:hover .osu-flag-bg,
.osu-username-container:focus-within .osu-flag-bg {
  opacity: 0.35;
}
.osu-rank-row {
  display: flex;
  gap: 1.2em;
  align-items: center;
  font-size: 1.04em;
  font-family: 'Gilroy', 'Segoe UI', Arial, sans-serif;
}
.osu-rank-label {
  color: #aaa;
  font-weight: 500;
  margin-right: 0.25em;
}
.osu-rank-value {
  color: #5f3283;
  text-shadow: 0 4px 18px #3a1856;
  font-weight: 700;
  min-width: 2.5em;
  font-family: 'Gilroy', 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.social-tooltip {
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(24, 24, 32, 0.98);
  color: #fff;
  padding: 0.45em 1.2em;
  border-radius: 1.4em;
  font-size: 1.08rem;
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.social-circle a:hover .social-tooltip,
.social-circle a:focus .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: auto;
}

.tooltip-arrow {
  display: block;
  position: absolute;
  left: 50%;
  top: 100%;
  width: 24px;
  height: 12px;
  transform: translateX(-50%) scaleY(1);
  z-index: 21;
  pointer-events: none;
}
.tooltip-arrow::after {
  content: '';
  display: block;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid rgba(24, 24, 32, 0.98);
}
.social-circle a .social-tooltip,
.social-circle a .tooltip-arrow {
  will-change: opacity, transform;
}
.social-circle a:hover .tooltip-arrow,
.social-circle a:focus .tooltip-arrow {
  animation: tooltip-arrow-bounce 0.38s cubic-bezier(.4,0,.2,1);
}
@keyframes tooltip-arrow-bounce {
  0% { transform: translateX(-50%) scaleY(0.6); opacity: 0; }
  60% { transform: translateX(-50%) scaleY(1.15); opacity: 1; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
.social-circle a:hover, .social-circle a:focus {
  background: #fff;
  color: #232323;
}
.social-circle svg {
  width: 44px;
  height: 44px;
  display: block;
  stroke: #fff;
  stroke-width: 2.2px;
  fill: none;
  transition: stroke 0.2s;
}
.social-circle a:hover svg, .social-circle a:focus svg {
  stroke: #232323;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
/* Responsive */
@media (max-width: 600px) {
  .socials-popup {
    top: 60%;
    transform: translate(-50%, 20%) scale(1.05);
  }
  .social-circle a {
    width: 56px;
    height: 56px;
  }
  .social-circle svg {
    width: 28px;
    height: 28px;
  }
  .socials-list {
    gap: 1rem;
  }
}

