:root {
  --accent: #c62828;
  --hotspot: rgba(255, 214, 10, 0.22);
  --hotspot-border: rgba(255, 214, 10, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
  background: #e8e8e8;
  user-select: none;
}

#app {
  height: 100%;
  width: 100%;
}

.stage-wrap {
  width: 100%;
  height: 100%;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #e8e8e8;
  overflow: hidden;
}

.titlebar-drag {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  height: 5%;
  z-index: 1;
  -webkit-app-region: drag;
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hotspot {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  overflow: visible;
  -webkit-app-region: no-drag;
  z-index: 3;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hotspot.window-control {
  z-index: 10;
  cursor: default;
}

.hotspot.exit-control {
  z-index: 100;
}

.hotspot.help-target {
  cursor: help;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 30;
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.toast.hidden {
  display: none;
}

.help-toggle {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #1565c0, #1976d2);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  -webkit-app-region: no-drag;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.help-toggle:hover {
  transform: scale(1.06);
  background: linear-gradient(145deg, #1976d2, #1e88e5);
}

.help-toggle.off {
  opacity: 0.45;
  background: #9e9e9e;
  box-shadow: none;
}

.help-toggle.hidden-ui {
  display: none;
}

.help-tip {
  position: fixed;
  z-index: 35;
  width: min(380px, calc(100vw - 32px));
  max-height: min(320px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #fffef8;
  color: #2a1f18;
  border: 1px solid rgba(198, 40, 40, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.help-tip.hidden {
  display: none;
}

.help-tip strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: #b71c1c;
  margin-bottom: 8px;
}

.help-tip p {
  font-size: 13px;
  line-height: 1.55;
  color: #4a3a32;
}


.opening-splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, #8b1a1a 0%, #c62828 42%, #e64a19 100%);
}

.opening-splash.hidden {
  display: none;
}

.opening-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  z-index: 3;
}

.opening-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #fff 0%, #ffe082 50%, #fff 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
  animation: opening-progress 8s ease forwards;
}

@keyframes opening-progress {
  to {
    width: 100%;
  }
}

.opening-visual {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  margin-top: -16px;
  margin-bottom: -72px;
  background: linear-gradient(145deg, #8b1a1a 0%, #c62828 42%, #e64a19 100%);
}

.opening-hero {
  display: block;
  width: 112%;
  height: auto;
  max-height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  margin-top: -32px;
  margin-bottom: -36px;
  animation: opening-hero-in 0.9s ease both;
}

@keyframes opening-hero-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.opening-copy {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  padding: 0 32px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 26, 26, 0) 0%, rgba(100, 18, 18, 0.55) 100%);
  animation: opening-copy-in 1s ease 0.35s both;
}

@keyframes opening-copy-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.opening-title {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.opening-lead {
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.opening-phone {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}
