* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1b2430;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #fff;
}

.brandbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, #12aef0 0%, #0090d4 100%);
  border-bottom: 3px solid #005c86;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  opacity: 0.92;
  margin-top: 0.15rem;
}

.brand-badge {
  margin-left: auto;
  background: #ffd200;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#scene.dragging {
  cursor: grabbing;
}

.pos {
  position: absolute;
  top: 5.1rem;
  right: 1rem;
  z-index: 5;
  width: min(270px, calc(100vw - 2rem));
  background: #07140c;
  border: 3px solid #1d3a28;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #7dff9a;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.pos-brand {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd200;
  margin-bottom: 0.45rem;
}

.pos-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.pos-msg {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
}

.pos-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.pos.flash {
  animation: posflash 0.28s ease;
}

@keyframes posflash {
  50% { filter: brightness(1.55); }
}

.hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.8rem;
  text-align: center;
  max-width: 92vw;
  pointer-events: none;
}

@media (max-width: 700px) {
  .brand-badge { display: none; }

  .pos {
    top: auto;
    bottom: 3.4rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
