:root {
  --bg: #0a0a0c;
  --bg-elev: #141418;
  --bg-card: #1c1c22;
  --text: #f4f1ea;
  --muted: #9a958c;
  --line: #2a2a32;
  --lava: #ff4d2e;
  --lava-deep: #c41e0a;
  --lava-glow: rgba(255, 77, 46, 0.45);
  --safe: #3dd68c;
  --safe-deep: #1f9a5b;
  --warn: #ffb020;
  --reply: #5b8cff;
  --reply-deep: #3a63d8;
  --danger: #ff3b5c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --app-height: 100dvh;
  --touch-min: 48px;
  --pad-x: 16px;
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: var(--app-height);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}

body {
  min-height: 100dvh;
  min-height: var(--app-height);
}

body.is-playing {
  /* lock browser gestures while a round is live */
  touch-action: none;
  overscroll-behavior: none;
}

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  height: var(--app-height);
  margin: 0 auto;
  overflow: hidden;
  /* isolate paint for smoother mobile compositing */
  transform: translateZ(0);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    max(12px, calc(var(--sat) + 8px))
    max(var(--pad-x), var(--sar))
    max(12px, calc(var(--sab) + 10px))
    max(var(--pad-x), var(--sal));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.screen[hidden] {
  display: none !important;
}

/* HOME */
.home-glow {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 120%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--lava-glow), transparent 65%);
  pointer-events: none;
  filter: blur(8px);
}

.home-header {
  position: relative;
  margin-top: clamp(12px, 5vh, 8vh);
  text-align: center;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lava);
  font-weight: 700;
}

.home-header h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.home-header .lava {
  color: var(--lava);
  text-shadow: 0 0 28px var(--lava-glow);
}

.tagline {
  margin: 14px auto 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.mode-picker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: clamp(16px, 4vh, 32px) 0 clamp(14px, 3vh, 22px);
}

.mode-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 12px;
  min-height: var(--touch-min);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  -webkit-touch-callout: none;
}

.mode-btn:active {
  transform: scale(0.98);
}

.mode-btn.selected {
  border-color: var(--lava);
  background: linear-gradient(180deg, rgba(255, 77, 46, 0.16), rgba(255, 77, 46, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 77, 46, 0.25);
}

.mode-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.mode-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mode-btn-wide {
  grid-column: 1 / -1;
}

.btn-primary,
.btn-ghost {
  appearance: none;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.btn-primary {
  width: 100%;
  padding: 16px 20px;
  min-height: 52px;
  background: linear-gradient(180deg, var(--lava), var(--lava-deep));
  color: #fff;
  box-shadow: 0 12px 30px var(--lava-glow);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  -webkit-touch-callout: none;
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

.btn-ghost {
  width: 100%;
  padding: 14px 18px;
  min-height: var(--touch-min);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  -webkit-touch-callout: none;
}

.btn-ghost:active {
  transform: scale(0.98);
  background: var(--bg-elev);
}

.hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-board {
  margin-top: 4px;
}

.best-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.best-row strong {
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* PLAY HUD */
.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-block.center {
  align-items: center;
}

.hud-block.right {
  align-items: flex-end;
}

.hud-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-value {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hud-value.small {
  font-size: 1rem;
  margin-top: 4px;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lava), var(--warn));
  transform-origin: left center;
  transition: transform 0.2s linear;
}

.phone {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* none: own all gestures so iOS/Android don't steal swipe / pull-to-refresh */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 34%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
  z-index: 5;
  pointer-events: none;
}

.stack {
  position: absolute;
  inset: 0;
  padding: 28px 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
}

.toast {
  position: absolute;
  left: 50%;
  top: 42px;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 8;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.good {
  border-color: rgba(61, 214, 140, 0.45);
  color: var(--safe);
}

.toast.bad {
  border-color: rgba(255, 59, 92, 0.5);
  color: var(--danger);
}

.play-hint {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

/* NOTIFICATION BUBBLES */
.note {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 12px 12px 14px;
  transform: translate3d(0, 120%, 0) scale(0.96);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.28s ease,
    background 0.15s ease;
  will-change: transform, opacity;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.note.show {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.note.dragging {
  z-index: 4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  opacity: 0.96;
}

.note.leaving-left {
  transform: translate3d(-130%, 0, 0) rotate(-8deg);
  opacity: 0;
}

.note.leaving-right {
  transform: translate3d(130%, 0, 0) rotate(8deg);
  opacity: 0;
}

.note.leaving-up {
  transform: translate3d(0, -140%, 0) scale(0.9);
  opacity: 0;
}

.note.trap-flash {
  background: rgba(255, 59, 92, 0.18);
  border-color: rgba(255, 59, 92, 0.55);
}

.note-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.note-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: #2a2a32;
}

.note-icon.app-messages { background: linear-gradient(160deg, #34c759, #248a3d); }
.note-icon.app-mail { background: linear-gradient(160deg, #5b8cff, #3a63d8); }
.note-icon.app-work { background: linear-gradient(160deg, #7c5cff, #4b33b8); }
.note-icon.app-social { background: linear-gradient(160deg, #ff5cab, #c41e7a); }
.note-icon.app-family { background: linear-gradient(160deg, #ffb020, #c47d00); }
.note-icon.app-ex { background: linear-gradient(160deg, #ff4d2e, #a81d0c); }
.note-icon.app-spam { background: linear-gradient(160deg, #8e8e93, #5c5c60); }

.note-body {
  flex: 1;
  min-width: 0;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.note-app {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-time {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.note-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-text {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: #c9c4bb;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.note-actions.layout-a { flex-direction: row; }
.note-actions.layout-b { flex-direction: row-reverse; }
.note-actions.layout-c { flex-direction: row; }
.note-actions.layout-d { flex-direction: row-reverse; }

.note-btn {
  flex: 1;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 14px 10px;
  min-height: var(--touch-min);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
  /* kill 300ms / ghost clicks on old webviews */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.note-btn:active {
  transform: scale(0.97);
}

/* fat-finger separation on multi-button rows */
.note-actions:has(> .note-btn:nth-child(3)) {
  gap: 6px;
}

.note-actions:has(> .note-btn:nth-child(3)) .note-btn {
  font-size: 0.82rem;
  padding-left: 6px;
  padding-right: 6px;
}

.note-btn.mute {
  background: rgba(61, 214, 140, 0.14);
  color: var(--safe);
  border: 1px solid rgba(61, 214, 140, 0.28);
}

.note-btn.ignore {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.note-btn.reply {
  background: linear-gradient(180deg, var(--reply), var(--reply-deep));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(91, 140, 255, 0.35);
}

/* Whammy decoys — look actionable, drain score */
.note-btn.whammy {
  color: #fff;
  border: 1px solid transparent;
  font-weight: 700;
}

.note-btn.whammy.open {
  background: linear-gradient(180deg, #7c5cff, #4b33b8);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.35);
}

.note-btn.whammy.react {
  background: linear-gradient(180deg, #ff5cab, #c41e7a);
  box-shadow: 0 6px 16px rgba(255, 92, 171, 0.35);
}

.note-btn.whammy.join {
  background: linear-gradient(180deg, #ffb020, #c47d00);
  box-shadow: 0 6px 16px rgba(255, 176, 32, 0.35);
}

.note-btn.whammy.read {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d2c8;
  border: 1px solid var(--line);
}

.note-btn.whammy.forward {
  background: linear-gradient(180deg, #5b8cff, #3a63d8);
  box-shadow: 0 6px 16px rgba(91, 140, 255, 0.3);
}

.note-btn.whammy.call {
  background: linear-gradient(180deg, var(--lava), var(--lava-deep));
  box-shadow: 0 6px 16px var(--lava-glow);
}

.note-btn.whammy.archive {
  background: rgba(142, 142, 147, 0.2);
  color: #c0c0c4;
  border: 1px solid var(--line);
}

.note-btn.whammy.pin {
  background: linear-gradient(180deg, #34c759, #1f9a5b);
  box-shadow: 0 6px 16px rgba(61, 214, 140, 0.28);
}

/* layout C/D: Reply looks almost like Mute (color swap bait) */
.note-actions.layout-c .note-btn.reply,
.note-actions.layout-d .note-btn.reply {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  box-shadow: 0 6px 16px rgba(61, 214, 140, 0.3);
}

.note-actions.layout-c .note-btn.mute,
.note-actions.layout-d .note-btn.mute {
  background: rgba(91, 140, 255, 0.14);
  color: #9db7ff;
  border-color: rgba(91, 140, 255, 0.28);
}

/* dense 3–4 button rows wrap cleanly on phones */
.note-actions.layout-dense {
  flex-wrap: wrap;
}

.note-actions.layout-dense .note-btn {
  flex: 1 1 calc(50% - 5px);
  min-width: calc(50% - 5px);
  font-size: 0.84rem;
  padding: 12px 6px;
}

.note-life {
  pointer-events: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.note-life > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--warn);
  transform-origin: left center;
  transform: scaleX(1);
}

/* RESULT */
#screen-result {
  justify-content: center;
}

.result-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.result-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.result-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 18px;
}

.stat-grid-6 {
  grid-template-columns: 1fr 1fr 1fr;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.result-quote {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* shake on trap */
@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(7px, -3px); }
  60% { transform: translate(-5px, 1px); }
  80% { transform: translate(4px, -2px); }
}

.shake {
  animation: screen-shake 0.4s linear;
}

@media (min-width: 520px) {
  #app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

/* short phones (SE / compact) */
@media (max-height: 700px) {
  .home-header {
    margin-top: 8px;
  }

  .home-header h1 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .tagline {
    font-size: 0.88rem;
    margin-top: 8px;
  }

  .mode-picker {
    margin: 12px 0 12px;
    gap: 8px;
  }

  .mode-btn {
    padding: 10px;
  }

  .phone-notch {
    display: none;
  }

  .stack {
    padding-top: 12px;
  }

  .play-hint {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  .hud-value {
    font-size: 1.3rem;
  }
}

/* very short / landscape phones */
@media (max-height: 500px) {
  .home-header .tagline,
  .hint,
  .play-hint,
  .phone-notch {
    display: none;
  }

  .mode-picker {
    grid-template-columns: repeat(4, 1fr);
    margin: 8px 0;
  }

  .mode-desc {
    display: none;
  }

  .home-footer {
    display: none;
  }

  #screen-play .hud {
    margin-bottom: 4px;
  }

  .progress-track {
    margin-bottom: 6px;
  }
}

/* coarse pointer = real touch device */
@media (pointer: coarse) {
  .note-btn {
    min-height: 52px;
    font-size: 1rem;
  }

  .mode-btn {
    min-height: 52px;
  }

  .btn-primary {
    min-height: 56px;
  }

  /* slightly larger swipe-friendly cards */
  .note {
    padding: 14px 12px 16px;
  }

  .note-actions {
    gap: 10px;
    margin-top: 14px;
  }
}

/* standalone PWA / home-screen */
@media (display-mode: standalone) {
  .screen {
    padding-top: max(16px, calc(var(--sat) + 12px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .note,
  .toast,
  .btn-primary,
  .btn-ghost,
  .note-btn {
    transition: none !important;
  }
  .shake {
    animation: none;
  }
}


/* Submit score + public board */
.submit-row {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  align-items: stretch;
}

.name-input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
}

.btn-submit {
  width: auto;
  flex: 0 0 auto;
  padding: 12px 16px;
  min-height: var(--touch-min);
  font-size: 0.92rem;
}

.submit-status {
  min-height: 1.2em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#screen-board {
  gap: 12px;
}

.board-header h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.board-sub {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-filter-label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.board-filter {
  flex: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.board-status {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.board-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.board-rank { color: var(--muted); font-weight: 700; }
.board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-mode { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.board-score { font-weight: 800; color: var(--lava); }
.board-time { color: var(--muted); }

@media (max-width: 380px) {
  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid-6 {
    grid-template-columns: 1fr 1fr;
  }
  .board-row {
    grid-template-columns: 28px 1fr auto;
  }
  .board-mode, .board-time { display: none; }
}

/* Home username gate (required before start) */
.name-gate {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-gate-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-input-home {
  width: 100%;
  box-sizing: border-box;
}

.name-gate-status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.name-gate-status.error {
  color: var(--warn, #ff6b4a);
}

.logged-as {
  flex: 1;
  margin: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  align-self: center;
}

