/* =========================================
   FONTS
========================================= */

@font-face {
  font-family: "WhoAsksSatan";
  src: url("../assets/who asks satan.ttf") format("truetype");
}

@font-face {
  font-family: "CurseOfTheZombie";
  src: url("../assets/Curse of the Zombie.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoBlack";
  src: url("../assets/Roboto-Black.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoThin";
  src: url("../assets/Roboto-Thin.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoItalic";
  src: url("../assets/Roboto_SemiCondensed-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoRegular";
  src: url("../assets/Roboto-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoExtraBold";
  src: url("../assets/Roboto_Condensed-ExtraBold.ttf") format("truetype");
}

/* =========================================
   FONT VARIABLES
========================================= */

:root {
  --font-boot: "WhoAsksSatan", sans-serif;
  --font-boot-status:"RobotoThin", sans-serif;
  --font-menu: "RobotoExtraBold", sans-serif;
   --font-menu-title: "RobotoBlack", sans-serif;
  --font-preview: "RobotoRegular", sans-serif;

    
   --font-size-menu-title: 5rem;
  --font-size-menu: 1.5rem;
  --font-size-preview: 1.5rem;

  --color-boot: rgb(209, 68, 68);
  --color-menu-title: rgb(209, 68, 68);
  --color-menu-item:  rgb(255, 255, 255);
  --color-preview:  rgb(255, 255, 255);

}

/* =========================================
   GLOBAL RESET
========================================= */
#ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}

#ambient-layer.ambient-visible {
  opacity: 1;
}

#app {
  position: relative;
  z-index: auto;
   cursor:pointer;
   
}


body {
  font-family: var(--ui-font);
  font-size: var(--ui-font-size);

  background: black;
  overflow: hidden;
  color: white;
  width: 100vw;
  height: 100vh;
}

* {
  scrollbar-width: thin;
  scrollbar-color: black rgba(255, 255, 255, 0.82);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 0, 0, 0.22);
}

*::-webkit-scrollbar-thumb {
  background: black;
  border: 1px solid rgba(255, 0, 0, 0.48);
  box-shadow:
    0 0 8px rgba(255, 0, 0, 0.32),
    inset 0 0 8px rgba(255, 0, 0, 0.18);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgb(35, 0, 0);
}

/* =========================================
   FONT APPLICATION
========================================= */

.boot-logo {
  font-family: var(--font-boot);
  font-size: var(--font-size-boot);
  color: var(--color-boot);
}

.boot-status {
  font-family: var(--font-boot-status);
  color: var(--color-boot);
   font-size: 4rem;
}

.menu-title {
  font-family: var(--font-menu-title);
    font-size: var(--font-size-menu-title);
  color: var(--color-menu-title);
}

.menu-item {
  font-family: var(--font-menu);
  font-size: var(--font-size-menu);
  color: var(--color-menu-item);
  letter-spacing: .1rem;
  -webkit-text-stroke: .3px black;
}

.dots {
  display: inline-block;
  width: 1.5em;
  text-align: left;
  opacity: 0;
 
}

/* only show dots on hover */
.menu-item:hover .dots {
  opacity: 1;
}



#preview-text {
  font-family: var(--font-preview);
  font-size: var(--font-size-preview);
  color: var(--color-preview);
  padding: 0 42px;
  box-sizing: border-box;
}

/* =========================================
   SCREEN SYSTEM
========================================= */
.hidden {
  display: none !important;
}



.screen {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none;              /* default OFF */
}

.screen.active {
  display: flex;              /* ON */
}

/* optional override for non-flex screens */
#memory-screen.active,
#detail-screen.active {
  display: block;
}

/* =========================================
   

/* when it becomes background */
#boot-screen.background {
  opacity: 0.42;
  filter: blur(2px) brightness(145%);
  pointer-events: none;
}

#arcade-crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483000;
  opacity: 0;
}

body.preview-open #arcade-crt-overlay {
  z-index: 9000;
}

#arcade-crt-overlay.ready {
  opacity: 1;
}

.crt-mask-zone {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
}

.crt-mask-zone::before,
.crt-mask-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-mask-zone::before {
  opacity: 0.45;
  background:
    linear-gradient(
      rgba(255, 0, 0, 0.12),
      rgba(120, 0, 0, 0.18)
    );
  mix-blend-mode: screen;
  animation: arcadeTubePulse 5.5s ease-in-out infinite;
}

.crt-mask-zone::after {
  opacity: 0.8;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.56) 0px,
      rgba(0, 0, 0, 0.56) 1px,
      rgba(255, 0, 0, 0.21) 2px,
      rgba(255, 0, 0, 0.21) 3px,
      rgba(0, 0, 0, 0) 5px,
      rgba(0, 0, 0, 0) 9px
    );
  mix-blend-mode: multiply;
  animation: crtScanlineDrift 12s linear infinite;
}

#boot-screen.background .boot-logo {
  color: rgb(185, 18, 18);
  text-shadow:
    0 0 4px rgba(255, 0, 0, 0.95),
    0 0 12px rgba(185, 18, 18, 0.85),
    0 0 34px rgba(130, 0, 0, 0.75),
    0 0 70px rgba(90, 0, 0, 0.55);
  animation:
    fadeInLogo 4s ease forwards,
    horrorNeonFlicker 11.5s infinite;
}

#boot-screen.background .boot-glow {
  background: radial-gradient(
    circle,
    rgba(140, 0, 0, 0.7) 0%,
    rgba(80, 0, 0, 0.35) 38%,
    rgba(0, 0, 0, 0) 72%
  );
  animation:
    pulseGlow 6s ease-in-out infinite,
    horrorGlowFlicker 13.2s infinite;
}

/* =========================================
   TRANSITIONS (GLOBAL UTILITIES)
========================================= */

.fade-out {
  opacity: 0;

}

.fade-in {
  opacity: 15;
  transition: opacity 0.4s ease;
}

/* Soft glowing atmosphere */
.boot-glow {
  position: absolute;
  width: 620px;
  height: 620px;

  background: radial-gradient(
    circle,
    rgba(140, 0, 0, 0.72) 0%,
    rgba(80, 0, 0, 0.34) 38%,
    rgba(0, 0, 0, 0) 72%
  );

  filter: blur(40px);

  animation: pulseGlow 6s ease-in-out infinite;
}

/* Main PS2 title */
.boot-logo {
  font-size: 30rem;
  letter-spacing: 0.7rem;
  color: rgb(185, 18, 18);
  text-shadow:
    0 0 4px rgba(255, 0, 0, 0.95),
    0 0 12px rgba(185, 18, 18, 0.85),
    0 0 34px rgba(130, 0, 0, 0.75),
    0 0 70px rgba(90, 0, 0, 0.55);

  opacity: 0;

  z-index: 2;

  animation: fadeInLogo 4s ease forwards;
}

.boot-logo-small {
  font-size: 0.75em;
}

/* Subtext */
.boot-status {
  margin-top: 20px;
  font-family: "RobotoThin", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2rem;
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.7),
    0 0 16px rgba(140, 0, 0, 0.65);

  opacity: 0.62;

  z-index: 2;
}

/* =========================================
   BOOT ANIMATIONS
========================================= */
@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}



/* Left side menu */
.menu-left {
   width: 40%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding-top: 440px;
   padding-left: 150px;

  
   
}

/* Browser title */
.menu-title {
  font-size: 10rem;

  margin-bottom: 2px;

  opacity: 5;

  letter-spacing: .1rem;
  line-height: 1;
  white-space: nowrap;
}

.collection-letter {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  line-height: inherit;
  cursor: pointer;
  -webkit-text-stroke: inherit;
  text-shadow: inherit;
  vertical-align: baseline;
}

.collection-letter:hover,
.collection-letter.active {
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.35);
}

.title-ticker {
  position: relative;
  z-index: 2147483001;
  width: 760px;
  height: 58px;
  margin-bottom: 28px;
  transform: translateY(-20%);
  opacity: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
  color: white;
  font-family: "RobotoThin", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.08rem;
  white-space: nowrap;
}

.title-ticker-floating {
  position: fixed;
  z-index: 2147483001;
  pointer-events: none;
  transform: none;
  display: none;
  opacity: 1;
}

.title-ticker-floating.active {
  display: flex;
}

body.preview-open .title-ticker-floating {
  visibility: hidden;
  opacity: 0;
}

.title-ticker-placeholder {
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20%);
}

.title-ticker .ticker-track {
  position: relative;
  z-index: 2147483002;
  animation-duration: 96s;
  animation-delay: -18s;
}

.skill-ticker-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skill-ticker-label,
.skill-ticker-separator {
  display: inline-block;
  margin-right: 6px;
  opacity: 0.6;
}

.skill-ticker-icon {
  width: 39px;
  height: 39px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 1;
  filter:
    drop-shadow(0 0 4px rgba(255, 0, 0, 0.55))
    drop-shadow(0 0 10px rgba(120, 0, 0, 0.35));
}

/* Menu items wrapper */
.menu-items {
  position: relative;
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
}

.menu-items-floating {
  position: fixed;
  z-index: 2147483001;
  display: none;
}

.menu-items-floating.active {
  display: flex;
}

.menu-items-placeholder {
  visibility: hidden;
  pointer-events: none;
}

body.preview-open .menu-items-floating {
  display: none;
}

/* Individual menu item */
.menu-item {
   font-family: var(--font-menu);

  color: rgba(255, 255, 255, 0.65);

  padding: 18px 22px;
  width: max-content;
  max-width: 100%;
  align-self: flex-end;
  box-sizing: border-box;

/*  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08); */

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease,
    border 0.25s ease;

  cursor: pointer;
 
}

/* Hover effect */  
.menu-item:hover { 
  color: rgb(255, 180, 180);

 /* background: rgba(120, 0, 0, 0.18);

  border: 1px solid rgba(255, 0, 0, 0.35); */

  transform: translateX(6px);

  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.35);
}

/* Selected state */ /* ================Change colour Menu Button Top========================*/
/* =========================================
   SYSTEM SELECTION COLOR (GLOBAL CONTROL)
========================================= */

:root {
  --ui-accent: hsla(0, 75%, 22%, 0.25);
  --ui-accent-border: hsla(0, 80%, 35%, 0.5);
}

.menu-item.selected {
  color: rgb(255, 220, 220);

  background: rgba(90, 0, 0, 0.25);

  border: 1px solid rgba(255, 0, 0, 0.4);

  text-shadow:
    0 0 8px rgba(255, 0, 0, 0.7),
    0 0 20px rgba(255, 0, 0, 0.35);
} /* =================Change colour Menu Button========================*/

/* =========================================
   RIGHT PREVIEW PANEL
========================================= */
#preview-text {
     position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  z-index: 2;
  color: white;
  font-size: 1rem;

  pointer-events: none; /* 🔥 IMPORTANT */

  
}

#preview-window::before {
  content: "";
  position: absolute;
  inset: 0;
    background: radial-gradient(circle, #0a0a0a 0%, #000 80%);
  z-index: 0;
}


.menu-right {
   width: 60%;
  height: 100%;
  padding-bottom: 0;

  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  
   z-index: 12000 !important;
  box-sizing: border-box;
  padding-top: 120px;
  padding-right: 120px;
}

/* =========================================
   PREVIEW WINDOW
========================================= */

#preview-window {
  width: 488px;
  height: 338px;

  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  border-radius: 10px;

  background: rgba(0, 0, 0, 0.96);
  border: 2px solid rgb(120, 120, 120);

  overflow: auto;

  transition: width 0.5s ease, height 0.5s ease;

   z-index: 12000 !important;
}

/* EXPANDED STATE */
#preview-window.expanded {
  width: 90vw;
  height: 85vh;

  position: fixed;
  top: 40px;
  left: 40px;

  transform: none;
}

/* black layer */
#preview-window::before {
  content: "";

  position: absolute;
  inset: 0;

  background: black;

  z-index: 0;
}

#preview-close {
   position: absolute;
  top: 00px;
  right: 10px;

  width: 30px;
  height: 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  z-index: 99999;

  color: red;

   font-size: 60px; /* increase this */
}

#preview-close:hover {
  color: rgb(255, 0, 0);
  transform: scale(1.2);
}

/* preview text above black layer */
#preview-text {
  position: absolute;
  z-index: 2;
  color: white;
  font-size: 1rem;

   

}

#preview-text.fade {
  opacity: 0;
}

#task-manager {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 48px;
  box-sizing: border-box;
  text-align: left;
  color: white;
  font-family: "RobotoThin", sans-serif;
}

#work-timer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  box-sizing: border-box;
  color: white;
  font-family: "RobotoThin", sans-serif;
  text-align: left;
}

#productivity-graph {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
  box-sizing: border-box;
  color: white;
  font-family: "RobotoThin", sans-serif;
  text-align: left;
}

.productivity-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.productivity-label,
#productivity-total {
  color: rgb(255, 180, 180);
  font-family: "RobotoBlack", sans-serif;
  font-size: 0.82rem;
  letter-spacing: .18rem;
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 16px rgba(255, 0, 0, 0.38);
}

.productivity-subtitle {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  letter-spacing: .16rem;
}

#productivity-total {
  white-space: nowrap;
}

#productivity-chart {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  background:
    linear-gradient(rgba(255, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.42);
  background-size: 100% 25%, 12.5% 100%, auto;
  border: 1px solid rgba(255, 0, 0, 0.26);
  box-shadow:
    inset 0 0 18px rgba(255, 0, 0, 0.08),
    0 0 20px rgba(255, 0, 0, 0.08);
}

.productivity-grid-line {
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1;
}

.productivity-axis-label,
.productivity-version-label {
  fill: rgba(255, 255, 255, 0.48);
  font-family: "RobotoThin", sans-serif;
  font-size: 22px;
  letter-spacing: .08rem;
}

.productivity-area {
  fill: rgba(185, 18, 18, 0.16);
  stroke: none;
}

.productivity-line {
  fill: none;
  stroke: rgb(255, 78, 78);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.85));
}

.productivity-time-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.36));
}

.productivity-point-stem {
  stroke: rgba(255, 0, 0, 0.16);
  stroke-width: 1;
}

.productivity-point .productivity-visible-dot {
  fill: rgb(255, 210, 210);
  stroke: rgb(145, 0, 0);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8));
}

.productivity-time-point .productivity-visible-dot {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(255, 0, 0, 0.52);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.42));
}

.productivity-hit-target {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.productivity-point,
.productivity-time-point {
  cursor: pointer;
  outline: none;
}

.productivity-point .productivity-visible-dot,
.productivity-time-point .productivity-visible-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 1;
  transition:
    transform 0.55s ease,
    filter 0.55s ease,
    fill 0.55s ease,
    stroke 0.55s ease,
    opacity 0.32s ease;
}

#productivity-chart.point-hovering .productivity-point:not(.hovered) .productivity-visible-dot,
#productivity-chart.point-hovering .productivity-time-point:not(.hovered) .productivity-visible-dot {
  opacity: 0.35;
  filter: brightness(0.65);
}

.productivity-point.hovered .productivity-visible-dot,
.productivity-point.selected .productivity-visible-dot,
.productivity-point:focus-visible .productivity-visible-dot {
  fill: rgb(255, 235, 235);
  stroke: rgb(255, 0, 0);
  transform: scale(1.55);
  filter:
    drop-shadow(0 0 8px rgba(255, 0, 0, 1))
    drop-shadow(0 0 24px rgba(255, 0, 0, 0.58));
}

.productivity-time-point.hovered .productivity-visible-dot,
.productivity-time-point.selected .productivity-visible-dot,
.productivity-time-point:focus-visible .productivity-visible-dot {
  fill: white;
  stroke: rgb(255, 90, 90);
  transform: scale(1.7);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 18px rgba(255, 0, 0, 0.44));
}

#productivity-point-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 94px;
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
}

.productivity-point-row {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 0.85fr;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  letter-spacing: .05rem;
  transition:
    transform 0.65s ease,
    filter 0.65s ease,
    border-color 0.65s ease,
    box-shadow 0.65s ease,
    background 0.65s ease;
}

.productivity-point-row span:nth-child(3) {
  color: rgba(255, 180, 180, 0.82);
  text-align: right;
}

.productivity-point-row.selected,
.productivity-point-row.selecting {
  background: rgba(90, 0, 0, 0.26);
  border-color: rgba(255, 0, 0, 0.48);
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.34),
    inset 0 0 14px rgba(255, 0, 0, 0.12);
  filter: brightness(1.16);
  transform: scale(1.015);
}

.productivity-point-row.selecting {
  animation: productivity-row-load-pop 1.2s ease;
}

.productivity-row-detail {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.35;
}

.productivity-row-detail:last-child {
  color: rgba(255, 180, 180, 0.58);
}

@keyframes productivity-row-load-pop {
  0% {
    opacity: 0.62;
    filter: brightness(0.78);
    transform: scale(0.98);
  }

  45% {
    opacity: 1;
    filter: brightness(1.28);
    transform: scale(1.025);
  }

  100% {
    opacity: 1;
    filter: brightness(1.16);
    transform: scale(1.015);
  }
}

.timer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: .18rem;
}

.timer-label,
#timer-phase {
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.6),
    0 0 14px rgba(255, 0, 0, 0.32);
}

#timer-phase {
  color: rgb(255, 180, 180);
  font-family: "RobotoBlack", sans-serif;
}

.timer-mode-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.timer-mode,
.timer-controls button {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 0, 0, 0.34);
  cursor: default;
  font-family: "RobotoBlack", sans-serif;
  letter-spacing: .09rem;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.28);
}

.timer-mode:hover,
.timer-mode.active,
.timer-controls button:hover {
  color: rgb(255, 190, 190);
  border-color: rgba(255, 0, 0, 0.72);
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.2),
    inset 0 0 12px rgba(255, 0, 0, 0.12);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 18px rgba(255, 0, 0, 0.45);
}

#timer-display {
  align-self: center;
  margin: 20px 0 10px;
  color: rgb(255, 242, 242);
  font-family: "RobotoBlack", sans-serif;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 1;
  letter-spacing: .08rem;
  text-shadow:
    0 0 8px rgba(255, 0, 0, 0.75),
    0 0 24px rgba(255, 0, 0, 0.42),
    0 0 46px rgba(255, 0, 0, 0.2);
}

#timer-status {
  align-self: center;
  min-height: 1.1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  letter-spacing: .22rem;
}

.timer-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#work-timer.running #timer-display {
  animation: timer-neon-drift 2.4s steps(4, end) infinite;
}

#work-timer.break-mode #timer-phase,
#work-timer.break-mode .timer-mode.active {
  color: rgb(255, 230, 230);
}

@keyframes timer-neon-drift {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }

  18% {
    opacity: .78;
    filter: brightness(.78);
  }

  21% {
    opacity: 1;
    filter: brightness(1.18);
  }

  61% {
    opacity: .9;
    filter: brightness(.92);
  }

  64% {
    opacity: 1;
    filter: brightness(1.08);
  }
}

.task-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  order: 3;
  margin-top: auto;
}

#task-add-button,
#task-clear-button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 180, 180);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 0, 0, 0.42);
  cursor: default;
  font-family: "RobotoBlack", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.5);
}

#task-clear-button {
  width: auto;
  padding: 0 12px;
  font-size: 0.72rem;
  letter-spacing: .08rem;
}

#task-add-button:hover,
#task-clear-button:hover {
  color: rgb(255, 220, 220);
  transform: scale(1.08);
}

#task-input {
  width: min(100%, 380px);
  margin-top: 0;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: white;
  background: black;
  border: 1px solid rgba(255, 0, 0, 0.4);
  outline: none;
  font-family: "RobotoThin", sans-serif;
  letter-spacing: .08rem;
}

#task-list {
  width: min(100%, 380px);
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  order: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

#task-input {
  order: 2;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 0, 0, 0.16);
  cursor: pointer;
}

.task-item input {
  accent-color: rgb(185, 18, 18);
}

.task-item span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
}

.task-item.done span {
  opacity: 0.45;
  text-decoration: line-through;
}

/* Placeholder preview text */
.placeholder-text {
  opacity: 0.35;

  letter-spacing: 0.2rem;
}

.menu-disabled {
  pointer-events: none;
  opacity: 0.6;
}

#contact-terminal {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: white;
  overflow: auto;
}

.contact-terminal-inner {
  min-height: 100%;
  padding: 72px 84px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  text-align: left;
}

.contact-main {
  min-width: 0;
  align-self: center;
}

.contact-header {
  font-family: "RobotoBlack", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  color: rgb(255, 220, 220);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.35);
}

.contact-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

#copy-contact-button {
  padding: 8px 13px;
  color: rgb(255, 220, 220);
  background: rgba(90, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.4);
  cursor: pointer;
  font-family: "RobotoBlack", sans-serif;
  font-size: 0.75rem;
  letter-spacing: .08rem;
}

#copy-contact-button:hover {
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6);
}

.contact-intro {
  max-width: 720px;
  margin-bottom: 42px;
  font-family: "RobotoRegular", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.contact-download {
  max-width: 720px;
  margin-top: 34px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.3);
}

.contact-download-text {
  flex: 1;
  font-family: "RobotoRegular", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

#download-archive-button {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: rgb(255, 220, 220);
  background: rgba(90, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.4);
  cursor: pointer;
  font-family: "RobotoBlack", sans-serif;
  font-size: 0.75rem;
  letter-spacing: .08rem;
}

#download-archive-button:hover {
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6);
}

.contact-grid {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  padding: 18px 20px;
  border: 1px solid rgba(255, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-label {
  margin-bottom: 10px;
  font-family: "RobotoBlack", sans-serif;
  font-size: 0.85rem;
  letter-spacing: .12rem;
  color: rgba(255, 180, 180, 0.9);
}

.contact-value {
  font-family: "RobotoRegular", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.artist-profile {
  align-self: start;
  width: 100%;
}

.artist-profile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.14);
}

.artist-profile-image img,
.artist-profile-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artist-profile-image video {
  opacity: 1;
  filter: grayscale(1);
}

.artist-profile-info {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.3);
}

.artist-name {
  margin-bottom: 16px;
  font-family: "RobotoBlack", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
  color: rgb(255, 220, 220);
}

.artist-copy,
.artist-meta {
  font-family: "RobotoRegular", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.artist-meta {
  margin-top: 18px;
  color: rgba(255, 180, 180, 0.82);
}

/* =========================================
   MEMORY GRID SCREEN
========================================= */
#grid-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* IMPORTANT */
  display: flex;
  align-items: center;
  justify-content: center;

   font-family: "RobotoThin", sans-serif;
  
}

#grid-loading.hidden {
  opacity: 0;
  visibility: hidden;
}

#memory-grid {
  align-content:start;
  overflow: visible;
   width: 110%;
  height: 90%;

  display: grid;

  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);

  gap: 4px;

  padding: 20px;
  box-sizing: border-box;
}

#memory-grid:hover .memory-slot:not(:hover) {
  opacity: 0.6;
  filter: brightness(0.8);
}

#memory-grid-wrapper {
  
   position: absolute;
  inset: 0;
  overflow:inherit; /* 🔥 prevents scroll */
  display: flex;
}

#memory-grid.loading .memory-slot {
  pointer-events: none;
}

@keyframes horrorNeonFlicker {
  0%, 9%, 11%, 13%, 15%, 33%, 35%, 37%, 58%, 60%, 62%, 64%, 80%, 82%, 84%, 86%, 96%, 98%, 100% {
    opacity: 1;
    filter: brightness(1.05);
  }

  10%, 34%, 59%, 81%, 97% {
    opacity: 0.48;
    filter: brightness(0.65);
  }

  12%, 36%, 61%, 83% {
    opacity: 0.18;
    filter: brightness(0.45);
  }

  14%, 38%, 63%, 85%, 99% {
    opacity: 0.82;
    filter: brightness(1.28);
  }
}

@keyframes horrorGlowFlicker {
  0%, 9%, 15%, 33%, 39%, 58%, 65%, 80%, 87%, 96%, 100% {
    opacity: 0.62;
  }

  10%, 34%, 59%, 81%, 97% {
    opacity: 0.24;
  }

  14%, 38%, 63%, 85%, 99% {
    opacity: 0.78;
  }
}

@keyframes arcadeTubePulse {
  0%, 100% {
    opacity: 0.24;
    filter: brightness(1);
  }

  50% {
    opacity: 0.42;
    filter: brightness(1.25);
  }
}

@keyframes crtScanlineDrift {
  from {
    transform: translateY(-9px);
  }

  to {
    transform: translateY(9px);
  }
}

#memory-grid.loading .memory-slot:not(.slot-hidden) {
  opacity: 0.6;
  filter: brightness(0.8);
}

.memory-slot {
   transform: scale(1);
    transition: transform 1.50s ease, filter 1.50s ease;
  will-change: transform;
  z-index: 1;
  position: relative;
}

.memory-slot img,
.memory-slot video {
   width: 100%;
  height: 100%;   /* 🔥 this is the "bigger image" control */

  object-fit:contain; /* important: prevents distortion */

  border-radius: 60px;
  display: block;

}

/* hidden spawn state */
.slot-hidden {
  transform: scale(0.2);
  opacity: 0;
}

.memory-slot.selected {
  border: 1px solid rgba(255, 0, 0, 0);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  transform: scale(1.15);
  z-index: 20; /* 🔥 allows overlap above neighbors */


}

.memory-slot:hover {
  z-index: 50;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0),
    0 0 25px rgba(255, 0, 0, 0.2);

  filter: brightness(1.1);
   transform: scale(1.10);

     transform: scale(1.08);
  z-index: 10;
}

.memory-slot span {
  display: block;
  margin-top: 2px;   /* reduce this */
  line-height: 1;  /* tighter text box */
   padding: 0;

   font-family: "RobotoBlack", sans-serif;

  font-size: 1.0rem;
}
/* Grid wrapper */




/* Individual artwork card ----> change colour button system config */
.memory-card {
  height: 180px;

 /*  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.08); */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
  
    background 0.3s ease,
    border 0.3s ease;
}

/* Hover state */
.memory-card:hover {
  transform: scale(1.05);

  background: rgba(255,255,255,0.1);

  border: 1px solid rgba(0,150,255,0.4);
}

/* =========================================
   DETAIL SCREEN
========================================= */
#detail-screen {
 display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 3;
}

#detail-content {
  width: 100%;
  height: 100%;
  padding: 56px 64px;
  box-sizing: border-box;
}

/* =========================================
   AMBIENT VIDEO BACKGROUND
========================================= */

#ambient-layer {
  z-index: 0;
}

#ambient-video {
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0.35;

  mix-blend-mode: screen;
}


#menu-screen {
     position: relative;
  z-index: 12000;
}

#menu-screen.active {
  animation: menuUiFadeIn 0.45s ease forwards;
}

#ticker-tape {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  z-index: 13000;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: black;
  color: white;
  font-family: "RobotoThin", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  min-width: max-content;
  animation: tickerScroll 72s linear infinite;
}

#ticker-tape .ticker-track {
  animation-name: tickerScrollReverse;
  animation-duration: 270s;
  animation-delay: 4s;
  transform: translateX(-100%);
}

#ticker-tape:hover + #dev-log-button,
body.dev-log-peek #dev-log-button,
#dev-log-button:hover,
#dev-log-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#dev-log-button {
  position: fixed;
  right: 28px;
  bottom: 46px;
  z-index: 2147483647;
  min-width: 132px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 0, 0, 0.42);
  background: black;
  color: white;
  font-family: "RobotoThin", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(130%);
  pointer-events: auto;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    color 0.25s ease,
    text-shadow 0.25s ease,
    border 0.25s ease;
}

#dev-log-button:hover,
#dev-log-button:focus-visible {
  color: rgb(255, 55, 55);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.95),
    0 0 18px rgba(180, 0, 0, 0.7);
  border-color: rgba(255, 0, 0, 0.8);
  outline: none;
}

body.preview-open #dev-log-button {
  display: none;
}

#dev-log-panel {
  position: fixed;
  left: 28px;
  bottom: 92px;
  width: min(434px, calc(100vw - 56px));
  max-height: min(72vh, 720px);
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.94);
  color: white;
  box-shadow:
    0 0 24px rgba(255, 0, 0, 0.16),
    inset 0 0 28px rgba(255, 0, 0, 0.08);
  font-family: "RobotoThin", sans-serif;
  animation: menuUiFadeIn 0.45s ease forwards;
}

#dev-log-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: rgb(255, 55, 55);
  font-family: "RobotoThin", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

.dev-log-title {
  padding: 24px 56px 18px 26px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.22);
  color: rgb(255, 55, 55);
  font-family: "RobotoBlack", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.16rem;
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.75),
    0 0 18px rgba(140, 0, 0, 0.55);
}

#dev-log-content {
  overflow-y: auto;
  padding: 24px 30px 30px 30px;
}

.dev-log-entry {
  padding: 0 0 28px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dev-log-entry:last-child {
  margin-bottom: 0;
}

.dev-log-entry-header {
  margin-bottom: 14px;
  color: white;
  font-family: "RobotoBlack", sans-serif;
  font-size: 0.94rem;
  letter-spacing: 0.1rem;
}

.dev-log-entry ul {
  margin: 0;
  padding-left: 22px;
}

.dev-log-entry li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.05rem;
}

.ticker-track span {
  display: inline-block;
}

@keyframes tickerScroll {
  from {
    transform: translateX(100vw);
  }

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

@keyframes tickerScrollReverse {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100vw);
  }
}

@keyframes menuUiFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.menu-left,
.menu-right {
  position: relative;
}

.menu-left {
  z-index: 2;
}

.menu-right {
  z-index: 12000;
}

#memory-screen {
  width: 100%;
  height: 100%;
  z-index: 3;

  
}


#boot-screen {
  z-index: 1;
   display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; 
}




#app {
  position: relative; 
  z-index: auto;
}

























/* ===================================================== */
/*                     Detail.Page.CSS                   */
/* ===================================================== */



#detail-screen {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 100;
}

#detail-screen.hidden {
  display: none;
}

.detail-page {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 44%) 1fr;
  gap: 48px;
  align-items: start;
  color: white;
  overflow: hidden;
}

.detail-header {
  font-family: "RobotoBlack", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 24px;
}

.detail-image {
  width: 100%;
  height: 100%;
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0px);
}

.detail-image-empty {
  border: 1px solid rgba(255, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.detail-image img,
.detail-image video {
  width: 100%;
  height: 100%;
  max-height: 620px;
  display: block;
  object-fit: contain;
}

.detail-preview-media {
  opacity: 0;
  animation: menuUiFadeIn 0.45s ease forwards;
  transition: opacity 0.45s ease;
}

.detail-preview-media.detail-preview-fade-out {
  opacity: 0;
  animation: none;
  transition: opacity 0.45s ease;
}

.detail-info {
  min-width: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 60px;
  padding-bottom: 0;
  padding-right: 18px;
  box-sizing: border-box;
  text-align: left;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail-description {
  max-width: 560px;
  line-height: 1.6;
  font-family: "RobotoRegular", sans-serif;
  font-size: 1rem;
  text-align: left;
}

.detail-mini-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-top: 54px;
  isolation: isolate;
}

.detail-mini-loading {
  position: absolute;
  top: 258px;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  pointer-events: none;
  text-align: center;
  font-family: "RobotoThin", sans-serif;
  letter-spacing: 0.2rem;
  color: white;
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.35);
}

.detail-info.loading {
  overflow-y: scroll;
}

.detail-mini-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-mini-slot {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.12);
  cursor: pointer;
  transform: scale(1);
  transition: transform 1.50s ease, filter 1.50s ease, opacity 1.50s ease, box-shadow 1.50s ease;
  will-change: transform;
  z-index: 1;
}

.detail-image-viewer {
  position: absolute;
  inset: 0;
  z-index: 50000;
  background: black;
  color: white;
}

.image-viewer-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 86px 48px 48px;
  box-sizing: border-box;
}

.image-viewer-scroll img,
.image-viewer-scroll video {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
}

.image-viewer-back {
  position: fixed;
  top: 52px;
  right: 300px;
  z-index: 99999;
  padding: 8px 14px;
  color: rgb(255, 220, 220);
  background: rgba(90, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.4);
  cursor: pointer;
  font-family: "RobotoBlack", sans-serif;
  letter-spacing: .08rem;
}

.image-viewer-back:hover {
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6);
}

.detail-mini-grid:not(.loading):hover .detail-mini-slot:not(:hover) {
  opacity: 0.6;
  filter: brightness(0.8);
}

.detail-mini-grid.loading .detail-mini-slot {
  pointer-events: none;
}

.detail-mini-grid.loading .detail-mini-slot:not(.slot-hidden) {
  opacity: 0.6;
  filter: brightness(0.8);
}

.detail-mini-grid:not(.loading) .detail-mini-slot:hover {
  z-index: 10;
  transform: scale(1.08);
  filter: brightness(1.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0),
    0 0 25px rgba(255, 0, 0, 0.2);
}

.detail-mini-slot img,
.detail-mini-slot video {
  width: 100%;
  height: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0.95);
}

#back-button {
  position: fixed;
  top: 52px;
  right: 300px;
  z-index: 99999;
  padding: 8px 14px;
  color: rgb(255, 220, 220);
  background: rgba(90, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.4);
  cursor: pointer;
  font-family: "RobotoBlack", sans-serif;
  letter-spacing: .08rem;
}

#back-button:hover {
  color: rgb(255, 180, 180);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.8),
    0 0 15px rgba(255, 0, 0, 0.6);
}

/* =========================================
   DESKTOP RESPONSIVE PASS
========================================= */

@media (max-width: 1500px), (max-height: 850px) {
  .menu-left {
    width: 46%;
    padding-top: clamp(220px, 42vh, 440px);
    padding-left: clamp(56px, 8vw, 150px);
  }

  .menu-title {
    font-size: clamp(5.8rem, 9vw, 10rem);
  }

  .title-ticker {
    height: clamp(42px, 5vh, 58px);
    margin-bottom: clamp(16px, 3vh, 28px);
    font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  }

  .skill-ticker-icon {
    width: clamp(28px, 3vw, 39px);
    height: clamp(28px, 3vw, 39px);
  }

  .menu-items {
    gap: clamp(6px, 1.3vh, 12px);
  }

  .menu-item {
    padding: clamp(10px, 1.7vh, 18px) clamp(12px, 1.7vw, 22px);
    font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  }

  .menu-right {
    width: 54%;
    padding-top: clamp(42px, 10vh, 120px);
    padding-right: clamp(42px, 8vw, 120px);
  }

  #preview-window {
    width: clamp(360px, 34vw, 488px);
    height: clamp(250px, 24vw, 338px);
  }
}

@media (max-width: 1120px), (max-height: 690px) {
  .menu-left {
    width: 52%;
    padding-top: clamp(160px, 34vh, 300px);
    padding-left: clamp(32px, 6vw, 72px);
  }

  .menu-title {
    font-size: clamp(4.6rem, 8.4vw, 7rem);
  }

  .title-ticker {
    width: min(68vw, 620px);
    height: 38px;
    font-size: clamp(0.95rem, 1.7vw, 1.25rem);
    margin-bottom: 12px;
  }

  .skill-ticker-icon {
    width: 26px;
    height: 26px;
  }

  .menu-items {
    gap: 4px;
  }

  .menu-item {
    padding: 8px 10px;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    letter-spacing: 0.06rem;
  }

  .menu-right {
    width: 48%;
    padding-top: clamp(28px, 7vh, 70px);
    padding-right: clamp(24px, 5vw, 60px);
  }

  #preview-window {
    width: clamp(280px, 34vw, 390px);
    height: clamp(196px, 24vw, 270px);
  }
}

@media (max-width: 960px) {
  .menu-left {
    width: 58%;
    padding-left: 28px;
  }

  .menu-right {
    width: 42%;
    padding-right: 24px;
  }

  .menu-title {
    font-size: clamp(3.8rem, 8vw, 5.2rem);
  }

  .title-ticker {
    width: min(74vw, 540px);
  }

  #preview-window {
    width: min(34vw, 320px);
    height: min(24vw, 230px);
  }
}

/* =========================================
   MOBILE / TABLET LAYOUT
========================================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  #app,
  .screen {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .boot-logo {
    max-width: 88vw;
    font-size: clamp(8rem, 32vw, 11.5rem);
    letter-spacing: 0.18rem;
    text-align: center;
  }

  #boot-screen.background {
    justify-content: center;
    align-items: center;
  }

  #boot-screen.background .boot-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -55% -50%;
  }

  #boot-screen.background .boot-status {
    display: none;
  }

  #ambient-video {
    object-position: center center;
  }

  #menu-screen.active {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .menu-right {
    order: 1;
    width: 100%;
    height: 34vh;
    min-height: 210px;
    padding: 18px 18px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
  }

  #preview-window {
    left: 50%;
    translate: -52.5% 0;
    width: min(88vw, 420px);
    height: min(27vh, 230px);
    min-height: 170px;
  }

  #preview-window.expanded {
    left: 50%;
    top: 50%;
    width: 92vw;
    height: 86vh;
    translate: -50% -50%;
  }

  #memory-grid-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
  }

  #memory-grid-wrapper.loading,
  .detail-info.loading {
    pointer-events: none;
    touch-action: none;
  }

  #grid-loading {
    position: fixed;
    inset: auto;
    left: 50%;
    top: 50%;
    width: 92vw;
    height: 86vh;
    transform: translate(-50%, -50%);
    z-index: 99999;
  }

  #memory-grid {
    width: 100%;
    height: auto;
    min-height: 100%;
    gap: 10px;
    padding: 18px;
  }

  .memory-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.6;
    filter: brightness(0.8);
  }

  .memory-slot span {
    order: 1;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 3px 6px;
    box-sizing: border-box;
    line-height: 1.05;
    font-size: 0.82rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.74);
  }

  .memory-slot img,
  .memory-slot video {
    order: 2;
    flex: 1 1 auto;
    min-height: 0;
  }

  .memory-slot.selected {
    opacity: 1;
    filter: brightness(1.16);
  }

  .detail-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
  }

  .detail-image {
    display: none;
  }

  .detail-info {
    width: 100%;
    height: 100%;
    padding: 56px 18px 18px;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .detail-header {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .detail-description {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .detail-mini-grid-wrapper {
    max-width: none;
    margin-top: 28px;
  }

  .detail-mini-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-mini-slot {
    min-height: 220px;
    cursor: default;
    opacity: 0.6;
    filter: brightness(0.8);
    border-color: transparent;
    transition: transform 1.5s ease, filter 1.5s ease, opacity 1.5s ease, box-shadow 1.5s ease;
  }

  .detail-mini-slot.slot-hidden {
    opacity: 0;
    filter: brightness(0.45);
    transform: scale(0.2);
  }

  .detail-mini-loading {
    position: fixed;
    inset: auto;
    left: 50%;
    top: 50%;
    width: 92vw;
    height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 99999;
  }

  .detail-mini-grid:not(.loading):hover .detail-mini-slot:not(:hover),
  .detail-mini-grid:not(.loading) .detail-mini-slot:hover {
    opacity: 0.9;
    filter: brightness(0.95);
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.12);
  }

  .detail-mini-slot.center-highlight {
    opacity: 1;
    filter: brightness(1.16);
    transform: scale(1.1);
    border-color: transparent;
    box-shadow:
      0 0 14px rgba(255, 0, 0, 0.42),
      0 0 34px rgba(120, 0, 0, 0.28);
    z-index: 12;
  }

  #back-button {
    top: 16px;
    right: 64px;
  }

  #contact-terminal {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .contact-terminal-inner {
    min-height: auto;
    padding: 56px 18px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }

  .contact-main {
    order: 2;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .contact-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .contact-header {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .contact-intro {
    margin: 0;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .contact-grid {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .contact-field {
    padding: 14px 16px;
  }

  .contact-download {
    max-width: none;
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #download-archive-button,
  #copy-contact-button {
    width: 100%;
  }

  .artist-profile {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .artist-profile-image {
    order: 1;
    width: min(70vw, 260px);
    align-self: center;
  }

  .artist-profile-info {
    order: 2;
    margin-top: 0;
    padding: 16px;
  }

  .menu-left {
    order: 2;
    width: 100%;
    height: auto;
    padding: 0 22px;
    align-items: center;
    box-sizing: border-box;
  }

  .menu-title {
    position: relative;
    left: 50%;
    translate: -52.5% 0;
    width: 100%;
    text-align: center;
    font-size: clamp(3rem, 14vw, 5.2rem);
    margin-bottom: 0;
  }

  .title-ticker {
    width: min(92vw, 520px);
    height: 42px;
    margin-bottom: 18px;
    font-size: 1.2rem;
    transform: translateY(-8%);
  }

  .title-ticker-placeholder {
    transform: translateY(-8%);
  }

  .menu-items {
    width: min(92vw, 520px);
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .menu-items-floating {
    left: 50% !important;
    translate: -45% 12vh;
   }

  .menu-item {
    padding: 15px 19px;
    align-self: center;
    text-align: center;
    font-size: calc(var(--font-size-menu) * 1.06);
  }

  .menu-item.mobile-press-preview {
    color: rgb(255, 180, 180);
    transform: translateX(6px);
    text-shadow:
      0 0 5px rgba(255, 0, 0, 0.8),
      0 0 15px rgba(255, 0, 0, 0.6),
      0 0 30px rgba(255, 0, 0, 0.35);
  }

  .menu-item.mobile-press-preview .dots {
    opacity: 1;
  }

  #work-timer {
    padding: 28px 24px;
  }

  #productivity-graph {
    padding: 24px 20px;
  }

  .productivity-header {
    margin-bottom: 10px;
  }

  .productivity-label,
  #productivity-total {
    font-size: 0.68rem;
    letter-spacing: .1rem;
  }

  .productivity-subtitle {
    font-size: 0.58rem;
    letter-spacing: .08rem;
  }

  #productivity-chart {
    flex-basis: 220px;
  }

  .productivity-axis-label,
  .productivity-version-label {
    font-size: 28px;
  }

  #productivity-point-list {
    max-height: 84px;
  }

  .productivity-point-row {
    grid-template-columns: 0.7fr 1.3fr 0.8fr;
    gap: 6px;
    font-size: 0.56rem;
    letter-spacing: .02rem;
  }

  .productivity-row-detail {
    line-height: 1.25;
  }

  .timer-header {
    font-size: 0.68rem;
    letter-spacing: .12rem;
  }

  .timer-mode-row,
  .timer-controls {
    gap: 7px;
  }

  .timer-mode,
  .timer-controls button {
    min-height: 31px;
    font-size: 0.66rem;
    letter-spacing: .05rem;
  }

  #timer-display {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
    letter-spacing: .03rem;
  }

  #timer-status {
    font-size: 0.62rem;
    letter-spacing: .14rem;
    text-align: center;
  }
}
