@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800&family=Raleway:wght@600;700;800&display=swap");

:root {
  --primary: #E8390E;
  --secondary: #FF6B35;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --card-bg: #1e1e1e;
  --line: rgba(255,255,255,0.15);
  --muted: rgba(245, 245, 245, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--primary) #111;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(232, 57, 14, 0.22), transparent 34rem),
    var(--dark);
  color: var(--light);
  font-family: "Nunito", sans-serif;
}

.has-video-bg {
  background: var(--dark);
}

.background-video,
.background-video-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  opacity: 0.58;
  transform: scale(1.04);
  z-index: -2;
}

.background-video-overlay {
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 57, 14, 0.24), transparent 34rem),
    rgba(0, 0, 0, 0.58);
  z-index: -1;
}

body::-webkit-scrollbar {
  width: 11px;
}

body::-webkit-scrollbar-track {
  background: #111;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border: 2px solid #111;
  border-radius: 999px;
}

a,
button {
  transition: all 0.25s ease;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  display: grid;
  justify-items: center;
  padding-top: 28px;
  text-align: center;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary);
  object-fit: cover;
}

.site-title {
  margin: 22px 0 14px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 11vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 0.95;
}

.divider {
  width: calc(100% - 80px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(232, 57, 14, 0.75), var(--line), rgba(255, 107, 53, 0.75), transparent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 34px 0;
}

.social-button {
  --brand: var(--primary);
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
}

.social-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.social-button:hover,
.social-button:focus-visible {
  color: var(--brand);
  box-shadow: 0 0 22px var(--brand);
  outline: none;
  transform: scale(1.1);
}

.categories {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 42px 0 30px;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 220px;
  min-height: 80px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.category-card img {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 7px;
  filter: saturate(0.95) contrast(0.95);
  mix-blend-mode: lighten;
  opacity: 0.9;
}

.category-card-minecraft {
  border-left-color: #E8390E;
}

.category-card-geoguessr {
  border-left-color: #22C55E;
}

.category-card-supercell {
  border-left-color: #0EA5E9;
}

.category-card:hover img,
.category-card:focus-visible img {
  filter: saturate(1.08) contrast(1.02);
  opacity: 1;
  transform: scale(1.05);
}

.category-card:hover,
.category-card:focus-visible {
  background: linear-gradient(135deg, rgba(232, 57, 14, 0.36), rgba(255, 107, 53, 0.12)), var(--card-bg);
  box-shadow: 0 14px 36px rgba(232, 57, 14, 0.18);
  outline: none;
  transform: scale(1.03);
}

.sidebar {
  position: fixed;
  top: 56px;
  z-index: 2;
  width: 300px;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(232, 57, 14, 0.5);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 57, 14, 0.8);
}

.sidebar-left {
  left: 34px;
  top: 0;
  width: 340px;
}

.sidebar.sidebar-left {
  top: 8px;
}

.sidebar-right {
  right: 34px;
}

.sidebar-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.moment-link {
  position: relative;
  display: block;
  width: 310px;
  height: 174px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(232, 57, 14, 0.72);
}

.gaming-thumbnail {
  position: relative;
  display: block;
  width: 310px;
  height: 174px;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.88);
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(232, 57, 14, 0.72);
}

.moment-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  font-size: 3.2rem;
  opacity: 0;
  text-shadow: 0 0 16px var(--primary);
}

.moment-link:hover {
  box-shadow: 0 0 42px var(--primary);
  transform: translateY(-3px);
}

.gaming-thumbnail:hover,
.gaming-thumbnail:focus-visible {
  box-shadow: 0 0 42px var(--primary);
  outline: none;
  transform: translateY(-3px);
}

.moment-link:hover .play-icon {
  background: rgba(0, 0, 0, 0.36);
  opacity: 1;
}

.setup-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 260px;
  margin: 0 auto;
  padding: 28px;
  background: rgba(30, 30, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.68;
}

.setup-card::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  background: url("assets/setup.png") center / cover no-repeat;
  filter: blur(5px);
  opacity: 0.48;
}

.setup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.56);
}

.setup-label {
  display: block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 1.05em;
  font-weight: 800;
}

.setup-label:first-child {
  margin-top: 0;
}

.setup-card ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.sidebar-extra-section {
  margin-top: 18px;
}

.sidebar-content-card {
  display: block;
  width: 310px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  color: #fff;
}

[data-youtube-post-card] {
  background: rgba(30, 30, 30, 0.88);
  border: 2px solid var(--primary);
  box-shadow: 0 0 28px rgba(232, 57, 14, 0.72);
}

[data-youtube-post-card]:hover {
  box-shadow: 0 0 42px var(--primary);
  transform: translateY(-2px);
}

.sidebar-card-link {
  display: block;
}

.sidebar-card-media {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #252525;
  object-fit: cover;
  display: block;
}

.video-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.video-card-overlay .sidebar-card-kicker,
.video-card-overlay .sidebar-card-text {
  margin: 0;
}

.sidebar-card-body {
  padding: 10px;
}

.sidebar-card-kicker {
  margin: 0 0 3px;
  color: var(--primary);
  font: 800 0.75rem "Raleway", sans-serif;
  text-transform: uppercase;
}

.sidebar-card-title {
  margin: 0;
  color: #fff;
  font: 800 0.82rem/1.2 "Raleway", sans-serif;
}

.sidebar-card-text {
  margin: 5px 0 0;
  color: #bbb;
  font-size: 0.72rem;
  line-height: 1.45;
}

.sidebar-placeholder {
  margin: 0;
  padding: 18px;
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.countdown-unit {
  padding: 6px 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
}

.countdown-value {
  display: block;
  color: #fff;
  font: 800 0.82rem "Raleway", sans-serif;
}

.countdown-label {
  display: block;
  color: #aaa;
  font-size: 0.65rem;
}

.sidebar-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font: 800 0.75rem "Raleway", sans-serif;
}

.sidebar-action-button:hover,
.sidebar-action-button:focus-visible {
  box-shadow: 0 0 42px var(--primary);
  outline: none;
  transform: translateY(-2px);
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(232, 57, 14, 0.72);
}

[data-youtube-post-card] .post-image {
  border: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
}

.blue-divider {
  width: calc(100% - 80px);
  height: 2px;
  margin: 10px auto 0;
  background: #3B82F6;
  box-shadow: 0 0 8px #3B82F6;
}

.qa-section {
  padding: 42px 0 10px;
}

.qa-title {
  position: relative;
  width: max-content;
  margin: 0 auto 28px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.78);
}

.qa-title::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -9px;
  height: 3px;
  background: #3B82F6;
  border-radius: 999px;
  box-shadow: 0 0 10px #3B82F6;
}

.accordion {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.qa-panel {
  overflow: hidden;
  background: rgba(30, 30, 30, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qa-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 0;
  color: #fff;
  cursor: pointer;
  font: 800 1.02rem "Raleway", sans-serif;
  text-align: left;
}

.qa-question:hover,
.qa-question:focus-visible {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(232, 57, 14, 0.12)), var(--card-bg);
  outline: none;
}

.qa-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #3B82F6;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease;
}

.qa-panel.is-open .qa-icon {
  transform: rotate(45deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.qa-answer p {
  margin: 0;
  padding: 0 24px 20px;
  color: rgba(245, 245, 245, 0.84);
  font-size: 1rem;
  line-height: 1.6;
}

.mobile-bottom-sections {
  display: none;
}

.site-footer {
  display: grid;
  width: 100%;
  min-height: 55px;
  place-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(232, 57, 14, 0.68);
  box-shadow: 0 -8px 28px rgba(232, 57, 14, 0.2);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Nunito", sans-serif;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  position: relative;
  color: #fff;
  font-weight: 800;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #22C55E;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
  outline: none;
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
}

.nofab-page {
  --primary: #22C55E;
  --secondary: #16A34A;
  --glow: rgba(34,197,94,0.4);
  position: relative;
  overflow-x: hidden;
  background: var(--dark);
}

.nofab-bg-video,
.nofab-video-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.nofab-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.nofab-video-overlay {
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.nofab-page .back-button {
  z-index: 100;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.58);
  color: #fff;
  box-shadow: 0 0 18px var(--glow);
  backdrop-filter: blur(8px);
}

.nofab-page .back-button:hover,
.nofab-page .back-button:focus-visible {
  background: var(--primary);
  box-shadow: 0 0 30px var(--glow);
}

.nofab-shell {
  width: min(900px, calc(100% - 40px));
  padding: 56px 0 86px;
}

.nofab-hero {
  padding-top: 44px;
}

.nofab-profile-picture {
  width: 164px;
  height: 164px;
  border-color: var(--primary);
  box-shadow:
    0 0 26px var(--primary),
    0 0 70px var(--glow);
}

.nofab-page .site-title {
  text-shadow: 0 0 28px var(--glow);
}

.nofab-subtitle {
  margin: -2px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font: 800 1rem "Raleway", sans-serif;
  letter-spacing: 0;
}

.nofab-page .divider {
  background: linear-gradient(90deg, transparent, var(--primary), rgba(255, 255, 255, 0.22), var(--secondary), transparent);
  box-shadow: 0 0 16px var(--glow);
}

.nofab-socials .social-button {
  background: rgba(30, 30, 30, 0.78);
  border-color: rgba(34, 197, 94, 0.45);
  backdrop-filter: blur(8px);
}

.nofab-socials .social-button:hover,
.nofab-socials .social-button:focus-visible {
  box-shadow: 0 0 26px var(--primary), 0 0 58px var(--glow);
}

.nofab-info-card {
  width: min(700px, 100%);
  margin: 42px auto 0;
  padding: 34px;
  background: rgba(30, 30, 30, 0.58);
  border: 1px solid rgba(34, 197, 94, 0.7);
  border-radius: 14px;
  box-shadow:
    0 0 30px var(--glow),
    0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.nofab-info-card h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
}

.nofab-info-card p {
  margin: 0 0 24px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.75;
}

.nofab-info-card .info-list {
  gap: 0;
}

.nofab-info-card .info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(34, 197, 94, 0.32);
}

.nofab-info-card .info-row:last-child {
  border-bottom: 0;
}

.nofab-info-card .info-row dt {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.nofab-info-card .info-row dd {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.nofab-projects {
  width: min(760px, 100%);
  margin: 52px auto 0;
}

.nofab-projects h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 22px var(--glow);
}

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

.nofab-project-card {
  overflow: hidden;
  min-height: 180px;
  background: rgba(30, 30, 30, 0.58);
  border: 1px solid rgba(34, 197, 94, 0.58);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
  backdrop-filter: blur(12px);
}

.nofab-project-content {
  padding: 24px;
}

.nofab-project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nofab-project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 34px var(--glow), 0 20px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.nofab-project-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font: 800 1.1rem "Raleway", sans-serif;
}

.nofab-project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
  line-height: 1.65;
}

.nofab-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  background: var(--primary);
  border-radius: 9px;
  color: #fff;
  font: 800 0.82rem "Raleway", sans-serif;
}

.nofab-project-button:hover,
.nofab-project-button:focus-visible {
  background: var(--secondary);
  box-shadow: 0 0 22px var(--glow);
  outline: none;
  transform: translateY(-2px);
}

.nofab-empty-projects {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  background: rgba(30, 30, 30, 0.58);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  backdrop-filter: blur(12px);
}

.nofab-footer {
  display: grid;
  min-height: 55px;
  place-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 -8px 28px var(--glow);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Nunito", sans-serif;
  text-align: center;
}

.subpage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 88px 20px 52px;
}

.back-button {
  position: fixed;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(30, 30, 30, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.back-button:hover,
.back-button:focus-visible {
  background: var(--primary);
  box-shadow: 0 0 18px rgba(232, 57, 14, 0.65);
  outline: none;
  transform: translateY(-2px);
}

.profile-card {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 40px);
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.06), rgba(232, 57, 14, 0.02)), var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.skin-image {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.section-title {
  margin: 0 88px 24px 0;
  color: var(--primary);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 9vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 0.95;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.15fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row dt {
  color: var(--muted);
  font-weight: 700;
}

.info-row dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.game-list {
  display: grid;
  gap: 4px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: 800 0.98rem "Raleway", sans-serif;
}

.action-button:hover,
.action-button:focus-visible {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(232, 57, 14, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.minecraft-page,
.texturepacks-page {
  position: relative;
  min-height: 100vh;
  background-image: url("assets/Minecraft.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow-x: hidden;
}

.minecraft-page::before,
.texturepacks-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.minecraft-page .subpage {
  position: relative;
  z-index: 2;
  padding: 126px 20px 76px;
}

.minecraft-page .back-button,
.texturepacks-page .back-button {
  z-index: 100;
}

.minecraft-page .back-button {
  min-height: 40px;
  padding: 0 18px;
  background: rgba(26, 26, 26, 0.42);
  border: 1px solid var(--primary);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  color: #fff;
}

.minecraft-page .back-button:hover,
.minecraft-page .back-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(232, 57, 14, 0.68);
}

.minecraft-page .profile-card {
  width: min(740px, 100%);
  padding: 32px;
  background: rgba(30, 30, 30, 0.88);
  border: 1px solid rgba(232, 57, 14, 0.72);
  border-radius: 16px;
  box-shadow:
    0 0 24px rgba(232, 57, 14, 0.34),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.minecraft-page .skin-image {
  top: 28px;
  right: 28px;
  width: 68px;
  height: auto;
  min-height: 80px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(232, 57, 14, 0.42);
  border-radius: 10px;
  object-fit: contain;
}

.minecraft-page .section-title {
  position: relative;
  margin: 0 100px 34px 0;
  font-size: clamp(4rem, 10vw, 5.4rem);
  letter-spacing: 3px;
}

.minecraft-page .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 78px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(232, 57, 14, 0.78);
}

.minecraft-page .info-list {
  gap: 0;
}

.minecraft-page .info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 12px;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 8px;
}

.minecraft-page .info-row:hover {
  background: #252525;
}

.minecraft-page .info-row:last-child {
  border-bottom: 0;
}

.minecraft-page .info-row dt {
  color: #888;
  font-weight: 700;
}

.minecraft-page .info-row dd {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.minecraft-page .action-buttons {
  margin-top: 34px;
}

.texturepacks-page .back-button {
  min-height: 40px;
  padding: 0 18px;
  background: rgba(26, 26, 26, 0.42);
  border: 1px solid var(--primary);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  color: #fff;
}

.texturepacks-page .back-button:hover,
.texturepacks-page .back-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(232, 57, 14, 0.68);
}

.texturepacks-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 76px;
}

.texturepacks-title {
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 9vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 0 22px rgba(232, 57, 14, 0.88);
}

.texturepacks-info {
  margin: 18px auto 34px;
  color: #aaa;
  font-size: 0.98rem;
  text-align: center;
}

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

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

.texturepack-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  background: rgba(30, 30, 30, 0.94);
  border: 1px solid rgba(232, 57, 14, 0.7);
  border-radius: 14px;
  box-shadow:
    0 0 22px rgba(232, 57, 14, 0.24),
    0 24px 55px rgba(0, 0, 0, 0.34);
}

.texturepack-card:hover {
  box-shadow:
    0 0 32px rgba(232, 57, 14, 0.42),
    0 28px 62px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.texturepacks-empty {
  grid-column: 1 / -1;
  width: 100%;
  padding: 40px;
  background: rgba(30, 30, 30, 0.92);
  border: 1px solid rgba(232, 57, 14, 0.48);
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(232, 57, 14, 0.2);
  color: #888;
  font-family: "Nunito", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.pack-card {
  overflow: hidden;
  background: rgba(30, 30, 30, 0.94);
  border: 1px solid rgba(232, 57, 14, 0.7);
  border-radius: 14px;
  box-shadow:
    0 0 22px rgba(232, 57, 14, 0.24),
    0 24px 55px rgba(0, 0, 0, 0.34);
}

.pack-preview {
  display: grid;
  width: 100%;
  height: 160px;
  place-items: center;
  background: linear-gradient(135deg, #4a4a4a, #2f2f2f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.pack-preview-image {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

.texturepack-card h2 {
  margin: 0;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
}

.texturepack-card p {
  flex: 1;
  margin: 0;
  color: #aaa;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.pack-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.pack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.pack-download:hover,
.pack-download:focus-visible,
.pack-btn:hover,
.pack-btn:focus-visible {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(232, 57, 14, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.pack-download.is-disabled {
  background: #555;
  color: rgba(255, 255, 255, 0.62);
  cursor: not-allowed;
  pointer-events: none;
}

.themed-profile-page {
  position: relative;
  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow-x: hidden;
}

.geoguessr-page {
  --primary: #22C55E;
  --secondary: #16A34A;
  background-image: url("assets/Geoguessr.png");
}

.supercell-page {
  --primary: #0EA5E9;
  --secondary: #0284C7;
  background-image: url("assets/HayDay.png");
}

.themed-profile-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.themed-profile-page .back-button {
  z-index: 100;
  min-height: 40px;
  padding: 0 18px;
  background: rgba(26, 26, 26, 0.42);
  border: 1px solid var(--primary);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  color: #fff;
}

.themed-profile-page .back-button:hover,
.themed-profile-page .back-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary), transparent 28%);
}

.themed-profile-page .subpage {
  position: relative;
  z-index: 2;
  padding: 118px 20px 76px;
}

.themed-profile-page .profile-card {
  width: min(740px, 100%);
  padding: 32px;
  background: rgba(30, 30, 30, 0.88);
  border: 1px solid var(--primary);
  border-radius: 16px;
  box-shadow:
    0 0 24px color-mix(in srgb, var(--primary), transparent 62%),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.themed-profile-page .section-title {
  position: relative;
  margin: 0 0 34px;
  color: var(--primary);
  font-size: clamp(4rem, 10vw, 5.4rem);
  letter-spacing: 3px;
}

.themed-profile-page .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 78px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary), transparent 20%);
}

.themed-profile-page .info-list {
  gap: 0;
}

.themed-profile-page .info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary), #2a2a2a 78%);
  border-radius: 8px;
}

.themed-profile-page .info-row:hover {
  background: color-mix(in srgb, var(--primary), #252525 86%);
}

.themed-profile-page .info-row:last-child {
  border-bottom: 0;
}

.themed-profile-page .info-row dt {
  color: #888;
  font-weight: 700;
}

.themed-profile-page .info-row dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.themed-profile-page .action-buttons {
  margin-top: 34px;
}

.themed-profile-page .action-button {
  background: var(--primary);
  color: #fff;
}

.themed-profile-page .action-button:hover,
.themed-profile-page .action-button:focus-visible {
  background: var(--secondary);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary), transparent 22%);
}

.supercell-page .game-list {
  display: grid;
  gap: 6px;
}

.supercell-page .game-list span::before {
  content: "→";
  margin-right: 8px;
  color: var(--primary);
  font-weight: 800;
}

.supercell-page .modal-card {
  border-color: var(--primary);
  box-shadow: 0 0 34px color-mix(in srgb, var(--primary), transparent 36%);
}

.supercell-page .modal-card h2 {
  color: var(--primary);
}

.supercell-page .modal-close:hover,
.supercell-page .modal-close:focus-visible {
  background: var(--primary);
}

.geoguessr-maps-page {
  --primary: #22C55E;
  --secondary: #16A34A;
  position: relative;
  min-height: 100vh;
  background-image: url("assets/Geoguessr.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow-x: hidden;
}

.geoguessr-maps-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.geoguessr-maps-page .back-button {
  z-index: 100;
  min-height: 40px;
  padding: 0 18px;
  background: rgba(26, 26, 26, 0.42);
  border: 1px solid var(--primary);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  color: #fff;
}

.geoguessr-maps-page .back-button:hover,
.geoguessr-maps-page .back-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary), transparent 24%);
}

.maps-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 76px;
}

.maps-title {
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 9vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 0 22px color-mix(in srgb, var(--primary), transparent 12%);
}

.maps-info {
  margin: 18px auto 34px;
  color: #aaa;
  font-size: 0.98rem;
  text-align: center;
}

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

.map-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  background: rgba(30, 30, 30, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.map-card:hover {
  border-color: var(--primary);
  box-shadow:
    0 0 22px color-mix(in srgb, var(--primary), transparent 64%),
    0 24px 55px rgba(0, 0, 0, 0.34);
}

.map-preview {
  display: grid;
  width: 100%;
  height: 160px;
  place-items: center;
  background: linear-gradient(135deg, #4a4a4a, #2f2f2f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.map-preview-image {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

.map-card h2 {
  margin: 0;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
}

.map-card p {
  flex: 1;
  margin: 0;
  color: #aaa;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.map-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
}

.map-play:hover,
.map-play:focus-visible,
.map-btn:hover,
.map-btn:focus-visible {
  background: var(--secondary);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary), transparent 22%);
  outline: none;
  transform: translateY(-2px);
}

.map-play.is-disabled {
  background: #555;
  color: rgba(255, 255, 255, 0.62);
  cursor: not-allowed;
  pointer-events: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 10;
}

.modal-overlay.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 46px 28px 36px;
  background: #fff;
  border: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(232, 57, 14, 0.55);
  color: var(--dark);
  text-align: center;
}

.modal-card h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font: 400 2.4rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 2px;
}

.supercell-id {
  color: var(--dark);
  font: 400 clamp(2.7rem, 11vw, 4.2rem)/0.95 "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--dark);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--primary);
  outline: none;
}

@media (max-width: 1100px) {
  .page-shell {
    width: min(760px, calc(100% - 40px));
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .mobile-bottom-sections {
    display: grid;
    gap: 28px;
    padding: 20px 0 0;
  }

  .mobile-section {
    width: 100%;
    padding: 20px;
  }

  .mobile-section-title {
    margin: 0 0 16px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    text-align: center;
  }

  .mobile-moment-link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(232, 57, 14, 0.72);
  }

  .mobile-moment-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .mobile-moment-link:hover {
    box-shadow: 0 0 34px var(--primary);
    transform: translateY(-2px);
  }

  .mobile-moment-link:hover .play-icon {
    background: rgba(0, 0, 0, 0.36);
    opacity: 1;
  }

  .mobile-setup-card {
    width: 100%;
    padding: 20px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .mobile-dynamic-card {
    width: 100%;
  }

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

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

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

@media (max-width: 680px) {
  .page-shell {
    padding-top: 28px;
  }

  .categories {
    align-items: center;
    flex-direction: column;
  }

  .category-card {
    width: min(300px, 100%);
  }

  .divider {
    width: calc(100% - 32px);
  }

  .blue-divider {
    width: calc(100% - 32px);
  }

  .socials {
    gap: 12px;
  }

  .social-button {
    width: 62px;
    height: 62px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .minecraft-page .info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .themed-profile-page .info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .minecraft-page .info-row dd {
    text-align: left;
  }

  .themed-profile-page .info-row dd {
    text-align: left;
  }

  .nofab-info-card {
    width: 100%;
    padding: 24px;
  }

  .nofab-shell {
    width: min(100% - 28px, 900px);
    padding-top: 40px;
  }

  .nofab-profile-picture {
    width: 136px;
    height: 136px;
  }

  .nofab-page .site-title {
    font-size: 3.5rem;
  }

  .nofab-project-grid {
    grid-template-columns: 1fr;
  }

  .nofab-project-card {
    min-height: auto;
  }

  .nofab-info-card .info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .nofab-info-card .info-row dd {
    text-align: left;
  }

  .site-footer {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .back-button {
    position: absolute;
  }

  .minecraft-page .back-button,
  .texturepacks-page .back-button,
  .geoguessr-maps-page .back-button {
    position: fixed;
  }

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

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

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