/* ===== The Atlas ===== */
:root { --acc: #caa24a; }
body { background: #07080c; color: var(--text); }

/* Atlas backdrop: dark blueprint grid + gold glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(202,162,74,.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(202,162,74,.035) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(120% 80% at 50% -10%, #141a26 0%, #0a0c12 55%, #07080c 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 6%, rgba(202,162,74,.12), transparent 60%);
}

/* Hero */
.a-hero { position: relative; min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px clamp(20px, 6vw, 80px) 60px; }
.a-kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--acc); margin-bottom: 22px; }
.a-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 8vw, 112px); line-height: .94; color: #fff; letter-spacing: -.01em; }
.a-sub { max-width: 600px; margin: 26px auto 0; font-family: var(--sans); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; color: #c4c8d2; }
.a-begin { margin-top: 38px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: #0c0a05; text-decoration: none; background: var(--acc); padding: 13px 24px; border-radius: 100px; transition: transform .2s, background .2s; }
.a-begin:hover { transform: translateY(-2px); background: #e0bd62; }
.a-begin span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* Explorer */
.explorer { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px) clamp(80px, 12vw, 140px); min-height: 100vh; }

/* Breadcrumb (sticky) */
.crumbs { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0; margin-bottom: 8px; background: linear-gradient(180deg, rgba(7,8,12,.95), rgba(7,8,12,.7)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.crumb { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; color: #8b8f9a; padding: 4px 4px; transition: color .2s; }
.crumb:hover { color: #fff; }
.crumb.current { color: var(--acc); cursor: default; }
.crumb-sep { color: #4a4e58; font-size: 12px; }

/* Level header */
.level-head { margin: 14px 0 30px; }
.level-kind { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.level-name { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 62px); color: #fff; line-height: 1; }
.level-blurb { max-width: 640px; margin-top: 14px; font-family: var(--sans); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.6; color: #b6bac4; }

/* Grid */
.atlas-grid { display: grid; gap: 16px; }
.atlas-grid.kind-continent { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.atlas-grid.kind-country, .atlas-grid.kind-league { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.atlas-grid.kind-club { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.atlas-grid.kind-player { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.atlas-card { position: relative; text-align: left; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 0; cursor: pointer; font-family: inherit; color: inherit; overflow: hidden; animation: cardIn .55s cubic-bezier(.22,1,.36,1); }
@keyframes cardIn { from { transform: translateY(18px); } to { transform: none; } }
.atlas-card:nth-child(2) { animation-delay: .04s; } .atlas-card:nth-child(3) { animation-delay: .08s; }
.atlas-card:nth-child(4) { animation-delay: .12s; } .atlas-card:nth-child(5) { animation-delay: .16s; } .atlas-card:nth-child(6) { animation-delay: .2s; }

/* node card (continent / country / league) */
.node-card { background: linear-gradient(180deg, rgba(20,24,34,.7), rgba(11,13,19,.78)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 26px 26px 22px; min-height: 180px; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.node-card:hover { transform: translateY(-4px); border-color: rgba(202,162,74,.45); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.nc-meta { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); border: 1px solid rgba(202,162,74,.4); border-radius: 100px; padding: 3px 9px; align-self: flex-start; margin-bottom: 14px; }
.nc-name { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 36px); color: #fff; line-height: 1; }
.nc-blurb { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: #b6bac4; margin-top: 12px; flex: 1; }
.nc-go { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--acc); margin-top: 18px; }

/* club card */
.club-card { display: flex; align-items: stretch; gap: 0; background: linear-gradient(180deg, rgba(20,24,34,.7), rgba(11,13,19,.78)); transition: transform .25s, border-color .25s, box-shadow .25s; }
.club-card:hover { transform: translateY(-4px); border-color: rgba(202,162,74,.45); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.club-swatch { flex: none; width: 12px; background: linear-gradient(180deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.cc-body { padding: 24px 24px 20px; display: flex; flex-direction: column; }
.cc-name { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); color: #fff; line-height: 1; }
.cc-blurb { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: #b6bac4; margin-top: 12px; flex: 1; }
.cc-go { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--acc); margin-top: 18px; }

/* player card */
.player-card { background: linear-gradient(180deg, rgba(18,22,30,.66), rgba(10,12,18,.74)); padding: 22px 22px 20px; cursor: default; }
.pc-pos { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); border: 1px solid rgba(202,162,74,.35); border-radius: 100px; padding: 3px 10px; }
.pc-name { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); color: #fff; line-height: 1; margin: 14px 0 8px; }
.pc-line { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: #c2c6d0; }

/* Back link */
#goat-home { position: fixed; top: 18px; left: 18px; z-index: 60; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 100px; background: rgba(10,12,18,.6); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .85; transition: opacity .2s, border-color .2s, color .2s; }
#goat-home:hover { opacity: 1; border-color: var(--acc); color: var(--acc); }

@media (prefers-reduced-motion: reduce) { .a-begin span { animation: none; } .atlas-card { animation: none; } }
