@font-face {
  font-family: "UNDERRATED";
  font-weight: 800;
  src: url("fonts/UNDERRATED-UltraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Crossten Soft";
  font-weight: 700;
  src: url("fonts/CrosstenSoft-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-weight: 100 1000;
  src: url("fonts/DMSans-Variable.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-width: 332px;
  background: #cbc6b8;
}

/* Page frame: 332px min, 1680px max */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 332px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 440px 0 32px;
  overflow: hidden;
  background: #cbc6b8;
}

/* Background image: fades in once it has loaded */
.background {
  position: absolute;
  top: -116px;
  left: 50%;
  width: 2382px;
  height: 782px;
  overflow: hidden;
  transform: translateX(-50%);
  opacity: 0;
}

.background.is-loaded {
  animation: background-fade-in 1.5s linear 0.25s forwards;
}

/* The image is cropped to the part that can be seen (1680px wide frame) */
.background img {
  position: absolute;
  top: 113.83px;
  left: 351.03px;
  width: 1679.93px;
  height: 452.41px;
  max-width: none;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(203, 198, 184, 0) 55.08%, rgb(203, 198, 184) 85.558%),
    linear-gradient(90deg, rgb(203, 198, 184) 14.274%, rgba(203, 198, 184, 0) 44.312%),
    linear-gradient(180deg, rgba(203, 198, 184, 0) 59.015%, rgb(203, 198, 184) 70.524%),
    radial-gradient(755.67px 903.5px at 1191px 259.5px, rgba(203, 198, 184, 0) 0%, rgba(203, 198, 184, 0.32) 100%);
}

@keyframes background-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Title */
.title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 304px;
  overflow: clip;
  word-break: break-word;
}

.title__name {
  font-family: "UNDERRATED", sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: normal;
  color: #5c3525;
  white-space: nowrap;
}

.title__description {
  min-width: 100%;
  width: min-content;
  font-family: "Crossten Soft", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: rgba(101, 58, 41, 0.8);
}

/* Links */
.links {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.streamings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 16px;
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 64px;
}

/* Link card: shared by every button. Active (default) */
.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: rgba(92, 52, 37, 0.92);
  -webkit-backdrop-filter: blur(120px);
  backdrop-filter: blur(120px);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

/* Link card: Hover (desktop) / pressed (mobile) */
.link-card:active {
  background: #5c3425;
}

.link-card:active > * {
  opacity: 0.8;
}

@media (hover: hover) {
  .link-card:hover {
    background: #5c3425;
  }

  .link-card:hover > * {
    opacity: 0.8;
  }
}

/* Link card: Inactive */
.link-card.is-inactive {
  background: #5c3425;
  pointer-events: none;
}

.link-card.is-inactive > * {
  opacity: 0.48;
}

/* Streaming card */
.streaming-card {
  width: 100%;
  max-width: 496px;
  height: 64px;
  padding: 0 8px;
  border-radius: 1000px;
}

.streaming-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.streaming-card__title {
  font-family: "Crossten Soft", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 28px;
  letter-spacing: -0.3px;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  word-break: break-word;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.streaming-card__description {
  display: flex;
  align-items: center;
  gap: 5px;
}

.streaming-card__icon {
  display: block;
  height: 12px;
}

.streaming-card__icon--square { width: 12px; }
.streaming-card__icon--narrow { width: 10px; }

.streaming-card__description-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

.streaming-card__description-text p {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 28px;
  letter-spacing: -0.26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  word-break: break-word;
  font-variation-settings: "opsz" 14;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.streaming-card__bullet {
  width: 3px;
  height: 3px;
  border-radius: 10000px;
  background: rgba(255, 255, 255, 0.72);
}

/* Social media card */
.sm-card {
  flex: 1 0 0;
  min-width: 60px;
  max-width: 68px;
  height: 44px;
}

/* Corner radii: top-left, top-right, bottom-right, bottom-left */
.sm-card--instagram { border-radius: 20px 4px 20px 20px; }
.sm-card--youtube   { border-radius: 4px 4px 20px 20px; }
.sm-card--tiktok    { border-radius: 4px 20px 20px 20px; }

.sm-card img {
  display: block;
}
