* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  background: #eef1f5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
}

.canvas {
  width: min(100vw, 584px);
  aspect-ratio: 584 / 898;
  position: relative;
  overflow: hidden;
}

.layout-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.layout-svg .copy-btn-bg {
  fill: #eef1f4;
  stroke: #d2d7de;
  transition: fill 0.22s ease, stroke 0.22s ease, x 0.22s ease, width 0.22s ease;
}

.layout-svg .copy-btn-text {
  fill: #6b7380;
  font-size: 9px;
  font-weight: 700;
  font-family: "SF Pro Text", "Segoe UI", Arial, sans-serif;
  transition: fill 0.22s ease, x 0.22s ease;
}

.layout-svg .copy-icon-wrap {
  transition: transform 0.22s ease;
}

.layout-svg .copy-icon-back,
.layout-svg .copy-icon-front {
  fill: none;
  stroke: #657286;
  stroke-width: 1.9;
  stroke-linejoin: round;
  transition: stroke 0.22s ease, fill 0.22s ease;
}

.layout-svg .copy-icon-front {
  fill: #eef1f4;
}

.copy-hotspot {
  position: absolute;
  z-index: 2;
  left: 73.12%;
  width: 16.78%;
  height: 3.01%;
  border: 0;
  border-radius: 0.8vw;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.copy-1 {
  top: 55.46%;
}

.copy-2 {
  top: 65.92%;
}

.copy-3 {
  top: 76.50%;
}

.copy-hotspot:focus-visible {
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: #0f2a58;
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(8, 23, 49, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast-check {
  font-size: 15px;
  line-height: 1;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 620px) {
  .canvas {
    width: 100vw;
  }

  .copy-toast {
    bottom: 16px;
  }
}
