/* ===========================================
   1. CSS Variables (theme)
=========================================== */
:root {
  --bg-dark: #0b0d12;
  --text-main: #f2f3f7;
  --text-muted: rgba(255, 255, 255, 0.75);

  --accent-cyan: #2fe6ff;
  --accent-magenta: #ff3ea5;
  --discord-blurple: #5865f2;

  --radius-lg: 18px;
  --radius-md: 12px;

  --space-2xs: 0.35rem;
  --space-xs: 0.6rem;
  --space-sm: 1rem;
  --space-md: 1.4rem;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ===========================================
   2. Reset / base
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('assets/images/SA2Background.png');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.95) saturate(1.2);
  transform: scale(1.05);
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 10, 0.35) 0%,
    rgba(6, 7, 10, 0.15) 40%,
    rgba(6, 7, 10, 0.4) 100%
  );
}

a {
  text-decoration: none;
  color: inherit;
}

svg.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ===========================================
   3. Mobile-first layout (stacked, scrollable)
=========================================== */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

/* Reorder for a sensible mobile reading order */
.profile             { order: 1; }
.row--youtube        { order: 2; }
.panel--discord      { order: 3; }
.panel--socials      { order: 4; }
.panel--support-mini { order: 5; }
.row--extra          { order: 6; }

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xs);
}

.profile__avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.55), transparent 70%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.profile__avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.profile__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.profile__bio-wrap {
  position: relative;
  max-width: 38ch;
}

.profile__bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.profile__bio-line {
  display: block;
  margin-bottom: 0.3em;
}

.profile__bio-line:last-child {
  margin-bottom: 0;
}

.profile__discord-note {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.socials__desc-wrap {
  display: none;
}

.support__desc-wrap {
  display: none;
}

.discord-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.8em;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.discord-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 6px rgba(59, 165, 93, 0.8);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
}

.panel--support-mini {
  border: 2px solid rgba(255, 200, 60, 0.55);
  background: rgba(10, 11, 15, 0.45);
  box-shadow: 0 0 20px rgba(255, 200, 60, 0.15);
}

.panel--socials {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 11, 15, 0.45);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.panel--discord {
  position: relative;
  align-items: center;
  text-align: center;
  border: 2px solid rgba(88, 101, 242, 0.55);
  background: rgba(10, 11, 15, 0.45);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.18);
}

/* Middle text area — sized to its own content. The panel's
   space-evenly distributes gaps between title / middle / button. */
.discord__middle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-main);
}

.panel__title--discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

.panel__title--discord .icon {
  color: var(--discord-blurple);
}

.discord__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.discord__cta {
  align-self: center;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--discord-blurple);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.discord__cta:hover {
  background: #6b76f5;
  transform: translateY(-2px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.row__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.block__main-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  background: rgba(10, 11, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.block__main-link .icon {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  overflow: visible;
}

.block__main-link:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.playlists {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.playlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  padding: 0.6rem 0.9rem;
  /* Uneven "frame" corners — big rounding on top-right/bottom-left,
     tight on the other two — echoing the picture-frame reference. */
  border-radius: 12px 44px 12px 44px;
  border: 3px solid var(--playlist-color, var(--accent-cyan));
  background: rgba(10, 11, 15, 0.55);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.playlist:hover {
  transform: translateY(-2px);
  background: rgba(10, 11, 15, 0.7);
  box-shadow: 0 0 16px color-mix(in srgb, var(--playlist-color, var(--accent-cyan)) 45%, transparent);
}

.playlist--crimson { --playlist-color: #DC0000; }
.playlist--pulse   { --playlist-color: #1A50BC; }
.playlist--silver  { --playlist-color: #E7EDE9; }

.playlist__title {
  font-weight: 600;
  font-size: 0.85rem;
}

.playlist__desc {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xs);
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 60px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  background: rgba(10, 11, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-btn .icon {
  width: 1.3em;
  height: 1.3em;
  color: var(--accent-cyan);
  flex-shrink: 0;
  overflow: visible;
}

.icon-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(47, 230, 255, 0.06);
  transform: translateY(-2px);
}

.icon-btn--wide {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  min-height: 42px;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* One variable per platform drives both the icon color AND its
   hover highlight everywhere it's used (Socials, Support, Find
   me in-game) — set --social-color once, get consistent icon +
   hover treatment automatically via the generic rules below. */
.icon-btn[data-social="kofi"]     { --social-color: #ff5e5b; }
.icon-btn[data-social="throne"]   { --social-color: #a855f7; }
.icon-btn[data-social="retro"]    { --social-color: #c9962c; }
.icon-btn[data-social="steam"]    { --social-color: #3d7ef5; }
.icon-btn[data-social="lastfm"]   { --social-color: #d51007; }
.icon-btn[data-social="roblox"]   { --social-color: #ffffff; }
.icon-btn[data-social="instagram"] { --social-color: #e1306c; }
.icon-btn[data-social="facebook"]  { --social-color: #1877f2; }
.icon-btn[data-social="twitter"]   { --social-color: #ffffff; }
.icon-btn[data-social="tiktok"]    { --social-color: #25f4ee; }
.icon-btn[data-social="twitch"]    { --social-color: #9146ff; }
.icon-btn[data-social="reddit"]    { --social-color: #ff4500; }
.icon-btn[data-social="whatsapp"]  { --social-color: #25d366; }

.icon-btn[data-social] .icon {
  color: var(--social-color);
}

.icon-btn[data-social]:hover {
  border-color: var(--social-color);
  background: color-mix(in srgb, var(--social-color) 12%, rgba(10, 11, 15, 0.45));
}

/* YouTube — its own brand red, matching the pattern used for the
   other social icons. */
.block__main-link[data-social="youtube"] .icon {
  color: #ff0000;
}
.block__main-link[data-social="youtube"]:hover {
  border-color: #ff0000;
  background: color-mix(in srgb, #ff0000 12%, rgba(10, 11, 15, 0.45));
}

/* ===========================================
   4. Animations (GPU-accelerated only)
=========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile, .panel, .row {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.profile             { animation-delay: 0.05s; }
.row--youtube        { animation-delay: 0.12s; }
.panel--socials      { animation-delay: 0.19s; }
.panel--discord      { animation-delay: 0.26s; }
.panel--support-mini { animation-delay: 0.26s; }
.row--extra          { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  .profile, .panel, .row { animation: none; opacity: 1; }
  .profile__avatar-wrap::before,
  .panel--discord::before,
  .profile__avatar,
  .profile__bio {
    transition: none;
  }
}

/* ===========================================
   4b. Discord hover choreography
   (hovering the Discord panel rotates the shared
   center logo and fades its name; the Discord
   panel swaps its own short blurb for the long
   description internally)
=========================================== */
.dashboard:has(.panel--discord:hover) .profile__avatar-wrap::before {
  opacity: 1;
  transform: scale(1);
}

.dashboard:has(.panel--discord:hover) .profile__avatar {
  transform: rotate(-90deg);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.55);
}

.dashboard:has(.panel--discord:hover) .profile__name {
  opacity: 0;
}

.dashboard:has(.panel--discord:hover) .profile__bio {
  opacity: 0;
}

.dashboard:has(.panel--discord:hover) .profile__discord-note {
  opacity: 1;
}

/* Socials hover also hides the bio (mirroring Discord), just
   without a replacement note — it simply clears out of the way. */
.dashboard:has(.panel--socials:hover) .profile__name {
  opacity: 0;
}

.dashboard:has(.panel--socials:hover) .profile__bio {
  opacity: 0;
}

/* Support hover also hides the bio, matching Socials/Discord. */
.dashboard:has(.panel--support-mini:hover) .profile__name {
  opacity: 0;
}

.dashboard:has(.panel--support-mini:hover) .profile__bio {
  opacity: 0;
}

.dashboard:has(.panel--discord:hover) .discord-status {
  opacity: 1;
}

/* Dim the rest of the dashboard while either the Discord or the
   Socials column is expanded, so focus stays on the active card. */
.panel--support-mini,
.panel--socials,
.panel--discord,
.row--youtube,
.row--extra {
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.dashboard:has(.panel--discord:hover) .panel--support-mini,
.dashboard:has(.panel--discord:hover) .panel--socials,
.dashboard:has(.panel--discord:hover) .row--youtube,
.dashboard:has(.panel--discord:hover) .row--extra,
.dashboard:has(.panel--socials:hover) .panel--support-mini,
.dashboard:has(.panel--socials:hover) .panel--discord,
.dashboard:has(.panel--socials:hover) .row--youtube,
.dashboard:has(.panel--socials:hover) .row--extra,
.dashboard:has(.panel--support-mini:hover) .panel--socials,
.dashboard:has(.panel--support-mini:hover) .panel--discord,
.dashboard:has(.panel--support-mini:hover) .row--youtube,
.dashboard:has(.panel--support-mini:hover) .row--extra {
  opacity: 0.12;
  filter: blur(3px) brightness(0.35);
}

/* ===========================================
   5. Desktop: single-screen dashboard grid
=========================================== */
@media (min-width: 1024px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }

  .dashboard {
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0 auto;
    padding: 1vh 2vw;
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    grid-template-rows: auto minmax(130px, 1fr) auto auto minmax(10px, 1fr);
    column-gap: 1.5vw;
    row-gap: 0.9vh;
  }

  /* Socials stretches the FULL page height (every row, top to
     bottom) — independent of Discord, which keeps its own
     original tall-but-fixed size unchanged. The two sides won't
     match height anymore; that's intentional per instruction. */
  .panel--socials {
    grid-column: 1;
    grid-row: 1 / -1;
    justify-self: start;
    align-self: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    padding: var(--space-md);
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel--socials:hover {
    width: min(74vw, 860px);
  }

  /* Centered above the button column specifically (176px), not
     the whole (much wider on hover) panel. */
  .panel__title--socials {
    width: 216px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: normal;
  }

  /* Row layout: fixed-width button list on the left, description
     area filling whatever's revealed to the right on hover. */
  .socials__body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-md);
    width: 100%;
    flex: 1;
  }

  .socials__list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: var(--space-2xs);
    width: 216px;
    flex-shrink: 0;
  }

  .socials__desc-wrap {
    display: block;
    position: relative;
    flex: 1;
    min-width: 0;
  }

  .socials__description {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
  }

  .panel--socials:hover .socials__description--default {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.4s ease 0.34s, filter 0.4s ease 0.34s;
  }

  /* Swap to a per-platform blurb when its specific button is
     hovered — the default line hides, that platform's line shows. */
  .panel--socials:hover:has(.icon-btn[data-social="instagram"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="facebook"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="twitter"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="tiktok"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="twitch"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="reddit"]:hover) .socials__description--default,
  .panel--socials:hover:has(.icon-btn[data-social="whatsapp"]:hover) .socials__description--default {
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.15s ease, filter 0.15s ease;
  }

  .panel--socials:hover:has(.icon-btn[data-social="instagram"]:hover) [data-desc="instagram"],
  .panel--socials:hover:has(.icon-btn[data-social="facebook"]:hover) [data-desc="facebook"],
  .panel--socials:hover:has(.icon-btn[data-social="twitter"]:hover) [data-desc="twitter"],
  .panel--socials:hover:has(.icon-btn[data-social="tiktok"]:hover) [data-desc="tiktok"],
  .panel--socials:hover:has(.icon-btn[data-social="twitch"]:hover) [data-desc="twitch"],
  .panel--socials:hover:has(.icon-btn[data-social="reddit"]:hover) [data-desc="reddit"],
  .panel--socials:hover:has(.icon-btn[data-social="whatsapp"]:hover) [data-desc="whatsapp"] {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.34s, filter 0.4s ease 0.34s;
  }

  .profile {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    pointer-events: none;
  }

  .row--youtube {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: -23vh;
    margin-bottom: 1.5vh;
  }

  /* One shared bordered container — main link acts as a header
     strip, playlists sit as the body beneath it, genuinely wired
     together as a single component instead of two floating rows. */
  .youtube-group {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(10, 11, 15, 0.35);
    overflow: hidden;
  }

  .row--youtube .block__main-link {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 11, 15, 0.4);
    margin: 0;
  }

  .row--youtube .block__main-link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .row--youtube .playlists {
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 8px;
  }

  .row--youtube .playlist {
    flex: 1;
    border-radius: 10px;
    border: 2px solid var(--playlist-color, var(--accent-cyan));
    background: rgba(10, 11, 15, 0.4);
  }

  /* Support now spans the rest of the column (row 3 to the very
     bottom), so together with Discord above it, the right side
     matches Socials' full-page height on the left — restoring the
     symmetry that felt off when Support was short. */
  .panel--support-mini {
    grid-column: 3;
    grid-row: 3 / -1;
    justify-self: end;
    align-self: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: flex-end;
    justify-content: space-evenly;
    text-align: right;
    overflow: hidden;
    padding: var(--space-md);
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel--support-mini:hover {
    width: min(74vw, 860px);
    padding-left: 310px;
  }

  .panel--support-mini .panel__title {
    width: 216px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.15rem;
  }

  /* row-reverse: the button list stays pinned to the panel's fixed
     RIGHT edge (matching justify-self: end above), while the
     description fills the space revealed to its LEFT on hover —
     the mirror image of how Socials does it on the left side. */
  .support__body {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: var(--space-sm);
    width: 100%;
    flex: 1;
  }

  .support__body .stack {
    width: 216px;
    flex-shrink: 0;
    justify-content: space-evenly;
  }

  .support__desc-wrap {
    display: block;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .support__description {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
  }

  .panel--support-mini:hover .support__description--default {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.4s ease 0.34s, filter 0.4s ease 0.34s;
  }

  .panel--support-mini:hover:has(.icon-btn[data-social="kofi"]:hover) .support__description--default,
  .panel--support-mini:hover:has(.icon-btn[data-social="throne"]:hover) .support__description--default {
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.15s ease, filter 0.15s ease;
  }

  .panel--support-mini:hover:has(.icon-btn[data-social="kofi"]:hover) [data-desc="kofi"],
  .panel--support-mini:hover:has(.icon-btn[data-social="throne"]:hover) [data-desc="throne"] {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.34s, filter 0.4s ease 0.34s;
  }

  /* Find me in-game — centered in the middle column, below
     YouTube, between the two side columns. */
  .row--extra {
    grid-column: 2;
    grid-row: 4;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }

  /* Discord: same tall height as Support by default, but narrow
     (matches its own column). Only on HOVER does its width grow,
     anchored to its right edge (justify-self: end) so it stretches
     leftward past the profile and behind the logo — no clone
     element, no double border, just the one box resizing.
     Title, button, and overall spacing use the SAME alignment in
     both states so nothing jumps when hovering — only the middle
     text content and its width change. */
  .panel--discord {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel--discord:hover {
    width: min(74vw, 860px);
    padding-left: 310px;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel__title--discord {
    justify-content: center;
    font-size: 1.15rem;
  }

  .panel__title--discord .icon {
    width: 1.3em;
    height: 1.3em;
  }

  .discord__subline {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .discord__cta {
    align-self: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }

  .profile__avatar-wrap {
    margin-top: 1.5vh;
  }

  .profile__avatar {
    width: clamp(90px, 12vh, 140px);
    height: clamp(90px, 12vh, 140px);
  }

  .profile__name {
    font-size: clamp(1.4rem, 2.4vh, 1.9rem);
  }

  .profile__bio-wrap {
    max-width: 56ch;
  }

  .profile__bio {
    font-size: clamp(0.95rem, 1.7vh, 1.15rem);
    line-height: 1.6;
  }

  /* Discord panel: short mantra block by default, long description
     on hover — same crossfade technique as the bio text (both
     stacked, opacity-only transition) instead of an abrupt display
     jump. Everything stays center-aligned in both states. */
  .discord__middle {
    position: relative;
    max-width: 300px;
    min-height: 260px;
    margin: 0 auto;
  }

  .discord__text--short,
  .discord__text--long {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
    text-align: center;
  }

  .discord__text--short {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
  }

  .panel--discord:hover .discord__middle {
    max-width: 490px;
  }

  .panel--discord:hover .discord__text--short {
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
  }

  .panel--discord:hover .discord__text--long {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.34s, filter 0.4s ease 0.34s;
  }

  /* Loading spinner (dimmed logo) fills the gap while the panel
     finishes widening, so the wait reads as "loading" rather than
     a stall — reused for Discord, Socials, and Support reveals. */
  .discord__loading,
  .socials__loading,
  .support__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
  }

  .panel--discord:hover .discord__loading,
  .panel--socials:hover .socials__loading,
  .panel--support-mini:hover .support__loading {
    animation: logoLoadingFade 0.5s ease forwards;
  }

  @keyframes logoLoadingFade {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { opacity: 0; }
  }

  .discord__loading-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(0.6) brightness(0.55);
    opacity: 0.7;
    animation: logoLoadingSpin 1.1s linear infinite;
  }

  @keyframes logoLoadingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  .discord__line {
    display: block;
    margin-bottom: 0.7em;
  }

  .discord__mantra {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.3em;
  }

  .discord__submantra {
    display: block;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.8em;
  }

  .discord__subline-wrap {
    margin-bottom: 2.2em;
    text-align: center;
  }

  /* Mantra lines (short/default state): a left-aligned block of
     their own, regardless of the panel's overall right alignment,
     so all three lines start at the same edge instead of each
     centering/wrapping oddly. */
  .discord__mantra-list {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    text-align: left;
    width: 100%;
  }

  .discord__mantra-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
  }

  .discord__mantra-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.78rem;
  }

  .row--extra {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .row--extra .icon-grid--extra {
    grid-template-columns: repeat(6, 1fr);
  }

  .icon-btn {
    min-height: 48px;
    padding: 0.45rem 0.35rem;
  }

  /* Socials & Support buttons are wide-format, not the compact
     grid ones — restore their original bigger size independent of
     the "Find me in-game" grid's smaller sizing above. */
  .icon-btn--wide {
    min-height: 56px;
    padding: 0.65rem 0.9rem;
  }
}

