/* ===================== RESET / BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #3dffa0;
  --green-bright: #baffdf;
  --green-dim: #1e6b45;
  --black: #000000;
  --bg-grid:
    radial-gradient(ellipse at 50% 50%, #0b2a16 0%, #06180c 55%, #030d06 100%),
    repeating-linear-gradient(to bottom, rgba(140,255,190,0.10) 0px, rgba(140,255,190,0.10) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(to right, rgba(140,255,190,0.10) 0px, rgba(140,255,190,0.10) 1px, transparent 1px, transparent 5px);
}

html, body {
  height: 100%;
  background: var(--bg-grid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  overflow: hidden;
}

button { font-family: inherit; }

/* ===================== CLASSIC MAC CURSORS ===================== */
html, body {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPgogIDxwb2x5Z29uIHBvaW50cz0iNCwyIDQsMjUgOSwyMCAxMywyOCAxNywyNiAxMywxOSAyMSwxOSIKICAgICAgICAgICBmaWxsPSIjMDAwMDAwIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMS42IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=") 4 2, default;
}

body.cursor-wait,
body.cursor-wait * {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPgogIDxyZWN0IHg9IjEzIiB5PSI0IiB3aWR0aD0iNiIgaGVpZ2h0PSI0IiBmaWxsPSIjMDAwMDAwIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMS4yIi8+CiAgPGNpcmNsZSBjeD0iMTYiIGN5PSIxOCIgcj0iMTAiIGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjYiLz4KICA8bGluZSB4MT0iMTYiIHkxPSIxOCIgeDI9IjE2IiB5Mj0iMTEiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjYiLz4KICA8bGluZSB4MT0iMTYiIHkxPSIxOCIgeDI9IjIxIiB5Mj0iMTgiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjYiLz4KICA8Y2lyY2xlIGN4PSIxNiIgY3k9IjE4IiByPSIxLjMiIGZpbGw9IiNmZmZmZmYiLz4KPC9zdmc+Cg==") 16 18, wait !important;
}

/* ===================== JEELH RETRO CURSORS ===================== */
body {
  cursor: url("cursors/jeelh-dark/Normal%20Select.cur") 0 0, default;
}

body a,
body button,
body .title-icon,
body [role="button"] {
  cursor: url("cursors/jeelh-dark/Select.cur") 0 0, pointer;
}

body input,
body textarea,
body [contenteditable="true"] {
  cursor: url("cursors/jeelh-dark/Text%20Select.cur") 0 0, text;
}

body canvas {
  cursor: url("cursors/jeelh-dark/Precision%20Select.cur") 0 0, crosshair;
}

body.cursor-wait,
body.cursor-wait * {
  cursor: url("cursors/jeelh-dark/Busy.ani") 19 19, wait !important;
}

body.theme-minitel {
  cursor: url("cursors/jeelh-light/Normal%20Select%20Light.cur") 0 0, default;
}

body.theme-minitel a,
body.theme-minitel button,
body.theme-minitel .title-icon,
body.theme-minitel [role="button"] {
  cursor: url("cursors/jeelh-light/Select%20Light.cur") 0 0, pointer;
}

body.theme-minitel input,
body.theme-minitel textarea,
body.theme-minitel [contenteditable="true"] {
  cursor: url("cursors/jeelh-light/Text%20Select%20Light.cur") 0 0, text;
}

body.theme-minitel canvas {
  cursor: url("cursors/jeelh-light/Precision%20Select%20Light.cur") 0 0, crosshair;
}

body.theme-minitel.cursor-wait,
body.theme-minitel.cursor-wait * {
  cursor: url("cursors/jeelh-light/Busy%20Light.ani") 19 19, wait !important;
}

/* ===================== SCREEN (no frame, just the display) ===================== */
.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-grid);
  overflow: hidden;
}

.screen::after {
  content: '© BAUDRY YOHAN';
  position: absolute;
  z-index: 6;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  font-family: 'VT323', monospace;
  font-size: clamp(8px, 1.2vw, 11px);
  letter-spacing: 1.5px;
  opacity: 0.65;
  pointer-events: none;
  white-space: nowrap;
}

.crt-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.crt-panel.active { pointer-events: auto; }

.roll-down { animation: rollReveal 1.3s ease-out forwards; }
.roll-up { animation: rollCollapse 0.55s ease-in forwards; }

@keyframes rollReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}

@keyframes rollCollapse {
  from { clip-path: inset(0 0 0% 0); }
  to   { clip-path: inset(0 0 100% 0); }
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0px,
    rgba(0,0,0,0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 5;
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.88; }
  94% { opacity: 1; }
}

/* ===================== LOGIN SCREEN ===================== */
#login-screen {
  background: var(--bg-grid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-title {
  font-family: 'VT323', monospace;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 8px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(61, 255, 160, 0.75), 0 0 2px rgba(61, 255, 160, 0.9);
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-label {
  font-family: 'VT323', monospace;
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--green);
  letter-spacing: 3px;
  opacity: 0.85;
}

.login-input {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-bright);
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  padding: 8px 16px;
  width: clamp(220px, 30vw, 320px);
  box-shadow: 0 0 8px rgba(61, 255, 160, 0.4);
  cursor: text;
}

.login-input:focus {
  outline: none;
  box-shadow: 0 0 14px rgba(61, 255, 160, 0.7);
}

.login-btn {
  margin-top: 16px;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: 'VT323', monospace;
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 3px;
  padding: 8px 26px;
}

.login-btn:hover {
  background: rgba(61, 255, 160, 0.1);
  color: var(--green-bright);
  box-shadow: 0 0 10px rgba(61, 255, 160, 0.5);
}

.login-theme-toggle {
  position: absolute;
  z-index: 7;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--green-dim);
  background: rgba(0, 0, 0, 0.24);
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 25%, transparent);
}

.login-theme-toggle::before {
  content: '☾';
  font-family: system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.login-theme-toggle:hover,
.login-theme-toggle:focus-visible {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  outline: none;
}

/* ===================== BOOT SCREEN ===================== */
#loading-screen {
  background: var(--bg-grid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-content {
  position: relative;
  z-index: 2;
  width: 84%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
}

.boot-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.otter-wrap {
  flex-shrink: 0;
  width: 50%;
  max-width: 380px;
  pointer-events: none;
}

.otter-ascii {
  font-family: 'Courier New', Consolas, monospace;
  font-size: clamp(5px, 1.4vw, 10.5px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--green);
  text-shadow: 0 0 6px rgba(61, 255, 160, 0.6), 0 0 2px rgba(61, 255, 160, 0.9);
  white-space: pre;
}

.logo-title {
  font-family: 'VT323', monospace;
  font-weight: 700;
  font-size: clamp(30px, 7vw, 52px);
  letter-spacing: 6px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(61, 255, 160, 0.75), 0 0 2px rgba(61, 255, 160, 0.9);
  line-height: 1.1;
}

.logo-sub {
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 2.4vw, 20px);
  color: var(--green);
  opacity: 0.85;
  letter-spacing: 3px;
  margin-top: 2px;
}

.progress-outer {
  margin-top: 30px;
  width: 78%;
  height: 22px;
  border: 2px solid var(--green);
  box-shadow: 0 0 6px rgba(61, 255, 160, 0.5);
  padding: 2px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 255, 160, 0.9);
  transition: width 0.15s linear;
}

.boot-status {
  font-family: 'VT323', monospace;
  font-size: clamp(13px, 2vw, 17px);
  color: var(--green);
  opacity: 0.8;
  margin-top: 10px;
  letter-spacing: 2px;
}

.boot-footer {
  font-family: 'VT323', monospace;
  font-size: clamp(12px, 1.8vw, 15px);
  color: var(--green);
  opacity: 0.6;
  margin-top: 18px;
  letter-spacing: 2px;
}

/* ===================== TERMINAL SCREEN ===================== */
#nav-screen {
  background: var(--bg-grid);
}

.terminal {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3%;
}

.error-page-terminal { justify-content: center; }
.error-page-terminal .title-bar { position: absolute; top: 3%; left: 3%; right: 3%; }
.error-page-content {
  align-self: center;
  width: min(100%, 620px);
  border: 1px solid var(--green-dim);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 18px rgba(61, 255, 160, 0.12);
  color: var(--green-bright);
  padding: clamp(24px, 5vw, 52px);
  text-align: center;
  font-size: clamp(17px, 2.4vw, 22px);
}
.error-page-content p { margin-bottom: 16px; }
.error-code { color: var(--green); font-size: clamp(32px, 7vw, 56px); letter-spacing: 5px; }
.error-system-line {
  border-top: 1px solid var(--green-dim);
  border-bottom: 1px solid var(--green-dim);
  color: var(--green);
  padding: 10px 0;
  font-size: clamp(14px, 2vw, 17px);
}
.error-page-home {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #00130a;
  padding: 9px 17px;
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: 2px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(61, 255, 160, 0.35);
}
.error-page-home:hover,
.error-page-home:focus-visible {
  background: transparent;
  color: var(--green-bright);
  outline: none;
}

.title-bar {
  background: var(--green);
  color: #000;
  font-family: 'VT323', monospace;
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 22px);
  letter-spacing: 2px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(61, 255, 160, 0.5);
}

.title-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 19, 10, 0.38);
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
}

.title-icon::before {
  content: '☾';
  color: #00130a;
  font-size: 23px;
  line-height: 1;
}

body.theme-minitel .title-icon::before { content: '☀'; }
body.theme-minitel .login-theme-toggle::before { content: '☀'; }

.title-icon:hover,
.title-icon:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #00130a;
  box-shadow: none;
  outline: none;
}

/* Optional blue Minitel palette, enabled with the button in the title bar. */
body.theme-minitel {
  --green: #70d8ff;
  --green-bright: #d8f8ff;
  --green-dim: #277895;
  --bg-grid:
    radial-gradient(ellipse at 50% 50%, #124b6d 0%, #08283e 55%, #03131f 100%),
    repeating-linear-gradient(to bottom, rgba(142, 230, 255, 0.10) 0px, rgba(142, 230, 255, 0.10) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(to right, rgba(142, 230, 255, 0.10) 0px, rgba(142, 230, 255, 0.10) 1px, transparent 1px, transparent 5px);
}

body.theme-minitel .title-bar { box-shadow: 0 0 10px rgba(112, 216, 255, 0.55); }

.terminal-body {
  flex: 1;
  display: flex;
  min-height: 0;
  margin-top: 3%;
}

.sidebar {
  width: 30%;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  color: var(--green);
  letter-spacing: 3px;
  font-size: clamp(13px, 2vw, 17px);
  margin-bottom: 10px;
  opacity: 0.85;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submenu-list {
  max-width: 380px;
  margin-top: 16px;
}

.projects-intro {
  text-align: center;
  color: var(--green-bright);
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 720px);
  max-width: none;
  margin: 16px auto 0;
}

.projects-grid .nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projects-grid .project-upcoming {
  border-color: rgba(190, 210, 200, 0.28);
  background: rgba(190, 210, 200, 0.05);
  color: rgba(210, 225, 218, 0.48);
  line-height: 1.15;
  pointer-events: none;
}

.projects-github {
  margin-top: 32px !important;
  text-align: center;
}

.project-action {
  margin-top: 24px !important;
  text-align: center;
}

.breadcrumb {
  opacity: 0.7;
  margin-bottom: 14px;
}

.nav-item {
  display: block;
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green);
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 2.1vw, 18px);
  letter-spacing: 2px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.nav-item:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.nav-item.active {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(61, 255, 160, 0.08);
  box-shadow: 0 0 8px rgba(61, 255, 160, 0.35);
}

.logout-item {
  margin-top: 14px;
  border-color: rgba(255, 120, 120, 0.35);
  color: rgba(255, 160, 160, 0.85);
}

.logout-item:hover {
  border-color: rgba(255, 120, 120, 0.7);
  color: #ffb3b3;
}

.connector-gutter {
  position: relative;
  width: 5%;
  min-width: 24px;
  flex-shrink: 0;
}

.connector-h {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 4px rgba(61, 255, 160, 0.6);
}

.connector-v {
  position: absolute;
  right: 0;
  width: 1px;
  background: var(--green);
  box-shadow: 0 0 4px rgba(61, 255, 160, 0.6);
}

.content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.content-col.roll-swap {
  animation: rollReveal 0.5s ease-out;
}

.content-header {
  border: 2px solid var(--green);
  color: var(--green-bright);
  font-family: 'VT323', monospace;
  font-size: clamp(17px, 2.6vw, 24px);
  letter-spacing: 2px;
  padding: 10px 16px;
  text-shadow: 0 0 6px rgba(61, 255, 160, 0.6);
}

.content-box {
  flex: 1;
  border: 1px solid var(--green-dim);
  border-top: none;
  margin-top: -1px;
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #d6ffe9;
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
}

.content-box.uppercase-text { text-transform: uppercase; }

.content-box.game-fill {
  overflow: hidden;
  display: flex;
  padding: 10px;
}

.content-box p { margin-bottom: 12px; }
.content-box p:last-child { margin-bottom: 0; }

.content-box.home-box {
  display: flex;
  flex-direction: column;
}

.type-char {
  opacity: 0;
  transition: opacity 0.05s linear;
}

.type-in .type-char {
  opacity: 1;
}

.home-lastlogin {
  font-size: clamp(12px, 1.7vw, 14px) !important;
  letter-spacing: 1px;
  opacity: 0.65;
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 10px;
  margin-bottom: 18px !important;
}

.home-greeting {
  font-size: clamp(18px, 2.8vw, 24px);
}

.home-wish {
  margin-top: auto !important;
  text-align: center;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: 2px;
  color: var(--green-bright);
  text-shadow: 0 0 8px rgba(61, 255, 160, 0.6);
}

.stock-ticker {
  margin-top: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--green-dim);
  background: #020a05;
  overflow: hidden;
  white-space: nowrap;
}

.stock-ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 6px 0;
  animation: stockScroll 45s steps(45, end) infinite;
  font-family: 'Courier New', Consolas, monospace;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 1px;
  color: var(--green);
  text-shadow: 0 0 5px rgba(61, 255, 160, 0.8), 0 0 2px rgba(61, 255, 160, 0.9);
}

.stock-ticker-track span {
  flex-shrink: 0;
  padding-right: 40px;
  border-right: 1px solid var(--green-dim);
}

@keyframes stockScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.game-entry {
  border: 1px solid var(--green-dim);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.game-entry-name {
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 2px;
  color: var(--green-bright);
  margin-bottom: 10px !important;
}

.game-entry .btn-link {
  margin-top: 0;
}

.content-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cv-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cv-side {
  width: 30%;
  min-width: 170px;
  flex-shrink: 0;
}

.cv-main {
  flex: 1;
  min-width: 0;
}

.cv-portrait-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

/* ===================== MAIL ===================== */
.mail-item {
  border: 1px solid var(--green);
  margin-bottom: 26px;
  box-shadow: 0 0 12px rgba(61, 255, 160, 0.18);
  background: rgba(61, 255, 160, 0.03);
}

.mail-item:last-child {
  margin-bottom: 0;
}

.mail-from {
  background: rgba(61, 255, 160, 0.14);
  color: var(--green-bright);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 16px 6px;
  margin-bottom: 0 !important;
}

.mail-subject {
  background: rgba(61, 255, 160, 0.14);
  color: var(--green);
  font-style: italic;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--green);
  padding: 0 16px 10px;
  margin-bottom: 0 !important;
}

.mail-body {
  margin-bottom: 10px;
  padding: 0 16px;
}

.mail-body:first-of-type {
  margin-top: 14px;
}

.mail-sign {
  opacity: 0.8;
  font-style: italic;
  margin-top: 4px;
  padding: 0 16px 16px;
}

.portrait-ascii {
  font-family: 'Courier New', Consolas, monospace;
  font-size: clamp(2.6px, 0.66vw, 4.4px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--green);
  text-shadow: 0 0 5px rgba(61, 255, 160, 0.55), 0 0 2px rgba(61, 255, 160, 0.85);
  white-space: pre;
}

.cv-name {
  font-family: 'VT323', monospace;
  font-size: clamp(17px, 2.4vw, 21px);
  letter-spacing: 2px;
  color: var(--green-bright);
  text-align: center;
  text-shadow: 0 0 6px rgba(61, 255, 160, 0.6);
}

.cv-contact {
  text-align: center;
  opacity: 0.75;
  margin-bottom: 16px;
  font-size: clamp(12px, 1.6vw, 15px);
  word-break: break-word;
}

.cv-section {
  font-family: 'VT323', monospace;
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 2px;
  color: var(--green-bright);
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 4px;
  margin: 20px 0 10px;
}

.content-box p.cv-role {
  font-weight: 700;
  color: var(--green-bright);
  background: rgba(61, 255, 160, 0.1);
  border-left: 3px solid var(--green);
  padding: 6px 10px;
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.content-box li::before {
  content: "> ";
  color: var(--green);
}

.content-box a {
  color: var(--green-bright);
}

.content-box .btn-link {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 0;
  color: var(--green);
  font: inherit;
  padding: 6px 14px;
  letter-spacing: 2px;
  text-decoration: none;
}
.content-box .btn-link:hover {
  background: rgba(61, 255, 160, 0.1);
  color: var(--green-bright);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.radio-player {
  border: 1px solid var(--green-dim);
  padding: 20px;
  flex: 1 1 280px;
  max-width: 420px;
  margin-top: 10px;
}

.radio-station {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--green-bright);
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(61, 255, 160, 0.6);
}

.radio-sub {
  opacity: 0.7;
  margin-top: 2px;
  margin-bottom: 16px;
}

.radio-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-bottom: 16px;
}

.radio-eq span {
  width: 6px;
  background: var(--green);
  box-shadow: 0 0 4px rgba(61, 255, 160, 0.6);
  animation: eqBounce 1.1s ease-in-out infinite;
  opacity: 0.35;
  height: 20%;
}

.radio-eq.playing span { opacity: 1; }

.radio-eq span:nth-child(1) { animation-delay: -0.9s; }
.radio-eq span:nth-child(2) { animation-delay: -0.6s; }
.radio-eq span:nth-child(3) { animation-delay: -1.1s; }
.radio-eq span:nth-child(4) { animation-delay: -0.3s; }
.radio-eq span:nth-child(5) { animation-delay: -0.75s; }
.radio-eq span:nth-child(6) { animation-delay: -0.15s; }

@keyframes eqBounce {
  0%, 100% { height: 15%; }
  50% { height: 100%; }
}

#radio-toggle,
#radio-toggle-2 {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font: inherit;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: 'VT323', monospace;
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 2px;
  padding: 8px 18px;
}

#radio-toggle:hover,
#radio-toggle-2:hover {
  background: rgba(61, 255, 160, 0.1);
  color: var(--green-bright);
}

.radio-status {
  margin-top: 12px;
  opacity: 0.75;
  letter-spacing: 1px;
}

/* ===================== CONTACT ===================== */
.contact-form {
  max-width: 560px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-row {
  display: flex;
  gap: 14px;
}

.contact-row .contact-field {
  flex: 1;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: clamp(12px, 1.7vw, 14px);
  letter-spacing: 2px;
  color: var(--green);
  opacity: 0.85;
}

.contact-input,
.contact-textarea {
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green-bright);
  font-family: 'VT323', monospace;
  font-size: clamp(15px, 2.1vw, 18px);
  letter-spacing: 1px;
  padding: 8px 10px;
  cursor: text;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(61, 255, 160, 0.4);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-submit {
  align-self: center;
  cursor: pointer;
}

.contact-status {
  min-height: 1.4em;
  letter-spacing: 1px;
}

.contact-status:not(:empty) {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--green);
  background: rgba(61, 255, 160, 0.1);
  color: var(--green-bright);
  font-weight: 700;
}

.contact-status.contact-status-warn {
  border-color: #ff8a8a;
  background: rgba(255, 95, 95, 0.12);
  color: #ffb3b3;
}

/* ===================== ARCADE GAMES (Asteroid, Pong) ===================== */
.game-hud {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 24px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(3, 13, 6, 0.9), 0 0 4px rgba(3, 13, 6, 0.9);
  pointer-events: none;
}

.game-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--green);
  box-shadow: 0 0 14px rgba(61, 255, 160, 0.2);
}

.game-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #030d06;
  cursor: crosshair;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(3, 13, 6, 0.85);
  text-align: center;
  padding: 20px;
}

.game-overlay.show {
  display: flex;
}

.game-title {
  font-family: 'VT323', monospace;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 4px;
  color: var(--green-bright);
  text-shadow: 0 0 8px rgba(61, 255, 160, 0.7);
}

.game-instructions {
  opacity: 0.8;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hint-bar {
  margin-top: 2%;
  border-top: 1px solid var(--green-dim);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green);
  opacity: 0.75;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 1px;
}

.hint-left {
  display: flex;
  gap: 24px;
}

.hint-clock {
  white-space: nowrap;
}

/* ===================== NEWS ARTICLES ===================== */
.news-divider {
  border: none;
  border-top: 1px solid var(--green-dim);
  margin: 4px 0 22px;
}

.news-edition-date {
  text-align: center;
  font-size: clamp(18px, 2.8vw, 24px);
  letter-spacing: 4px;
  color: var(--green-bright);
  text-shadow: 0 0 8px rgba(61, 255, 160, 0.6);
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  padding: 10px 0;
  margin-bottom: 20px !important;
}

.news-article {
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.news-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-kicker {
  font-family: 'VT323', monospace;
  font-size: clamp(12px, 1.7vw, 14px);
  letter-spacing: 3px;
  color: var(--green);
  opacity: 0.85;
  margin-bottom: 4px !important;
}

.news-headline {
  font-family: 'VT323', monospace;
  font-weight: 700;
  font-size: clamp(21px, 3.2vw, 28px);
  letter-spacing: 0.5px;
  color: var(--green-bright);
  text-shadow: 0 0 6px rgba(61, 255, 160, 0.55);
  line-height: 1.3;
  margin-bottom: 10px;
}

.news-subhead {
  font-size: clamp(15px, 2.2vw, 19px);
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-top: 0;
  margin-bottom: 12px !important;
}

.news-dateline {
  font-weight: 700;
  color: var(--green-bright);
  letter-spacing: 1px;
}

/* The light palette needs less CRT glow on long news titles. */
body.theme-minitel .news-headline {
  color: #b9eafd;
  text-shadow: 0 0 2px rgba(112, 216, 255, 0.28);
}

body.theme-minitel .news-edition-date {
  text-shadow: 0 0 3px rgba(112, 216, 255, 0.28);
}

/* ===================== SCROLLBAR ===================== */
.content-box::-webkit-scrollbar { width: 8px; }
.content-box::-webkit-scrollbar-track { background: transparent; }
.content-box::-webkit-scrollbar-thumb { background: var(--green-dim); }

/* ===================== TOUCH CONTROLS (games) ===================== */
.touch-controls {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px;
  pointer-events: none;
}

.touch-group {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.touch-group.touch-vertical {
  flex-direction: column;
}

.touch-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(61, 255, 160, 0.12);
  border: 1px solid var(--green);
  color: var(--green-bright);
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.touch-btn:active {
  background: rgba(61, 255, 160, 0.3);
}

.touch-btn.touch-fire {
  width: 68px;
  height: 68px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===================== RESPONSIVE / MOBILE ===================== */
@media (max-width: 700px) {
  .terminal { padding: 4vw; }

  .title-bar {
    font-size: 14px;
    padding: 6px 10px;
    letter-spacing: 1px;
  }
  .title-icon { width: 18px; height: 18px; }
  .title-icon::before { font-size: 20px; }

  .terminal-body {
    flex-direction: column;
    gap: 10px;
    margin-top: 3vw;
  }

  .sidebar { width: 100%; min-width: 0; flex-shrink: 0; }

  .sidebar-label { margin-bottom: 6px; }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
  }

  .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 10px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 460px);
    overflow: visible;
  }

  .logout-item { margin-top: 0; }

  .connector-gutter { display: none; }

  .content-header { font-size: 15px; padding: 8px 10px; }

  .content-box { padding: 12px; font-size: 14px; }

  .hint-bar { flex-wrap: wrap; row-gap: 4px; }
  .hint-left { flex-wrap: wrap; gap: 4px 14px; }
  .hint-clock { width: 100%; text-align: right; font-size: 10px; }

  .cv-layout { flex-direction: column; gap: 20px; }
  .cv-side { width: 100%; min-width: 0; }

  .radio-player { max-width: 100%; }

  .game-title { font-size: 22px; }
  .game-instructions { display: none; }

  .touch-controls { display: flex; }

  .login-input { width: 78vw; }
  .login-title { letter-spacing: 4px; }
}

@media (max-width: 420px) {
  .otter-ascii { font-size: 3.4px !important; }
  .portrait-ascii { font-size: 1.8px !important; }
}

/* ===================== WEB MONITORING DEMO ===================== */
.wm-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 3%;
  color: #d6ffe9;
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
}

.wm-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.wm-auto-label {
  opacity: 0.6;
  font-size: 0.85em;
  letter-spacing: 1px;
}

.wm-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--green-dim);
  padding: 10px 14px;
  flex-wrap: wrap;
  transition: border-color 0.3s ease;
}

.wm-name {
  flex: 1;
  min-width: 150px;
  color: var(--green-bright);
  font-weight: 700;
  letter-spacing: 1px;
}

.wm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 90px;
}

.wm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(61, 255, 160, 0.8);
  flex-shrink: 0;
}

.wm-row.down {
  border-color: rgba(255, 95, 95, 0.5);
}

.wm-row.down .wm-dot {
  background: #ff5f5f;
  box-shadow: 0 0 6px rgba(255, 95, 95, 0.8);
}

.wm-row.down .wm-status-text { color: #ff8a8a; }

.wm-metric {
  min-width: 100px;
  opacity: 0.85;
  font-size: 0.9em;
}

/* Jeelh variants: use a cursor that reflects the control's purpose. */
body .title-icon { cursor: url("cursors/jeelh-dark/Alternate%20Select.cur") 0 0, pointer; }
body .nav-item:hover { cursor: url("cursors/jeelh-dark/Select.cur") 0 0, pointer; }
body .touch-controls .touch-btn { cursor: url("cursors/jeelh-dark/Move.cur") 0 0, pointer; }
body .touch-controls .touch-fire { cursor: url("cursors/jeelh-dark/Precision%20Select.cur") 0 0, pointer; }
body .contact-textarea { cursor: url("cursors/jeelh-dark/Handwriting.cur") 0 0, text; }
body button:disabled,
body .btn-link:disabled { cursor: url("cursors/jeelh-dark/Unavailable.cur") 0 0, not-allowed; }

body.theme-minitel .title-icon { cursor: url("cursors/jeelh-light/Alternate%20Select%20Light.cur") 0 0, pointer; }
body.theme-minitel .nav-item:hover { cursor: url("cursors/jeelh-light/Select%20Light.cur") 0 0, pointer; }
body.theme-minitel .touch-controls .touch-btn { cursor: url("cursors/jeelh-light/Move%20Light.cur") 0 0, pointer; }
body.theme-minitel .touch-controls .touch-fire { cursor: url("cursors/jeelh-light/Precision%20Select%20Light.cur") 0 0, pointer; }
body.theme-minitel .contact-textarea { cursor: url("cursors/jeelh-light/Handwriting%20Light.cur") 0 0, text; }
body.theme-minitel button:disabled,
body.theme-minitel .btn-link:disabled { cursor: url("cursors/jeelh-light/Unavailable%20Light.cur") 0 0, not-allowed; }

/* Additional variants are available where a future component needs them. */
.cursor-move { cursor: url("cursors/jeelh-dark/Move.cur") 0 0, move; }
.cursor-resize-ew { cursor: url("cursors/jeelh-dark/Horizontal%20Resize.cur") 0 0, ew-resize; }
.cursor-resize-ns { cursor: url("cursors/jeelh-dark/Verticle%20Resize.cur") 0 0, ns-resize; }
.cursor-resize-nesw { cursor: url("cursors/jeelh-dark/Diagonal%20Resize%201.cur") 0 0, nesw-resize; }
.cursor-resize-nwse { cursor: url("cursors/jeelh-dark/Diagonal%20Resize%202.cur") 0 0, nwse-resize; }
.cursor-background { cursor: url("cursors/jeelh-dark/Busy.ani") 0 0, progress; }

body.theme-minitel .cursor-move { cursor: url("cursors/jeelh-light/Move%20Light.cur") 0 0, move; }
body.theme-minitel .cursor-resize-ew { cursor: url("cursors/jeelh-light/Horizontal%20Resize%20Light.cur") 0 0, ew-resize; }
body.theme-minitel .cursor-resize-ns { cursor: url("cursors/jeelh-light/Verticle%20Resize%20Light.cur") 0 0, ns-resize; }
body.theme-minitel .cursor-resize-nesw { cursor: url("cursors/jeelh-light/Diagonal%20Resize%201%20Light.cur") 0 0, nesw-resize; }
body.theme-minitel .cursor-resize-nwse { cursor: url("cursors/jeelh-light/Diagonal%20Resize%202%20Light.cur") 0 0, nwse-resize; }
body.theme-minitel .cursor-background { cursor: url("cursors/jeelh-light/Busy%20Light.ani") 0 0, progress; }
