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

body {
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #000;
    touch-action: none;
    user-select: none;
}

.card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 25px 20px 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.address-bar {
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 18px;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.address-domain {
    color: #888;
}
.address-path {
    color: #000;
    font-weight: bold;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    justify-content: center;
}
.tab-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 18px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn:hover {
    background: #e6e6e6;
}
.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.content {
    min-height: 220px;
    margin-bottom: 18px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadePane 0.3s ease;
}
@keyframes fadePane {
    0% { opacity: 0.6; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}
.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top-color: #000;
    border-right-color: transparent;
    animation: ringRotate 6s linear infinite;
}
@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.prompt {
    color: #000;
    font-size: 20px;
}
.username {
    color: #000;
    font-size: 24px;
    font-weight: 400;
    font-family: 'DotGothic16', monospace;
    letter-spacing: 1px;
}
.cursor {
    color: #000;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.bio {
    color: #222;
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
    padding: 0 10px;
    border-left: 2px solid #ccc;
    font-family: 'DotGothic16', monospace;
    min-height: 70px;
}

.char-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
    max-height: 200px;
}
.char-caption {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}

/* ---------- PROJECT CARDS ---------- */
.project-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.project-card:hover {
    border-color: #000;
}
.project-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-family: 'DotGothic16', monospace;
    font-size: 16px;
    color: #000;
}
.project-icon {
    font-size: 24px;
    line-height: 1;
}
.project-name {
    flex: 1;
    text-align: left;
}
.project-arrow {
    font-size: 12px;
    color: #888;
    transition: transform 0.3s;
}
.project-card.open .project-arrow {
    transform: rotate(180deg);
}
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 12px;
    text-align: left;
}
.project-card.open .project-details {
    max-height: 300px;
    padding: 0 12px 12px 12px;
}
.project-details p {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
    font-family: 'Share Tech Mono', monospace;
}
.project-link {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 4px;
    font-family: 'Share Tech Mono', monospace;
    transition: background 0.2s;
}
.project-link:hover {
    background: #333;
}

/* ---------- LINKS ---------- */
.links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.links.hidden {
    display: none;
}
.link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 60px;
}
.link-btn:hover {
    background: #f0f0f0;
    border-color: #000;
    transform: translateY(-2px);
}
.link-btn i {
    font-size: 20px;
}
.link-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    color: #666;
}
.casino-num {
    font-family: 'Share Tech Mono', monospace;
    font-size: 26px;
    font-weight: 700;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.card-status {
    color: #2e7d32;
}

@media (max-width: 600px) {
    .card { padding: 18px 14px; }
    .username { font-size: 20px; }
    .bio { font-size: 11px; }
    .tab-btn { font-size: 12px; padding: 4px 14px; }
    .address-bar { font-size: 12px; }
    .project-header { font-size: 14px; }
    .project-details p { font-size: 11px; }
}