/* ---------- Local Font Import START ---------- */
@font-face {
  font-family: 'BPDots';
  src: url('/font/BPdots.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Praktika';
  src: url('/font/Praktika-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Praktika';
  src: url('/font/Praktika-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/font/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/font/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Epunda Sans';
    src: url('/font/EpundaSans-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Epunda Sans';
    src: url('/font/EpundaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('/font/DancingScript-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 700;
}

/* ---------- Local Font Import END ---------- */

/* ---------- CSS Variables START ---------- */
:root {
    color-scheme: dark;

    --bg-main: #090909;
    --bg-sidebar: #121212;
    --bg-content: #161616;
    --stroke: #1c1826; 

    --text: #5a4f6a;
    --link: #7a6f9b;
    --link-underline: rgba(122, 111, 155, 0.4);
    --link-hover: #b7a7e0;
    --link-active: #d5c9ff;
    --title-shadow: rgba(90, 79, 106, 0.5);

    --content-panel: rgba(22, 22, 22, 0.5);
    --parallax-tint: #1c1826;
    --tint-blend: multiply;
    
    --bg-codebox: rgba(18, 18, 18, 0.85);
    --bg-codebox-hover: rgba(183, 167, 224, 0.9);
    --copy-btn-hover-bg: rgba(24, 24, 38, 0.3);
    --copy-btn-hover-text: #6f6390;

    --bg-mini-player: rgba(22, 22, 22, 0.55);

    /* Mobile Variables */
    --bg-menu-toggle: rgba(0, 0, 0, 0.35);
    --bg-menu-overlay: rgba(0, 0, 0, 0.45);

    /* AJAX */
    --panel-ms: 600ms;
    --fade-ms: 250ms;

    /* Font Variables */
    --font-title: 'BPDots', monospace;
    --font-nav: 'Praktika', sans-serif;
    --font-body: 'Epunda Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}
/* ---------- CSS Variables END ---------- */

/* ---------- Light Mode START ---------- */
html[data-theme="light"] {
    color-scheme: light;
    --bg-main: #9B9B9B;
    --bg-sidebar: #9E9E9E;
    --bg-content: #A0A0A0;
    --stroke: #5a4f6a;
    
    --text: #1c1826;
    --link: #4e3f66;
    --link-underline: rgba(78, 63, 102, 0.45);
    --link-hover: #3a2f50;
    --link-active: #271f39;
    --title-shadow: rgba(28, 24, 38, 0.25);

    --content-panel: rgba(255, 255, 255, 0.4);
    --parallax-tint: #9E9E9E;
    --tint-blend: multiply;

    --bg-codebox: rgba(255, 255, 255, 0.8);
    --bg-codebox-hover: rgba(255, 255, 255, 0.92);
    --copy-btn-hover-bg: rgba(90, 79, 106, 0.12);
    --copy-btn-hover-text: #3a2f50;

    --bg-mini-player: rgba(255, 255, 255, 0.4);
    
    /* Mobile Variables */
    --bg-menu-toggle: rgba(255, 255, 255, 0.35);
    --bg-menu-overlay: rgba(255, 255, 255, 0.45);

    /* Font Variables */
    --font-title: 'BPDots', monospace;
    --font-nav: 'Praktika', sans-serif;
    --font-body: 'Epunda Sans', sans-serif;
}
/* ---------- Light Mode END ---------- */

/* ---------- Reduced Motion START ---------- */
@media (prefers-reduced-motion: reduce) {
    :root { --panel-ms: 0ms; --fade-ms: 0ms; }
}
/* ---------- Reduced Motion END ---------- */

/* ---------- Main Structure START ---------- */
html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg-main);
    color: var(--text);
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.5;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
}

p {
    letter-spacing: 0.02rem;
    font-size: large;
}

hr {
    border: none;
    border-top: 2px solid var(--stroke);
    margin: 1rem 0;
}

.site-title {
    font-family: var(--font-title);
    text-transform: lowercase;
    text-shadow: var(--title-shadow);
}

.site {
    display: grid;
    place-items: center;
    height: 100vh;
}

.main-container {
    display: flex;
    width: 1280px;
    height: 720px;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--bg-content);
    border: 2px solid var(--stroke);
    box-sizing: border-box;
    overflow: hidden;
}
/* ---------- Main Structure END ---------- */

/* ---------- Sidebar Structure START ---------- */
.sidebar {
    position: relative;
    width: 25%;
    background: var(--bg-sidebar);
    border-right: 2px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    text-align: center;
}

.profile-img {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--stroke);
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.profile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile .site-title {
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 1px;
    text-align: center;
}

.profile hr {
    width: 80%;
}

.center-fix {
    position: relative;
    left: 0.075em;
}

.nav {
    font-family: var(--font-nav);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav li {
    margin: 0.9rem 0;
}

.nav a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    padding: 0 0.25em;
    transition: color 0.15s ease, transform 0.15s ease;
}

.nav a::before,
.nav a::after {
    content: "";
    opacity: 0;
    position: relative;
    color: var(--text);
    transition: transform 0.1s ease;
}

.nav a::before {
    content: "[";
    margin-right: 0.15em;
    transform: translateX(-0.25em);
}

.nav a::after {
    content: "]";
    margin-right: 0.15em;
    transform: translateX(0.25em);
}

.nav a:hover::before,
.nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.version {
    position: absolute;
    top: 16px;
    left: 10px;
    font-size: x-small;
    letter-spacing: .25em;
}

.version a{
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.version a:hover,
.version a:focus {
    color: var(--link-hover)
}

.version a:active {
    color: var(--link-active);
}

.theme-btn {
    display: inline-grid;
    place-items: center;
    position: absolute;
    right: 10px;
    top: 10px;
    margin-left: 10px;
    width: 24px;
    height: 24px;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    border: none;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}


.theme-btn:hover {
    outline: 1px solid var(--stroke);
}

/* ---------- Sidebar Structure END ---------- */

/* ---------- Content Structure START ---------- */

.content {
    position: relative;
    width: 75%;
    height: 100%;
    background: var(--bg-content);
    display: block;
    box-sizing: border-box;
    overflow: hidden;
}

.content-panel {
    position: absolute;
    inset: 0;
    background: var(--content-panel);
    backdrop-filter: blur(4px);
    transform-origin: left;
    transition: transform var(--panel-ms) cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    height: 100%;
    z-index: 10;
}

.content-panel.is-open {
    transform: scaleX(1);
}

.content-panel.is-closed {
    transform: scaleX(0);
    pointer-events: none;
}

.content-panel .inner {
    opacity: 1;
    transition: opacity var(--fade-ms) ease;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    color: var(--text);
}

.content-panel .inner.is-dim {
    opacity: 0;
}

.content>* {
    position: relative;
    z-index: 1;
}

.content a{
 color: var(--link);
 text-decoration: none;
 border-bottom: 1px dotted var(--link-underline);
 transition: color 0.2s ease, border-color 0.2s ease;   
}

.content a:hover,
.content a:focus {
    color: var(--link-hover);
}

.content a:active {
    color: var(--link-active);
}

/* Button Group */

.content .button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.content .button-group a {
    border-bottom: 0px;
}

/* Center Align Text Box */
.center-align {
    text-align: center;
}

/* Right Align Text Box */
.right-align {
    text-align: right;
}


.icon a{
    border-bottom: 0px;
}

/* Code Box */
#codebox {
    display: block;
    background: var(--bg-codebox);
    border: 1px solid var(--stroke);
    color: var(--text);
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: scroll;
    width: fit-content;
    max-width: 200px;
    max-height: 100px;
    margin: 1rem 0;
    transition: border-color 0.3s ease, background 0.3s ease;
}

#codebox:hover {
    border-color: var(--bg-codebox-hover)
}

#codebox code {
    color: var(--bg-codebox-hover);
}

pre {
    background: var(--bg-codebox);
    border: 1px solid var(--stroke);
    border-radius: 6px;
    overflow-x: auto;
    padding: 10px;
}

.copy-btn {
    background: none;
    border: 1px solid var(--stroke);
    color: var(--text);
    font-size: 0.75rem;
    text-transform: lowercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--copy-btn-hover-text);
    border-color: var(--bg-codebox-hover);
    background: var(--copy-btn-hover-bg);
}

.content .no-link-underline a {
    text-decoration: none;
    border-bottom: 0px;
}

/* ---------- Content Structure END ---------- */

/* ---------- Parallax Background START ---------- */

.parallax {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.layer { /*Governs each layer of the parallax */
    position: absolute;
    width: 400%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 25% 100%;
    animation: slide linear infinite;
}

.sky  { bottom: 0; background-image: url("/img/layers/7_sky.webp"); animation-duration: 160s; opacity: 0.8; }
.bg2  { bottom: 0; background-image: url("/img/layers/6_background2_new.webp"); animation-duration: 120s; opacity: 0.85; }
.bg1  { bottom: 0; background-image: url("/img/layers/5_background_new.webp"); animation-duration: 90s;  opacity: 0.9; }
.mid3 { bottom: 0; background-image: url("/img/layers/4_midground3.webp"); animation-duration: 60s;  opacity: 0.95; }
.mid2 { bottom: 0; background-image: url("/img/layers/3_midground2.webp"); animation-duration: 40s;  opacity: 1; }
.mid1 { bottom: 0; background-image: url("/img/layers/2_midground.webp"); animation-duration: 25s;  opacity: 1; }
.fg   { bottom: 0; background-image: url("/img/layers/1_foreground.webp"); animation-duration: 15s;  opacity: 1; }

@keyframes slide {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

.content > *:not(.parallax) {
    position: relative;
    z-index: 1;
}

.tint {
    position: absolute;
    inset: 0;
    background: var(--parallax-tint);
    mix-blend-mode: var(--tint-blend);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

/* ---------- Parallax Background END ---------- */

/* ---------- About V3 START ---------- */

.about-tabs {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.about-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.abt-label {
  order: 1;
  padding: 0.3rem 0.75rem;
  translate: 10px;
  margin-right: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;

  color: var(--text);
  background: var(--content-panel);
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--stroke);
  border-bottom: none;
}

.abt-panel {
  order: 2;
  display: none;
  width: 100%;
  padding: 0.9rem 1.2rem 1.1rem;
  border: 1px solid var(--stroke);
  color: var(--text);
  background: var(--content-panel);
  overflow: auto;
}

.about-tabs input[type="radio"]:checked + .abt-label {
  background: rgba(0, 0, 0, 0.08);  /* tweak to taste / use a var */
  border-color: var(--stroke);
}

.about-tabs input[type="radio"]:checked + .abt-label + .abt-panel {
  display: block;
}

/* About - Profile */

#tab-profile:checked + .abt-label + .abt-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  background-image: url("/img/misc/cat-doodle.png");
  background-blend-mode: lighten;
  background-position: right bottom;
  background-repeat: no-repeat;
}

#abt-profile-img {
	width: 200px;
	height: 200px;
	overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid var(--stroke);
}

#abt-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#abt-profile-status {
	max-width: 202px;
	height: fit-content;
}

/* About - Tech */

#abt-tech-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px;
}

#abt-tech-title {
    width: 200px;
    height: 100px;
    display: grid;
}
#abt-tech-title h2 {
    margin: auto;
}
#abt-tech-img {
    width: 200px;
    height: 100px;
    overflow: hidden;
}

#abt-tech-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--content-panel);
  border: 1px solid var(--stroke);
}

.tech-specs th,
.tech-specs td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text);
}

.tech-specs th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.tech-specs tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}

.tech-specs tbody tr:last-child td {
  border-bottom: none;
}

/* About - Credits */

#green-host-img {
    display: grid;
}
#green-host-img img {
        margin: auto;
}

/* About - Favorite Music */

/* --- container --- */

.fav-music-container {
  margin: 2rem 0;
  background: var(--content-panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  position: relative;
}

/* hide radios visually but keep them focusable */

.fav-music-container input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* --- header row: title + [grid] [list] --- */

.fav-music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.75rem;        /* much smaller */
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--stroke);
}

.fav-music-title {
  margin: 0;
  font-size: 0.9rem;
}

.fav-music-tabs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.fav-music-label {
  cursor: pointer;
  border-bottom: 0;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

/* highlight active tab label */

#fav-music-grid:checked ~ .fav-music-header
  .fav-music-label[for="fav-music-grid"],
#fav-music-list:checked ~ .fav-music-header
  .fav-music-label[for="fav-music-list"] {
  opacity: 1;
  text-decoration: underline;
}

/* --- panels --- */

.fav-music-panel {
  display: none;
  padding: 0.25rem 0 0.3rem;
}

/* show the right panel based on radio */

#fav-music-grid:checked ~ .fav-music-panel-grid {
  display: block;
}

#fav-music-list:checked ~ .fav-music-panel-list {
  display: block;
}

/* --- grid layout --- */

.fav-music-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0.5rem 1.2rem 0.75rem;   /* side padding lives here now */
  max-height: 230px;                /* optional: cap grid height */
  overflow-y: auto;                 /* scroll if lots of artists */
  box-sizing: border-box;
}

.fav-music-grid img {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* --- details bar --- */

.fav-music-grid-details {
  margin-top: 0.25rem;
  padding: 0.25rem 0.9rem;   /* same top/bottom padding */
  border-top: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* see below */
  gap: 0.5rem;                  /* space between text + button */
  font-size: 0.8rem;
  line-height: 1.2;
}

.fav-music-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-music-play {
  all: unset;
  display: inline-flex;        /* centers the ▶ glyph nicely */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--stroke);
  font-size: 0.8rem;
  line-height: 1;
}




/* ---------- About V3 END ---------- */

/* ---------- Favorites START ---------- */

.favorites {
    cursor: pointer;
}

/* ---------- Favorites END --------- */

/* ---------- Three-Item Grid START ---------- */

.three-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}


.three-item-grid .item {
    display: flex;
    flex-direction: column;
    background-color: var(--content-panel);
    padding: 10px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
}

.three-item-grid img {
    width: 100%;
    max-height: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.three-item-grid p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text);
    text-align: center;
    max-height: 200px;
    overflow-wrap: normal;
    overflow-x: auto;
}

.three-item-grid a {
    border-bottom: 0px;
}

.three-item-grid ul {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text);
    max-height: 200px;
    overflow-wrap: normal;
    overflow-x: auto;
    text-align: left;
}

/* ---------- Three-Item Grid END ---------- */

/* ---------- Webrings START ---------- */

.webrings-main {
  display: flex;
  flex-wrap: wrap;          
  justify-content: center;  
  column-gap: 2rem;         
  row-gap: 1.5rem;          
  width: 100%;
}

.webrings-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;

  flex: 1 1 280px;          
  max-width: 420px;         
}

.iframe-webrings {
  display: block;
  width: 100%;
  border: 0;
  color-scheme: light;
  height: 200px;
}

.webring-container {
  display: flex;
  flex-direction: row;
  max-height: 100px;
  gap: 10px;
}

.webring-container a {
  border-bottom: 0;
}

/* ---------- Webrings END ---------- */


/* ---------- Mini Player START ---------- */

.mini-player {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto auto auto minmax(120px, 1fr) auto;
    gap: 4px;
    align-items: center;
    padding: 4px 6px;
    background: var(--bg-mini-player);
    border: 2px solid var(--stroke);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1;
    max-width: none;
}

.mini-player .mp-btn {
    all: unset;
    cursor: pointer;
    padding: 4px 6px;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    color: var(--text);
}

.mini-player .mp-title {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    padding: 4px 8px;
    opacity: .95;
}

.mini-player .mp-text {
    display: inline-block;
    white-space: nowrap;
    transform: translateX(0);
}

.mini-player.mp-scroll .mp-text {
    animation: mp-marquee var(--mq, 10s) linear infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mini-player.mp-scroll .mp-text {
        animation: none;
    }
}

/* Marquee definition */
@keyframes mp-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 1ch)); }
}

.mini-player .mp-ghost{
  position:absolute;
  top: 0;
  left: 0;
  width:1px; height:1px; border:0; padding:0; margin:0;
  visibility: hidden;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path: inset(50%);
  opacity:0; pointer-events:none;
}

/* ---------- Music Player END ---------- */

/* ---------- SoundCloud Embed Widget Customization START ---------- */

.soundcloud-container {
    background-color: var(--stroke);
    filter:
        invert(100%)
        hue-rotate(180deg);
    opacity: 0.6;
}

/* ---------- SoundCloud Embed Widget Customization END ---------- */

/* ---------- Status Cafe Embed START ---------- */

#statuscafe {
    padding: .5em;
    background-color: var(--content-panel);
    border: 1px solid var(--stroke);
    color: var(--text);
    width: fit-content;
    height: fit-content;
}
#statuscafe-username {
    margin-bottom: .5em;
}
#statuscafe-content {
    margin: 0 1em 0.5em 1em;
}

/* ---------- Status Cafe Embed END ---------- */

/* ---------- Mobile Design START ---------- */

.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    font-size: 26px;
    line-height: 1;
    background: none;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    color: var(--text);
    background-color: var(--bg-menu-toggle);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-menu-overlay);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        border-right: none;
        border-bottom: 2px solid var(--stroke);
    }

    .nav {
        overflow-y: auto;
    }
    
    .content {
        width: 100%;
    }

    html.js-enabled .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5ch;
    }
    html.js-enabled .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 264px;
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4,0,.2,1);
        z-index: 1000;
        border-right: 2px solid var(--stroke);
        border-bottom: none;
    }

    html.js-enabled .menu-overlay {
        display: block;
    }

    html.menu-open .sidebar {
        transform: translateX(0);
    }

    html.menu-open .menu-overlay {
        overflow: hidden;
    }

    .webrings-column img {
        scale: 80% 80%;
    }
}

@media (max-height: 615px) {

    .profile-img {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.js-enabled .sidebar {
        transition: none !important;
    }

    .menu-overlay {
        transition: none !important;
    }
}

/* ---------- Mobile Design END ---------- */

/* ---------- Secret: meow START ---------- */
.meow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
    background: linear-gradient(270deg,
            #ff3cac, #784ba0, #2b86c5, #00f0ff,
            #00ff94, #f9f871, #ff3cac);
    background-size: 1500% 1500%;
    animation: meowRainbow 8s ease infinite;
    transition: opacity 1s ease;
}

@keyframes meowRainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* ---------- Secret: meow END ---------- */

/* ---------- Secret: Terminal START ---------- */

.content .terminal-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.25rem 0.75rem;
  background-color: var(--bg-codebox);
  border-top: 1px solid var(--stroke);

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.terminal-prompt {
  user-select: none;
}

.terminal-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.content .oiiai-overlay {
  position: absolute;
  inset: 0;
  z-index: 50; /* higher than your panel */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8); /* dark veil over everything */
}

.content .oiiai-overlay video {
  max-height: 100%;
}


/* ---------- Secret: Terminal END ---------- */