:root {
  --ink: #05070d;
  --flame: #0052ff;
  --ember: #6b9fff;
  --paper: #e8eef8;
  --safe-t: max(12px, env(safe-area-inset-top));
  --safe-b: max(12px, env(safe-area-inset-bottom));
  --safe-l: max(12px, env(safe-area-inset-left));
  --safe-r: max(12px, env(safe-area-inset-right));
  --font-display: "Dela Gothic One", Impact, "Arial Black", sans-serif;
  --font-body: Outfit, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow: hidden;
  position: fixed;
}

#room {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--flame);
  color: #fff;
}

.skip:focus {
  top: var(--safe-t);
}

.desk-nav {
  position: fixed;
  top: var(--safe-t);
  left: var(--safe-l);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--paper);
  text-decoration: none;
  text-shadow: 0 2px 12px #000;
}

.desk-nav img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.desk-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 8px);
  z-index: 8;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  text-shadow: 0 2px 10px #05070d;
  pointer-events: none;
}

#hover-tag {
  position: fixed;
  z-index: 9;
  padding: 6px 10px;
  background: #fff;
  color: #05070d;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

#desk-load {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  background: #05070d;
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#desk-load[hidden] {
  display: none;
}

#desk-load img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.file {
  position: fixed;
  right: var(--safe-r);
  bottom: calc(var(--safe-b) + 8px);
  z-index: 10;
  width: min(340px, calc(100vw - 24px));
  padding: 16px 18px 14px;
  background: #f3ead2;
  color: #1a140c;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.35);
}

.file[hidden],
#hover-tag[hidden] {
  display: none;
}

.file-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0052ff;
}

.file h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.file p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.file-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file a,
.file button {
  min-height: 44px;
  padding: 8px 14px;
  background: #0052ff;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.file .file-x {
  background: transparent;
  color: #1a140c;
  border: 1px solid rgba(26, 20, 12, 0.3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 720px) {
  .file {
    left: var(--safe-l);
    right: var(--safe-r);
    width: auto;
    bottom: calc(var(--safe-b) + 8px);
  }

  .desk-hint {
    font-size: 10px;
  }
}
