:root {
  --paper: #E3D6C3;
  --ink: #111111;
}

* {
  box-sizing: border-box;
}

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

body {
  position: fixed;
  inset: 0;
  font-family: "Times New Roman", Georgia, serif;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
  touch-action: none;
}

.app-main {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  cursor: ew-resize;
  touch-action: none;
}

.app-main.is-dragging {
  cursor: grabbing;
}

#viewer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  touch-action: none;
}

.hud {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.hud--name {
  top: clamp(18px, 3vh, 34px);
  left: 50%;
  width: min(78vw, 900px);
  transform: translateX(-50%);
  text-align: center;
}

#fighterName {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hud--name {
    top: max(18px, env(safe-area-inset-top));
    width: 88vw;
  }

  #fighterName {
    font-size: clamp(14px, 4.7vw, 22px);
    letter-spacing: 0.12em;
  }
}
