* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
    line-height: 1.7;
    color: #eaeaea;
    background: #000000;
    letter-spacing: 0.01em;
    cursor: none !important; /* Hide default cursor */
}

/* Hide all cursor variations */
*, *:hover, *:active, *:focus {
    cursor: none !important;
}

/* Override specific interactive elements */
a, button, input, textarea, select, [role="button"], [onclick], .clickable {
    cursor: none !important;
}

/* Override any remaining pointer cursors */
[style*="cursor: pointer"], [style*="cursor:pointer"] {
    cursor: none !important;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    background: rgba(255, 0, 0, 0.5); /* Temporary debug background */
}

/* Inner rotating square */
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8be9fd;
    mix-blend-mode: difference;
    animation: rotateCursorReverse 2s linear infinite;
    transform-origin: center;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.custom-cursor.hover::after {
    background: #ff5555;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    border: 1px solid #8be9fd;
    background: transparent;
    animation: rotateCursor 2s linear infinite;
    transform-origin: center;
    transform: translate(var(--outer-offset-x, 0px), var(--outer-offset-y, 0px));
    transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease;
}

.custom-cursor.hover {
    width: 16px;
    height: 16px;
}

.custom-cursor.hover::before {
    width: 32px;
    height: 32px;
    top: -8px;
    left: -8px;
}

.custom-cursor.clicked::before {
    animation: snapToCardinal 0.2s ease-out forwards;
    transform: translate(0px, 0px) rotate(var(--frozen-rotation-outer, 45deg));
}

.custom-cursor.clicked::after {
    animation: snapToCardinalReverse 0.2s ease-out forwards;
    transform: rotate(var(--frozen-rotation-inner, 45deg));
}

@keyframes snapToCardinal {
    from {
        transform: translate(var(--outer-offset-x, 0px), var(--outer-offset-y, 0px)) rotate(var(--current-rotation-outer, 0deg));
    }
    to {
        transform: translate(0px, 0px) rotate(var(--frozen-rotation-outer, 45deg));
    }
}

@keyframes snapToCardinalReverse {
    from {
        transform: rotate(var(--current-rotation-inner, 0deg));
    }
    to {
        transform: rotate(var(--frozen-rotation-inner, 45deg));
    }
}

@keyframes rotateCursor {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCursorReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero {
    background: #000000;
    color: #eaeaea;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #232323;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 1.05rem;
    color: #8be9fd;
    margin-bottom: 0;
}

/* Sections */
section {
    padding: 32px 0;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #eaeaea;
    font-weight: 600;
    border-left: 3px solid #8be9fd;
    padding-left: 0.75rem;
}

/* About Section (merged with PFP) */

.about-content {
    display: block;
}

.about-image {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* PFP Section */
.pfp-section {
    background: #000000;
    border-bottom: 1px solid #232323;
}

/* PFP Filter Buttons */
.pfp-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

.filter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(139, 233, 253, 0.3);
    padding: 0;
    cursor: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    border-color: #8be9fd;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.3);
}

.filter-btn:hover img {
    transform: scale(1.1);
}

.filter-btn.active {
    border-color: #8be9fd;
    box-shadow: 
        0 0 20px rgba(139, 233, 253, 0.4),
        inset 0 0 20px rgba(139, 233, 253, 0.1);
    background: rgba(139, 233, 253, 0.05);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8be9fd, transparent, #8be9fd);
    z-index: -1;
    animation: rotate-border 2s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pfp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.pfp-card {
    background: #000000;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s, transform 0.2s;
    cursor: none !important;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.pfp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.pfp-card:hover {
    border: 1px solid #8be9fd;
}

.pfp-card:hover::before {
    left: 100%;
    transform: translateY(-2px);
}

.pfp-card img,
.pfp-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    margin: 0;
}

/* Drag and drop effects for all PFP cards */
.pfp-card.drag-over {
    border: 2px solid #8be9fd !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
}

@keyframes pfpSwap {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1); }
}



/* PFP Popup */
.pfp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pfp-popup.active {
    display: flex;
}

.pfp-popup-content {
    background: #000000;
    border: 1px solid #232323;
    border-radius: 8px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pfp-popup img,
.pfp-popup video {
    width: auto;
    height: auto;
    max-width: 70vw;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.pfp-popup h3 {
    color: #8be9fd;
    margin-bottom: 0.5rem;
}

.pfp-popup .artist {
    color: #bdbdbd;
    margin-bottom: 1rem;
}

.pfp-popup .description {
    color: #eaeaea;
    margin-bottom: 1.5rem;
}

.pfp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #232323;
    color: #8be9fd;
    font-size: 1.5rem;
    cursor: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pfp-close:hover {
    background: rgba(139, 233, 253, 0.2);
    border-color: #8be9fd;
}

/* PFP Name Container with Inline Icons */
.pfp-name-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pfp-icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.pfp-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pfp-icon-link:hover {
    background: rgba(139, 233, 253, 0.1);
    transform: scale(1.1);
}

.pfp-icon {
    width: 24px !important;
    height: 24px !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block;
}

.pfp-icon-link:hover .pfp-icon {
    opacity: 1;
}

.pfp-name-container h3 {
    margin: 0;
    text-align: center;
}

.enlarged-pic-container {
    display: none;
    margin-bottom: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.enlarged-pic-container.active {
    display: flex;
}

.enlarged-pic-info {
    flex: 1;
    padding-top: 0.5rem;
}

.enlarged-pic-info h4 {
    color: #8be9fd;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.enlarged-pic-info p {
    color: #bdbdbd;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.enlarged-pic-info a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
}

.enlarged-pic-info a:hover {
    text-decoration: underline;
}

.profile-pics-row {
    display: none;
}

.profile-pic {
    display: none;
}

.profile-pic:hover {
    border: 1px solid #8be9fd;
    box-shadow: 0 0 0 2px #8be9fd33;
}

.profile-pic.enlarged {
    width: 100%;
    aspect-ratio: 1;
    min-width: 160px;
    max-width: 240px;
    border-color: #8be9fd;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #bdbdbd;
}

/* Quote Block */
.quote-block {
    background: #000000;
    border: 1px solid #232323;
    border-left: 3px solid #8be9fd;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.quote-text {
    color: #eaeaea;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-attribution {
    color: #888;
    font-size: 0.85rem;
    font-style: normal;
}

.quote-attribution a {
    color: #8be9fd;
    text-decoration: none;
}

.quote-attribution a:hover {
    text-decoration: underline;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.skill-card {
    background: #000000;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.skill-card:hover {
    border: 1px solid #8be9fd;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-icon {
    display: none;
}

.skill-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-header {
    display: none;
}

.skill-card h3 {
    margin: 0;
    color: #8be9fd;
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-card p {
    margin: 0;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.skill-card a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #232323;
    border-radius: 0;
    transition: border 0.2s;
    align-self: flex-start;
    margin-top: 0.2rem;
}

.skill-card a:hover {
    border: 1px solid #8be9fd;
}

/* NFT Section */
.nfts {
    background: #000000;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.nft-card {
    background: #000000;
    border-radius: 8px;
    padding: 1rem 0.8rem;
    border: 1px solid #232323;
    box-shadow: none;
    transition: border 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.nft-card:hover {
    border: 1px solid #8be9fd;
}

.nft-card:hover::before {
    left: 100%;
}

.nft-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nft-logo {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: #161616;
    object-fit: cover;
    border: 1px solid #232323;
}

.nft-title {
    color: #8be9fd;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.nft-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nft-stat {
    background: #111;
    padding: 0.4rem 0.5rem;
    border-radius: 0;
    border: 1px solid #232323;
}

.nft-stat-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.1rem;
}

.nft-stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8be9fd;
    line-height: 1.2;
    word-break: break-word;
}

.nft-description {
    color: #bdbdbd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.nft-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.nft-link {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #232323;
    border-radius: 0;
    transition: border 0.2s;
}

.nft-link:hover {
    border: 1px solid #8be9fd;
}

.loading {
    color: #888;
    font-style: italic;
}

/* Urbit Embed Section */
.urbit-embed {
    background: #000000;
    padding: 32px 0;
}

.urbit-container {
    background: #000000;
    border-radius: 8px;
    padding: 1.2rem 1rem;
    border: 1px solid #232323;
}

.urbit-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.urbit-title {
    color: #8be9fd;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.urbit-subtitle {
    color: #888;
    font-size: 0.95rem;
}

.urbit-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #232323;
    background: #000000;
}

.urbit-iframe {
    width: 375px;
    height: 667px;
    border: none;
    border-radius: 0;
    transform: scaleX(2.2) scaleY(1.1) translate(0px, 0px);
    transform-origin: top left;
    margin: 0;
}

.urbit-link {
    text-align: left;
    margin-top: 0.7rem;
}

.urbit-link a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border: 1px solid #232323;
    border-radius: 0;
    transition: border 0.2s;
}

.urbit-link a:hover {
    border: 1px solid #8be9fd;
}

/* Remilia ID Card Section */
.remilia-id {
    max-width: 420px;
    width: fit-content;
    margin: 0 auto;
}

.card-wrapper {
    max-width: 400px;
    margin: 0 auto;
    cursor: none !important;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card-wrapper:hover {
    transform: translateY(-3px);
}

.card-wrapper:hover .card-container {
    border: 1px solid #8be9fd;
}

.card-container {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border: 1px solid #232323;
    border-radius: 8px;
    padding: 1rem;
    color: #eaeaea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.card-wrapper:hover .card-container::before {
    left: 100%;
}

.card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-header {
    font-size: 0.75rem;
    color: #8be9fd;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8be9fd;
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
    flex-shrink: 0;
}

.profile-picture-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.card-info {
    flex: 1;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.user-info .section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.user-info .section span:first-child {
    color: #888;
    font-weight: 500;
    min-width: 30px;
}

.user-info .section span:last-child,
.username-text {
    color: #8be9fd;
    font-weight: 600;
}

.card-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(139, 233, 253, 0.03);
    border-radius: 6px;
    border: 1px solid #232323;
}

.code svg {
    filter: invert(1);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.code p {
    font-size: 0.7rem;
    color: #bdbdbd;
    line-height: 1.3;
    margin: 0;
    font-style: italic;
    max-width: 200px;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.6rem;
    color: #666;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #232323;
}

.silver-plaque {
    position: absolute;
    bottom: -15px;
    right: 1rem;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #444;
    font-size: 0.6rem;
    color: #ccc;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background: #000000;
    color: #bdbdbd;
    text-align: left;
    padding: 1.2rem 0;
    border-top: 1px solid #232323;
}

/* Animations removed for minimalism */

/* Lazy Loading Styles */
.pfp-card img.lazy,
.pfp-card video.lazy {
    filter: blur(2px);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.pfp-card img.loaded,
.pfp-card video.loaded {
    filter: none;
}

/* Loading placeholder animation */
.pfp-card img[src*="data:image/svg+xml"] {
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Performance optimization for animations */
.pfp-card, .filter-btn, .skill-card, .nft-card {
    will-change: transform;
}

.pfp-card:hover, .filter-btn:hover {
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Preload indicator */
.preloading {
    position: relative;
}

.preloading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #8be9fd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .container {
        padding: 0 8px;
    }
    
    /* Mobile PFP Layout */
    .pfp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .pfp-card {
        padding: 0;
        aspect-ratio: 1;
    }
    
    .pfp-card img {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    /* Mobile Filter Buttons */
    .pfp-filter-buttons {
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0.1rem 0;
    }
    
    .filter-btn {
        width: 45px;
        height: 45px;
    }
    
    .filter-btn img {
        width: 28px;
        height: 28px;
    }
    
    /* Mobile Skills Layout */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-card {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }
    
    .skill-image {
        width: 36px;
        height: 36px;
        align-self: center;
    }
    
    .skill-content {
        text-align: center;
    }
    
    .skill-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .skill-card p {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .skill-card a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        align-self: center;
        margin-top: 0;
    }
    
    /* Mobile popup adjustments */
    .pfp-popup-content {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .pfp-popup img,
    .pfp-popup video {
        max-width: 85vw;
        max-height: 70vh;
    }
    
    .pfp-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Mobile popup adjustments */
    .pfp-name-container {
        margin-bottom: 0.4rem;
    }
    
    .pfp-icons-container {
        gap: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .pfp-icon-link {
        padding: 0.05rem;
    }
    
    .pfp-icon {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .pfp-name-container h3 {
        font-size: 1.1rem;
    }
    
    /* Mobile Remilia ID Card */
    .card-wrapper {
        max-width: 95vw;
        margin: 0 auto;
    }
    
    .card-container {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .card-left {
        justify-content: center;
        text-align: center;
    }
    
    .card-right {
        justify-content: center;
    }
    
    .profile-picture {
        width: 50px;
        height: 50px;
    }
    
    .user-info .section {
        font-size: 0.75rem;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .code {
        padding: 0.6rem;
    }
    
    .code svg {
        width: 30px;
        height: 30px;
    }
    
    .code p {
        font-size: 0.65rem;
        max-width: 150px;
    }
    
    .silver-plaque {
        font-size: 0.5rem;
        padding: 0.25rem 0.6rem;
        bottom: -12px;
        right: 0.5rem;
    }
    
    /* Mobile Urbit iframe - responsive sizing */
    .urbit-iframe-wrapper {
        height: auto;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: 375 / 667;
        max-height: 70vh;
    }
    
    .urbit-iframe {
        transform: none;
        width: 100%;
        height: 100%;
        min-height: 400px;
    }
    
    /* Disable custom cursor on mobile */
    body {
        cursor: auto !important;
    }
    
    *, *:hover, *:active, *:focus {
        cursor: auto !important;
    }
    
    a, button, input, textarea, select, [role="button"], [onclick], .clickable {
        cursor: pointer !important;
    }
    
    .custom-cursor {
        display: none !important;
    }
}
