/* unified-hub.css — Unified experience hub
   MMO-style entry. Three.js nebula background. Game + Science = one simulation.
   Loaded only by app.html — page-specific overrides safe. */

/* Override body background so canvas shows through */
body { background: #010106 !important; }

/* ── Canvas backdrop ──────────────────────────────────────────── */
#hub-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Hero — full viewport MMO entry ───────────────────────────── */
.uh-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 2rem;
}
.uh-hero-inner { max-width: 700px; }

.uh-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #3ddc84;
    margin-bottom: 2rem;
}
.uh-badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #3ddc84;
    border-radius: 50%;
    margin-right: 0.6rem;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(61,220,132,0.6);
    animation: uh-pulse 2s ease-in-out infinite;
}
.uh-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    color: #e8e4d9;
}
.uh-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa 30%, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.uh-sub {
    font-size: 0.88rem;
    color: #9a9490;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Pe stat cluster */
.uh-pe-cluster {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.uh-pe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.uh-pe-value {
    font-size: 2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #ff4444;
    text-shadow: 0 0 30px rgba(255,68,68,0.25);
}
.uh-pe-value.green { color: #3ddc84; text-shadow: 0 0 20px rgba(61,220,132,0.2); }
.uh-pe-label {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6a6460;
}

/* Enter World button */
.uh-enter-btn {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.45);
    border-radius: 5px;
    transition: all 0.25s;
    cursor: pointer;
}
.uh-enter-btn:hover {
    background: rgba(167,139,250,0.18);
    border-color: #a78bfa;
    box-shadow: 0 0 50px rgba(167,139,250,0.12), 0 0 100px rgba(167,139,250,0.04);
    text-decoration: none;
    color: #ddd6fe;
}
.uh-enter-sub {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4640;
    margin-top: 1rem;
}
.uh-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #4a4640;
    font-size: 1.2rem;
    opacity: 0.3;
    animation: uh-bounce 2s infinite;
}

/* ── Stats strip ──────────────────────────────────────────────── */
.uh-stats {
    position: relative;
    z-index: 1;
    display: flex;
    border-top: 1px solid rgba(255,220,200,0.08);
    border-bottom: 1px solid rgba(255,220,200,0.08);
    background: rgba(10,8,6,0.88);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
}
.uh-stats::-webkit-scrollbar { display: none; }
.uh-stat {
    flex: 1;
    min-width: 110px;
    padding: 0.8rem 0.75rem;
    text-align: center;
    border-right: 1px solid rgba(255,220,200,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.uh-stat:last-child { border-right: none; }
.uh-stat-val {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e8e4d9;
}
.uh-stat-val.green { color: #3ddc84; }
.uh-stat-lbl {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a5650;
}

/* ── Content sections over canvas ─────────────────────────────── */
.uh-lanes, .uh-science, .uh-tokens, .uh-chain, .uh-dao, .uh-account {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ── Three action lanes ───────────────────────────────────────── */
.uh-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}
.uh-lane {
    background: rgba(10,8,6,0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,220,200,0.08);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.uh-lane:hover { border-color: rgba(255,255,255,0.1); }
.uh-lane-icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.uh-lane h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.uh-lane p { font-size: 0.78rem; color: #8a8280; line-height: 1.65; flex: 1; }
.uh-lane-links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.4rem; }
.uh-lane-links a {
    font-size: 0.73rem; color: #7e7a78; text-decoration: none;
    padding: 0.3rem 0.55rem; border-left: 2px solid transparent; transition: all 0.15s;
}
.uh-lane-links a:hover { color: #e8e4d9; border-left-color: currentColor; }

/* Lane accents */
.uh-lane-score  { border-color: rgba(167,139,250,0.18); }
.uh-lane-score:hover  { border-color: rgba(167,139,250,0.35); box-shadow: 0 0 25px rgba(167,139,250,0.05); }
.uh-lane-score  .uh-lane-icon, .uh-lane-score  h2 { color: #a78bfa; }
.uh-lane-scan   { border-color: rgba(251,146,60,0.15); }
.uh-lane-scan:hover   { border-color: rgba(251,146,60,0.35); box-shadow: 0 0 25px rgba(251,146,60,0.05); }
.uh-lane-scan   .uh-lane-icon, .uh-lane-scan   h2 { color: #fb923c; }
.uh-lane-earn   { border-color: rgba(61,220,132,0.15); }
.uh-lane-earn:hover   { border-color: rgba(61,220,132,0.35); box-shadow: 0 0 25px rgba(61,220,132,0.05); }
.uh-lane-earn   .uh-lane-icon, .uh-lane-earn   h2 { color: #3ddc84; }

/* ── Science section ──────────────────────────────────────────── */
.uh-science { border-top: 1px solid rgba(255,220,200,0.06); text-align: center; }
.uh-section-tag {
    font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: #c8976a; margin-bottom: 0.5rem;
}
.uh-section-tag.green { color: #3ddc84; }
.uh-section-tag.dim { color: #5a5650; }
.uh-science-lead {
    font-size: 0.82rem; color: #8a8280; line-height: 1.7;
    max-width: 520px; margin: 0 auto 1.5rem;
}
.uh-science-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem;
}
.uh-science-grid a {
    font-size: 0.72rem; color: #7e7a78; text-decoration: none;
    padding: 0.4rem 0.8rem; border: 1px solid rgba(255,220,200,0.08);
    border-radius: 4px; transition: color 0.15s, border-color 0.15s;
}
.uh-science-grid a:hover { color: #e8e4d9; border-color: rgba(255,220,200,0.18); }

/* ── Tokens ───────────────────────────────────────────────────── */
.uh-tokens { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: 0; }
.uh-token {
    background: rgba(10,8,6,0.85); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,220,200,0.08); border-radius: 6px; padding: 1.3rem;
}
.uh-token-chain { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #5a5650; margin-bottom: 0.35rem; }
.uh-token h3 { font-size: 1.3rem; font-weight: 900; margin: 0 0 0.35rem; }
.uh-token p { font-size: 0.76rem; color: #8a8280; line-height: 1.6; margin: 0 0 0.6rem; }
.uh-morr { border-color: rgba(200,151,106,0.18); }
.uh-morr h3 { color: #c8976a; }
.uh-ath { border-color: rgba(255,215,0,0.15); }
.uh-ath h3 { color: #ffd700; }
.uh-token-links { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.uh-token-links a {
    font-size: 0.68rem; color: #7e7a78; text-decoration: none;
    padding: 0.22rem 0.5rem; border: 1px solid rgba(255,220,200,0.08);
    border-radius: 3px; transition: color 0.15s, border-color 0.15s;
}
.uh-token-links a:hover { color: #e8e4d9; border-color: rgba(255,220,200,0.15); }

/* ── On-chain ─────────────────────────────────────────────────── */
.uh-chain { padding-top: 0; }
.uh-chain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.uh-chain-grid > * {
    display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.75rem 0.9rem; background: rgba(10,8,6,0.85);
    border: 1px solid rgba(255,220,200,0.06); border-radius: 4px;
    text-decoration: none; color: #e8e4d9; transition: border-color 0.15s;
}
.uh-chain-grid a:hover { border-color: rgba(61,220,132,0.3); text-decoration: none; }
.uh-chain-grid span:first-child { font-size: 0.78rem; font-weight: 700; }
.uh-chain-grid span:last-child  { font-size: 0.62rem; color: #5a5650; }

/* ── DAO ──────────────────────────────────────────────────────── */
.uh-dao { padding-top: 0; }
.uh-dao-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.uh-dao-links a {
    font-size: 0.72rem; color: #7e7a78; text-decoration: none;
    padding: 0.4rem 0.8rem; border: 1px solid rgba(255,220,200,0.06);
    border-radius: 4px; transition: color 0.15s, border-color 0.15s;
}
.uh-dao-links a:hover { color: #e8e4d9; border-color: rgba(255,220,200,0.12); }

/* ── Account ──────────────────────────────────────────────────── */
.uh-account {
    border-top: 1px solid rgba(255,220,200,0.06);
    display: flex; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 3rem;
}
.uh-account a {
    font-size: 0.72rem; color: #5a5650; text-decoration: none;
    padding: 0.28rem 0.6rem; border: 1px solid rgba(255,220,200,0.04);
    border-radius: 3px; transition: color 0.15s;
}
.uh-account a:hover { color: #8a8280; }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes uh-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(61,220,132,0.6); }
    50%      { opacity: 0.5; box-shadow: 0 0 4px rgba(61,220,132,0.3); }
}
@keyframes uh-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .uh-lanes { grid-template-columns: 1fr; }
    .uh-tokens { grid-template-columns: 1fr; }
    .uh-chain-grid { grid-template-columns: 1fr 1fr; }
    .uh-pe-cluster { gap: 1.5rem; }
    .uh-pe-value { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .uh-hero h1 { font-size: 1.6rem; }
    .uh-pe-cluster { flex-direction: column; gap: 0.6rem; }
    .uh-chain-grid { grid-template-columns: 1fr; }
    .uh-enter-btn { padding: 0.9rem 2rem; font-size: 0.9rem; }
}
