@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Geist:wght@400;500;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --border: #1f1f1f;
    --text: #ededed;
    --muted: #888;
    --dim: #444;
    --ll3: #e5534b;
    --ll2: #c98a24;
    --ll1: #3fb950;
    --mono: 'Geist Mono', monospace;
    --sans: 'Geist', sans-serif;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono) !important;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 52px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 13px;
    font-weight: 500;
}

.header-divider {
    color: var(--dim);
}

.header-sub {
    color: var(--muted);
    font-size: 14px;
}


.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
}

#search {
    flex: 1;
    max-width: 280px;
    background: transparent;
    border: 1px solid var(--dim);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

#search::placeholder {
    color: var(--dim);
}

#search:focus {
    border-color: var(--muted);
}

.filters {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.f-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--dim);
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}

.f-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

.f-btn.active {
    color: var(--text);
    border-color: var(--muted);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-3 { background: var(--ll3); }
.dot-2 { background: var(--ll2); }
.dot-1 { background: var(--ll1); }

.ll {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ll-3 {
    color: var(--ll3);
    border: 1px solid rgba(229, 83, 75, 0.3);
}

.ll-2 {
    color: var(--ll2);
    border: 1px solid rgba(201, 138, 36, 0.3);
}

.ll-1 {
    color: var(--ll1);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

main {
    padding: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bg);
    transition: background 0.1s;
}

.card:hover {
    background: #111;
}

.card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    outline: 3px solid var(--border);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.card-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty {
    padding: 80px 0;
    text-align: center;
    color: var(--dim);
    font-size: 15px;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 260px;
    grid-template-rows: auto 1fr;
    min-height: calc(100vh - 52px);
}

.detail-hero {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--border);
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dim);
    background: #1a1a1a;
}

.detail-meta {
    flex: 1;
    min-width: 0;
}

.detail-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.detail-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ll-large {
    font-size: 11px;
    padding: 3px 10px;
}

.detail-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 560px;
}

.detail-evidence {
    padding: 24px 32px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.detail-accounts {
    padding: 20px;
    overflow-y: auto;
}

.section-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    gap: 8px;
}

.account-id {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--dim);
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
    padding: 2px 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

.copy-btn.done {
    color: var(--ll1);
    border-color: rgba(63, 185, 80, 0.4);
}

.evidence-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--dim);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .toolbar {
        flex-wrap: wrap;
    }

    #search {
        max-width: 100%;
    }

    .filters {
        margin-left: 0;
    }

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

    .detail-main {
        grid-template-columns: 1fr;
    }

    .detail-evidence {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

.evidence-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.evidence-content h1, .evidence-content h2, .evidence-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.evidence-content h1:first-child, .evidence-content h2:first-child, .evidence-content h3:first-child {
    margin-top: 0;
}

.evidence-content p {
    color: var(--muted);
    margin-bottom: 12px;
}

.evidence-content a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.evidence-content a:hover {
    color: var(--muted);
}

.evidence-content img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    border-radius: 6px;
    margin: 8px 0;
    display: block;
    object-fit: contain;
}

.evidence-content video {
    max-width: 100%;
    max-height: 600px;
    border-radius: 6px;
    margin: 8px 0;
    display: block;
}

#warning-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#warning-box {
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

#warning-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#warning-body {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

#warning-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

#warning-proceed {
    flex: 1;
    padding: 8px 16px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

#warning-leave {
    padding: 8px 16px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--dim);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.github-link {
    font-size: 12px;
    color: var(--muted);
}

.github-link:hover {
    color: var(--text);
}

.nav-invite {
    font-size: 12px;
    color: var(--text);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: border-color 0.1s;
}

.nav-invite:hover {
    border-color: var(--muted);
}

#img-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

#img-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.evidence-content img {
    cursor: pointer !important;
}

.grid.list-view {
    grid-template-columns: 1fr;
}

.grid.list-view .card-desc {
    -webkit-line-clamp: 1;
}

.evidence-content ul,
.evidence-content ol {
    color: var(--muted);
    padding-left: 40px;
}

.evidence-content li {
    margin-bottom: 4px;
}

.evidence-content a {
    color: #5da3ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.evidence-content a:hover {
    color: #81b8ff;
}

.evidence-content strong {
    color: #ffffff;
    font-weight: 700;
}

.evidence-content em {
    color: #c0c0c0;
    font-style: italic;
}

.evidence-content h1, .evidence-content h2, .evidence-content h3 {
    color: #ededed;
}

.evidence-content blockquote {
    border-left: 4px solid #5da3ff;
    padding-left: 16px;
    color: #cccccc;
    font-style: italic;
    margin: 12px 0;
    background: rgba(93, 163, 255, 0.05);
    border-radius: 4px;
}

.evidence-content code, .evidence-content pre {
    background: #1f1f1f;
    color: #ffcd5c;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Geist Mono', monospace;
}

.evidence-content ul li::marker, .evidence-content ol li::marker {
    color: #5da3ff;
}

.card.no-evidence {
    opacity: 0.5;
}

.lp-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.lp-section {
    padding-top: 56px;
    border-top: 1px solid var(--border);
}

.lp-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 0 56px;
    gap: 20px;
}

.lp-title {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.lp-subtitle {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 480px;
}

.lp-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lp-btn-primary {
    padding: 9px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--mono);
    transition: opacity 0.1s;
}

.lp-btn-primary:hover { opacity: 0.85; }

.lp-btn-secondary {
    padding: 9px 20px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--dim);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--mono);
    transition: color 0.1s, border-color 0.1s;
}

.lp-btn-secondary:hover {
    color: var(--text);
    border-color: var(--muted);
}

.lp-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 4px;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lp-stat-n {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lp-stat-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.lp-section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.lp-steps {
    display: flex;
    flex-direction: column;
}

.lp-step {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.lp-step:last-child { border-bottom: none; }

.lp-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-steps--blue .lp-step-n {
    background: rgba(93, 163, 255, 0.1);
    color: #5da3ff;
    border: 1px solid rgba(93, 163, 255, 0.2);
}

.lp-steps--amber .lp-step-n {
    background: rgba(201, 138, 36, 0.1);
    color: var(--ll2);
    border: 1px solid rgba(201, 138, 36, 0.2);
}

.lp-steps--purple .lp-step-n {
    background: rgba(155, 135, 245, 0.1);
    color: #9b87f5;
    border: 1px solid rgba(155, 135, 245, 0.2);
}

.lp-step-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-step-title {
    font-size: 14px;
    font-weight: 500;
}

.lp-step-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
}

.lp-step-desc code, .lp-step-title code {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    color: var(--text);
    font-family: var(--mono);
}

.lp-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lp-level {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll3-level { border: 1px solid rgba(229, 83, 75, 0.3); background: rgba(229, 83, 75, 0.06); }
.ll2-level { border: 1px solid rgba(201, 138, 36, 0.3); background: rgba(201, 138, 36, 0.06); }
.ll1-level { border: 1px solid rgba(63, 185, 80, 0.3);  background: rgba(63, 185, 80, 0.06);  }

.lp-level-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-level-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.ll3-badge { color: var(--ll3); border: 1px solid rgba(229, 83, 75, 0.4); }
.ll2-badge { color: var(--ll2); border: 1px solid rgba(201, 138, 36, 0.4); }
.ll1-badge { color: var(--ll1); border: 1px solid rgba(63, 185, 80, 0.4); }

.lp-level-name {
    font-size: 13px;
    font-weight: 500;
}

.lp-level-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.lp-level-desc code {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    color: var(--text);
    font-family: var(--mono);
}


.lp-link {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.1s;
}

.lp-link:hover { color: var(--text); }

@media (max-width: 600px) {
    .lp-title { font-size: 36px; }
    .lp-stats { gap: 16px; padding: 14px 18px; }
    .lp-levels { grid-template-columns: 1fr; }
}

.credits-main {
    padding: 40px 48px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.credit-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.credit-img-wrap {
    height: 300px;
    background: #111;
}

.credit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.credit-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.credit-name {
    font-size: 15px;
    font-weight: 600;
}

.credit-role {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.credit-bio {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }
}