/* Global layout */
:root {
    --bg-night: #050813;
    --bg-night-deep: #020309;
    --primary: #ff4b3a;
    --primary-glow: #ff8a4a;
    --accent: #ffdd7c;
    --text-main: #f5f7ff;
    --text-muted: #9ea3c7;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 10% -10%, #1b2140 0, transparent 50%),
        radial-gradient(circle at 90% -10%, #301830 0, transparent 50%),
        linear-gradient(to bottom, var(--bg-night), var(--bg-night-deep));
    min-height: 100vh;
    overflow: hidden;
}

main {
    position: relative;
    height: 100vh;
    z-index: 1;
}

.slide {
    height: 100%;
    min-height: 0;
    padding: 2rem 0 2rem;
}

/* Video background */

.video-bg {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.video-bg-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #000;
    filter: brightness(0.45) saturate(1.2);
}

/* Header & layout */

.site-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

.slides-viewport {
    margin-top: 1.6rem;
    overflow: visible;
    height: calc(100vh - 6.5rem);
}

.slides-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.slides-track>.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.slide-inner {
    width: 100%;
    max-width: 1150px;
    margin: 0 0.7rem;
    border-radius: 1.6rem;
    background: rgba(6, 9, 24, 0.98);
    border: 1px solid rgba(104, 114, 186, 0.8);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    padding: 2.6rem 1.8rem 2.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#mycology .slide-inner,
#contact .slide-inner,
#blog .slide-inner,
#portfolio .slide-inner,
#intro .slide-inner {
    padding-bottom: 0.8rem;
}

#links .slide-inner {
    padding-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
}

#links .grid-2 {
    flex: 1;
    grid-template-rows: max-content 1fr;
}

#links .card.card-wide {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.8rem;
}

#links .card.card-wide .embed-frame {
    flex: 1;
    max-height: none;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .slides-viewport {
        height: calc(100vh - 5.5rem);
    }

    .slide-inner {
        margin: 0 0.6rem;
        border-radius: 1.2rem;
        padding: 1.8rem 1.2rem 2rem;
    }
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(7, 10, 25, 0.82);
    border-radius: 999px;
    border: 1px solid rgba(114, 122, 180, 0.3);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0.5rem;
    z-index: 10;
    margin-bottom: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 30% 70% 65% 35%;
    background: radial-gradient(circle at 20% 10%, var(--primary-glow), var(--primary));
    box-shadow: 0 0 18px rgba(255, 92, 52, 0.8);
}

.brand-text-main {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.brand-text-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
}

.nav-pill-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #070911;
    font-weight: 500;
    box-shadow: 0 0 16px rgba(255, 88, 40, 0.7);
}

/* Hero */


.hero .slide-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    gap: 3rem;
}

.hero-copy-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 13, 35, 0.86);
    border: 1px solid rgba(96, 105, 170, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.hero-copy-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--primary-glow), var(--primary));
    box-shadow: 0 0 12px rgba(255, 92, 52, 0.8);
}

.hero-title {
    margin-top: 1.4rem;
    font-size: clamp(2.4rem, 3vw + 1.6rem, 3.3rem);
    line-height: 1.06;
}

.hero-title span.highlight {
    color: var(--accent);
}

.hero-subtitle {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 32rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.9rem;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button-primary {
    background: radial-gradient(circle at 0% 0%, #ffd1a1, var(--primary));
    color: #050408;
    box-shadow: 0 0 18px rgba(255, 92, 52, 0.8);
}

.button-secondary {
    background: rgba(12, 18, 40, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(115, 124, 190, 0.6);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.hero-metadata {
    margin-top: auto;
    padding-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-metadata strong {
    color: var(--accent);
    font-weight: 500;
}


.hero-panel {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding: 1.4rem 1.4rem 1.8rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle at 0% 0%, rgba(255, 210, 147, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(12, 16, 36, 0.98), rgba(6, 9, 22, 0.98));
    border: 1px solid rgba(113, 123, 190, 0.65);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
}

.hero-panel-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
}

.hero-panel-ident {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(8, 10, 26, 0.9), 0 0 14px rgba(255, 126, 86, 0.9);
}

.hero-panel-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.chip {
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    background: rgba(10, 16, 42, 0.9);
    border: 1px solid rgba(108, 117, 184, 0.9);
    color: var(--text-muted);
}

.chip-hot {
    background: rgba(255, 92, 52, 0.12);
    border-color: rgba(255, 133, 96, 0.9);
    color: var(--primary-glow);
}

.hero-panel-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(112, 121, 190, 0.8), transparent);
    margin: 1.1rem 0 0.9rem;
}

.hero-panel-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    font-size: 0.75rem;
}

.hero-panel-meta span.label {
    color: var(--text-muted);
}

.hero-panel-meta span.value {
    color: var(--accent);
}

.hero-panel-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.hero-panel-footer {
    margin-top: auto;
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-panel-footer span.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #78ffb2, #12d88a);
    box-shadow: 0 0 10px rgba(18, 216, 138, 0.9);
    margin-right: 0.45rem;
}

/* Sections */

.section {
    margin-top: 0;
}

.section[data-hidden="true"] {
    display: none;
}

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

.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

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

.section-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

.card-wide {
    grid-column: 1 / -1;
}

.card {
    padding: 1.2rem;
    border-radius: 1rem;
    background: rgba(6, 9, 22, 0.96);
    border: 1px solid rgba(99, 109, 180, 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mycology .card {
    flex: 1;
    min-height: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 0;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-body {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
}

#links .card.card-wide {
    display: flex;
    flex-direction: column;
}

/* Portfolio GitHub embed */

#portfolio .grid-2 {
    flex: 1;
    min-height: 0;
    grid-template-rows: max-content 1fr;
}

#portfolio .card.card-wide {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
}

#portfolio .github-pinner {
    margin-top: 0.7rem;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.gh-event {
    padding: 0.8rem;
    border-radius: 0.8rem;
    background: rgba(5, 9, 24, 0.9);
    border: 1px dashed rgba(114, 124, 188, 0.4);
    font-size: 0.85rem;
}

.gh-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.gh-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(10, 16, 42, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: var(--text-main);
}

.gh-repo {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.gh-repo:hover {
    text-decoration: underline;
}

.gh-time {
    margin-left: auto;
    font-size: 0.75rem;
}

.gh-commit {
    margin-top: 0.6rem;
    color: var(--text-main);
    line-height: 1.4;
}

.gh-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem;
    text-align: center;
    border: 1px dashed rgba(114, 124, 188, 0.4);
    border-radius: 0.8rem;
}

#contact .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 0;
}

.contact-times {
    margin-top: 0.8rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.8rem;
    background: radial-gradient(circle at 0% 0%, rgba(255, 140, 92, 0.16), rgba(5, 8, 22, 0.96));
    border: 1px solid rgba(112, 122, 188, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
}

.contact-time-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.contact-time-label {
    color: var(--text-muted);
}

.contact-time-value {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.contact-form {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.contact-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-input {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(104, 114, 186, 0.8);
    background: rgba(5, 8, 22, 0.96);
    color: var(--text-main);
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    flex: 1;
    min-height: 70px;
}

.contact-input:focus-visible {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 1px rgba(255, 138, 74, 0.5);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.contact-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-list {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.card-list li+li {
    margin-top: 0.2rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.pill-link {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(112, 122, 188, 0.8);
    color: var(--text-main);
    text-decoration: none;
    background: rgba(9, 13, 32, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pill-link:hover,
.pill-link:focus-visible {
    border-color: var(--primary-glow);
    color: var(--accent);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.blog-entry {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(5, 9, 24, 0.9);
    border: 1px dashed rgba(114, 124, 188, 0.6);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-entry-title {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.blog-entry-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.blog-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(114, 124, 188, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* MOTD Card (Glassmorphism) */

.motd-card {
    margin-top: 1rem;
    padding: 1.2rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.motd-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.motd-body {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Embeds */

.embed-frame {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #000;
    margin-top: 0.8rem;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 260px;
}

.embed-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.embed-16x9 {
    height: auto;
}

/* Wallet QR */

#support .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wallet-address-box {
    margin-top: 1.2rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(104, 114, 186, 0.5);
    border-radius: 0.8rem;
    font-family: monospace;
    font-size: 0.85rem;
    word-wrap: break-word;
    text-align: center;
    color: #e4e7ff;
    letter-spacing: 0.5px;
}

.wallet-qr-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
}

.wallet-qr-container img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    border: 2px solid rgba(255, 140, 92, 0.4);
    background: #fff;
    padding: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.wallet-qr-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 400px;
    line-height: 1.4;
}

/* Mycology image carousel */

.myco-carousel {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    min-height: 0;
}

.myco-carousel-window {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(255, 140, 92, 0.13), rgba(5, 8, 22, 0.98));
    margin-top: 0.8rem;
    flex: 1;
    min-height: 0;
    height: 400px;
    display: flex;
    align-items: center;
}

.myco-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.myco-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.myco-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.myco-slide-caption {
    position: absolute;
    left: 0.9rem;
    bottom: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(5, 6, 14, 0.82);
    border: 1px solid rgba(203, 210, 255, 0.4);
    font-size: 0.72rem;
}

.myco-carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.myco-arrow {
    border-radius: 999px;
    border: 1px solid rgba(113, 123, 190, 0.7);
    background: rgba(9, 13, 30, 0.96);
    color: var(--text-main);
    padding: 0.25rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.myco-dots {
    display: flex;
    gap: 0.35rem;
}

.myco-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(121, 129, 193, 0.6);
}

.myco-dot.is-active {
    background: var(--primary-glow);
}

.myco-carousel-note {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Myco Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-glow);
}

/* Music widget */

.music-widget {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 20;
}



.music-card {
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, rgba(255, 150, 115, 0.2), rgba(5, 8, 20, 0.96));
    border: 1px solid rgba(116, 124, 190, 0.7);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9);
    width: 320px;
    max-width: calc(100vw - 2rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-wave {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.music-bar {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    height: 10px;
    opacity: 0.3;
    transform-origin: bottom;
}

.music-meta {
    flex: 1 1 100px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.music-title {
    font-size: 0.8rem;
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 12s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.music-volume {
    flex-shrink: 0;

    width: 50px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.music-skip {
    flex-shrink: 0;

    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-skip:hover {
    color: var(--text-main);
}

.music-volume {
    flex-shrink: 0;

    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.music-skip {
    flex-shrink: 0;

    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-skip:hover {
    color: var(--text-main);
}

.music-toggle {
    flex-shrink: 0;

    border-radius: 999px;
    border: none;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    background: rgba(10, 16, 38, 0.95);
    color: var(--text-main);
    border: 1px solid rgba(119, 128, 194, 0.8);
    cursor: pointer;
}

.music-toggle[data-state="playing"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #04040a;
    border-color: transparent;
}

.music-player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    opacity: 1;
    clip-path: inset(100%);
    pointer-events: none;
    z-index: -999;
}

#music-player {
    width: 100%;
    height: 100%;
    border: none;
    border: 0;
}

/* Background view toggle */

.bg-toggle-wrapper {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    z-index: 30;
}

.bg-toggle {
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 130, 198, 0.6);
    background: radial-gradient(circle at 0% 0%, rgba(255, 210, 147, 0.2), rgba(7, 9, 22, 0.96));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-toggle::before {
    content: '';
    position: absolute;
    inset: 32%;
    border-radius: inherit;
    border: 2px solid rgba(228, 189, 255, 0.85);
}

.bg-toggle-wrapper:hover .bg-toggle {
    opacity: 1;
}

.bg-toggle:focus-visible {
    opacity: 1;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body.bg-viewing .slides-viewport,
body.bg-viewing .site-footer,
body.bg-viewing .site-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    padding: 1rem 0 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(114, 122, 180, 0.3);
}

.site-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

/* Responsiveness */

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    main {
        height: auto;
        overflow-y: visible;
    }

    .site-header {
        padding-inline: 0.85rem;
        top: 0.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-block: 0.75rem;
        border-radius: 1.2rem;
    }

    .brand {
        justify-content: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0.25rem;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .slides-viewport {
        height: auto;
        margin-top: 0.5rem;
    }

    .slides-track {
        flex-direction: column;
        transform: none;
        gap: 0.75rem;
    }

    .slide {
        height: auto;
        min-height: auto;
        padding: 0.5rem 0;
    }

    .hero .slide-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        order: -1;
        margin-top: 0;
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .music-card {
        min-width: 0;
    }

    .wallet-qr-container img {
        max-width: 220px;
    }
}

/* Improve scrolling and spacing for better readability */
@media (min-width: 769px) {
    .site-shell {
        padding: 1rem 1.5rem 2rem;
    }

    .slide-inner {
        padding: 2rem 2rem;
    }

    .hero {
        min-height: auto;
    }
}

/* Ensure cards have consistent height */
.card .link-row {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* Fix for GitHub embed container */
.github-pinner {
    width: 100%;
    min-height: 200px;
}

/* Make sure all interactive elements have proper spacing */
.button,
.pill-link,
.myco-arrow,
.music-toggle {
    flex-shrink: 0;

    cursor: pointer;
}

/* Ensure content doesn't overflow on small screens */
img,
iframe,
video {
    max-width: 100%;
    height: auto;
}
