* {
  box-sizing: border-box;
}

:root {
  --bg: #09070f;
  --card: rgba(18, 14, 28, 0.72);
  --card-strong: rgba(255, 255, 255, 0.1);
  --text: #fff6ff;
  --muted: rgba(255, 246, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --pink: #ff71c8;
  --green: #1db954;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-video,
.bg-fallback,
.grain {
  position: fixed;
  inset: 0;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.bg-fallback {
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(255, 113, 200, 0.35), transparent 35%),
    radial-gradient(circle at bottom right, rgba(120, 80, 255, 0.28), transparent 40%),
    linear-gradient(145deg, #09070f, #181029 55%, #09070f);
}

.grain {
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}

.page {
  position: relative;
  min-height: 100vh;
}

.enter-screen,
.profile-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.hidden {
  display: none !important;
}

.enter-button,
.mute-button,
.links a,
.spotify-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.enter-button {
  padding: 18px 34px;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.profile-card {
  width: min(92vw, 560px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.top-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid rgba(255, 113, 200, 0.75);
  box-shadow: 0 0 34px rgba(255, 113, 200, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.thought-bubble {
  position: absolute;
  left: 72px;
  bottom: 84px;
  z-index: 4;
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: rgba(18, 14, 28, 0.9);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.25;
  box-shadow: var(--shadow);
}

.title-block {
  min-width: 0;
}

.eyebrow,
.small-label {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 0.95;
}

.bio {
  margin: 10px 0 0;
  color: var(--muted);
}

.status-card,
.activity-card,
.stats-grid {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  border-radius: 20px;
}

.status-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
}

.activity-card {
  padding: 16px;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: #747f8d;
  box-shadow: 0 0 14px currentColor;
}

.status-dot.online {
  background: #23a55a;
  color: #23a55a;
}

.status-dot.idle {
  background: #f0b232;
  color: #f0b232;
}

.status-dot.dnd {
  background: #f23f43;
  color: #f23f43;
}

.status-dot.offline {
  background: #747f8d;
  color: #747f8d;
}

.status-card p,
.activity-card p,
.stats-grid p {
  margin: 0;
}

.muted,
.activity-time {
  margin-top: 5px !important;
  color: var(--muted);
  font-size: 0.9rem;
}

.spotify-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.spotify-art {
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.spotify-info {
  min-width: 0;
  overflow: hidden;
}

.spotify-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.spotify-song {
  margin-top: 2px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-row {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.spotify-progress {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.spotify-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}

.spotify-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.spotify-actions a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.76rem;
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.stats-grid > div {
  padding: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.links a {
  flex: 1 1 130px;
  padding: 13px 14px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
}

.footer-text {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.mute-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 560px) {
  body {
    overflow: auto;
  }

  .profile-card {
    padding: 20px;
  }

  .avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }

  .thought-bubble {
    left: 52px;
    bottom: 70px;
    max-width: 190px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.discord-bio {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

#discordStatus {
  font-weight: 700;
  color: var(--text);
}

.discord-bio-label {
  margin-top: 10px !important;
}

.discord-bio {
  margin-top: 4px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: pre-line;
}

/* Fix custom status thought bubble placement */
.profile-card {
  margin-top: 42px;
}

.thought-bubble {
  left: 50% !important;
  bottom: calc(100% + 10px) !important;
  transform: translateX(-35%) !important;
  max-width: 220px !important;
  z-index: 10 !important;
  white-space: normal !important;
}

/* Hide duplicated custom status text in Discord card */
#discordCustomText {
  display: none !important;
}

@media (max-width: 560px) {
  .profile-card {
    margin-top: 52px;
  }

  .thought-bubble {
    left: 50% !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-20%) !important;
    max-width: 180px !important;
  }
}

/* Fixed compact Spotify card */
.spotify-card {
  width: 260px !important;
  max-width: 260px !important;
  min-width: 260px !important;
  grid-template-columns: 58px 1fr !important;
  margin-top: 12px !important;
}

.spotify-art {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
}

.spotify-info {
  min-width: 0 !important;
}

/* Wider centered Spotify card */
.spotify-card {
  width: calc(100% - 48px) !important;
  max-width: calc(100% - 48px) !important;
  min-width: 0 !important;
  margin: 14px auto 0 auto !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
}

/* Multi activity cards */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.spotify-card,
.activity-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.spotify-card.hidden,
.activity-empty.hidden {
  display: none !important;
}

.spotify-art,
.activity-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
}

.spotify-info,
.activity-info {
  min-width: 0;
  overflow: hidden;
}

.spotify-header,
.activity-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.spotify-song,
.activity-title {
  margin-top: 2px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist,
.activity-detail,
.activity-timer {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-row {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.spotify-progress {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.spotify-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}

.spotify-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.spotify-actions a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.76rem;
  text-decoration: none;
}

.activity-empty {
  width: calc(100% - 48px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .spotify-card,
  .activity-item,
  .activity-empty {
    width: 100%;
    max-width: 100%;
  }
}

.activity-image {
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}


/* Custom status bubble emoji layout */
.thought-bubble {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.status-emoji {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.status-text {
  min-width: 0;
  line-height: 1.25;
}

/* Make view/time numbers cleaner */
#siteAge,
#viewCount,
#locationText {
  font-weight: 700;
}

#statusCard.hidden {
  display: none !important;
}

#activityCard.hidden {
  display: none !important;
}

#statusCard.hidden {
  display: flex !important;
}

/* Bio right-side quick info */
.status-card > div {
  width: 100%;
}

.discord-bio {
  max-width: 100%;
}

.bio-extra {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-chips span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

/* Center and enlarge status/bio area */
.status-card {
  position: relative;
  display: block !important;
  padding: 18px 18px 20px !important;
  text-align: center;
}

.status-card #statusDot {
  position: absolute;
  top: 20px;
  left: 18px;
  margin: 0 !important;
}

.status-card > div {
  width: 100%;
}

#discordStatus {
  font-size: 1.1rem;
  font-weight: 800;
}

.discord-bio-label {
  margin-top: 14px !important;
  text-align: center;
}

.discord-bio {
  max-width: 92%;
  margin: 8px auto 0 !important;
  padding-top: 12px;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.45;
}

.bio-extra {
  max-width: 92%;
  margin: 14px auto 0;
  padding-top: 12px;
  text-align: center;
}

.bio-extra .small-label {
  text-align: center;
}

.info-chips {
  justify-content: center;
}

.info-chips span {
  font-size: 0.9rem;
  padding: 8px 12px;
}

/* Remove misplaced Spotify bar from bio/status card */
.status-card .spotify-progress,
.status-card .spotify-progress-fill,
.status-card .spotify-progress-row,
.status-card .spotify-card {
  display: none !important;
}

/* Remove stretched green status bar */
#statusDot {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Restore Discord status indicator as a dot */
#statusDot {
  display: block !important;
  position: absolute !important;
  top: 24px !important;
  left: 22px !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #747f8d;
  box-shadow: 0 0 14px currentColor !important;
}

#statusDot.online {
  background: #23a55a !important;
  color: #23a55a !important;
}

#statusDot.idle {
  background: #f0b232 !important;
  color: #f0b232 !important;
}

#statusDot.dnd {
  background: #f23f43 !important;
  color: #f23f43 !important;
}

#statusDot.offline {
  background: #747f8d !important;
  color: #747f8d !important;
}

/* Discord-style status dot on profile picture */
.avatar-wrap {
  position: relative !important;
}

.avatar-wrap #statusDot {
  display: block !important;
  position: absolute !important;
  right: -3px !important;
  bottom: -3px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 4px solid rgba(18, 14, 28, 0.95) !important;
  z-index: 8 !important;
}

.avatar-wrap #statusDot.online {
  background: radial-gradient(circle at 35% 35%, #6dff9d, #23a55a 58%, #11793a 100%) !important;
  color: #23a55a !important;
  box-shadow:
    0 0 8px rgba(35, 165, 90, 0.95),
    0 0 18px rgba(35, 165, 90, 0.55),
    0 0 30px rgba(35, 165, 90, 0.28) !important;
}

.avatar-wrap #statusDot.idle {
  background: radial-gradient(circle at 35% 35%, #ffe08a, #f0b232 58%, #b17812 100%) !important;
  color: #f0b232 !important;
  box-shadow:
    0 0 8px rgba(240, 178, 50, 0.95),
    0 0 18px rgba(240, 178, 50, 0.55),
    0 0 30px rgba(240, 178, 50, 0.28) !important;
}

.avatar-wrap #statusDot.dnd {
  background: radial-gradient(circle at 35% 35%, #ff8588, #f23f43 58%, #a91d21 100%) !important;
  color: #f23f43 !important;
  box-shadow:
    0 0 8px rgba(242, 63, 67, 0.95),
    0 0 18px rgba(242, 63, 67, 0.55),
    0 0 30px rgba(242, 63, 67, 0.28) !important;
}

.avatar-wrap #statusDot.offline {
  background: radial-gradient(circle at 35% 35%, #b9c0ca, #747f8d 58%, #4d5662 100%) !important;
  color: #747f8d !important;
  box-shadow:
    0 0 8px rgba(116, 127, 141, 0.85),
    0 0 18px rgba(116, 127, 141, 0.42),
    0 0 30px rgba(116, 127, 141, 0.18) !important;
}

@media (max-width: 560px) {
  .avatar-wrap #statusDot {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border-width: 4px !important;
    right: -3px !important;
    bottom: -3px !important;
  }
}

/* Revert status/bio layout to left aligned */
#statusCard.status-card {
  position: relative !important;
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
  padding: 16px !important;
  text-align: left !important;
}

#statusCard > div {
  width: 100% !important;
}

.status-heading-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

#statusCard #discordStatus {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Status dot inside the status card, to the right */
#statusCard #statusDot {
  display: block !important;
  position: static !important;
  flex: 0 0 13px !important;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px currentColor !important;
}

#statusCard #statusDot.online {
  background: #23a55a !important;
  color: #23a55a !important;
}

#statusCard #statusDot.idle {
  background: #f0b232 !important;
  color: #f0b232 !important;
}

#statusCard #statusDot.dnd {
  background: #f23f43 !important;
  color: #f23f43 !important;
}

#statusCard #statusDot.offline {
  background: #747f8d !important;
  color: #747f8d !important;
}

/* Bio back to left layout */
.discord-bio-label {
  margin-top: 12px !important;
  text-align: left !important;
}

.discord-bio {
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  padding-top: 10px !important;
  text-align: left !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.bio-extra {
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  padding-top: 10px !important;
  text-align: left !important;
}

.bio-extra .small-label {
  text-align: left !important;
}

.info-chips {
  justify-content: flex-start !important;
}

/* Status dot on left of status text */
.status-heading-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.status-heading-row > div:not(#statusDot) {
  min-width: 0 !important;
}

#statusCard #statusDot {
  display: block !important;
  position: static !important;
  flex: 0 0 13px !important;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  min-height: 13px !important;
  max-height: 13px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px currentColor !important;
}

#statusCard #statusDot.online {
  background: #23a55a !important;
  color: #23a55a !important;
}

#statusCard #statusDot.idle {
  background: #f0b232 !important;
  color: #f0b232 !important;
}

#statusCard #statusDot.dnd {
  background: #f23f43 !important;
  color: #f23f43 !important;
}

#statusCard #statusDot.offline {
  background: #747f8d !important;
  color: #747f8d !important;
}

/* Match activity widget side spacing to the card padding */
.activity-card {
  padding: 16px !important;
}

.activity-list {
  margin-top: 10px !important;
  gap: 12px !important;
}

.spotify-card,
.activity-item,
.activity-empty {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.spotify-card,
.activity-item {
  padding: 12px !important;
}

/* Move Discord custom status bubble down so it does not clip */
.profile-card {
  margin-top: 70px !important;
}

.thought-bubble {
  bottom: calc(100% + 14px) !important;
  top: auto !important;
  left: 0 !important;
  transform: none !important;
  max-width: 250px !important;
  z-index: 20 !important;
}

@media (max-width: 560px) {
  .profile-card {
    margin-top: 82px !important;
  }

  .thought-bubble {
    max-width: 210px !important;
  }
}

/* Proper custom status bubble fix, keep it inside the card */
.top-row {
  align-items: flex-start !important;
}

.avatar-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.thought-bubble {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  max-width: 170px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 14px 14px 14px 4px !important;
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
  z-index: 1 !important;
}

.profile-card {
  margin-top: 0 !important;
}

@media (max-width: 560px) {
  .thought-bubble {
    max-width: 150px !important;
  }
}

/* Restore header layout while keeping thought bubble visible */
.profile-screen {
  align-items: start !important;
  padding-top: 110px !important;
  padding-bottom: 40px !important;
}

.profile-card {
  margin-top: 0 !important;
}

.top-row {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.avatar-wrap {
  position: relative !important;
  display: block !important;
  flex: 0 0 96px !important;
  width: 96px !important;
  height: 96px !important;
}

.avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  border-radius: 28px !important;
}

.thought-bubble {
  position: absolute !important;
  left: 0 !important;
  bottom: calc(100% + 12px) !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 230px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 14px 14px 14px 4px !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
  z-index: 20 !important;
}

.title-block {
  align-self: center !important;
}

@media (max-width: 560px) {
  .profile-screen {
    padding-top: 105px !important;
  }

  .avatar-wrap {
    flex-basis: 78px !important;
    width: 78px !important;
    height: 78px !important;
  }

  .avatar {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    border-radius: 22px !important;
  }

  .thought-bubble {
    max-width: 190px !important;
    bottom: calc(100% + 10px) !important;
  }
}

/* Centre Time, Views, and Location stat cards */
.stats-grid {
  align-items: stretch !important;
}

.stats-grid .stat,
.stats-grid > div {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.stats-grid .small-label,
.stats-grid p,
#siteAge,
#viewCount,
#views,
#location,
#profileLocation {
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Link buttons with uploaded icons */
.image-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.image-links .profile-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.image-links .profile-link img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.image-links .profile-link span {
  line-height: 1 !important;
}

/* About page */
.about-screen {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.about-card {
  max-width: 720px !important;
}

.about-section {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.about-section p {
  color: var(--muted) !important;
  line-height: 1.55 !important;
}

.about-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

.about-mini-card {
  padding: 14px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
}

.about-mini-card h2 {
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  color: var(--text) !important;
}

.about-mini-card p {
  margin: 0 !important;
  font-size: 0.9rem !important;
}

.about-links {
  margin-top: 12px !important;
}

@media (max-width: 560px) {
  .about-screen {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Live About page text */
.about-live-extra {
  margin-top: 8px !important;
  font-size: 0.82rem !important;
  opacity: 0.8 !important;
}

/* Wider music card + recently seen songs */
.about-music-card {
  grid-column: 1 / -1 !important;
}

.music-current {
  margin-bottom: 14px !important;
}

.music-history {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.last-played-list {
  list-style: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
}

.last-played-list li {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 10px 11px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.track-main {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.track-meta {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

/* Scrolling + responsive scaling fix */
html {
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.profile-screen {
  width: 100% !important;
  min-height: 100svh !important;
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.profile-card {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.about-card {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
}

.bg-video,
.bg-overlay {
  position: fixed !important;
}

/* Prevent cards/buttons from causing sideways scroll */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
}

/* Better mobile layout */
@media (max-width: 560px) {
  .profile-screen {
    min-height: 100svh !important;
    padding: 88px 12px 28px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .profile-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px !important;
    padding: 16px !important;
  }

  .top-row {
    gap: 12px !important;
    align-items: center !important;
  }

  .title-block h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
    line-height: 1.05 !important;
  }

  .title-block .bio,
  #profileSubtitle {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .thought-bubble {
    max-width: min(220px, 72vw) !important;
    font-size: 0.78rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .links,
  .image-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .links a,
  .profile-link {
    width: 100% !important;
    min-width: 0 !important;
  }

  .status-card,
  .activity-card {
    padding: 14px !important;
  }

  .spotify-card,
  .activity-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-music-card {
    grid-column: auto !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .profile-screen {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .profile-card {
    padding: 14px !important;
  }

  .links,
  .image-links {
    grid-template-columns: 1fr !important;
  }

  .title-block h1 {
    font-size: 1.55rem !important;
  }
}

/* Last game played card */
#aboutGamingText {
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Remove click-to-enter / intro screen */
#enterScreen,
#introScreen,
#entryScreen,
.enter-screen,
.intro-screen,
.entry-screen,
.click-to-enter,
.click-screen {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Force profile to show without enter screen */
body,
.profile-screen,
.profile-card {
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-screen {
  display: flex !important;
}

.profile-card {
  display: block !important;
  transform: none !important;
  pointer-events: auto !important;
}

.hidden.profile-card,
.profile-card.hidden,
.profile-screen.hidden,
main.hidden {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Keep only the old enter overlay hidden */
#enterScreen,
#introScreen,
#entryScreen,
.enter-screen,
.intro-screen,
.entry-screen,
.click-to-enter,
.click-screen {
  display: none !important;
}

/* Re-center profile after removing enter screen */
main.profile-screen,
.profile-screen,
.profile-screen.hidden,
main.hidden.profile-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 100svh !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.profile-card,
.profile-card.hidden {
  display: block !important;
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.about-card,
.about-card.hidden {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 560px) {
  main.profile-screen,
  .profile-screen,
  .profile-screen.hidden,
  main.hidden.profile-screen {
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .profile-card,
  .profile-card.hidden,
  .about-card,
  .about-card.hidden {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Remove old manual music button */
.bottom-audio-control,
.backup-audio-button,
#backupAudioButton,
#siteAudioButton {
  display: none !important;
}

/* In-page About/Profile view switching */
#profileCard.hidden,
#aboutCard.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#profileCard,
#aboutCard {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.showing-about .thought-bubble {
  display: none !important;
}

/* Hide removed manual music controls */
.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton {
  display: none !important;
}

/* In-page About/Profile view switching */
.view-hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#profileCard:not(.view-hidden),
#aboutCard:not(.view-hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.showing-about .thought-bubble {
  display: none !important;
}

/* Hard fix for in-page About/Profile switching */
#profileCard.view-hidden,
#aboutCard.view-hidden,
#profileCard.hidden,
#aboutCard.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#profileCard:not(.view-hidden):not(.hidden),
#aboutCard:not(.view-hidden):not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove enter screen and manual music controls */
#enterScreen,
#introScreen,
#entryScreen,
.enter-screen,
.intro-screen,
.entry-screen,
.click-to-enter,
.click-screen,
.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Force main profile visible without enter screen */
#profileScreen,
.profile-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* In-page Profile/About switching */
#profileCard.view-hidden,
#aboutCard.view-hidden,
#profileCard.hidden,
#aboutCard.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#profileCard:not(.view-hidden):not(.hidden),
#aboutCard:not(.view-hidden):not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.showing-about .thought-bubble {
  display: none !important;
}

/* Restored click-to-enter gate */
#enterScreen.enter-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(8, 6, 14, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.entered #enterScreen,
#enterScreen.entered {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.enter-card {
  width: min(100%, 360px) !important;
  padding: 22px !important;
  border-radius: 28px !important;
  text-align: center !important;
  background: rgba(18, 14, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

.enter-kicker {
  margin: 0 0 12px !important;
  color: var(--muted) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
}

.enter-button {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--text) !important;
  font: inherit !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.enter-button:hover {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.17) !important;
}

.enter-note {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
}

/* Hide page content until entered */
body:not(.entered) main.profile-screen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.entered main.profile-screen {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Keep old manual music controls gone */
.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
}

/* Smaller custom enter button */
.enter-button,
#enterButton {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 38px !important;
  padding: 9px 18px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.9rem !important;
}

.enter-card {
  width: auto !important;
  min-width: 240px !important;
  max-width: min(90vw, 330px) !important;
  padding: 20px 22px !important;
}

@media (max-width: 560px) {
  .enter-button,
  #enterButton {
    font-size: 0.86rem !important;
    padding: 9px 16px !important;
  }

  .enter-card {
    min-width: 220px !important;
  }
}

/* Final enter gate behaviour */
body:not(.entered) main.profile-screen {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.entered main.profile-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#enterScreen.enter-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(8, 6, 14, 0.76) !important;
  backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.entered #enterScreen,
#enterScreen.entered {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.enter-card {
  width: auto !important;
  min-width: 220px !important;
  max-width: min(90vw, 320px) !important;
  padding: 20px 22px !important;
  border-radius: 28px !important;
  text-align: center !important;
  background: rgba(18, 14, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

#enterButton.enter-button,
.enter-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 38px !important;
  padding: 9px 18px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}

.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
}

/* Inline enter gate final override */
body:not(.entered) main.profile-screen {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.entered main.profile-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#enterScreen.enter-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(8, 6, 14, 0.76) !important;
  backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.entered #enterScreen {
  display: none !important;
}

.enter-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: min(90vw, 300px) !important;
  padding: 16px 18px !important;
  border-radius: 24px !important;
  text-align: center !important;
  background: rgba(18, 14, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

#enterButton.enter-button,
.enter-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 36px !important;
  padding: 8px 16px !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}

.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
}

/* Final first-entry gate */
body:not(.entered) main.profile-screen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.entered main.profile-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#enterScreen.enter-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(8, 6, 14, 0.76) !important;
  backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.entered #enterScreen {
  display: none !important;
}

.enter-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: min(90vw, 270px) !important;
  padding: 13px !important;
  border-radius: 22px !important;
  text-align: center !important;
  background: rgba(18, 14, 28, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

#enterButton.enter-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}

.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
}

/* One-time website entry gate */
body.site-locked main.profile-screen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.site-entered main.profile-screen,
body.entered main.profile-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#siteEntryGate.site-entry-gate {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(8, 6, 14, 0.76) !important;
  backdrop-filter: blur(16px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.site-entered #siteEntryGate {
  display: none !important;
}

.site-entry-card {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 11px !important;
  border-radius: 20px !important;
  background: rgba(18, 14, 28, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

#siteEnterButton.site-enter-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  cursor: pointer !important;
}

/* Permanently remove old music controls */
.bottom-audio-control,
.backup-audio-button,
.site-audio-button,
#backupAudioButton,
#siteAudioButton,
#muteButton {
  display: none !important;
}

/* About page: Games and Music side by side */
.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

.about-game-card,
.about-music-card {
  grid-column: auto !important;
  min-width: 0 !important;
  height: 100% !important;
}

@media (max-width: 620px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-game-card,
  .about-music-card {
    grid-column: auto !important;
  }
}

/* Games card now-playing and history layout */
.game-current {
  margin-bottom: 14px !important;
}

.game-history {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#aboutGameNowText {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.game-history-list {
  margin-top: 10px !important;
}

.about-game-card,
.about-music-card {
  grid-column: auto !important;
  min-width: 0 !important;
  height: 100% !important;
}

/* Combined Profile, Games, About and Music dashboard */
.profile-screen {
  width: 100% !important;
  min-height: 100svh !important;
  padding: 78px 18px 50px !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.profile-dashboard {
  width: min(100%, 1440px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns:
    minmax(250px, 340px)
    minmax(440px, 680px)
    minmax(250px, 340px) !important;
  grid-template-areas: "games profile music" !important;
  gap: 18px !important;
  align-items: start !important;
}

.profile-games-panel {
  grid-area: games !important;
}

.profile-center-column {
  grid-area: profile !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.profile-music-panel {
  grid-area: music !important;
}

.profile-side-panel {
  min-width: 0 !important;
}

.profile-side-panel > .about-mini-card,
.dashboard-game-card,
.dashboard-music-card {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  grid-column: auto !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: rgba(18, 14, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24) !important;
}

.profile-center-column > .profile-card {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.profile-about-wrapper {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border-radius: 24px !important;
  background: rgba(18, 14, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24) !important;
}

.profile-about-wrapper .about-inline-section,
.profile-about-wrapper .about-section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.profile-about-wrapper h2 {
  margin-top: 0 !important;
}

.profile-side-panel .last-played-list {
  max-height: 420px !important;
  overflow-y: auto !important;
  padding-right: 3px !important;
}

/* Medium screens: Profile first, Games and Music beneath it */
@media (max-width: 1080px) {
  .profile-dashboard {
    width: min(100%, 760px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "profile profile"
      "games music" !important;
  }

  .profile-center-column,
  .profile-center-column > .profile-card,
  .profile-about-wrapper {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Phones: everything stacks */
@media (max-width: 650px) {
  .profile-screen {
    padding: 72px 12px 32px !important;
  }

  .profile-dashboard {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "profile"
      "games"
      "music" !important;
    gap: 14px !important;
  }

  .profile-center-column {
    gap: 14px !important;
  }

  .profile-side-panel > .about-mini-card,
  .dashboard-game-card,
  .dashboard-music-card,
  .profile-about-wrapper {
    border-radius: 22px !important;
  }

  .profile-side-panel .last-played-list {
    max-height: none !important;
  }
}

/* Who I am inside the main profile, between username and status */
.profile-card .profile-inline-about {
  width: 100% !important;
  margin: 16px 0 18px !important;
  padding: 14px 0 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-card .profile-inline-about h2 {
  margin: 0 0 7px !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
}

.profile-card .profile-inline-about p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

.profile-about-wrapper:empty {
  display: none !important;
}

/* Weather above Music in the right-hand column */
.profile-music-panel {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.local-weather-card {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: rgba(18, 14, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24) !important;
}

.weather-heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.weather-heading h2 {
  margin: 3px 0 0 !important;
  color: var(--text) !important;
  font-size: 1rem !important;
}

.weather-icon {
  flex: 0 0 auto !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.weather-current {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 12px !important;
}

.weather-temperature {
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.weather-current-copy {
  min-width: 0 !important;
}

.weather-current-copy p {
  margin: 0 !important;
}

#weatherCondition {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.weather-secondary {
  margin-top: 3px !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

.weather-details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 14px !important;
}

.weather-details span {
  min-width: 0 !important;
  padding: 7px 5px !important;
  border-radius: 11px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 0.7rem !important;
}

.weather-details strong {
  color: var(--text) !important;
  font-weight: 700 !important;
}

.weather-forecast-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.weather-updated {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.67rem !important;
}

.weather-forecast {
  list-style: none !important;
  display: grid !important;
  gap: 6px !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
}

.weather-forecast-item {
  display: grid !important;
  grid-template-columns: minmax(65px, 1fr) auto auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  font-size: 0.72rem !important;
}

.weather-forecast-day {
  min-width: 0 !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}

.weather-forecast-icon {
  font-size: 1rem !important;
}

.weather-forecast-rain {
  color: var(--muted) !important;
  white-space: nowrap !important;
}

.weather-forecast-temperatures {
  color: var(--text) !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

/*
 * Let Music occupy all space below Weather, reaching the bottom
 * of the main profile column when that column is taller.
 */
.profile-music-panel .dashboard-music-card,
.profile-music-panel .about-music-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-music-panel .music-history {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-music-panel .last-played-list {
  flex: 1 1 auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* Do not force equal-height columns on phones */
@media (max-width: 650px) {
  .profile-music-panel {
    align-self: auto !important;
  }

  .profile-music-panel .dashboard-music-card,
  .profile-music-panel .about-music-card {
    flex: none !important;
  }

  .weather-details {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* BEGIN SPARKY PC MONITOR */
.profile-games-panel {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.pc-monitor-card {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: rgba(18, 14, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24) !important;
  transition: opacity 180ms ease, filter 180ms ease !important;
}

.pc-monitor-card.is-offline {
  opacity: 0.68 !important;
  filter: saturate(0.65) !important;
}

.pc-monitor-heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.pc-monitor-heading h2 {
  margin: 3px 0 0 !important;
  color: var(--text) !important;
  font-size: 1rem !important;
}

.pc-online-state {
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  background: rgba(35, 165, 90, 0.18) !important;
  border: 1px solid rgba(35, 165, 90, 0.34) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
}

.pc-monitor-card.is-offline .pc-online-state {
  background: rgba(116, 127, 141, 0.18) !important;
  border-color: rgba(116, 127, 141, 0.34) !important;
}

.pc-spec-list {
  display: grid !important;
  gap: 6px !important;
  margin: 14px 0 0 !important;
}

.pc-spec-list p,
.pc-metric-heading,
.pc-monitor-footer {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.pc-spec-list p {
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

.pc-spec-list span,
.pc-metric-heading,
.pc-monitor-footer {
  color: var(--muted) !important;
}

.pc-spec-list strong,
.pc-metric-heading strong,
.pc-monitor-footer strong {
  color: var(--text) !important;
}

.pc-spec-list strong {
  min-width: 0 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}

.pc-monitor-section {
  margin-top: 15px !important;
  padding-top: 13px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pc-metric {
  margin-top: 11px !important;
}

.pc-metric-heading {
  font-size: 0.72rem !important;
}

.pc-metric-heading > span:last-child {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 7px !important;
}

.pc-metric-heading small {
  color: var(--muted) !important;
  font-size: 0.67rem !important;
}

.pc-usage-bar {
  width: 100% !important;
  height: 8px !important;
  margin-top: 6px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.pc-usage-bar > span {
  display: block !important;
  width: 0;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(152, 113, 255, 0.9), rgba(92, 188, 255, 0.95)) !important;
  box-shadow: 0 0 12px rgba(121, 151, 255, 0.45) !important;
  transition: width 700ms ease !important;
}

.pc-gpu-details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

.pc-gpu-details span {
  padding: 6px 4px !important;
  border-radius: 10px !important;
  text-align: center !important;
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-size: 0.61rem !important;
}

.pc-gpu-details strong {
  display: block !important;
  margin-top: 2px !important;
  color: var(--text) !important;
  font-size: 0.67rem !important;
}

.pc-monitor-footer {
  margin-top: 15px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 0.65rem !important;
}

@media (max-width: 650px) {
  .profile-games-panel { align-self: auto !important; }
  .pc-monitor-card { flex: none !important; }
}
/* END SPARKY PC MONITOR */

/* === PC OFFLINE SLEEP STATE === */
.pc-monitor-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pc-monitor-card > :not(.pc-offline-overlay) {
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 420ms ease;
}

.pc-offline-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(1rem, 7%, 1.8rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(144, 122, 255, 0.20), transparent 38%),
    linear-gradient(160deg, rgba(14, 16, 31, 0.88), rgba(10, 12, 24, 0.96));
  -webkit-backdrop-filter: blur(9px) saturate(0.8);
  backdrop-filter: blur(9px) saturate(0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 420ms ease,
    visibility 420ms ease,
    transform 420ms ease;
}

.pc-monitor-card.is-offline > :not(.pc-offline-overlay),
.pc-monitor-card.pc-offline-preview > :not(.pc-offline-overlay) {
  opacity: 0.16;
  filter: grayscale(0.35) saturate(0.45) blur(1px);
  transform: scale(0.988);
}

.pc-monitor-card.is-offline .pc-offline-overlay,
.pc-monitor-card.pc-offline-preview .pc-offline-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pc-sleep-visual {
  position: relative;
  width: 6.4rem;
  height: 5.5rem;
  margin-bottom: 0.45rem;
}

.pc-sleep-moon {
  position: absolute;
  left: 0.7rem;
  bottom: 0;
  font-size: 5rem;
  line-height: 1;
  color: rgba(231, 226, 255, 0.96);
  filter: drop-shadow(0 0 18px rgba(161, 137, 255, 0.42));
  animation: pcMoonFloat 3.6s ease-in-out infinite;
}

.pc-sleep-z {
  position: absolute;
  color: rgba(223, 216, 255, 0.92);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 12px rgba(156, 128, 255, 0.45);
  animation: pcSleepZ 2.8s ease-in-out infinite;
}

.pc-sleep-z-one {
  right: 1.4rem;
  bottom: 0.85rem;
  font-size: 0.9rem;
}

.pc-sleep-z-two {
  right: 0.65rem;
  bottom: 2rem;
  font-size: 1.15rem;
  animation-delay: 0.45s;
}

.pc-sleep-z-three {
  right: 0;
  bottom: 3.45rem;
  font-size: 1.45rem;
  animation-delay: 0.9s;
}

.pc-offline-title {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.97);
}

.pc-offline-description {
  max-width: 19rem;
  margin: 0.55rem 0 0;
  color: rgba(233, 235, 255, 0.76);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pc-offline-last-signal {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(204, 194, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(232, 228, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

@keyframes pcMoonFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes pcSleepZ {
  0%, 100% { opacity: 0.38; transform: translateY(3px) scale(0.92); }
  50% { opacity: 1; transform: translateY(-3px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pc-sleep-moon,
  .pc-sleep-z {
    animation: none;
  }

  .pc-monitor-card > :not(.pc-offline-overlay),
  .pc-offline-overlay {
    transition: none;
  }
}
