/* ============================================
   MAIN.CSS - Base styles shared across all themes
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 70px;
    --container-max: 1200px;
    --transition-speed: 0.3s;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-retro: 'Press Start 2P', monospace;
    --font-comic: 'Comic Neue', 'Comic Sans MS', cursive;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    min-height: 50vh;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.7;
    font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 1001;
}

.logo-dog {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.nav-logo:hover .logo-dog {
    transform: rotate(20deg) scale(1.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    transition: all 0.3s;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Theme toggle button */
.theme-toggle-btn {
    background: none;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    text-align: center;
    font-family: inherit;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.6;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-visual {
    flex: 0 0 auto;
}

.hero-ascii pre {
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

/* Theme Callout */
.theme-callout {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    position: relative;
    animation: callout-pulse 3s ease-in-out infinite;
}

@keyframes callout-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
    50% { box-shadow: 0 0 20px 2px rgba(102, 126, 234, 0.15); }
}

.theme-callout-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.theme-callout-link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.theme-callout-link:hover {
    transform: scale(1.05);
}

.theme-callout-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-callout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: inherit;
    transition: all 0.3s;
}

.theme-callout-btn:hover {
    transform: translateY(-2px);
}

.theme-callout-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Urban Dictionary Widget - always uses UD's own branding */
.ud-widget {
    width: 100%;
    max-width: 560px;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    margin-top: 1.5rem;
    background: #1B2936 !important;
    color: #e8e8e8 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: none !important;
}

.ud-header {
    background: #131E26 !important;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ud-header-logo {
    font-size: 1.05rem;
    font-weight: 900;
    color: #EFFF00 !important;
    letter-spacing: -0.5px;
    text-transform: none;
}

.ud-header-sub {
    font-size: 0.75rem;
    color: #8B9DAF !important;
    font-weight: 400;
}

.ud-body {
    padding: 1.25rem;
    border-left: 3px solid #2F6FA4;
    margin: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 4px 4px 0;
}

.ud-word-row {
    margin-bottom: 0.75rem;
}

.ud-word {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4B9FEA !important;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    display: inline;
}

.ud-word:hover {
    color: #6BB5F5 !important;
    text-decoration: underline;
}

.ud-definition {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #DEDEDE !important;
    margin-bottom: 0.75rem;
}

.ud-example {
    font-size: 0.9rem;
    font-style: italic;
    color: #8B9DAF !important;
    line-height: 1.5;
    min-height: 0;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.ud-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ud-votes {
    display: flex;
    gap: 0.75rem;
}

.ud-vote {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: default;
    font-size: 0.8rem;
    font-family: inherit;
    padding: 0;
}

.ud-vote-up {
    color: #4CAF50 !important;
}

.ud-vote-down {
    color: #E57373 !important;
}

.ud-refresh-btn {
    background: rgba(75, 159, 234, 0.15) !important;
    border: 1px solid rgba(75, 159, 234, 0.3) !important;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 0.8rem;
    color: #4B9FEA !important;
    transition: all 0.2s;
}

.ud-refresh-btn:hover {
    background: rgba(75, 159, 234, 0.25) !important;
    transform: scale(1.03);
}

.ud-byline {
    font-size: 0.7rem;
    color: #5A7080 !important;
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0.5rem auto 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 300px;
}

.photo-frame {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.photo-frame img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-caption {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-fun-facts {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.about-fun-facts h4 {
    margin-bottom: 1rem;
}

.about-fun-facts li {
    padding: 0.4rem 0;
    font-size: 1rem;
}

/* ============================================
   RESUME SECTION
   ============================================ */
.resume-actions {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.resume-block {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.resume-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.resume-item {
    margin-bottom: 1.5rem;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.resume-item-header h4 {
    font-size: 1.1rem;
}

.resume-date {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.resume-company {
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    transition: transform 0.3s;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================
   GAMES SECTION
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: none;
    font-family: inherit;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.game-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.game-area {
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NOSTALGIA SECTION
   ============================================ */
.nostalgia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nostalgia-card {
    padding: 1.75rem;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.nostalgia-card:hover,
.nostalgia-card:focus-visible {
    transform: translateY(-4px);
}

.nostalgia-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.nostalgia-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.nostalgia-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.nostalgia-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Soundtrack */
.nostalgia-soundtrack {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.nostalgia-soundtrack h3 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.soundtrack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.soundtrack-item {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-link-icon {
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    resize: vertical;
}

.form-status {
    font-size: 0.9rem;
    min-height: 1.5em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 2rem 0;
    text-align: center;
}

.footer-meta {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* ============================================
   THEME PANEL
   ============================================ */
.theme-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.theme-panel.active {
    right: 0;
}

.theme-panel-content {
    padding: 2rem;
    padding-top: 5rem;
}

.theme-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.theme-panel-subtitle {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    font-family: inherit;
    text-align: left;
    color: inherit;
    width: 100%;
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

.modern-preview { background: linear-gradient(135deg, #667eea, #764ba2); }
.geocities-preview { background: linear-gradient(135deg, #ff0, #0f0, #f0f); }
.myspace-preview { background: linear-gradient(135deg, #003171, #0060df); }
.angelfire-preview { background: linear-gradient(135deg, #ff4500, #ff8c00, #ffd700); }

.theme-name {
    font-weight: 700;
    font-size: 1rem;
    display: block;
}

.theme-desc {
    font-size: 0.8rem;
    opacity: 0.6;
    display: block;
}

.theme-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: inherit;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.theme-loading {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.theme-loading.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: #0f0;
    font-family: var(--font-retro);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #0f0;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.loading-bar {
    width: 200px;
    height: 16px;
    border: 2px solid #0f0;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: #0f0;
    width: 0;
    animation: loadbar 1.5s ease-in-out forwards;
}

@keyframes loadbar {
    to { width: 100%; }
}

/* ============================================
   SITE AWARD
   ============================================ */
.site-award {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
}

.award-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.award-star {
    color: gold;
    font-size: 1.2rem;
}

.award-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    color: inherit;
}

/* ============================================
   SOUND TOGGLE
   ============================================ */
.sound-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(0,0,0,0.2);
}

.sound-toggle:hover {
    transform: scale(1.1);
}

/* ============================================
   YOGI MASCOT
   ============================================ */
.yogi-mascot {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 2rem;
}

.yogi-mascot:hover {
    transform: scale(1.2);
}

.yogi-speech {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    color: #333;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s;
    pointer-events: none;
}

.yogi-speech.visible {
    opacity: 1;
    transform: translateY(-5px);
}

/* ============================================
   THEME-SPECIFIC VISIBILITY
   ============================================ */
.geocities-only,
.myspace-only,
.angelfire-only {
    display: none !important;
}

/* Guestbook styles */
.guestbook {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 12px;
}

.guestbook h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.guestbook-entry {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.guestbook-entry p {
    margin-top: 0.5rem;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.guestbook-form input,
.guestbook-form textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
}

/* Top friends */
.top-friends {
    margin-top: 3rem;
    text-align: center;
}

.top-friends h3 {
    margin-bottom: 1.5rem;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.friend-card {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.friend-avatar {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Web ring */
.webring {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.webring-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.webring-nav a {
    text-decoration: underline;
}

/* Under construction & hit counter */
.under-construction {
    text-align: center;
    margin-top: 1rem;
}

.hit-counter {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-retro);
    font-size: 0.7rem;
}

.counter-display {
    background: #000;
    color: #0f0;
    padding: 2px 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s;
        background: inherit;
    }

    .nav-links.open {
        right: 0;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-photo {
        flex: 0 0 auto;
        width: 250px;
    }

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

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

    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .theme-panel {
        width: 100%;
        right: -100%;
    }
}

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

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

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}
