/* Page styles for index.html (extracted from inline <style>) */
/* Bento Grid Styles */
.bento-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Radgotchi CSS loaded externally */

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
    gap: 1.5rem;
    position: relative;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

/* Bento Items - Dark Glass (deepdish style) */
.bento-item {
    --border-angle: 0deg;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 233, 253, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 800px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(139, 233, 253, 0.03);
}

/* Holographic shimmer overlay */
.bento-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        rgba(139, 233, 253, 0.03) 10%,
        transparent 20%,
        rgba(189, 147, 249, 0.03) 30%,
        transparent 40%,
        rgba(80, 250, 123, 0.03) 50%,
        transparent 60%
    );
    animation: rotateBorder 8s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Sweep light effect */
.bento-item::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -75%;
    width: 50%;
    height: 300%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 233, 253, 0.04) 45%,
        rgba(139, 233, 253, 0.08) 50%,
        rgba(139, 233, 253, 0.04) 55%,
        transparent 100%
    );
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-item:hover::after {
    left: 125%;
}

.bento-item:hover {
    border-color: rgba(139, 233, 253, 0.5);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 233, 253, 0.15),
        0 0 80px rgba(139, 233, 253, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 30px rgba(139, 233, 253, 0.05);
}

.bento-item:hover::before {
    opacity: 1;
}



/* Featured sizes */
.bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

/* Bento Image */
.bento-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    z-index: 3;
    background: transparent;
}

/* CRT scanline overlay - covers entire card */
.bento-item .crt-overlay {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 20;
    opacity: 0.55;
    transition: opacity 0.4s ease;
    mix-blend-mode: multiply;
    border-radius: 16px;
    animation: crtFlicker 4s ease-in-out infinite;
}

.bento-item:hover .crt-overlay {
    opacity: 0.25;
}

/* CRT vignette + edge glow - covers entire card */
.bento-item .crt-vignette {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
    z-index: 21;
    opacity: 0.65;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.bento-item:hover .crt-vignette {
    opacity: 0.35;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 233, 253, 0.02) 20%,
        transparent 45%,
        rgba(0, 0, 0, 0.18) 75%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.bento-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.05) saturate(0.9) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
    image-rendering: auto;
}

.bento-item:hover .bento-image img {
    filter: brightness(1.15) contrast(1.1) saturate(1.1) drop-shadow(0 4px 16px rgba(139, 233, 253, 0.25)) drop-shadow(0 0 8px rgba(139, 233, 253, 0.15));
    transform: scale(1.08) translateY(-2px);
}

/* CRT flicker animation */
@keyframes crtFlicker {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.5; }
    92% { opacity: 0.55; }
    93% { opacity: 0.35; }
    94% { opacity: 0.55; }
}

/* Bento Content */
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 4;
    text-align: center;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 0.25rem;
    text-transform: lowercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.bento-item:hover .bento-content h3 {
    color: #fff;
    text-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
}

.bento-content p {
    font-size: 0.7rem;
    color: #888;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.bento-item:hover .bento-content p {
    color: #aaa;
}

/* External link indicator */
.bento-item[target="_blank"] .bento-content::before {
    content: '↗';
    position: absolute;
    top: -85px;
    right: 8px;
    font-size: 0.8rem;
    color: rgba(139, 233, 253, 0.3);
    transition: all 0.3s;
}

.bento-item[target="_blank"]:hover .bento-content::before {
    color: #8be9fd;
    transform: translate(2px, -2px);
}

/* Scanline toggle button */
#scanlineToggle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
}

#scanlineToggle:hover {
    opacity: 0.1;
    background: #8be9fd;
}

/* Corner Brackets Border */
.corner-brackets {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

.corner-brackets::before,
.corner-brackets::after,
.corner-brackets .bottom::before,
.corner-brackets .bottom::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--bracket-color, rgba(139, 233, 253, 0.5));
    border-style: solid;
    border-width: 0;
    transition: top 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease, border-color 0.3s ease;
}

/* Top-left */
.corner-brackets::before {
    top: calc(15px - var(--scroll-expand, 0px));
    left: calc(15px - var(--scroll-expand, 0px));
    border-top-width: 2px;
    border-left-width: 2px;
}

/* Top-right */
.corner-brackets::after {
    top: calc(15px - var(--scroll-expand, 0px));
    right: calc(15px - var(--scroll-expand, 0px));
    border-top-width: 2px;
    border-right-width: 2px;
}

/* Bottom-left */
.corner-brackets .bottom::before {
    bottom: calc(15px - var(--scroll-expand, 0px));
    left: calc(15px - var(--scroll-expand, 0px));
    border-bottom-width: 2px;
    border-left-width: 2px;
}

/* Bottom-right */
.corner-brackets .bottom::after {
    bottom: calc(15px - var(--scroll-expand, 0px));
    right: calc(15px - var(--scroll-expand, 0px));
    border-bottom-width: 2px;
    border-right-width: 2px;
}



/* Glow layer that appears on tilt */
.bento-item .tilt-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.bento-item:hover .tilt-glow {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
    
    /* Ensure transparency on mobile */
    .bento-item {
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }
    
    /* Reduce 3D effect on mobile for performance */
    .bento-item .bento-image {
        transform: translateZ(20px);
    }
    .bento-item:hover .bento-image {
        transform: translateZ(30px);
    }
    .ocs-circle {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 500px) {
    .ocs-circle {
        width: 55px !important;
        height: 55px !important;
    }
    
    .bento-item {
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
}

@media (max-width: 500px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 140px;
    }
}

/* Hologram Hero Image Effects */
.hologram-container {
    position: relative;
    display: inline-block;
    max-width: 200px;
    overflow: visible;
    /* Feathered edge mask - fades out at edges */
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
}

.hologram-image {
    max-width: 200px;
    height: auto;
    filter: 
        contrast(1.1) 
        saturate(1.2);
    animation: hologramPhase 4s ease-in-out infinite, hologramGlitch 8s step-end infinite;
    image-rendering: pixelated;
}

/* Chromatic aberration layers */
.hologram-container::before,
.hologram-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    pointer-events: none;
}

.hologram-container::before {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(-30deg) saturate(1.5);
    animation: chromaShiftRed 3s ease-in-out infinite;
}

.hologram-container::after {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(30deg) saturate(1.5);
    animation: chromaShiftBlue 3s ease-in-out infinite reverse;
}

/* Dense CRT scanlines */
.hologram-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.4) 1px,
        rgba(0, 0, 0, 0.4) 2px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 0.1s linear infinite;
}

/* Flicker overlay */
.hologram-flicker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 233, 253, 0.03);
    pointer-events: none;
    z-index: 11;
    animation: hologramFlicker 0.15s infinite;
    mix-blend-mode: overlay;
}

/* Dithering noise overlay */
.hologram-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    animation: noiseShift 0.5s steps(10) infinite;
}

/* Hologram phasing animation */
@keyframes hologramPhase {
    0%, 100% {
        opacity: 0.95;
        transform: scale(1) translateY(0);
        filter: contrast(1.1) saturate(1.2) brightness(1);
    }
    25% {
        opacity: 0.85;
        transform: scale(1.01) translateY(-1px);
        filter: contrast(1.2) saturate(1.4) brightness(1.1);
    }
    50% {
        opacity: 0.9;
        transform: scale(0.99) translateY(1px);
        filter: contrast(1.15) saturate(1.3) brightness(0.95);
    }
    75% {
        opacity: 1;
        transform: scale(1.005) translateY(-0.5px);
        filter: contrast(1.25) saturate(1.5) brightness(1.15);
    }
}

/* Glitch effect */
@keyframes hologramGlitch {
    0%, 95%, 100% { 
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    96% { 
        clip-path: inset(20% 0 30% 0);
        transform: translate(-3px, 0);
    }
    97% { 
        clip-path: inset(50% 0 10% 0);
        transform: translate(3px, 0);
    }
    98% { 
        clip-path: inset(10% 0 60% 0);
        transform: translate(-2px, 0);
    }
    99% { 
        clip-path: inset(40% 0 20% 0);
        transform: translate(2px, 0);
    }
}

/* Chromatic aberration shifts */
@keyframes chromaShiftRed {
    0%, 100% { transform: translate(-1px, 0); }
    50% { transform: translate(-2px, 1px); }
}

@keyframes chromaShiftBlue {
    0%, 100% { transform: translate(1px, 0); }
    50% { transform: translate(2px, -1px); }
}

/* Scanline movement */
@keyframes scanlineMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* Flicker effect */
@keyframes hologramFlicker {
    0%, 100% { opacity: 0.03; }
    10% { opacity: 0.08; }
    20% { opacity: 0.02; }
    30% { opacity: 0.1; }
    40% { opacity: 0.04; }
    50% { opacity: 0.15; }
    60% { opacity: 0.05; }
    70% { opacity: 0.12; }
    80% { opacity: 0.03; }
    90% { opacity: 0.08; }
}

/* Noise shift */
@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); }
    40% { transform: translate(5%, -5%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-3%, -3%); }
    80% { transform: translate(3%, 3%); }
    90% { transform: translate(-1%, 1%); }
    100% { transform: translate(0, 0); }
}

/* Hover intensifies the effect */
.hologram-container:hover .hologram-image {
    animation: hologramPhaseIntense 2s ease-in-out infinite, hologramGlitchIntense 3s step-end infinite;
    filter: contrast(1.3) saturate(1.6) brightness(1.2);
}

.hologram-container:hover .hologram-noise {
    opacity: 0.25;
}

.hologram-container:hover .hologram-flicker {
    animation: hologramFlickerIntense 0.08s infinite;
}

@keyframes hologramPhaseIntense {
    0%, 100% { opacity: 1; transform: scale(1); }
    25% { opacity: 0.7; transform: scale(1.02) translateX(-2px); }
    50% { opacity: 0.9; transform: scale(0.98) translateX(2px); }
    75% { opacity: 0.8; transform: scale(1.01) translateY(-2px); }
}

@keyframes hologramGlitchIntense {
    0%, 90%, 100% { 
        clip-path: inset(0 0 0 0);
    }
    91% { clip-path: inset(30% 0 20% 0); transform: translate(-4px, 0); }
    92% { clip-path: inset(10% 0 50% 0); transform: translate(4px, 0); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); }
    94% { clip-path: inset(20% 0 40% 0); transform: translate(3px, 0); }
    95% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
    96% { clip-path: inset(15% 0 55% 0); transform: translate(2px, 0); }
    97% { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 0); }
    98% { clip-path: inset(25% 0 45% 0); transform: translate(3px, 0); }
    99% { clip-path: inset(35% 0 35% 0); transform: translate(-1px, 0); }
}

@keyframes hologramFlickerIntense {
    0%, 100% { opacity: 0.1; background: rgba(139, 233, 253, 0.05); }
    25% { opacity: 0.2; background: rgba(255, 100, 100, 0.05); }
    50% { opacity: 0.05; background: rgba(100, 255, 100, 0.05); }
    75% { opacity: 0.25; background: rgba(139, 233, 253, 0.08); }
}

/* Install Banner */
.install-banner {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 233, 253, 0.35);
    padding: 0.6rem 1rem;
    margin: 0.5rem auto;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2), inset 0 0 30px rgba(139, 233, 253, 0.05);
    animation: install-pulse 2s ease-in-out infinite;
    border-radius: 16px;
}
@keyframes install-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 233, 253, 0.2), inset 0 0 30px rgba(139, 233, 253, 0.05); border-color: rgba(139, 233, 253, 0.35); }
    50% { box-shadow: 0 0 25px rgba(139, 233, 253, 0.4), inset 0 0 40px rgba(139, 233, 253, 0.1); border-color: rgba(139, 233, 253, 0.6); }
}
.install-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.15), rgba(255, 255, 255, 0.05), rgba(139, 233, 253, 0.15), transparent);
    animation: install-shimmer 4s infinite;
    pointer-events: none;
}
@keyframes install-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.install-banner:hover {
    border-color: rgba(139, 233, 253, 0.6);
    box-shadow: 0 0 25px rgba(139, 233, 253, 0.35), inset 0 0 40px rgba(139, 233, 253, 0.1);
    transform: scale(1.01);
    animation: none;
}
.install-banner-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #8be9fd;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.6);
    animation: title-glow 1.5s ease-in-out infinite alternate;
}
@keyframes title-glow {
    0% { text-shadow: 0 0 5px rgba(139, 233, 253, 0.4); }
    100% { text-shadow: 0 0 12px rgba(139, 233, 253, 0.8), 0 0 20px rgba(139, 233, 253, 0.4); }
}
.install-commands-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    overflow: hidden;
}
.install-tabs {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 2;
    align-self: stretch;
}
.install-tab {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    color: rgba(139, 233, 253, 0.5);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.15);
    border-bottom: none;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}
.install-tab:hover {
    color: rgba(139, 233, 253, 0.8);
    background: rgba(0, 0, 0, 0.4);
}
.install-tab.active {
    color: #8be9fd;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 233, 253, 0.25);
}
.install-command {
    flex: 1;
    align-self: stretch;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 233, 253, 0.25);
    padding: 0.35rem 0.6rem;
    padding-right: 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: #8be9fd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    margin-top: -1px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.install-command:hover {
    background: rgba(139, 233, 253, 0.12);
    border-color: rgba(139, 233, 253, 0.5);
    box-shadow: 0 0 12px rgba(139, 233, 253, 0.25);
    color: #b4f8c3;
}
.install-command::after {
    content: '📋';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.install-command:hover::after { opacity: 1; }
.install-command.copied { border-color: #50fa7b !important; background: rgba(80, 250, 123, 0.15) !important; }
.install-command.copied::after { content: '✓'; opacity: 1; }
.install-command[hidden] { display: none; }
.install-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(139, 233, 253, 0.5);
    background: rgba(0, 0, 0, 0.5);
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}
.install-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.2), transparent);
    animation: link-shimmer 3s infinite;
    pointer-events: none;
}
@keyframes link-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.install-link:hover {
    background: rgba(139, 233, 253, 0.2);
    border-color: #8be9fd;
    color: #b4f8c3;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.35);
}
.install-link svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 600px) {
    .install-banner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.5rem 0.6rem;
        max-width: 100%;
        border-radius: 16px;
    }
    .install-banner > div:first-child {
        margin-bottom: 0.1rem;
    }
    .install-banner .radgotchi-face {
        width: 60px !important;
        height: auto !important;
    }
    #radgotchi-container {
        flex: 0 0 70px;
    }
    .install-commands-area {
        flex: 1;
        min-width: 150px;
    }
    .install-link {
        flex: 1;
        justify-content: center;
    }
    .install-banner > div:first-child > div {
        font-size: 0.65rem !important;
        letter-spacing: 0.15em !important;
    }
}

/* Staggered entrance animations */
.bento-item {
    opacity: 0;
}
.bento-item.visible {
    animation: bentoReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}
@keyframes bentoReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Touch feedback on mobile */
@media (hover: none) and (pointer: coarse) {
    .bento-item:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
        border-color: rgba(139, 233, 253, 0.5);
    }
}

/* ---------- #5 Glass refraction layer ----------
   A dedicated layer with backdrop-filter that gets an SVG
   displacement map on hover. Falls back gracefully if the
   browser doesn't support backdrop-filter: url(). */
.bento-refract {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(0px) saturate(110%);
    -webkit-backdrop-filter: blur(0px) saturate(110%);
    transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
@supports (backdrop-filter: url(#bento-refract)) or (-webkit-backdrop-filter: url(#bento-refract)) {
    .bento-item:hover .bento-refract {
        opacity: 1;
        backdrop-filter: blur(2px) saturate(140%) url(#bento-refract);
        -webkit-backdrop-filter: blur(2px) saturate(140%) url(#bento-refract);
    }
}
/* Mobile / touch devices: hover never fires, and the always-on
   backdrop-filter on this layer can paint over card images on
   iOS Safari (preserve-3d + backdrop-filter stacking bug).
   Disable the layer entirely on hover-less devices. */
@media (hover: none), (max-width: 768px) {
    .bento-refract {
        display: none !important;
    }
}

/* ---------- #6 Parallax depth layers ----------
   The image, content, and a specular highlight move
   independently for a real-feeling 3D effect. */
.bento-item .bento-image,
.bento-item .bento-content {
    will-change: transform;
}
.bento-item .spec-highlight {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s ease;
    mix-blend-mode: screen;
}
.bento-item:hover .spec-highlight {
    opacity: 1;
}

/* ---------- #11 Idle shuffle glitch ---------- */
.bento-grid.idle-pulse::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(139, 233, 253, 0.15);
    border-radius: 20px;
    pointer-events: none;
    animation: idleFrame 2s ease-in-out infinite;
    z-index: -1;
}
@keyframes idleFrame {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.005); }
}
.bento-item.shuffle-out {
    animation: shuffleGlitchOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.bento-item.shuffle-in {
    animation: shuffleGlitchIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes shuffleGlitchOut {
    0%   { clip-path: inset(0 0 0 0); filter: none; transform: translate(0,0); }
    20%  { clip-path: inset(10% 0 40% 0); filter: hue-rotate(40deg) saturate(1.5); transform: translate(-4px, 2px); }
    40%  { clip-path: inset(45% 0 5% 0); filter: hue-rotate(-30deg) saturate(2); transform: translate(5px, -3px); }
    60%  { clip-path: inset(20% 0 60% 0); filter: hue-rotate(80deg) brightness(1.3); transform: translate(-3px, 4px); }
    80%  { clip-path: inset(0 0 80% 0); filter: brightness(1.6); transform: translate(2px, 0); opacity: 0.6; }
    100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: translate(0, 0); }
}
@keyframes shuffleGlitchIn {
    0%   { clip-path: inset(100% 0 0 0); opacity: 0; transform: translate(0, 0); filter: brightness(1.6); }
    25%  { clip-path: inset(60% 0 0 0); opacity: 0.8; transform: translate(-4px, 2px); filter: hue-rotate(-60deg) saturate(1.8); }
    50%  { clip-path: inset(20% 0 30% 0); opacity: 1; transform: translate(5px, -2px); filter: hue-rotate(40deg) saturate(1.4); }
    75%  { clip-path: inset(5% 0 60% 0); transform: translate(-2px, 3px); filter: hue-rotate(-20deg); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bento-item.shuffle-out,
    .bento-item.shuffle-in { animation: none !important; }
    .bento-grid.idle-pulse::before { animation: none; }
}

/* ---------- CRT boot sequence ----------
   Black overlay covers the page on first load, runs a CRT
   power-on (horizontal scanline + boot log), then fades out.
   Skipped on revisit via sessionStorage. */
#boot-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: #8be9fd;
    cursor: pointer;
}
#boot-overlay.gone {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
/* CRT horizontal scanline: thin bar expands, then collapses to a dot */
#boot-overlay .crt-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 233, 253, 0.2) 10%,
        #8be9fd 50%,
        rgba(139, 233, 253, 0.2) 90%,
        transparent 100%);
    box-shadow: 0 0 20px #8be9fd, 0 0 40px rgba(139, 233, 253, 0.6);
    transform: translateY(-50%) scaleX(0);
    transform-origin: center;
    animation: bootBar 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes bootBar {
    0%   { transform: translateY(-50%) scaleX(0); height: 2px; opacity: 1; }
    30%  { transform: translateY(-50%) scaleX(1); height: 2px; opacity: 1; }
    55%  { transform: translateY(-50%) scaleX(1); height: 100vh; opacity: 0.85; }
    75%  { transform: translateY(-50%) scaleX(1); height: 100vh; opacity: 0.6; }
    90%  { transform: translateY(-50%) scaleX(0.4); height: 2px; opacity: 0.9; }
    100% { transform: translateY(-50%) scaleX(0); height: 2px; opacity: 0; }
}
/* Final pinpoint dot collapse */
#boot-overlay .crt-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 0 12px #8be9fd, 0 0 24px #8be9fd;
    animation: bootDot 0.5s ease-out 1.4s forwards;
}
@keyframes bootDot {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    40%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
/* Boot log lines (typed in via JS) */
#boot-overlay .crt-log {
    position: absolute;
    left: 50%;
    top: calc(50% + 40px);
    transform: translateX(-50%);
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.7);
    white-space: pre;
    min-width: min(80vw, 360px);
    opacity: 0;
    animation: bootLogFade 0.3s ease 0.35s forwards;
}
@keyframes bootLogFade { to { opacity: 1; } }
#boot-overlay .crt-log .line { display: block; }
#boot-overlay .crt-log .ok { color: #50fa7b; text-shadow: 0 0 8px rgba(80, 250, 123, 0.7); margin-left: 0.4em; }
#boot-overlay .crt-cursor {
    display: inline-block;
    width: 0.55em;
    background: #8be9fd;
    color: #000;
    animation: bootCaret 0.6s steps(2) infinite;
}
@keyframes bootCaret {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}
/* CRT scanlines over the whole boot overlay */
#boot-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(139, 233, 253, 0.05) 2px,
        rgba(139, 233, 253, 0.05) 3px
    );
    pointer-events: none;
}
/* Subtle vignette so the bar feels like a tube */
#boot-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}
#boot-skip {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 0.6rem;
    color: rgba(139, 233, 253, 0.5);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    animation: bootLogFade 0.3s ease 1.2s forwards;
}
@media (prefers-reduced-motion: reduce) {
    #boot-overlay { display: none !important; }
}
