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

:root {
  --surface: #e8eef2;
  --surface-card: rgba(255, 255, 255, 0.92);
  --ink-primary: #1e2d45;
  --ink-secondary: #5a6b7d;
  --brand: #2a4a6a;
  --chip-bg: rgba(255, 255, 255, 0.88);
  --chip-border: rgba(26, 35, 50, 0.08);
  --accent: #4a7a9b;
  --drawer-width: min(42%, 56rem);
  --shadow: 0 0.8rem 3.2rem rgba(26, 35, 50, 0.12);
  --radius: 1.2rem;
  --font: "Titillium Web", "Segoe UI", system-ui, sans-serif;
}

html {
  font-size: min(0.5208333333vw, 0.9259259259vh);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d1218;
  font-family: var(--font);
  color: var(--ink-primary);
}

body {
  font-size: 1.6rem;
  line-height: 1.4;
}

body.is-drawer-open {
  cursor: default;
}

.viewport {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.stage {
  position: relative;
  width: min(100vw, 177.7777777778vh);
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.06);
}
.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.stage__bg--placeholder {
  background: radial-gradient(ellipse 80% 50% at 15% 70%, #5b9ec9 0%, transparent 55%), linear-gradient(180deg, #dfe8ef 0%, #c5d4e0 100%);
}
.stage__title {
  position: absolute;
  top: 4.5%;
  left: 3.5%;
  z-index: 2;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
}
.stage__logo {
  position: absolute;
  left: 3.5%;
  bottom: 3.5%;
  z-index: 2;
  pointer-events: none;
  line-height: 1.1;
}
.stage__logo-mark {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.stage__logo-tag {
  display: block;
  margin-top: 0.15em;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 28%;
  pointer-events: none;
}
.label__btn {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 4.4rem;
  margin: 0;
  padding: 0;
  border: 0.2rem solid #f5f8fa;
  border-radius: 1.6rem;
  background: rgba(245, 248, 250, 0.5);
  backdrop-filter: blur(0.2rem);
  cursor: pointer;
  white-space: nowrap;
  color: #1e2d45;
  font-family: "Titillium Web", sans-serif;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.label__btn:hover, .label__btn:focus-visible {
  outline: none;
  background: rgba(245, 248, 250, 0.72);
}
.label__btn--ornament-right {
  flex-direction: row-reverse;
}
.label__btn--ornament-right .label__title {
  padding: 0 0.8rem 0 1.2rem;
}
.label.is-active .label__btn {
  background: rgba(245, 248, 250, 0.85);
  box-shadow: inset 0.3rem 0.3rem 0.6rem 0 rgba(174, 185, 194, 0.33), inset -0.3rem -0.3rem 0.6rem 0 rgba(255, 255, 255, 0.45);
}
.label__ornament {
  display: flex;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  aspect-ratio: 1/1;
  border-radius: 1.4rem;
  border: 0.2rem solid #fff;
  background: linear-gradient(135deg, rgba(245, 248, 250, 0.33) 33%, rgba(174, 185, 194, 0.33) 100%), #f5f8fa;
  box-shadow: 0.3rem 0.3rem 0.6rem 0 #f5f8fa inset, -0.3rem -0.3rem 0.6rem 0 #aeb9c2 inset;
}
.label__ornament svg {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
}
.label__title {
  padding: 0 1.2rem 0 0.8rem;
  color: #1e2d45;
  font-family: "Titillium Web", sans-serif;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 300;
  line-height: 2rem;
  letter-spacing: 0.018rem;
  text-transform: uppercase;
}
.label__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  padding-left: 0.2rem;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink-secondary);
}
.label__chip {
  color: var(--ink-secondary);
}
.label__devices {
  color: var(--accent);
  font-weight: 500;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(13, 18, 24, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  width: var(--drawer-width);
  background: var(--surface-card);
  backdrop-filter: blur(2rem);
  box-shadow: -1.2rem 0 4.8rem rgba(13, 18, 24, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2.4rem;
  border-bottom: 0.1rem solid rgba(30, 45, 69, 0.08);
  flex-shrink: 0;
}
.drawer__kicker {
  font-size: 1.3rem;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}
.drawer__title {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.drawer__close {
  flex-shrink: 0;
  width: 3.6rem;
  height: 3.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(30, 45, 69, 0.06);
  color: var(--ink-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.drawer__close:hover {
  background: rgba(30, 45, 69, 0.12);
}
.drawer__tabs {
  display: flex;
  gap: 0.4rem;
  padding: 1.2rem 2.4rem 0;
  overflow-x: auto;
  flex-shrink: 0;
}
.drawer__tabs[hidden] {
  display: none;
}
.drawer__tab {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
}
.drawer__tab.is-active {
  background: rgba(42, 74, 106, 0.1);
  color: var(--brand);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.drawer__role {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
}
.drawer__desc {
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.drawer__gallery {
  display: grid;
  gap: 1.2rem;
}
.drawer__gallery img {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(30, 45, 69, 0.04);
  aspect-ratio: 16/10;
  object-fit: cover;
}
.drawer__gallery-empty {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74, 122, 155, 0.12), rgba(30, 45, 69, 0.04));
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  font-size: 1.3rem;
}
.drawer__footer {
  padding: 1.6rem 2.4rem;
  border-top: 0.1rem solid rgba(30, 45, 69, 0.08);
  flex-shrink: 0;
}
.drawer__doc {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.drawer__doc:hover {
  filter: brightness(1.08);
}
.drawer__doc[hidden] {
  display: none;
}

body.is-dev-mode .stage {
  cursor: crosshair;
}
body.is-dev-mode .labels,
body.is-dev-mode .label {
  pointer-events: auto;
}
body.is-dev-mode .label {
  cursor: pointer;
}
body.is-dev-mode .label.is-dev-selected {
  outline: 0.15rem solid rgba(74, 122, 155, 0.9);
  outline-offset: 0.3rem;
}
body.is-dev-mode .label__btn {
  pointer-events: none;
}
body.is-dev-mode .overlay,
body.is-dev-mode .drawer {
  display: none !important;
}

.dev-pin {
  position: absolute;
  z-index: 20;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border-radius: 50%;
  border: 0.15rem solid #fff;
  background: #e24a4a;
  box-shadow: 0 0 0 0.15rem rgba(226, 74, 74, 0.45);
  pointer-events: none;
}

.edit-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 100;
  width: min(36rem, 100vw - 2.4rem);
  max-height: min(55vh, 48rem);
  overflow: auto;
  padding: 1.2rem 1.4rem;
  border-radius: 0.8rem;
  background: rgba(13, 18, 24, 0.92);
  color: #e8eef2;
  font-size: 1.2rem;
  line-height: 1.4;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.35);
}
.edit-panel strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}
.edit-panel p {
  margin: 0 0 1rem;
  color: rgba(232, 238, 242, 0.75);
}
.edit-panel__status {
  margin-bottom: 0.6rem !important;
  padding: 0.6rem 0.8rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.1rem;
  color: rgba(232, 238, 242, 0.85) !important;
}
.edit-panel__status.is-ok {
  background: rgba(46, 160, 100, 0.2);
  color: #9de0b8 !important;
}
.edit-panel__status.is-err {
  background: rgba(226, 74, 74, 0.18);
  color: #ffb4b4 !important;
}
.edit-panel code {
  font-size: 0.95em;
}
.edit-panel__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: rgba(232, 238, 242, 0.75);
}
.edit-panel__select {
  padding: 0.6rem 0.8rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef2;
  font: inherit;
}
.edit-panel__live {
  margin-bottom: 1rem !important;
  padding: 0.8rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef2 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}
.edit-panel__hint {
  color: rgba(232, 238, 242, 0.55);
}
.edit-panel__copy {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 0.5rem;
  background: #4a7a9b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.edit-panel__out {
  margin: 0;
  padding: 0.8rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/*# sourceMappingURL=style.css.map */
