.elka-studio {
  max-width: 1020px;
  margin: auto;
  padding: clamp(14px, 3.2vw, 32px);
  color: #322524;
  background: #f4e8cf;
  border: 1px solid #c0966e;
  border-radius: 9px;
  box-shadow: 0 10px 34px #160e1122;
}

.elka-studio header {
  border-left: 3px solid #942f32;
  padding-left: 14px;
  margin-bottom: 17px;
}
.elka-studio h1 {
  margin: 0;
  color: #622b2c;
  font: 500 clamp(31px, 5.1vw, 55px)/1.1 Georgia, "Times New Roman", serif;
}
.elka-studio header p { margin: 6px 0 0; }
.elka-studio [hidden] { display: none !important; }
.elka-studio .studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  gap: clamp(12px, 3vw, 26px);
  align-items: start;
}
.elka-studio .studio-stage {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  aspect-ratio: 1.36;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  border: 1px solid #bd955d;
  background: radial-gradient(ellipse at 34% 65%, #4c6172, #23384a 56%, #202938);
}
.elka-studio .studio-stage.elka-studio-interior,
.elka-paint.elka-studio-interior .paint-viewer {
  background:
    radial-gradient(ellipse at 14% 76%, #f2af6799 0, #bf674445 23%, transparent 56%),
    radial-gradient(ellipse at 69% 40%, #9fc0d36e 0, #27496358 49%, #12223a 95%),
    #263b57;
}
.elka-studio .studio-window {
  position: absolute;
  inset: 12% 20% 19%;
  display: none;
  border: 5px solid #222e4b;
  border-radius: 52% 52% 4% 4% / 25% 25% 3% 3%;
  background:
    linear-gradient(90deg, transparent 49%, #22334d 49% 51%, transparent 51%),
    linear-gradient(transparent 48%, #22334d 48% 51%, transparent 51%),
    radial-gradient(circle at 77% 65%, #f3bf7a99, #d5935f00 10%),
    radial-gradient(circle at 21% 78%, #f3bf7a80, #d5935f00 13%),
    linear-gradient(165deg, #638db8, #385c86 60%, #778fa7);
  box-shadow: inset 0 0 16px #a8c1d39c, 0 0 25px #acc1d83f;
}
.elka-studio .elka-studio-interior .studio-window { display: block; }
.elka-studio .studio-orb {
  position: relative;
  width: clamp(112px, 20vw, 185px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow: 8px 23px 25px #121a298a, inset -8px -11px 18px #060d16b0;
  background:
    radial-gradient(ellipse at 34% 28%, #faf3baaa, transparent 14%),
    linear-gradient(4deg, transparent 44%, #a86b2e 46%, #f0c47c 48% 52%, #854528 54%, transparent 57%),
    radial-gradient(ellipse at 37% 29%, #759e81, #244746 52%, #15252f 81%, #587169);
}
.elka-studio .studio-orb::before {
  content: "";
  position: absolute;
  width: 24%;
  height: 11%;
  bottom: 96%;
  left: 38%;
  border: 1px solid #78502f;
  border-radius: 35% 35% 16% 16%;
  background:
    repeating-linear-gradient(90deg, #54352540 0 2px, transparent 2px 7px),
    linear-gradient(90deg, #9c5733, #f7cc8e 45%, #c58045 72%, #775118);
}
.elka-studio .studio-orb::after {
  content: "";
  position: absolute;
  width: 9%;
  aspect-ratio: .75;
  left: 45.5%;
  bottom: 106.5%;
  border-radius: 50%;
  border: 2px solid #d4aa69;
}
.elka-studio .studio-stage.elka-studio-frame::after,
.elka-paint.elka-studio-frame .paint-viewer::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid #edc486;
  border-radius: 4px;
  outline: 1px solid #68462e;
  outline-offset: 3px;
  box-shadow: inset 0 0 0 2px #2a222851, 0 0 8px #ffda8944;
}
.elka-paint.elka-studio-interior .paint-viewer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 11% 14% 24%;
  z-index: -1;
  border: 3px solid #22334d;
  border-radius: 50% 50% 4% 4% / 23% 23% 3% 3%;
  background:
    linear-gradient(90deg, transparent 49%, #344864 49% 51%, transparent 51%),
    linear-gradient(transparent 48%, #344864 48% 51%, transparent 51%),
    radial-gradient(ellipse at 79% 43%, #b5d5e540, transparent 62%);
  box-shadow: inset 0 0 15px #cce8f04f;
}
.elka-studio .studio-tools fieldset {
  margin: 0 0 10px;
  padding: 7px 10px 10px;
  border: 1px solid #b58f72;
  border-radius: 4px;
}
.elka-studio .studio-tools legend { color: #622b2c; font-weight: 700; }
.elka-studio .studio-tools label {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
}
.elka-studio .studio-tools input { width: 17px; height: 17px; accent-color: #8d3838; }
.elka-studio .studio-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.elka-studio button {
  box-sizing: border-box;
  min-height: 42px;
  padding: .47em .73em;
  font: inherit;
  color: #4b302a;
  border: 1px solid #ad835c;
  border-radius: 4px;
  background: #fff4df;
  cursor: pointer;
}
.elka-studio button:hover:enabled { background: #f6dfb8; }
.elka-studio button:disabled { opacity: .54; cursor: default; }
.elka-studio :is(button, input):focus-visible { outline: 3px solid #216e8e; outline-offset: 2px; }
.elka-studio .studio-primary { color: #fff3dc; background: #833035; border-color: #703036; font-weight: 700; }
.elka-studio .studio-primary:hover:enabled { background: #682729; }
.elka-studio .studio-access { color: #624538; margin: 8px 0 0; }
.elka-studio .studio-back { margin-top: 13px; }
.elka-paint .paint-studio-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 0 clamp(14px, 3vw, 34px) 12px;
}
.elka-paint .paint-studio-tools p { color: #684737; margin: 0; }

@media (max-width: 680px) {
  .elka-studio .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .elka-studio .studio-stage { min-height: 0; max-height: 285px; }
}

@media (max-width: 760px), (pointer: coarse) {
  .elka-studio button, .elka-studio .studio-tools label { min-height: 44px; }
}
