/* ============ TOKENS ============ */
:root {
  --case: #72add6;
  --lcd: #c7d2d6;
  --navy: #1c2e5c;
  --pink: #e8368f;
  --lcd-left: 14.06%;
  --lcd-top: 20.96%;
  --lcd-w: 71.09%;
  --lcd-h: 29.43%;
  --frame: clamp(6px, 1.2vw, 14px);
  --pixel: "Press Start 2P", monospace;
  --body: "VT323", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; color: var(--navy); font-family: var(--body); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ============ PHONE (OFF / BOOT / ZOOM) ============ */
#phone { position: fixed; inset: 0; overflow: hidden; }
.phone__stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform-origin: 50% 50%;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1), opacity 150ms linear;
}
.phone__device {
  position: relative;
  width: min(94vw, calc(92vh * 1024 / 1536));
  width: min(94vw, calc(92svh * 1024 / 1536));
  aspect-ratio: 1024 / 1536;
  border-radius: 9% / 6%;
}
.no-photo .phone__device { background: var(--case); }
.phone__img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.no-photo .phone__img { display: none; }
.lcd {
  position: absolute;
  left: var(--lcd-left); top: var(--lcd-top);
  width: var(--lcd-w); height: var(--lcd-h);
  background: #000;
  overflow: hidden;
  container-type: inline-size;
}
.lcd::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Power button */
.power {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--case);
}
.power svg {
  width: 22%; height: auto;
  filter: drop-shadow(0 0 6px var(--case)) drop-shadow(0 0 14px rgba(114, 173, 214, 0.6));
  animation: pulse 2.4s ease-in-out infinite;
}
.power:hover svg, .power:focus-visible svg { animation-duration: 0.9s; }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Splash (logo jumps in before the boot) */
.splash { position: absolute; inset: 0; background: #000; display: grid; place-items: center; overflow: hidden; }
.splash__mark { width: min(72%, 720px); height: auto; user-select: none; -webkit-user-drag: none; transform-origin: 50% 100%; }
[data-state="splash"] .splash__mark { animation: splash-jump 1100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes splash-jump {
  0%   { transform: translateY(215%) scale(0.85, 1.15); }   /* fully below the LCD edge */
  38%  { transform: translateY(-14%) scale(1.06, 0.94); }
  55%  { transform: translateY(5%)   scale(0.96, 1.04); }
  72%  { transform: translateY(-4%)  scale(1.02, 0.98); }
  86%  { transform: translateY(1.5%) scale(0.99, 1.01); }
  100% { transform: none; }
}
/* steps(3, end): a retro three-frame blink-off instead of a smooth fade. */
.splash.is-out .splash__mark { animation: splash-out 220ms steps(3, end) forwards; }
@keyframes splash-out { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Boot */
.boot { position: absolute; inset: 0; background: #000; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.boot__hud {
  position: absolute; top: 3%; left: 3%; right: 3%;
  display: flex; justify-content: space-between;
  color: #fff; font-family: var(--pixel); font-size: clamp(6px, 0.9vw, 10px);
  pointer-events: none;
}
.boot__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: max(5%, 14px);
  background: #222; padding: 0;
}
.boot__fill { display: block; height: 100%; width: 0; background: var(--case); }

/* Screen (HOME / APP) */
.screen {
  position: absolute; inset: 0;
  background: var(--lcd);
  display: flex; flex-direction: column;
}
.status {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  background: #b7c6d0; color: var(--navy);
  font-family: var(--pixel); font-size: min(1cqw, 12px);
  padding: 0.5em 1em 0;
}
/* Fourth grid item under the whole row: the 7290's bar that fades out to the right. */
.status__rule {
  grid-column: 1 / -1; height: 0.5em; margin-top: 0.35em;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 45%, rgba(28, 46, 92, 0.55) 75%, rgba(28, 46, 92, 0) 100%);
}
.status__left { justify-self: start; display: inline-flex; align-items: center; gap: 0.5em; }
.status__right { justify-self: end; display: inline-flex; align-items: center; gap: 0.5em; }
.status__center { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.status__time { font-size: 2.1em; line-height: 1; display: inline-flex; align-items: baseline; gap: 0.15em; }
.status__ampm { font-size: 0.4em; }
.status__glyph { display: inline-flex; gap: 0.3em; align-items: center; }
.status svg { height: 1em; width: auto; }
.status__battery svg { height: 0.75em; }
.body { position: relative; flex: 1; overflow: hidden; }
.label {
  font-family: var(--pixel); font-size: min(1cqw, 12px);
  text-align: center; padding: 0.8em; border-top: 2px solid var(--navy);
  min-height: 2.6em;
}

/* Inside the phone the LCD is the viewport: enforce readable minimums.
   The pure cqw sizes above stay for the zoom miniature. */
[data-state="home"] :is(.status, .label),
[data-state="app"] :is(.status, .label) { font-size: clamp(8px, 1cqw, 12px); }
[data-state="home"] .icon, [data-state="app"] .icon { font-size: clamp(8px, 0.85cqw, 11px); }
[data-state="home"] .folder__bar, [data-state="app"] .folder__bar { font-size: clamp(8px, 0.85cqw, 11px); }
/* Photo mode: the LCD is a window in the phone photo, not the viewport. No px
   caps, so the zoom miniature (ghost) and the real layout share one scale;
   the 8px floors only bite on small windows. */
[data-mode="photo"] .icon { font-size: 0.85cqw; }
[data-mode="photo"] .icon svg { width: 6cqw; }
[data-mode="photo"] .status, [data-mode="photo"] .label { font-size: 1cqw; }
/* 2px at the 1440x900 window. A px border is 2.7x taller in the zoom miniature,
   which would shift the centred desk against the real layer at the hand-over. */
[data-mode="photo"] .label { border-top-width: 0.19cqw; }
[data-mode="photo"] .folder { min-width: 52cqw; box-shadow: 0.6cqw 0.6cqw 0 var(--navy); }
[data-mode="photo"] .folder__bar { font-size: 0.85cqw; }
[data-mode="photo"] .folder__items { gap: 2cqw; padding: 2.5cqw 2cqw; }
[data-mode="photo"][data-state="home"] :is(.status, .label),
[data-mode="photo"][data-state="app"] :is(.status, .label) { font-size: max(8px, 1cqw); }
[data-mode="photo"][data-state="home"] :is(.icon, .folder__bar),
[data-mode="photo"][data-state="app"] :is(.icon, .folder__bar) { font-size: max(8px, 0.85cqw); }

/* ============ STATE VISIBILITY ============ */
[data-state="off"] .splash, [data-state="off"] .boot, [data-state="off"] .screen { display: none; }
[data-state="splash"] .power, [data-state="splash"] .boot, [data-state="splash"] .screen { display: none; }
[data-state="boot"] .power, [data-state="boot"] .splash, [data-state="boot"] .screen { display: none; }
[data-state="enter"] .power, [data-state="enter"] .splash, [data-state="enter"] .boot { display: none; }
[data-state="home"] .power, [data-state="home"] .splash, [data-state="home"] .boot,
[data-state="app"] .power, [data-state="app"] .splash, [data-state="app"] .boot { display: none; }

/* Inside the phone. Two modes, set by layout() in main.js:
   - fill  (mobile / portrait): the LCD is the viewport, framed by a thin case border.
   - photo (landscape desktop): the stage stays zoomed so the photo's LCD region
     becomes a window; the real #lcd sits exactly on it (--win-*). The stage
     transform IS the frame and is never cleared in photo mode. */
.frame { display: none; }
[data-mode="fill"][data-state="home"] .phone__img, [data-mode="fill"][data-state="app"] .phone__img { display: none; }
[data-mode="fill"][data-state="home"] .phone__device, [data-mode="fill"][data-state="app"] .phone__device,
[data-mode="fill"][data-state="enter"] .phone__device { background: none; }
[data-mode="fill"][data-state="home"] .phone__stage, [data-mode="fill"][data-state="app"] .phone__stage { transform: none !important; transition: none; }
[data-mode="photo"][data-state="home"] .phone__stage, [data-mode="photo"][data-state="app"] .phone__stage { transition: none; }
/* phone-cut.png has the screen cut out, so the photo sits ON TOP of the real
   LCD (z-index 6 > 5): the bezel with its rounded corners frames the display
   instead of the LCD rectangle lying on the photo. Clicks pass through. */
[data-mode="photo"][data-state="enter"] .phone__stage,
[data-mode="photo"][data-state="home"] .phone__stage,
[data-mode="photo"][data-state="app"] .phone__stage { z-index: 6; pointer-events: none; }
/* Scoped by id (not .lcd) so the cloned .lcd--ghost keeps its small,
   photo-embedded geometry instead of also jumping to the fixed layout. */
[data-state="home"] #lcd, [data-state="app"] #lcd,
[data-state="enter"] #lcd {
  position: fixed; z-index: 5;
  left: var(--frame); right: var(--frame); top: var(--frame);
  bottom: calc(var(--frame) * 3);
  width: auto; height: auto;
  background: var(--lcd);
}
[data-mode="photo"][data-state="home"] #lcd, [data-mode="photo"][data-state="app"] #lcd,
[data-mode="photo"][data-state="enter"] #lcd {
  left: var(--win-x); top: var(--win-y); width: var(--win-w); height: var(--win-h);
  right: auto; bottom: auto;
}
.lcd--ghost { pointer-events: none; transition: opacity 380ms ease-in 520ms; }
.lcd--ghost.is-fading { opacity: 0; }
/* Photo mode: ghost and real layer share the same geometry, so a short linear
   dissolve at the end of the ride is enough and the real layer never shows
   as a translucent rectangle while the phone is still growing. */
[data-mode="photo"] .lcd--ghost { transition: opacity 300ms linear 600ms; }
[data-mode="fill"][data-state="home"] .frame, [data-mode="fill"][data-state="app"] .frame,
[data-mode="fill"][data-state="enter"] .frame {
  display: block; position: fixed; inset: 0; z-index: 10; pointer-events: none;
  border: var(--frame) solid var(--case);
  border-bottom-width: calc(var(--frame) * 3);
}
[data-mode="fill"][data-state="enter"] #lcd, [data-mode="fill"][data-state="enter"] .frame {
  animation: enter-in 380ms ease-out 520ms both;
}
/* While the zoom runs the real layer is (nearly) invisible: hover must go to nothing. */
[data-state="enter"] #lcd { pointer-events: none; }
@keyframes enter-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
[data-mode="photo"][data-state="enter"] #lcd {
  animation: enter-in-photo 300ms linear 600ms both;
}
@keyframes enter-in-photo {
  from { opacity: 0; }
  to { opacity: 1; }
}
.frame__mark {
  position: absolute; left: 50%; bottom: calc(var(--frame) * -3);
  height: calc(var(--frame) * 2.2); width: auto;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}
[data-state="enter"] .screen,
[data-state="home"] .screen, [data-state="app"] .screen { animation: fade-in 200ms ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============ HOME DESKTOP ============ */
.home { position: absolute; inset: 0; }
.icon {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.9em;
  padding: 0.8em 0.6em;
  border: 2px solid transparent;
  font-family: var(--pixel); font-size: min(0.85cqw, 11px);
  color: var(--navy); text-transform: uppercase; white-space: nowrap;
}
.icon svg { width: min(6cqw, 72px); height: auto; }
/* The folder label is long and its icon sits at the LCD edge: two lines. */
.icon[data-folder] span { white-space: normal; max-width: 13ch; text-align: center; }
.icon.is-selected { border-color: var(--navy); }
.icon:hover { border-color: var(--case); }
.icon:focus-visible { outline: 2px dashed var(--navy); outline-offset: 2px; }
.folder {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  min-width: min(52cqw, 640px);
  background: var(--lcd);
  border: 2px solid var(--navy);
  box-shadow: min(0.6cqw, 8px) min(0.6cqw, 8px) 0 var(--navy);
  z-index: 3;
}
.folder__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  background: var(--navy); color: var(--lcd);
  font-family: var(--pixel); font-size: min(0.85cqw, 11px);
  padding: 0.6em 0.8em;
}
.folder__close { color: inherit; padding: 0 0.4em; border: 1px solid currentColor; }
.folder__items {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: min(2cqw, 28px);
  padding: min(2.5cqw, 32px) min(2cqw, 24px);
}
.folder__items .icon { position: static; transform: none; }

/* ============ APP PANEL ============ */
.app {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex; flex-direction: column;
  background: var(--lcd);
  transform: translateX(100%);
  transition: transform 200ms ease-out;
}
.app.is-open { transform: none; }
.app__bar {
  display: flex; align-items: center; gap: 1.5em;
  padding: 0.8em 1em;
  border-bottom: 2px solid var(--navy);
  font-family: var(--pixel); font-size: clamp(8px, 1vw, 12px);
}
.app__back { padding: 0.4em 0.6em; border: 2px solid var(--navy); }
.app__back:hover { background: var(--navy); color: var(--lcd); }
.app__bar h2 { font-size: inherit; font-weight: normal; }
.app__content {
  flex: 1; overflow-y: auto;
  padding: clamp(14px, 2.5vw, 40px);
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25;
}

/* Text blocks */
.intro, .text p { max-width: 60ch; margin-bottom: 1em; }
.kicker { font-family: var(--pixel); font-size: 0.45em; letter-spacing: 0.1em; }
.text a { text-decoration: underline; text-underline-offset: 3px; }

/* Landing (HOME app) */
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2em; }
/* aspect-ratio (510x154 png): the desk's height is known before the image arrives. */
.landing__mark { width: min(70%, 520px); aspect-ratio: auto 510 / 154; filter: invert(1); mix-blend-mode: multiply; }
.landing__kicker { font-family: var(--pixel); font-size: 0.45em; letter-spacing: 0.12em; }
.landing__body { max-width: 60ch; }
.logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5em 2.5em; margin-top: 1em; }
.logos li { display: flex; align-items: center; }
.logos img { height: clamp(22px, 2.6vw, 44px); width: auto; filter: invert(1) grayscale(1); mix-blend-mode: multiply; }
.logos img.is-dark { filter: grayscale(1); }
.logos img.is-large { height: clamp(34px, 4vw, 66px); }
.logos img.is-wide { height: clamp(30px, 3.6vw, 58px); }
.landing > .logos { margin-top: 0; margin-bottom: 1.5em; }

/* Landing on the desktop (increment 9): the centre piece of #home, the app
   icons around it. Everything in cqw (no px caps) so the zoom miniature and
   the real layout share one scale in photo mode. Overrides the panel-sized
   .landing/.logos rules above (same or higher specificity, later). */
.desk {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2.2cqw; padding: 2.4cqw 4cqw 2cqw;   /* content starts right under the status bar (owner: "muss weiter hoch") */
  text-align: center;
  pointer-events: none; user-select: none;
}
.desk .logos { margin: 0; width: 84cqw; flex-wrap: nowrap; justify-content: space-between; gap: 1.2cqw 2cqw; }   /* spread over the whole width (cqw: the landing box is shrink-wrapped) */
.desk .logos img { height: 3.1cqw; }
.desk .logos img.is-large { height: 4.7cqw; }
.desk .logos img.is-wide { height: 2.8cqw; }
.desk .landing { gap: 1.6cqw; }
.desk .landing__mark { width: 34cqw; }
.desk .landing__kicker { font-size: 0.95cqw; line-height: 1.6; }   /* explicit: 'normal' rounds at miniature sizes */
.desk .landing__body { font-family: var(--body); font-size: 2cqw; line-height: 1.25; max-width: 44cqw; }

/* Password gate (CURRENT app) */
.gate { display: flex; flex-direction: column; align-items: center; gap: 1em; max-width: 36ch; margin: 2em auto; text-align: center; }
.gate__title { font-family: var(--pixel); font-size: 0.55em; letter-spacing: 0.1em; }
.gate__label { font-family: var(--pixel); font-size: 0.4em; letter-spacing: 0.2em; }
.gate__input {
  width: 100%; padding: 0.4em 0.6em;
  font: inherit; color: var(--navy); background: #dbe3e7;
  border: 2px solid var(--navy); border-radius: 0; text-align: center; letter-spacing: 0.2em;
}
.gate__input:focus { outline: 2px solid var(--case); outline-offset: 2px; }
.gate__button { font-family: var(--pixel); font-size: 0.45em; padding: 0.8em 1.6em; border: 2px solid var(--navy); }
.gate__button:hover, .gate__button:focus-visible { background: var(--navy); color: var(--lcd); }
.gate__error { font-family: var(--pixel); font-size: 0.4em; color: #b3261e; }
.gate.is-shake { animation: shake 400ms; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .gate.is-shake { animation: none; } }

/* Project tiles */
.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.tile__media {
  position: relative; aspect-ratio: 16 / 9;
  border: 2px solid var(--navy); background: #000; overflow: hidden;
}
.tile__media.is-portrait { aspect-ratio: 2 / 3; max-width: 60%; }
.tile__media img, .tile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #666; font-family: var(--pixel); font-size: 0.4em;
}
.tile__client { font-family: var(--pixel); font-size: 0.4em; margin-top: 0.9em; text-transform: uppercase; }
.tile__title { font-weight: normal; font-size: 1.1em; line-height: 1.1; }

/* Crew */
.crew {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 32px);
  margin: 1.5em auto;
  max-width: 1300px;
}
.crew__member { display: flex; flex-direction: column; align-items: center; text-align: center; width: clamp(108px, 11.5vw, 160px); }
.crew__photo {
  width: 76%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--navy); background: #000; margin-bottom: 0.6em;
}
.crew__photo img { width: 100%; height: 100%; object-fit: cover; }
.crew__tag { width: 100%; height: clamp(40px, 4.6vw, 64px); object-fit: contain; filter: invert(1); mix-blend-mode: multiply; }
.crew__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact { display: flex; flex-direction: column; align-items: center; gap: 0.5em; margin-top: 1em; }
.contact__label { font-family: var(--pixel); font-size: 0.45em; letter-spacing: 0.2em; }
.contact__email { text-decoration: underline; text-underline-offset: 3px; }

/* ABOUT */
.about { text-align: center; }
.about .text p { margin-left: auto; margin-right: auto; }
.map { display: flex; flex-direction: column; align-items: center; gap: 0.8em; margin: 2em 0 1.5em; }
.map__title { font-family: var(--pixel); font-size: 0.45em; letter-spacing: 0.2em; }
.map__frame { width: min(100%, 520px); border: 2px solid var(--navy); background: #d3dde2; padding: 2%; }
.map__frame svg { display: block; width: 100%; height: auto; }
.map__cities { font-size: 0.9em; opacity: 0.8; text-align: center; }
@keyframes pin-pulse { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
.pin__ring { transform-box: fill-box; transform-origin: center; animation: pin-pulse 1.8s ease-out infinite; }

/* BRICKS app: game column + high-score board side by side (stacked on phones). */
.bricks { --bricks-w: min(100%, 720px); display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: clamp(16px, 3cqw, 40px); }
/* Photo mode: the LCD is ~0.74vh tall; keep hud + canvas + hint above the fold. */
[data-mode="photo"] .bricks { --bricks-w: min(100%, 720px, max(280px, calc(115vh - 400px))); }
.bricks__game { display: flex; flex-direction: column; align-items: center; gap: 0.6em; flex: 0 1 var(--bricks-w); min-width: 0; }
.bricks canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: #000; border: 2px solid var(--navy); image-rendering: pixelated; cursor: none; }
.bricks__hud { display: flex; justify-content: space-between; width: 100%; font-family: var(--pixel); font-size: 0.45em; }
.bricks__hint { font-family: var(--pixel); font-size: 0.35em; opacity: 0.7; text-align: center; }
.bricks__wrap { position: relative; width: 100%; }
/* FLAPPY is played by clicking: keep a pointer instead of BRICKS' hidden cursor. */
.bricks__wrap--flap canvas { cursor: pointer; }
.bricks__over { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--pixel); font-size: 0.5em; background: rgba(0,0,0,0.6); text-align: center; }
/* The ready prompt must let pointermove reach the canvas underneath. */
.bricks__over--ready { pointer-events: none; background: rgba(0,0,0,0.35); }
/* High-score board */
.board { flex: 0 0 clamp(170px, 24cqw, 300px); border: 2px solid var(--navy); padding: 0.8em 0.9em; font-family: var(--pixel); font-size: 0.42em; line-height: 1.6; background: #d3dde2; }
.board__title { letter-spacing: 0.15em; margin-bottom: 0.8em; border-bottom: 2px solid var(--navy); padding-bottom: 0.4em; }
.board__list { list-style: none; display: flex; flex-direction: column; gap: 0.35em; min-height: 10lh; }
.board__list li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 0.5em; }
.board__list li.is-new { background: var(--navy); color: var(--lcd); }
.board__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__list .board__empty { display: block; opacity: 0.6; }
.board__form { margin-top: 1em; display: flex; flex-direction: column; gap: 0.6em; }
.board__form[hidden], .board__note[hidden] { display: none; }
.board__label { letter-spacing: 0.15em; }
.board__input { font: inherit; text-transform: uppercase; color: var(--navy); background: #e6ecef; border: 2px solid var(--navy); border-radius: 0; padding: 0.5em; width: 100%; }
.board__input:focus { outline: 2px solid var(--case); outline-offset: 2px; }
.board__save { border: 2px solid var(--navy); padding: 0.6em; align-self: flex-start; }
.board__save:hover, .board__save:focus-visible { background: var(--navy); color: var(--lcd); }
.board__note { margin-top: 1em; letter-spacing: 0.1em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .status__date { display: none; }
  /* Everything below is scoped to #lcd and to enter/home/app: the zoom's ghost
     clone (no id) keeps the proportional desktop layout in its miniature, and
     the real layer already has the mobile layout while it fades in. */
  :is([data-state="enter"], [data-state="home"], [data-state="app"]) #lcd .icon { left: var(--mx); top: var(--my); font-size: 9px; }
  :is([data-state="enter"], [data-state="home"], [data-state="app"]) #lcd .icon svg { width: 16vw; }
  :is([data-state="home"], [data-state="app"]) #lcd .folder { left: 50%; top: 50%; min-width: 88%; }
  :is([data-state="home"], [data-state="app"]) #lcd .folder__close { min-height: 20px; }
  /* Landing in the top part, icons (my 68/88 %) in the bottom part. */
  #lcd .desk { justify-content: flex-start; padding: 5% 6% 0; gap: 14px; height: 56%; }
  #lcd .desk .landing { gap: 14px; }
  #lcd .desk .logos { width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  #lcd .desk .logos img { height: 16px; }
  #lcd .desk .logos img.is-large { height: 24px; }
  #lcd .desk .logos img.is-wide { height: 22px; }
  #lcd .desk .landing__mark { width: 62%; }
  #lcd .desk .landing__kicker { font-size: 7px; line-height: 1.6; }
  #lcd .desk .landing__body { font-size: 17px; max-width: 34ch; }
  .tile__media.is-portrait { max-width: 100%; }
  .crew__member { width: 40%; }
  .app__content { font-size: 18px; }
  #lcd .bricks { flex-direction: column; align-items: stretch; }
  #lcd .board { flex: none; width: 100%; }
}
/* Narrow phones: the six logos stay on one row. */
@media (max-width: 420px) {
  #lcd .desk .logos { gap: 8px 12px; }
  #lcd .desk .logos img { height: 14px; }
  #lcd .desk .logos img.is-large { height: 21px; }
  #lcd .desk .logos img.is-wide { height: 19px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .power svg { animation: none; opacity: 1; }
  [data-state="splash"] .splash__mark, .splash.is-out .splash__mark { animation: none; }
  .phone__stage { transition: opacity 150ms linear; }
  .lcd--ghost { transition: none; }
  [data-state="enter"] #lcd, [data-state="enter"] .frame { animation: none; }
  .app { transition: none; }
  [data-state="home"] .screen, [data-state="app"] .screen { animation: none; }
  .pin__ring { animation: none; opacity: 0; }
}
