*, *::before, *::after {
            box-sizing: border-box;
        }

        @font-face {
            font-family: "diva";
            src: url('https://file.garden/Z3nf4eZzZUtRPfhK/2z4hnk.ttf');
        }
    
        /* colors */
        :root {
            --teal: #39C5BB;       
            --teal-light: #d8f5f3; 
            --teal-dark: #2a968e;  
            --magenta: #E4007F;    
            --magenta-light: #fcd9ec; 
            --dark-grey: #333333;  
            --light-grey: #e0e0e0;
            --white: #f5fbff;
        }

        /* colors but dark mode */
        body.dark-mode {
            --teal-light: #0d2827; 
            --white: #121212;
            --dark-grey: #e0e0e0;
            --light-grey: #222222;
        }

        /* global styles */
        html, body {
            overflow-anchor: none;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'diva', 'DotGothic16', monospace;
            background-color: var(--teal-light);
            background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
            background-size: 20px 20px;
            color: var(--dark-grey);
            margin: 0;
            padding: 40px 20px 20px 20px;
            font-size: 14px;
            transition: background-color 0.3s, color 0.3s;
        }

        a { 
            color: var(--magenta); 
            text-decoration: none; 
            transition: color 0.2s ease, text-shadow 0.2s ease;
        }
        a:hover { 
            color: var(--teal-dark); 
            text-decoration: underline; 
            text-decoration-style: dashed;
            text-shadow: 1px 1px 0px rgba(57, 197, 187, 0.4);
        }
        
        a:has(img) {
            text-decoration: none;
            display: inline-block;
            transition: transform 0.2s ease;
        }
        a:has(img):hover {
            text-decoration: none;
            transform: scale(1.02) translateY(-2px);
        }

        ::-webkit-scrollbar { width: 12px; height: 12px; }
        ::-webkit-scrollbar-track { background: var(--white); border-left: 1px solid var(--teal); }
        ::-webkit-scrollbar-thumb { background: var(--teal); border: 1px solid var(--teal-dark); }
        ::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

        /* grid */
.wrapper {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--teal-dark);
    padding: 10px;
    box-shadow: 5px 5px 0px var(--magenta);
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

        /* da overlays */
        .deco-overlay {
            position: absolute;
            pointer-events: none;
            z-index: 50; 
        }
        .deco-top-left {
            top: -10px;
            left: -92px;
            width: 99px;
            height: auto;
        }
        .deco-bottom-right {
            bottom: 18px;
            right: -53px;
            width: 190px;
            height: auto;
            -moz-transform: rotate(11deg);
            -webkit-transform: rotate(11deg);
            -o-transform: rotate(11deg);
            -ms-transform: rotate(11deg);
            transform: rotate(11deg);
        }
        
        .deco-top-right {
        	bottom: 344px;
            right: 274px;
            width: 140px;
            height: auto;
        }
        
        .deco-bottom-left {
        	top: 313px;
            right: 14px;
            width: 72px;
            height: auto;
        }
        
        .deco-rin {
        	bottom: 53px;
            left: 11px;
            width: 122px;
            height: auto;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            border-bottom: 2px dashed var(--teal);
            padding-bottom: 10px;
            position: relative;
            z-index: 10;
        }

        .header h1 {
            margin: 0;
            color: var(--teal);
            font-size: 32px;
            text-transform: uppercase;
            letter-spacing: -1px;
            text-shadow: 2px 2px 0px var(--light-grey);
        }

        .header-menu { display: flex; gap: 10px; align-items: center; }
        .badge { background: var(--teal); color: #fff; padding: 2px 10px; font-size: 12px; border: 1px solid var(--teal-dark); }

        .toggle-btn {
            background: var(--magenta); color: #fff; border: 1px solid var(--teal-dark);
            padding: 2px 8px; font-family: 'diva', monospace; font-size: 12px; cursor: pointer;
        }
        .toggle-btn:hover { background: var(--teal); }

       
        .main-grid {
            display: grid;
            grid-template-columns: 210px minmax(0, 1fr) 332px; 
            gap: 15px;
            align-items: stretch; 
            position: relative;
            z-index: 10;
        }
        
        .col-left, .col-center, .col-right { 
            display: flex; flex-direction: column; gap: 15px; min-width: 0; 
        }

        /* boxes */
        .box { border: 1px solid var(--teal); background: var(--white); display: flex; flex-direction: column; min-width: 0; }
        .box-header { background: var(--teal); color: #fff; padding: 3px 5px; font-size: 12px; text-transform: uppercase; display: flex; justify-content: space-between; }
        .box-header.magenta { background: var(--magenta); border-bottom: 1px solid var(--magenta); }
        .box-content { padding: 8px; flex-grow: 1; min-width: 0; }
        .scrollable { overflow-y: auto; overflow-x: hidden; }
        .nav-links ul { list-style: none; padding: 0; margin: 0; font-size: 1.1em; }
        .nav-links li { border-bottom: 1px dotted var(--teal); padding: 4px 0; }
        .nav-links li:before { content: "» "; color: var(--magenta); }
        .update-list { list-style: none; padding: 0; margin: 0; }
        .update-entry { border-top: 3px outset var(--magenta); padding-top: 6px; margin-top: 8px; }
        .update-entry strong { color: #0067a3; }
        .update-entry:first-child { border-top: none; margin-top: 0; padding-top: 0; }
        .stats-list div { padding: 3px 0; border-bottom: 1px dashed var(--light-grey); }
        .stats-list div:last-child { border-bottom: none; }
        .stats-list em { color: var(--teal-dark); font-style: normal; font-weight: bold; }

        /* carousel images */
        .carousel-container {
            width: 100%; height: 200px; background-color: var(--dark-grey);
            border: 1px solid var(--teal-dark); 
            position: relative; overflow: hidden;
        }
        .carousel-img { 
            position: absolute; top: 0; left: 0; 
            width: 100%; height: 100%; object-fit: 100% 110%; 
            opacity: 0; transition: opacity 1s ease-in-out; 
            pointer-events: none;
        }
        .carousel-img.active { opacity: 1; z-index: 2; }

        /* banners */
        #banner-img {
            transition: opacity 0.5s ease-in-out;
            width: 100%; height: 100%; object-fit: cover; display: block;
        }

        /* new music player */
        .miku-device-wrapper {
            display: flex;
            margin-right: 20px; 
            margin-bottom: 4px;
            border-radius: 8px;
            box-shadow: 4px 4px 0px var(--teal-dark);
            background: #145953;
            position: relative;
            z-index: 10;
            min-height: 230px;
            min-width: 0; 
        }

        .miku-device-casing {
            flex-grow: 1;
            background: var(--teal);
            border: 2px solid #145953;
            border-right: none;
            border-radius: 8px 0 0 8px;
            padding: 6px;
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: inset 2px 2px 4px rgba(255,255,255,0.4);
            min-width: 0; 
        }

        .miku-device-screen.phone-ui {
            flex-grow: 1;
            background-color: #000;
            background-image: url('https://file.garden/Z3nf4eZzZUtRPfhK/new%20top/miku%20rin%20len%20asagao%20minoru.jpg');
            background-size: cover;
            background-position: center 30%;
            border: 3px solid #111;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-width: 0; 
        }

        .phone-status-bar {
            display: flex;
            justify-content: space-between;
            padding: 2px 6px;
            font-size: 9px;
            color: #fff;
            background: rgba(0,0,0,0.5);
            font-family: Arial, sans-serif;
            z-index: 5;
        }

        .miku-screen-ui {
            position: relative;
            z-index: 2;
            padding: 6px;
            display: flex;
            flex-direction: column;
            height: 100%;
            gap: 6px;
            min-width: 0; 
            background: rgba(255, 255, 255, 0.15); 
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .miku-device-buttons {
            width: 18px;
            background: #145953;
            border: 2px solid #111;
            border-left: none;
            border-radius: 0 8px 8px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 10px 0;
            position: relative;
        }

        .btn-side {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-family: 'DotGothic16', monospace;
            font-size: 10px;
            border: 2px solid #111;
            cursor: pointer;
            padding: 8px 2px;
            margin: 3px 0;
            width: 24px;
            height: 50px;
            transform: translateX(8px); 
            box-shadow: inset 1px 1px 0px rgba(255,255,255,0.5), 2px 2px 0px rgba(0,0,0,0.6);
            border-radius: 2px;
            transition: transform 0.1s, box-shadow 0.1s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-side:active {
            transform: translateX(6px); 
            box-shadow: inset 1px 1px 0px rgba(255,255,255,0.5), 0px 0px 0px rgba(0,0,0,0.6);
        }

        .btn-side.pink { background: var(--magenta); color: #fff; }
        .btn-side.grey { background: #e0e0e0; color: #333; }
        .btn-side.power { margin-bottom: 14px; height: 35px; } 
        .btn-side.fn { margin-top: 14px; height: 35px; }

        .player-visual-window {
            width: 100%;
            height: 87px; 
            background: #000;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 6px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        }
        .player-visual-window img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.9;
        }

        .phone-now-playing .player-marquee { 
            color: #fff; 
            font-size: 13px; 
            font-weight: bold;
            white-space: nowrap; 
            overflow: hidden;
            font-family: 'DotGothic16', monospace;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
            min-width: 0;
            padding: 2px 0;
            position: relative;
        }

        #now-playing-text {
            display: inline-block;
            padding-left: 100%;
            animation: marquee-scroll 15s linear infinite;
        }

        @keyframes marquee-scroll {
            0%   { transform: translate(0, 0); }
            100% { transform: translate(-100%, 0); }
        }

        .phone-timeline {
            display: flex; align-items: center; gap: 8px; font-size: 10px;
            color: #fff; text-shadow: 1px 1px 1px #000;
            min-width: 0;
        }
        .phone-timeline span { font-family: monospace; font-weight: bold; flex-shrink: 0; }
        
        #seek-bar { 
            -webkit-appearance: none; 
            width: 100%; 
            background: rgba(255,255,255,0.3); 
            height: 4px;
            border-radius: 2px;
            min-width: 0; 
            outline: none;
            box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4);
        }
        #seek-bar::-webkit-slider-thumb {
            height: 10px; width: 10px; border-radius: 50%;
            background: #fff; 
            cursor: pointer; -webkit-appearance: none; 
            box-shadow: 0 0 4px rgba(0,0,0,0.6);
        }
        #seek-bar::-moz-range-track {
            width: 100%; height: 4px;
            background: rgba(255,255,255,0.3); border-radius: 2px;
            box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4);
        }
        #seek-bar::-moz-range-thumb {
            height: 10px; width: 10px; border-radius: 50%;
            background: #fff; border: none;
            cursor: pointer; box-shadow: 0 0 4px rgba(0,0,0,0.6);
        }

        .phone-playlist-app {
            flex-grow: 1;
            background: rgba(0, 0, 0, 0.65);
            border-radius: 6px;
            padding: 4px;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
        }

        .playlist-header {
            font-size: 9px;
            color: var(--teal);
            font-weight: bold;
            margin-bottom: 2px;
            padding-left: 2px;
            letter-spacing: 0.5px;
        }

        .smartphone-select {
            width: 100%;
            height: 99px;
            background: transparent;
            color: #fff;
            border: none;
            outline: none;
            font-family: 'DotGothic16', monospace;
            font-size: 11px;
            overflow-y: auto;
        }
        
        .smartphone-select option {
            padding: 4px;
            background: transparent;
            border-bottom: 1px dashed rgba(255,255,255,0.15);
            color: #d8f5f3;
        }

        .smartphone-select option:checked, .smartphone-select option:hover {
            background: rgba(57, 197, 187, 0.4);
            color: #fff;
            font-weight: bold;
        }

        .smartphone-select::-webkit-scrollbar { width: 4px; }
        .smartphone-select::-webkit-scrollbar-track { background: transparent; }
        .smartphone-select::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
        
        /* calendar */
        .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; background: var(--teal-light); padding: 2px;}
        
        #cal-month-year { 
            color: #0b6aa1; 
            width: 130px;
            text-align: center; 
        }
        
        .calendar-header button { background: none; border: 1px solid var(--teal); color: var(--dark-grey); cursor: pointer;}
        
        .calendar-grid { 
            display: grid; 
            grid-template-columns: repeat(7, 1fr); 
            grid-template-rows: 26px repeat(6, 26px);
            gap: 2px; 
            text-align: center; 
            font-size: 12px; 
        }
        
        .cal-day-name, .cal-day { 
            padding: 4px 0;
            display: flex; 
            align-items: center; 
            justify-content: center; 
        } 
        
        .cal-day-name { background: var(--teal); color: #fff; }
        .cal-day { border: 1px solid #e0e0e0; background: var(--white); }
        .cal-day.today { background: var(--magenta); color: #fff; font-weight: bold; border-color: var(--magenta); }
        .clock-display { text-align: center; font-size: 16px; font-weight: bold; color: var(--magenta); margin-bottom: 5px; border-bottom: 1px dotted var(--teal); padding-bottom: 5px;}

        /* buttons */
        .button-zone { text-align: center; }
        .button-zone img { image-rendering: pixelated; margin: 2px; max-width: 100%; }
        .btn-88x31 { width: 88px; height: 31px; }

        /* back to top button */
        #back-to-top {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background-color: rgba(228, 0, 127, 0.8);
            color: var(--white);
            border: 2px dashed var(--white);
            box-shadow: 2px 2px 0px var(--dark-grey);
            padding: 10px 15px;
            font-family: 'diva', 'DotGothic16', monospace;
            font-size: 14px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.2s;
            z-index: 9999;
        }

        #back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        #back-to-top:hover {
            background-color: var(--teal);
            transform: translateY(-2px);
        }

        /* footer */
        .footer { position: relative; z-index: 10; background: var(--teal); color: #012c45; text-align: center; padding: 8px; font-size: 1.1em; border: 1px solid var(--teal-dark); }
        .footer a { color: #00078f; font-weight: bold; }
        .footer a:hover { color: var(--white); background: #00078f; box-shadow: 2px 2px 0px var(--teal-light); text-decoration: none; }

        /* PET HER!!!! */
        #miku-pet-img { transition: transform 0.1s ease; cursor: pointer; }
        #miku-pet-img:active { transform: scale(0.85); }
        
        /* mobile friendly??? i tried, it looks ugly tho sorry */
        @media (max-width: 950px) {
            .main-grid {
                grid-template-columns: 1fr; 
            }

            .deco-overlay {
                display: none;
            }


            body {
                padding: 15px 10px;
            }

            .header {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 12px;
            }

            .header h1 {
                font-size: 26px;
            }
            .header span {
                font-size: 1em !important;
            }

            iframe {
                max-width: 100%;
            }

            #back-to-top {
                bottom: 15px;
                right: 15px;
                padding: 8px 12px;
                font-size: 12px;
            }
        }