/* Home page theme (layout after minemen.club, in PITFALL gold). */
:root {
  --bg-base: #070707;
  --bg-secondary: #0b0b0c;
  --bg-tertiary: #101012;
  --bg-card: #0d0d0e;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #ffaa00;
  --accent-hover: #ffbb33;
  --accent-muted: rgba(255, 170, 0, 0.14);
  --accent-glow: rgba(255, 170, 0, 0.45);
  --discord: #5865f2;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --header-height: 72px;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease: 0.25s ease;
  --hero-img: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0; background: var(--bg-base); color: var(--text-secondary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { color: var(--text-primary); margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; color: var(--accent); background: var(--accent-muted); padding: 1px 6px; border-radius: 5px; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); z-index: 100;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle); transition: background var(--ease);
}
.header.scrolled { background: rgba(0, 0, 0, 0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; gap: 20px; }
.header-logo, .footer-logo {
  font-family: "Silkscreen", monospace; font-size: 30px; line-height: 1; color: var(--accent);
  text-shadow: 0 3px 0 #5a3a00;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 18px; font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--ease); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.store-link { color: var(--accent); }
.store-link:hover { color: var(--accent-hover); }
.store-link i { margin-right: 6px; font-size: 0.85em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-header-play {
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.875rem;
  color: var(--bg-base); background: var(--accent); transition: all var(--ease);
}
.btn-header-play i { margin-right: 6px; font-size: 0.75rem; }
.btn-header-play:hover { background: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }
.mobile-menu-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 1.1rem; }
.mobile-menu-toggle:hover { background: var(--bg-tertiary); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    var(--hero-img) center 30% / cover no-repeat,
    radial-gradient(ellipse 60% 60% at 50% 30%, rgba(255, 170, 0, 0.22), transparent 70%),
    linear-gradient(160deg, #2a1d10, #0b0b0c 70%);
  transform: scale(1.03);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, var(--bg-base) 100%); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-height) + 20px) 24px 60px; }
.hero-title {
  font-family: "Silkscreen", monospace; font-weight: 400; line-height: 1;
  font-size: clamp(3.2rem, 11vw, 7.5rem); color: var(--accent);
  text-shadow: 0 8px 0 #5a3a00, 0 18px 50px rgba(0, 0, 0, 0.7);
  margin-bottom: 18px;
}
.hero-subtitle { font-size: clamp(0.95rem, 2vw, 1.15rem); color: #d6d6da; margin: 0 0 28px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--bg-base); background: var(--accent); border-radius: 999px; transition: all var(--ease);
}
.btn-play i { font-size: 0.8rem; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-discord { color: #fff; background: #5865f2; }
.btn-discord i { font-size: 1.05rem; }
.btn-discord:hover { background: #4752c4; box-shadow: 0 0 30px rgba(88, 101, 242, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4); }
.btn-play:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.4); }
.online-indicator { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: #c9c9ce; margin-top: 16px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); position: relative; }
.online .online-dot { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); animation: pulse 1.6s ease-in-out infinite; }
.offline .online-dot { background: #ef4444; }
@keyframes pulse { 50% { opacity: 0.45; } }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-secondary); font-size: 1.1rem; animation: bob 2s ease-in-out infinite; }
.hero-scroll:hover { color: var(--accent); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* Blurred picture behind the rest of the page */
.page-bg-wrap { position: relative; overflow: hidden; }
.page-bg { position: absolute; inset: 0; background: var(--hero-img) center / cover no-repeat; filter: blur(8px); transform: scale(1.05); }
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg-base) 0%, rgba(7, 7, 7, 0.94) 15%, rgba(7, 7, 7, 0.97) 60%, var(--bg-base) 100%); }
.section { position: relative; z-index: 1; padding: 90px 0; }

/* Features */
.section-header { text-align: center; margin-bottom: 44px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
.section-subtitle { margin: 8px 0 0; color: var(--text-secondary); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  --c1: #3a2600; --c2: #ffaa00;
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-subtle); transition: all var(--ease);
}
.feature-card:hover { border-color: var(--border-medium); transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35); }
.feature-art {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 55%),
    linear-gradient(135deg, var(--c1), #0b0b0c 80%);
  transition: transform var(--ease);
}
.feature-art i { position: absolute; right: 8%; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 8.5rem; color: var(--c2); opacity: 0.35; filter: blur(1.5px); transition: transform var(--ease), opacity var(--ease); }
.feature-card:hover .feature-art i { transform: translateY(-50%) rotate(-4deg) scale(1.1); opacity: 0.5; }
.feature-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 40px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
}
.feature-header i { font-size: 1.3rem; color: var(--accent); }
.feature-header h3 { font-size: 1.15rem; font-weight: 700; }
.feature-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55) 60%, transparent);
}
.feature-label { display: block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 4px; }
.feature-footer p { margin: 0; font-size: 0.875rem; color: #cfcfd4; line-height: 1.45; }
.c-pvp { --c1: #3d0f0f; --c2: #ff5555; }
.c-prestige { --c1: #3a2a00; --c2: #ffcc33; }
.c-mystic { --c1: #2b0f3d; --c2: #c76bff; }
.c-events { --c1: #0f2e3d; --c2: #55ddff; }
.c-auction { --c1: #10331a; --c2: #55ff88; }
.c-maps { --c1: #33240f; --c2: #ff9a40; }
.c-sewers { --c1: #12301a; --c2: #7dc383; }
.c-cosmetics { --c1: #3a0f2e; --c2: #ff77d8; }
.c-fair { --c1: #0f1f3d; --c2: #7aa8ff; }
.section-cta { text-align: center; margin-top: 40px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; color: var(--text-primary); border: 1px solid var(--border-medium); background: var(--bg-tertiary); transition: all var(--ease);
}
.btn-outline i { color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Leaderboards */
.lb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lb-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.lb-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(90deg, var(--accent-muted), transparent 70%); }
.lb-head i { color: var(--accent); font-size: 1.2rem; }
.lb-head h3 { font-size: 1.1rem; }
.lb-list { list-style: none; margin: 0; padding: 8px; }
.lb-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); }
.lb-list li:not(.lb-empty):hover { background: var(--bg-tertiary); }
.lb-rank { width: 26px; flex-shrink: 0; text-align: center; font-family: "Silkscreen", monospace; color: var(--text-tertiary); }
.lb-list li:nth-child(1) .lb-rank { color: #ffd23f; }
.lb-list li:nth-child(2) .lb-rank { color: #d0d4dc; }
.lb-list li:nth-child(3) .lb-rank { color: #d9884a; }
.lb-list img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; flex-shrink: 0; }
.lb-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lb-name { color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { font-size: 0.75rem; color: var(--text-tertiary); }
.lb-value { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }
.lb-empty { justify-content: center; color: var(--text-tertiary); padding: 28px 12px !important; }

/* Two-column sections */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.split-title .accent { display: block; }
.split-subtitle { margin: 14px 0 26px; max-width: 460px; }
.btn-accent-soft {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  color: var(--accent); background: var(--accent-muted); border: 1px solid rgba(255, 170, 0, 0.25); transition: all var(--ease);
}
.btn-accent-soft:hover { background: rgba(255, 170, 0, 0.22); transform: translateY(-2px); }
.btn-accent-soft .fa-arrow-right { font-size: 0.8em; transition: transform var(--ease); }
.btn-accent-soft:hover .fa-arrow-right { transform: translateX(3px); }
.split-right { display: flex; flex-direction: column; gap: 14px; }
.step-row, .social-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left; width: 100%;
  background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  transition: border-color var(--ease), transform var(--ease);
}
.step-row div, .social-info { display: flex; flex-direction: column; min-width: 0; }
.step-row b, .social-name { color: var(--text-primary); font-weight: 700; }
.step-row span { font-size: 0.9rem; }
.step-row strong { color: var(--text-primary); font-weight: 600; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px;
  font-family: "Silkscreen", monospace; font-size: 1.3rem; color: var(--accent); background: var(--accent-muted);
}
.social-row:hover { border-color: var(--border-medium); transform: translateX(4px); }
.social-icon { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 1.5rem; }
.social-desc { font-size: 0.875rem; }
.social-go { margin-left: auto; color: var(--text-tertiary); transition: color var(--ease); }
.social-row:hover .social-go { color: var(--text-primary); }
.discord .social-icon { background: rgba(88, 101, 242, 0.15); color: var(--discord); }
.store .social-icon { background: var(--accent-muted); color: var(--accent); }
.server .social-icon { background: rgba(34, 197, 94, 0.12); color: #22c55e; }

/* Footer */
.footer { position: relative; background: var(--bg-base); border-top: 1px solid var(--border-subtle); padding: 50px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-size: 26px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a:hover, .footer-social a:hover { color: var(--text-primary); }
.footer-social a { font-size: 1.2rem; }
.footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-subtle); text-align: center; font-size: 0.85rem; color: var(--text-tertiary); }

/* Play dialog */
.play-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.play-overlay[hidden] { display: none; }
.play-dialog {
  position: relative; width: min(440px, 100%); padding: 30px 26px 24px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--border-medium); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: pop 0.2s ease;
}
@keyframes pop { from { transform: scale(0.95); opacity: 0; } }
.play-dialog h3 { font-size: 1.35rem; }
.play-dialog p { margin: 6px 0 22px; font-size: 0.9rem; }
.play-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.play-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.play-ip-row { display: flex; gap: 10px; }
.play-ip { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg-tertiary); border: 1px solid var(--border-subtle); color: var(--text-primary); font-weight: 700; }
.play-label { color: var(--text-tertiary); font-weight: 500; }
.play-copy { padding: 0 20px; border-radius: var(--radius-md); background: var(--accent); color: var(--bg-base); font-weight: 700; transition: background var(--ease); }
.play-copy:hover { background: var(--accent-hover); }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; z-index: 300;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--bg-base); font-weight: 700;
  transition: all 0.25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phones / tablets */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .mobile-menu-toggle { display: grid; place-items: center; }
  .header-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: rgba(0, 0, 0, 0.95); border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%); transition: transform var(--ease); z-index: -1;
  }
  .header-nav.open { transform: none; }
  .header-logo { font-size: 24px; }
  .container, .header-inner { padding: 0 16px; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .play-ip-row { flex-direction: column; }
  .play-copy { padding: 12px; }
}
