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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.hero-page {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    background: #050505;
    display: block;
    min-height: 100vh;
    margin: 0;
    width: 100%;
    height: 100%;
}

.photo-container {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
}

.nav-link {
    color: #4ade80;
    text-decoration: none;
    border-bottom: 2px dashed rgba(74, 222, 128, 0.6);
    padding-bottom: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #86efac;
    border-bottom-color: rgba(134, 239, 172, 0.9);
}

.photo-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.showcase-photo {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.hero-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #050505;
}

.hero-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.hero-actions {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    --hero-icon-width: clamp(125px, 14.5vw, 220px);
    --hero-icon-gap: clamp(4px, 1vw, 16px);
    --hero-left: clamp(8px, 1.5vw, 28px);
    --hero-bottom-row: clamp(48px, 10vh, 110px);
    --hero-top-row: clamp(150px, 24vh, 280px);
}

.hero-action {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    pointer-events: auto;
}

.hero-action:hover,
.hero-action:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.hero-action-icon {
    width: var(--hero-icon-width);
    height: auto;
    object-fit: contain;
}

.hero-action-music {
    left: calc(var(--hero-left) + (var(--hero-icon-width) * 0.12));
    bottom: var(--hero-top-row);
}

.hero-action-gallery {
    left: var(--hero-left);
    bottom: var(--hero-bottom-row);
}

.hero-action-blog {
    left: calc(var(--hero-left) + var(--hero-icon-width) + var(--hero-icon-gap));
    bottom: var(--hero-bottom-row);
}

.hero-action-bird {
    left: calc(var(--hero-left) + var(--hero-icon-width) + var(--hero-icon-gap));
    bottom: calc(var(--hero-bottom-row) + var(--hero-icon-width) + var(--hero-icon-gap));
}

.hotspot {
    position: absolute;
    display: block;
    z-index: 3;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
}

.hotspot:focus-visible {
    outline: none;
}

.hotspot-music {
    left: 2.2vw;
    bottom: 21.5vh;
    width: clamp(150px, 16vw, 260px);
    height: clamp(70px, 11vh, 140px);
    transform: rotate(-6deg);
}

.hotspot-blog {
    left: 16.5vw;
    bottom: 1vh;
    width: clamp(150px, 12.5vw, 260px);
    height: clamp(190px, 25vh, 320px);
    transform: rotate(-8deg);
}

.snake-overlay {
    position: absolute;
    left: 2.2vw;
    top: 33vh;
    transform: translateY(-95px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.snake-frame {
    background: #8c8c8c;
    border: 2px solid #6b6b6b;
    padding: 10px;
    box-shadow: inset 0 0 0 2px #b5b5b5;
}

#snake-canvas {
    display: block;
    width: clamp(200px, 20vw, 260px);
    height: auto;
    background: #9b9b9b;
    image-rendering: pixelated;
    filter: contrast(0.9) grayscale(1);
}

.leaderboard-dock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #1f1f1f;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    font-family: 'Courier New', Courier, monospace;
}

.leaderboard-controls {
    display: flex;
    gap: 6px;
    pointer-events: auto;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.leaderboard-controls:hover,
.leaderboard-controls:focus-within {
    opacity: 0.9;
}

.tiny-button {
    padding: 3px 8px;
    font-size: 0.55rem;
    border-radius: 0;
    border: 2px solid #1f1f1f;
    background: #b5b5b5;
    color: #1f1f1f;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 2px 2px 0 #1f1f1f;
    transform: translate(0, 0);
}

.tiny-button:hover {
    background: #c9c9c9;
    box-shadow: 1px 1px 0 #1f1f1f;
    transform: translate(1px, 1px);
}

.tiny-button:disabled {
    opacity: 0.4;
    cursor: default;
}

.leaderboard-panel {
    pointer-events: auto;
    min-width: 140px;
    max-width: 240px;
    padding: 6px 8px;
    border-radius: 0;
    background: #9b9b9b;
    border: 2px solid #6b6b6b;
    color: #1f1f1f;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 2px 2px 0 #1f1f1f;
}

.leaderboard-status {
    margin-bottom: 6px;
}

.leaderboard-list {
    list-style: none;
    display: grid;
    gap: 4px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.leaderboard-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.leaderboard-avatar {
    width: 16px;
    height: 16px;
    border-radius: 0;
    object-fit: cover;
    filter: grayscale(1) contrast(0.9);
    border: 1px solid #1f1f1f;
}

.leaderboard-score {
    font-variant-numeric: tabular-nums;
}

.game-container {
    text-align: center;
    padding: 20px;
}

h1 {
    color: #4ade80;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.score-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    max-width: 440px;
    margin: 0 auto 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #fff;
    font-size: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.55);
    border-radius: 8px;
    padding: 6px 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 6px 10px;
}

.boost-status {
    flex: 1;
}

.powers-status {
    flex: 1;
    justify-content: space-between;
}

.meter {
    flex: 1;
    height: 8px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    overflow: hidden;
    min-width: 80px;
}

#boost-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 0.2s ease;
}

#boost-fill.boost-low {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

#boost-text {
    color: #cbd5f5;
    font-size: 0.85rem;
    min-width: 44px;
    text-align: right;
}

.canvas-wrap {
    position: relative;
    display: inline-block;
}

#game-canvas {
    border: 3px solid #4ade80;
    border-radius: 10px;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.awkward-blog-link {
    position: absolute;
    right: -26px;
    top: 40%;
    transform: rotate(10deg);
    background: #facc15;
    color: #0a0a0a;
    font-family: 'Courier New', Courier, monospace;
    padding: 6px 10px;
    border: 2px dashed #0a0a0a;
    border-radius: 6px;
    text-decoration: underline;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.awkward-blog-link:hover {
    transform: rotate(2deg) scale(1.05);
}

.controls {
    margin-top: 15px;
}

.controls p {
    color: #94a3b8;
    margin-bottom: 6px;
}

button {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: #4ade80;
    color: #0a0a0a;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background: #22c55e;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.game-over h2 {
    color: #ef4444;
    font-size: 2rem;
    margin-bottom: 12px;
}

.game-over p {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.pause-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    padding: 36px;
    border-radius: 20px;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.pause-screen h2 {
    color: #38bdf8;
    font-size: 2rem;
    margin-bottom: 10px;
}

.pause-screen p {
    color: #fff;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

@media (max-width: 450px) {
    #game-canvas {
        width: 300px;
        height: 300px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .score-board {
        grid-template-columns: 1fr;
        max-width: 300px;
        font-size: 0.9rem;
    }

    .status-row {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
    }

    .awkward-blog-link {
        right: -18px;
        top: 30%;
        font-size: 0.7rem;
    }

    .showcase-photo {
        max-height: 60vh;
    }

    .hero-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .snake-overlay {
        left: 6vw;
        top: 38vh;
    }

    .hotspot-music {
        left: 5vw;
        bottom: 18vh;
    }

    .hotspot-blog {
        left: 16vw;
        bottom: 10vh;
    }
}

@media (max-width: 600px) {
    .snake-overlay {
        left: 7vw;
        top: 42vh;
    }

    .hotspot-music {
        left: 6vw;
        bottom: 20vh;
    }

    .hotspot-blog {
        left: 18vw;
        bottom: 12vh;
    }
}
