:root {
  --ink: #17151d;
  --muted: #6f6878;
  --line: #eadfcd;
  --paper: #fffaf2;
  --panel: #fff7eb;
  --violet: #6f3df2;
  --gold: #ffe63d;
  --dark: #15121d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f2eadc;
}

button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(540px, 1fr) 240px;
  gap: 22px;
  min-height: 100vh;
  padding: 26px 36px;
  background: linear-gradient(180deg, #fff8ef, #f4ecdf);
}

.rail,
.studio,
.tools {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 18px 44px rgba(93, 70, 35, 0.08);
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bolt {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--violet);
  font-size: 26px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

h1 span {
  color: var(--violet);
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav {
  height: 50px;
  text-align: left;
  padding: 0 18px;
}

.nav.active {
  border-color: #c7a8ff;
  color: var(--violet);
  box-shadow: inset 0 0 0 1px #d8c2ff;
}

.export {
  margin-top: auto;
  height: 54px;
  background: var(--violet);
  color: #fff;
  border: 0;
}

.studio {
  padding: 18px;
  border-radius: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.project-name {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  font-weight: 850;
}

.topbar button {
  min-width: 108px;
  height: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.step {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf3;
  color: #6c6670;
  font-weight: 900;
  text-transform: uppercase;
}

.step.active {
  border-color: var(--violet);
  color: var(--violet);
}

.canvas {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin: 12px 0 14px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #170006 0 66%, #70460d 66% 100%);
}

.safe {
  position: absolute;
  inset: 28px;
  border: 3px dashed #c69013;
}

h2 {
  position: absolute;
  left: 70px;
  top: 54px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 #050505;
  transform: rotate(-3deg);
}

.play {
  position: absolute;
  right: 22%;
  top: 40%;
  width: 84px;
  height: 58px;
  background: #e0201d;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(-8px 0 0 #fff);
}

.check {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 194px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  color: #fff;
  background: rgba(26, 17, 16, 0.42);
}

.check strong {
  color: var(--violet);
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.check span {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  background: #1ea866;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.check p {
  margin: 22px 0 0;
  max-width: 120px;
  color: #f4d7b1;
  font-size: 12px;
}

.filmstrip {
  display: grid;
  grid-template-columns: 140px repeat(3, minmax(130px, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tile {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 0.94;
  text-transform: uppercase;
}

.tile:not(.new)::first-line {
  color: #fff;
}

.tile.new {
  justify-content: center;
  background: #fffdf8;
  color: var(--ink);
  font-size: 40px;
}

.tile.selected {
  outline: 3px solid #9b69ff;
}

.tools {
  padding: 20px 18px;
  border-radius: 22px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  color: var(--muted);
}

.tabs strong {
  color: var(--ink);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tool-grid button {
  min-height: 70px;
  font-size: 12px;
}

.wide {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
}

.score {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.score small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.score strong {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin: 14px 0 4px;
  place-items: center;
  border: 5px solid #45c481;
  border-radius: 999px;
  font-size: 24px;
}

.score p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .rail,
  .tools {
    display: none;
  }

  .filmstrip {
    grid-template-columns: 1fr 1fr;
  }
}
