:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0e0e0f;
  --panel-2: #151516;
  --text: #f7f2f1;
  --muted: #b8a6a3;
  --line: #31201d;
  --accent: #8f1713;
  --accent-bright: #d42a22;
  --accent-soft: rgba(143, 23, 19, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body,
a,
button {
  cursor: url("assets/cursors/diablo/normal.ani"), url("assets/cursors/diablo/Normal.cur"), auto;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(175, 41, 30, 0.28), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(175, 41, 30, 0.12), transparent 22%),
    linear-gradient(180deg, #090909 0%, var(--bg) 46%, #080606 100%);
  background-size: 140% 140%;
  line-height: 1.6;
  animation: backgroundDrift 28s ease-in-out infinite alternate;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.05) 6px 7px);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  cursor: url("assets/cursors/diablo/normal.ani"), url("assets/cursors/diablo/Normal.cur"), pointer;
}

.layout {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  object-fit: cover;
  background: var(--accent-soft);
  box-shadow: 0 0 28px rgba(175, 41, 30, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a {
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.button,
.swatch {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  background: var(--accent-soft);
  font: inherit;
  font-weight: 900;
  cursor: url("assets/cursors/diablo/normal.ani"), url("assets/cursors/diablo/Normal.cur"), pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary,
.swatch.active {
  background: var(--accent);
  box-shadow: 0 0 32px rgba(175, 41, 30, 0.34);
}

.button:hover,
.swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(175, 41, 30, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: clamp(34px, 6vw, 72px) 0 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(175, 41, 30, 0.08), transparent 44%),
    linear-gradient(145deg, rgba(21, 21, 22, 0.96), rgba(10, 10, 10, 0.98));
  box-shadow: var(--shadow);
  animation: openingLift 720ms ease both;
}

.profile-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 42px);
}

.avatar-image {
  width: clamp(132px, 18vw, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: auto;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: #0a0707;
  box-shadow: inset 0 0 32px rgba(175, 41, 30, 0.18), 0 0 34px rgba(175, 41, 30, 0.2);
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lead,
.status-panel p,
.panel p,
.footer {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.quick-actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-link {
  align-items: center;
  gap: 10px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.status-panel,
.mini-grid {
  padding: 24px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-grid div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.mini-grid strong {
  color: var(--accent-bright);
  font-size: 2.3rem;
  line-height: 1;
}

.mini-grid span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(42px, 8vw, 92px) 0;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.project {
  padding: 26px;
}

.link-list {
  flex-direction: column;
}

.link-list a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project:hover,
.game-card:hover {
  border-color: var(--accent);
  transform: scale(1.025);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 38px rgba(175, 41, 30, 0.18);
}

.project a {
  width: max-content;
  margin-top: auto;
  color: var(--accent-bright);
  font-weight: 900;
}

.tag {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
}

.contact-panel .link-list {
  margin-top: 18px;
}

.games-heading {
  text-align: center;
}

.games-heading h2 {
  margin-inline: auto;
}

.favorites-section {
  position: relative;
  padding-bottom: clamp(18px, 3vw, 34px);
}

.game-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.game-card {
  min-height: 390px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card h3,
.game-card p {
  padding-inline: 22px;
}

.game-card h3 {
  margin-top: 22px;
}

.game-card p {
  padding-bottom: 24px;
}

.game-art {
  min-height: 170px;
  height: 170px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #080808;
}

.game-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mcsh-section {
  padding-top: clamp(10px, 2vw, 20px);
}

.mcsh-panel {
  padding: clamp(24px, 4vw, 40px);
}

.mcsh-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.mcsh-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mcsh-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.mcsh-header h2 {
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.mcsh-header p:last-child {
  max-width: 560px;
  margin: 0;
}

.mcsh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mcsh-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mcsh-stats div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.mcsh-stats strong {
  color: var(--accent-bright);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

.mcsh-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-buddy {
  position: fixed;
  top: auto;
  right: auto;
  left: -18px;
  bottom: 0;
  z-index: 30;
  width: clamp(260px, 30vw, 440px);
  height: clamp(260px, 30vw, 440px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.62));
  pointer-events: none;
  transform: translateZ(0);
}

.music-player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  width: min(330px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(175, 41, 30, 0.92);
  border-radius: 12px;
  color: var(--accent-bright);
  background: transparent;
}

.song-title {
  overflow: hidden;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-button {
  min-width: 44px;
  min-height: 34px;
  border: 1px solid rgba(175, 41, 30, 0.86);
  border-radius: 8px;
  color: var(--accent-bright);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

.music-button:hover {
  border-color: var(--accent-bright);
  background: transparent;
  transform: translateY(-1px);
}

.volume-control {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.volume-control::before {
  content: "Vol";
  color: var(--accent-bright);
  font-size: 0.68rem;
  font-weight: 900;
}

.volume-control input {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 92px;
  height: 28px;
  opacity: 0;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  transition: opacity 140ms ease;
}

.volume-control:hover input,
.volume-control:focus-within input {
  opacity: 1;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent-bright);
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .card-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .mcsh-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .mcsh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card {
    min-height: 430px;
  }

  .footer-buddy {
    left: -22px;
    width: 300px;
    height: 300px;
  }

}

@media (max-width: 540px) {
  .layout {
    width: min(100% - 28px, 1160px);
  }

  .quick-actions .button,
  .quick-actions .button {
    width: 100%;
  }

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

  .mcsh-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section-heading.row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@keyframes openingLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backgroundDrift {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 100% 80%;
  }
}
