
/* =========================================================
   Ozzaria – sharp card borders + neon outline (throwback)
   ========================================================= */

/* ---------- Root ---------- */
:root{
  --bg-dim:.70;
  --maxw:1000px;
  --header-h:56px;
  --radius:14px;
  --ink:#eef1f1;
  --ink-muted:rgba(238,241,241,.78);
  --fx1:rgba(255,255,255,.08);
  --fx2:rgba(255,255,255,.16);
  --brand:#55d66a;
  --brand-2:#39a6d9;
  --card:rgba(16,18,20,.78);
}

*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
body{
  margin:0;
  color:var(--ink);
  font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#0c0f12;
  background-image:
    linear-gradient(rgba(0,0,0,var(--bg-dim)),rgba(0,0,0,var(--bg-dim))),
    url('bg.php');
  background-size:cover;background-position:center;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 16px}

/* ---------- Header ---------- */
.site-header{position:fixed;inset:0 0 auto 0;height:var(--header-h);background:#191b1e;border-bottom:1px solid var(--fx1);z-index:1000}
.nav{height:100%;max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:14px;padding:0 16px}
.nav nav{display:flex;gap:16px;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.nav nav::-webkit-scrollbar{display:none}
.nav a{color:var(--ink);opacity:.9;padding:6px 0}
.nav a:hover,.nav a.active{opacity:1;border-bottom:2px solid var(--brand)}

/* ---------- Card + neon outline ---------- */
.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--fx1);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:
    0 10px 26px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.glow-border{}
.glow-border::before{
  content:"";
  position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding:1px;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Hero ---------- */
.title-xl{font-size: clamp(32px, 5vw, 48px);line-height:1.08;font-weight:900;letter-spacing:.2px;margin:0 0 8px}
.hero-landing .ribbon{
  display:inline-flex;align-items:center;gap:10px;
  padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.35);
  border:1px solid var(--fx1);
}
.live-dot{width:8px;height:8px;border-radius:50%;background:#3ae374;box-shadow:0 0 8px #3ae374;display:inline-block;margin-right:6px}
.badge{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--fx1)}
.hero-cta .btn{margin-right:8px}
.live-bar{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.live-pill{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:rgba(24,26,28,.7);border:1px solid var(--fx1)}

/* ---------- Chips ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:#1b2a1d;border:1px solid #2e7e39;color:#e8f7eb;border-radius:999px;padding:6px 10px;font-size:.95em}

/* ---------- Stats grid ---------- */
.stats{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-top:10px}
@media (max-width:920px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{padding:12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--fx1)}
.stat .k{font-size:1.8rem;line-height:1;font-weight:900}
.stat .l{margin-top:4px;color:var(--ink-muted)}

/* ---------- Buttons ---------- */
.btn{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid var(--fx2);background:var(--brand);color:#07240d;font-weight:700;cursor:pointer}
.btn:hover{filter:brightness(.96)}
.btn.accent{background:#2c84cc;color:#0b1b29}
.btn.ghost{background:rgba(255,255,255,.06);color:#fff}

/* ---------- Discord card ---------- */
.discord-card{padding:0}
.discord-card iframe{display:block;width:100%;height:460px;border:0;border-radius:12px}
@media (max-width:700px){.discord-card iframe{height:520px}}

/* ---------- Banner card ---------- */
.banner-card{padding:0;overflow:hidden}
.banner-card img{display:block;width:100%;height:clamp(180px,28vw,360px);object-fit:cover}

/* ---------- Footer ---------- */
footer{opacity:.75;margin:40px auto}

/* ---------- Safe header spacer ---------- */
:root{--header-h:56px}
.site-header{height:var(--header-h)}
body{padding-top:calc(var(--header-h) + env(safe-area-inset-top,0px))}


/* === Fix nav icon/logo sizing === */
.nav img,
.nav .brand-logo,
.nav .pfp img,
.nav .avatar img{
  height: calc(var(--header-h) - 16px) !important;
  width: auto;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
}

/* === Premium buttons + hovers === */
.btn{
  position: relative;
  background: linear-gradient(180deg, #5fe176, #38b95a);
  color:#051c0c;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow:
    0 8px 18px rgba(48,196,93,.25),
    inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn.accent{
  background: linear-gradient(180deg, #53b1ff, #2c84cc);
  color:#061521;
  box-shadow:
    0 8px 18px rgba(44,132,204,.25),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color:#fff;
  border:1px solid var(--fx2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03) }
.btn:active{ transform: translateY(0); filter: brightness(.98) }

/* === Hero tweaks: cleaner CTA area, nicer pills === */
.hero-landing .hero-cta{ margin: 10px 0 6px 0 }
.hero-landing .live-bar{
  margin-top: 8px;
  padding-top: 0;
  border-top: none; /* remove the harsh dividing line */
  gap: 10px;
}
.live-pill{
  background: rgba(28,30,33,.72);
  border:1px solid var(--fx1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .08s ease, border-color .2s ease, background-color .2s ease;
}
.live-pill:hover{ transform: translateY(-1px); border-color: var(--fx2) }

/* === Chips & stats hover polish === */
.chip{ transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease }
.chip:hover{ transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,0,0,.25); border-color:#459d4d }
.stat{ transition: background-color .2s ease, transform .08s ease }
.stat:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px) }
.card{ transition: border-color .2s ease, box-shadow .2s ease }
.card:hover{ border-color: var(--fx2) }

/* === Bottom feature blocks (stickers) nice layout === */
.stickers{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(3,1fr);
  margin: 14px 0 20px 0;
}
@media (max-width: 980px){ .stickers{ grid-template-columns:1fr } }

.sticker{
  position: relative;
  padding: 16px 16px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,24,28,.70), rgba(22,24,28,.55));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  min-height: 110px;
  overflow: hidden;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}
.sticker:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.5); border-color: rgba(255,255,255,.18) }

.sticker::before{
  content:"";
  position:absolute; inset:-1px; border-radius: inherit; pointer-events:none;
  background: linear-gradient(135deg, rgba(85,214,106,.5), rgba(57,166,217,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding:1px;
}

.sticker .label{
  display:flex; align-items:center; gap:8px;
  font-weight: 900; font-size: 1.05rem;
  margin-bottom: 6px; letter-spacing:.2px;
}
.sticker .label::before{ content:"★"; font-size:14px; opacity:.9 }
.sticker:nth-child(2) .label::before{ content:"🏆" }
.sticker:nth-child(3) .label::before{ content:"🛒" }

.sticker .desc{ color: var(--ink-muted); line-height: 1.5; font-size: .98rem }

/* === Banner trim so top doesn't look oversized if banner is tall === */
.banner-card img{ height: clamp(180px, 22vw, 320px) }


/* === Navbar: tidy active underline indicator (no layout shift) === */
.nav nav a{ position: relative; padding: 6px 0; }
.nav nav a:hover, .nav nav a.active{ border-bottom: none !important; }



/* === Hero CTA buttons: premium pills like the old look === */
.hero-landing .hero-cta .btn{ border-radius: 14px; font-weight: 800; letter-spacing:.2px }
.hero-landing .hero-cta .btn + .btn{ margin-left: 10px }

.btn.primary{
  color:#fff;
  background: linear-gradient(180deg, #3fd369, #1e8a3f);
  border: 1px solid #1a6f34;
  box-shadow:
    0 10px 24px rgba(32,160,78,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.primary:hover{ filter: brightness(1.05) }
.btn.primary:active{ filter: brightness(.98) }

.btn.accent{
  color:#fff;
  background: linear-gradient(180deg, #4da3ff, #2b6fd1);
  border: 1px solid #265cb2;
  box-shadow:
    0 10px 24px rgba(43,111,209,.32),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.btn.accent:hover{ filter: brightness(1.05) }
.btn.accent:active{ filter: brightness(.98) }


/* === NAV: kill default underlines + keep tidy indicator === */
.nav nav a{ text-decoration: none !important; }
.nav nav a:hover, .nav nav a:focus, .nav nav a:active{ text-decoration: none !important; }


/* === HERO CTA: align + make pills clean and consistent === */
.hero-landing .hero-cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
  margin: 12px 0 8px 0;
}
.hero-landing .hero-cta .btn{
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1;
}

/* Green (Join Server) */
.hero-landing .hero-cta .btn.primary{
  color:#fff;
  background: linear-gradient(180deg, #38d469 0%, #1f9a47 100%);
  border: 1px solid #167c39;
  box-shadow:
    0 10px 22px rgba(33,168,86,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Blue (Open Market) */
.hero-landing .hero-cta .btn.accent{
  color:#fff;
  background: linear-gradient(180deg, #4aa3ff 0%, #2a71d4 100%);
  border: 1px solid #245fb4;
  box-shadow:
    0 10px 22px rgba(42,113,212,.32),
    inset 0 1px 0 rgba(255,255,255,.16);
}

/* Hover/active for both */
.hero-landing .hero-cta .btn:hover{ filter: brightness(1.05); transform: translateY(-1px) }
.hero-landing .hero-cta .btn:active{ filter: brightness(.98); transform: translateY(0) }


/* === Navbar underline: robust (no clipping), full-width neon === */
.nav nav a{
  position: relative;
  padding: 6px 0 10px;                 /* leave room for the underline */
  text-decoration: none !important;
  background-image: linear-gradient(90deg, #55d66a, #39a6d9);
  background-size: 0% 3px;             /* hidden by default */
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease;
}
.nav nav a:hover,
.nav nav a.active{
  background-size: 100% 3px;           /* animate in */
}

.nav, .site-header, .nav nav{ overflow: visible; }


/* === NAV underline cleanup === */
.nav a, .nav nav a{
  border-bottom: none !important;
  text-decoration: none !important;
}

/* === NAV: thin neon underline (active only) === */
.nav nav a{
  position: relative;
  padding-bottom: 8px;                 /* space for underline */
  background-image: linear-gradient(90deg, #55d66a, #39a6d9);
  background-size: 0 2px;              /* hidden by default */
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: filter .2s ease, background-size .25s ease;
}
.nav nav a.active{
  background-size: 100% 2px;           /* only the active link shows the line */
}
.nav nav a:hover{ filter: brightness(1.05) } /* no underline on hover */
.nav, .site-header, .nav nav{ overflow: visible; }

/* === HERO CTA pills: refined === */
.hero-landing .hero-cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
  margin:12px 0 6px 0;
}
.hero-landing .hero-cta .btn{
  position: relative;
  border-radius: 9999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: .15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-landing .hero-cta .btn::after{
  content:"";
  position:absolute; left:2px; right:2px; top:2px; height:55%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events:none;
}
.hero-landing .hero-cta .btn.primary{
  color:#fff;
  background: linear-gradient(180deg, #38d469 0%, #1f9a47 100%);
  border: 1px solid #167c39;
  box-shadow: 0 8px 18px rgba(33,168,86,.34), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-landing .hero-cta .btn.accent{
  color:#fff;
  background: linear-gradient(180deg, #4aa3ff 0%, #2a71d4 100%);
  border: 1px solid #245fb4;
  box-shadow: 0 8px 18px rgba(42,113,212,.32), inset 0 1px 0 rgba(255,255,255,.16);
}
.hero-landing .hero-cta .btn:hover{ transform: translateY(-1px); filter:brightness(1.05) }
.hero-landing .hero-cta .btn:active{ transform: translateY(0); filter:brightness(.98) }
/* ---------- Buttons (matte capsules — override only) ---------- */
:root { --cta-h: 44px; --cta-pad-x: 18px; }

.hero-landing .hero-cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
  margin:12px 0 6px; /* tight spacing */
}

.hero-landing .hero-cta .btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  height:var(--cta-h); padding:0 var(--cta-pad-x);
  border-radius:14px; line-height:1;
  font-weight:900; font-size:15.8px; letter-spacing:.15px; color:#fff;
  border:1px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
}
.hero-landing .hero-cta .btn:hover{
  transform: translateY(-1px); filter: brightness(1.04);
}
.hero-landing .hero-cta .btn:active{
  transform: translateY(0); filter: brightness(.98);
}

/* Green = Join Server */
.hero-landing .hero-cta .btn.primary{
  background: linear-gradient(180deg, #28b55a 0%, #177c3d 100%);
  border-color:#0f5f2e;
  box-shadow:
    0 6px 16px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

/* Blue = Open Market */
.hero-landing .hero-cta .btn.accent{
  background: linear-gradient(180deg, #4b86f0 0%, #2b64d1 100%);
  border-color:#1f4fae;
  box-shadow:
    0 6px 16px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

/* Keyboard focus */
.hero-landing .hero-cta .btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.10),
    0 0 0 5px rgba(74,134,240,.35),
    0 6px 16px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* --- Mobile dropdown for nav --- */
.nav-toggle {
    display: none;
    margin-left: auto;
    font-size: 22px;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.15);
    background: #141821;
    color: #e6edf3;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

@media (max-width:720px) {
    .nav nav {
        display: none
    }
    /* hide horizontal row */
    .nav-toggle {
        display: inline-block
    }
    /* show hamburger */

    .nav-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: 56px;
        z-index: 1100;
    }

        .nav-dropdown[hidden] {
            display: none
        }

    .nav-dropdown-inner {
        background: #141821;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
        padding: 8px;
    }

        .nav-dropdown-inner a {
            display: block;
            padding: 10px 12px;
            border-radius: 10px;
            color: #e6edf3;
            text-decoration: none;
        }

            .nav-dropdown-inner a.active,
            .nav-dropdown-inner a:hover {
                background: rgba(255,255,255,.08);
            }
}

@media (min-width:721px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-dropdown {
        display: none !important;
    }
}
