:root {
  --ink: #322d29;
  --muted: #887c71;
  --line: #e3d9cf;
  --paper: #fffaf3;
  --panel: #f6efe7;
  --stage: #e4ddd3;
  --accent: #bd7650;
  --accent-dark: #8b563d;
  --olive: #b7b4a7;
  --green: #4b8a73;
  --shadow: 0 14px 36px rgba(77, 58, 43, .1);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #eee5df; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  background: #eee5df;
}

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(189, 118, 80, .3); outline-offset: 2px; }
h1, h2, p { margin: 0; }

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .86fr);
  gap: 14px;
  min-height: 100dvh;
  padding: 14px;
}

.stage-panel,
.control-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 243, .94);
  box-shadow: var(--shadow);
}

.stage-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100dvh - 28px);
  padding: 20px;
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #d9c9ba;
  border-radius: 999px;
  color: #776657;
  background: #f8f0e9;
  font-size: 12px;
}

h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; text-wrap: balance; }
.stage-header p { max-width: 640px; margin-top: 8px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }

.tip-card {
  display: grid;
  gap: 6px;
  width: min(230px, 35%);
  flex: 0 0 auto;
  padding: 16px;
  border: 1px solid #ead9ca;
  border-radius: 16px;
  background: #fff8f1;
  color: #725d4d;
  font-size: 12px;
  line-height: 1.55;
}

.tip-card strong { color: #42372f; font-size: 15px; }

.empty-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #d8cec3;
  border-radius: 18px;
  background: var(--stage);
}

.empty-stage::before,
.empty-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 250, 243, .42);
}

.empty-stage::before { width: 420px; height: 420px; left: -130px; bottom: -190px; }
.empty-stage::after { width: 330px; height: 330px; right: -120px; top: -150px; background: rgba(182, 181, 170, .35); }

.stage-horizon {
  position: absolute;
  right: 11%;
  bottom: 31%;
  left: 11%;
  border-top: 1px solid rgba(98, 86, 73, .16);
}

.stage-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(122, 104, 87, .18);
  border-radius: 999px;
  color: #756658;
  background: rgba(255, 250, 243, .6);
  font-size: 12px;
}

.stage-message {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 260px;
  color: #887b70;
  text-align: center;
}

.stage-message strong { color: #66584c; font-size: 17px; }
.stage-message span { font-size: 13px; line-height: 1.55; }

.stage-caption {
  position: absolute;
  right: 10%;
  bottom: 22px;
  left: 10%;
  z-index: 1;
  padding: 13px 18px;
  border: 1px solid #e8d9ca;
  border-radius: 14px;
  background: rgba(255, 250, 243, .9);
  color: #776a5f;
  font-size: 13px;
  text-align: center;
}

.stage-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-card { display: grid; gap: 5px; min-height: 70px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf3; }
.mini-card strong { font-size: 14px; }
.mini-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }

.control-panel { display: flex; flex-direction: column; gap: 14px; min-height: calc(100dvh - 28px); padding: 18px; }
.control-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.muted-label, .control-header small, .section-heading span { display: block; color: var(--muted); font-size: 12px; }
.control-header h2 { margin: 5px 0 3px; font-size: 27px; line-height: 1.1; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #cfe4d8; border-radius: 999px; color: #2c6b55; background: #edf8f1; font-size: 12px; white-space: nowrap; }
.online-pill i { width: 7px; height: 7px; border-radius: 50%; background: #4ca57d; }

.route-card, .spot-section, .recommendation { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.route-card { background: #f0ece5; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-heading strong { display: block; font-size: 15px; }
.section-heading span { margin-top: 4px; }
.step-count { color: var(--accent-dark) !important; font-variant-numeric: tabular-nums; }

.route-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; }
.route-line::before { content: ""; position: absolute; top: 7px; right: 7px; left: 7px; border-top: 1px solid #a8a69c; }
.route-stop { position: relative; z-index: 1; width: 15px; height: 15px; margin: 0 auto; padding: 0; border: 2px solid #bcb7ac; border-radius: 50%; background: #f0ece5; }
.route-stop.active { border-color: var(--accent); background: #fffaf3; box-shadow: 0 0 0 3px rgba(189, 118, 80, .13); }

.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--accent-dark); }
.spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.spot-card { display: grid; gap: 7px; min-height: 112px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf3; text-align: center; transition: border-color .16s ease, transform .16s ease; }
.spot-card:hover { transform: translateY(-1px); border-color: #d4a88e; }
.spot-card.active { border-color: #d4a88e; background: #fff5e9; }
.spot-card strong { font-size: 14px; }
.spot-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.spot-card em { justify-self: center; padding: 4px 8px; border-radius: 999px; background: #f5e9da; color: #96725a; font-size: 11px; font-style: normal; }

.recommendation { min-height: 94px; }
.recommendation strong { display: block; margin-bottom: 8px; font-size: 15px; }
.recommendation p { color: #776b60; font-size: 13px; line-height: 1.6; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.primary-button, .secondary-button { min-height: 44px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; }
.primary-button { color: #fffaf3; background: var(--accent); }
.secondary-button { border-color: var(--line); background: #fffaf3; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button:hover { border-color: #d4a88e; }

@media (max-width: 980px) {
  .workspace-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); }
  .stage-header { display: grid; }
  .tip-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.h5p-panel { padding: 0; gap: 0; overflow: hidden; }
.h5p-panel .control-header { flex: 0 0 auto; padding: 18px; }
.h5p-frame-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; background: var(--paper); }
.h5p-frame { display: block; width: 100%; height: 100%; min-height: 720px; border: 0; background: var(--paper); }

/* Keep the MODL1 desktop composition side by side. */
@media (min-width: 761px) {
  .workspace-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(480px, .82fr) !important;
    align-items: stretch;
  }

  .stage-panel { grid-column: 1; grid-row: 1; }
  .control-panel { grid-column: 2; grid-row: 1; }
}


/* Empty digital-human stage: the office image is the only visible content for now. */
.empty-stage {
  background-color: #e9e5df;
  background-image: url('/modl1-stage/office-background-v1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.empty-stage::before,
.empty-stage::after,
.empty-stage .stage-label,
.empty-stage .stage-horizon,
.empty-stage .stage-message,
.empty-stage .stage-caption {
  display: none;
}


/* Typewriter chat panel for the right-side customer interaction area. */
.chat-panel { min-height: calc(100dvh - 28px); }
.chat-section { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.chat-log { display: grid; gap: 9px; min-height: 118px; max-height: 208px; margin-top: 13px; overflow-y: auto; padding-right: 3px; }
.chat-log p { display: flex; gap: 5px; width: fit-content; max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 12px; color: #665c53; font-size: 13px; line-height: 1.55; }
.chat-log strong { flex: 0 0 auto; color: #473d35; }
.chat-log .from-user { justify-self: end; background: #f7eadf; }
.chat-log .from-modl1 { justify-self: start; background: #f2f0ea; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; margin-top: auto; padding-top: 12px; }
.chat-form input { min-height: 44px; border: 1px solid #dfd2c7; border-radius: 12px; background: #fffdf9; }
.chat-form button { min-height: 44px; border: 0; border-radius: 12px; color: #fffaf3; background: var(--accent); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.quick-actions button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf3; color: var(--muted); font-size: 12px; }
.quick-actions button:hover { border-color: #d4a88e; color: var(--accent-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .workspace-shell { grid-template-columns: 1fr !important; }
  .stage-panel, .control-panel { min-height: auto; }
  .empty-stage { min-height: 360px; }
  .chat-log { max-height: 240px; }
}
/* Subtle depth for the empty stage without adding content. */
.stage-panel {
  perspective: 1300px;
}

.empty-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(1200px) rotateX(0.7deg);
  transform-origin: center bottom;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -110px 130px rgba(57, 43, 33, 0.17),
    0 18px 30px rgba(80, 61, 45, 0.14);
}

.empty-stage::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  inset: 5% 5% 20%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 251, 242, 0.06);
  transform: translateZ(-24px) scale(0.96);
  box-shadow: 0 24px 38px rgba(65, 48, 35, 0.12);
  pointer-events: none;
}

.empty-stage::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 5%;
  right: 5%;
  bottom: 5%;
  height: 28%;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.12), rgba(66, 49, 37, 0.16));
  transform: perspective(560px) rotateX(58deg) translateY(18%);
  transform-origin: bottom;
  opacity: 0.42;
  pointer-events: none;
}
/* Reset the legacy decorative pseudo-element so depth stays architectural. */
.empty-stage::before {
  top: 5%;
  right: 5%;
  bottom: 20%;
  left: 5%;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
}

.empty-stage::after {
  top: auto;
  right: 5%;
  bottom: 5%;
  left: 5%;
  width: auto;
  height: 28%;
  border-radius: 0;
  filter: none;
}
/* Keep the depth cue stable across browser compositing paths. */
.stage-panel {
  perspective: none;
}

.empty-stage {
  transform: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -110px 130px rgba(57, 43, 33, 0.17),
    0 18px 30px rgba(80, 61, 45, 0.14);
}

.empty-stage::before {
  inset: 5% 5% 20%;
  transform: none;
  opacity: 0.5;
}

.empty-stage::after {
  transform: skewY(-3deg);
  transform-origin: bottom center;
  opacity: 0.24;
}
/* Put the office image on the back layer; future digital-human content stays in front. */
.empty-stage {
  background-image: none;
  background-color: #e9e5df;
}

.empty-stage::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-color: #e9e5df;
  background-image: url('/modl1-stage/office-background-v1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  box-shadow: none;
  pointer-events: none;
}

.empty-stage::after {
  z-index: 1;
}

.empty-stage > * {
  position: relative;
  z-index: 2;
}
/* Layered stage: office wall in back, depth light in the middle, human slot in front. */
.empty-stage {
  background-color: #e9e5df;
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -150px 180px rgba(49, 38, 29, 0.16),
    0 20px 34px rgba(80, 61, 45, 0.14);
}

/* The office image is the far wall and floor plane. */
.empty-stage::before {
  inset: 0;
  z-index: 0;
  border: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/office-background-v1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.045);
  box-shadow: none;
}

/* A quiet middle layer gives the back wall more distance without adding objects. */
.empty-stage::after {
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 76%, rgba(39, 29, 22, 0.08)),
    linear-gradient(180deg, transparent 58%, rgba(70, 51, 38, 0.06) 74%, rgba(42, 30, 22, 0.18));
  transform: none;
  opacity: 1;
  pointer-events: none;
}

/* Future digital-human assets render above the background layers. */
.empty-stage .digital-human-layer,
.empty-stage .human-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.empty-stage .digital-human-layer > *,
.empty-stage .human-layer > * {
  max-width: 100%;
  filter: drop-shadow(0 18px 18px rgba(45, 33, 25, 0.18));
}
/* Stable upload target: replace backgrounds/current.png without touching the stage layers. */
.empty-stage::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/current.png');
}
/* Keep the uploaded background photo crisp; depth comes from the separate middle layer. */
.empty-stage::before {
  opacity: 1;
  filter: none;
}
/* Make the wall-to-floor depth readable while keeping the background photo crisp. */
.empty-stage::after {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(62, 44, 32, 0.2)),
    linear-gradient(90deg, rgba(38, 29, 22, 0.09), transparent 24%, transparent 76%, rgba(38, 29, 22, 0.09));
  box-shadow: inset 0 10px 18px rgba(48, 35, 26, 0.1);
  transform: none;
  opacity: 0.9;
}

/* Keep the front slot ready for a transparent digital human. */
.empty-stage .digital-human-layer,
.empty-stage .human-layer {
  filter: drop-shadow(0 24px 22px rgba(43, 31, 23, 0.22));
}
/* Use the OpenCV-generated quadrilateral as the far background plane. */
.empty-stage::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/stage-perspective-v1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
}

/* Stable fallback: keep the clear replaceable background while the perspective asset is refined. */
.empty-stage::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/current.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
  opacity: 1;
  filter: none;
}

/* OpenCV test: the transformed plane sits over the stable photo; the second image keeps the scene readable if alpha is unsupported. */
.empty-stage::before {
  background-image:
    url('/modl1-stage/backgrounds/stage-perspective-v1.png'),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/current.png');
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover, cover;
  transform: none;
  opacity: 1;
  filter: none;
}

/* OpenCV v2: near edge-to-edge perspective plane for a true background layer. */
.empty-stage::before {
  background-image:
    url('/modl1-stage/backgrounds/stage-perspective-v2.png'),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/current.png');
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover, cover;
  transform: none;
  opacity: 1;
  filter: none;
}

/* Final stable cascade after OpenCV visual test. */
/* Stable fallback: keep the clear replaceable background while the perspective asset is refined. */
.empty-stage::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    url('/modl1-stage/backgrounds/current.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
  opacity: 1;
  filter: none;
}

/* Client-side asset input and separated stage slots. */
.asset-uploader {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.asset-file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dfd2c7;
  border-radius: 12px;
  color: #65584e;
  background: #fffdf9;
  font-size: 13px;
  cursor: pointer;
}

.asset-file-label input {
  min-width: 0;
  max-width: 58%;
  color: #776b60;
  font-size: 11px;
}

.asset-target-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.asset-target-row label,
.asset-note,
.asset-status {
  color: var(--muted);
  font-size: 12px;
}

.asset-target-row select {
  min-height: 36px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #dfd2c7;
  border-radius: 10px;
  color: #65584e;
  background: #fffdf9;
}

.asset-target-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.asset-status {
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-note {
  margin: 0;
  line-height: 1.5;
}

.empty-stage.client-background-loaded::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(47, 36, 27, 0.13)),
    var(--client-background-image);
}

.empty-stage .client-asset-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.empty-stage .client-asset-layer[data-slot="human"] {
  z-index: 2;
}

.empty-stage .client-asset-layer[data-slot="video"] {
  z-index: 3;
  place-items: center;
  padding: 18px;
}

.empty-stage .client-asset-media {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(43, 31, 23, 0.22));
}

.empty-stage .client-asset-layer[data-slot="human"] .client-asset-media {
  width: min(56%, 420px);
  height: 90%;
}

.empty-stage .client-asset-layer[data-slot="video"] .client-asset-media {
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .asset-target-row {
    grid-template-columns: 1fr;
  }

  .asset-file-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-file-label input {
    max-width: 100%;
  }
}

/* Architectural frame rails: give the stage a real edge thickness and side depth. */
.empty-stage {
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -150px 180px rgba(49, 38, 29, 0.16),
    0 18px 30px rgba(80, 61, 45, 0.14);
}

.stage-frame-rail {
  position: absolute !important;
  z-index: 5 !important;
  display: block !important;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.46);
  border-style: solid;
}

.stage-frame-rail::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
}

.stage-frame-top {
  top: 0;
  right: 12px;
  left: 12px;
  height: 12px;
  border-width: 0 0 1px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(198, 179, 162, 0.42));
  box-shadow: 0 5px 10px rgba(66, 48, 35, 0.12);
}

.stage-frame-top::after {
  top: 2px;
  right: 10%;
  left: 10%;
  height: 1px;
}

.stage-frame-right {
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 13px;
  border-width: 0 0 0 1px;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(184, 160, 141, 0.22), rgba(255, 255, 255, 0.72));
  box-shadow: -5px 0 10px rgba(66, 48, 35, 0.13);
}

.stage-frame-right::after {
  top: 12%;
  bottom: 12%;
  left: 2px;
  width: 1px;
}

.stage-frame-bottom {
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 15px;
  border-width: 1px 0 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(181, 157, 137, 0.32), rgba(108, 82, 63, 0.62));
  box-shadow: 0 -5px 12px rgba(61, 43, 31, 0.18);
}

.stage-frame-bottom::after {
  top: 3px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.stage-frame-left {
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 13px;
  border-width: 0 1px 0 0;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(184, 160, 141, 0.22));
  box-shadow: 5px 0 10px rgba(66, 48, 35, 0.13);
}

.stage-frame-left::after {
  top: 12%;
  right: 2px;
  bottom: 12%;
  width: 1px;
}

@media (max-width: 760px) {
  .stage-frame-top,
  .stage-frame-bottom {
    right: 8px;
    left: 8px;
  }

  .stage-frame-left,
  .stage-frame-right {
    width: 9px;
  }
}

