/* DARK P11, Figma 1735:55. Uses the existing fixed-board scaler. */
#main #cq-map > .cq08-stage { display: none; }

html[data-theme="dark"] #main #cq-map.portfolio-sheet {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  min-height: 0;
  height: calc(1400px * var(--zk592-scale, 1) + 4px);
  padding: 0;
  border: 2px solid #372942;
  border-radius: 22px;
  overflow: clip;
  background: #060713;
  box-shadow: 0 14px 45px #07030c36;
}

html[data-theme="dark"] #main #cq-map > :not(.cq08-stage, .u-header, .u-footer, .anchor-alias),
html[data-theme="dark"] #main #cq-map::before,
html[data-theme="dark"] #main #cq-map::after { display: none; }

/* The legacy mobile layout forces .sheet-content visible at 760px and below. */
html[data-theme="dark"] #main #cq-map > .sheet-content { display: none !important; }

html[data-theme="dark"] #main #cq-map > .u-running {
  display: flex;
  position: absolute;
  inset-inline: 0;
  z-index: 5;
}

html[data-theme="dark"] #main #cq-map > .u-header { top: 0; }
html[data-theme="dark"] #main #cq-map > .u-footer {
  bottom: 0;
  height: calc(60px * var(--zk592-scale, 1));
  min-height: 0;
}
html[data-theme="dark"] #main #cq-map > .cq08-stage {
  --cq08-title: 'ZK08 Title', 'LogoSC Unbounded Sans', sans-serif;
  --cq08-text: 'Portfolio Inter', 'PingFang SC', sans-serif;
  --cq08-noto: 'ZK08 Noto', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --cq08-skew: matrix(1, 0, -.115457259, .993312418, 0, 0);
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 1920px;
  height: 1400px;
  margin: 0;
  padding: 0;
  isolation: isolate;
  transform: scale(var(--zk592-scale, 1));
  transform-origin: top left;
  color: #fff;
  font-family: var(--cq08-text);
}

#main #cq-map .cq08-stage :is(h2, h3, h4, p, ol, ul, figure) { margin: 0; padding: 0; letter-spacing: 0; }
#main #cq-map .cq08-stage img { display: block; max-width: none; }

.cq08-background,
.cq08-background::after { position: absolute; inset: 0; }

.cq08-background {
  z-index: -4;
  overflow: hidden;
  background: linear-gradient(180deg, #060713, #0a0e24 56.747%, #090517 89.503%, #21003c 103.18%);
}

.cq08-background::after {
  content: '';
  background: linear-gradient(180deg, #060713 20.804%, #0a0e2480 66.335%, #090517);
}

.cq08-trails { position: absolute; top: 291.62px; left: 0; width: 1920px; height: 1271.9px; }
.cq08-checker { position: absolute; top: 1075px; left: 0; z-index: -3; }

#main #cq-map .cq08-stage .cq08-number {
  position: absolute;
  left: 563px;
  top: -97px;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  font: 700 820px/normal 'Portfolio Trash', sans-serif;
  letter-spacing: -57.4px;
  white-space: nowrap;
  background: linear-gradient(-23.136817deg, #9d59ff0a 20.981%, #7424ff30 62.234%);
  background-clip: text;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.cq08-heading { position: absolute; left: 80px; top: 140px; width: 1760px; }
.cq08-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font: 700 32px/1.3 var(--cq08-text);
  white-space: nowrap;
}

#main #cq-map .cq08-eyebrow b {
  display: grid;
  place-items: center;
  width: 190.348px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 24px;
  font: 700 24px/1.2 'Portfolio Trash', sans-serif;
  transform: var(--cq08-skew);
}

#main #cq-map .cq08-heading h2 {
  position: absolute;
  top: 50px;
  left: 0;
  width: 1407.784px;
  height: 102.311px;
  font: 400 86px/1.2 var(--cq08-title);
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}

.cq08-heading h2 span {
  position: absolute;
  left: 11.892px;
  width: 946px;
  height: 103px;
  transform: var(--cq08-skew);
  transform-origin: top left;
}

.cq08-heading h2 span + span {
  left: 977.784px;
  width: 430px;
  color: transparent;
  background: linear-gradient(265.978773deg, #e2caff -19.95%, #964dff 75.058%, #2429ff 121.1%, #3d22b6 137.16%);
  background-clip: text;
}

#main #cq-map .cq08-heading > p {
  position: absolute;
  top: 160.311px;
  left: 4.618px;
  width: 1409.448px;
  font: 700 32px/1.26 var(--cq08-noto);
  color: #f4f0fa;
  transform: var(--cq08-skew);
  transform-origin: top left;
}

.cq08-emblem { position: absolute; left: 523px; top: -39px; width: 293px; height: 91px; }
.cq08-emblem > img { position: absolute; }
.cq08-orbit { left: 79px; top: 16.718px; }
.cq08-star { left: 150.457px; top: 0; }
.cq08-dot { left: 0; top: 51.904px; }

#main #cq-map .cq08-emblem p {
  position: absolute;
  left: 20px;
  top: 35px;
  width: 273px;
  font: 400 34px/49px var(--cq08-title);
  white-space: nowrap;
  color: transparent;
  background: url('../assets/cq-pc-skill-1735/coding-text-glow.svg') center / 100% 100% no-repeat;
  background-clip: text;
  transform: matrix(1,0,-.121869,.992546,0,0);
  transform-origin: top left;
}

.cq08-workflow { position: absolute; left: 80px; top: 441.16px; width: 270px; }
#main #cq-map .cq08-workflow h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 47.679px;
  color: #fff;
  font: 900 40px/1.2 var(--cq08-text);
  white-space: nowrap;
}
.cq08-workflow h3 span { width: 165.542px; text-align: center; transform: var(--cq08-skew); }
.cq08-workflow h3 img:first-child { transform: rotate(180deg); }
.cq08-workflow h3 img:last-child { transform: scaleY(-1); }

#main #cq-map .cq08-workflow .cq08-steps {
  display: grid;
  grid-template-rows: 167px 167px 167px 141px;
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}

.cq08-steps li,
.cq08-panel {
  box-sizing: border-box;
  border: 1px solid #7b4cd4;
  backdrop-filter: blur(5.6px);
}

.cq08-steps li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  border-radius: 30px;
}

#main #cq-map .cq08-steps h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font: 800 28px/37.7px var(--cq08-text);
  white-space: nowrap;
}

.cq08-steps h4 > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #5d42e773;
  background: linear-gradient(209.741963deg, #9d59ff 6.6757%, #4824ffd9 44.886%, #3d22b6 80.564%);
  font: 600 22px/1 'PingFang SC', var(--cq08-text);
}

#main #cq-map .cq08-steps p {
  font: 400 22px/26.1px 'CQ02 Noto', var(--cq08-noto);
  text-align: justify;
  color: #c5c5eb;
}
#main #cq-map .cq08-steps li:nth-child(2) p { font: 700 22px/26.1px 'ZK08 Noto', var(--cq08-text); }

.cq08-panel {
  position: absolute;
  left: 410px;
  top: 407px;
  width: 1430px;
  height: 870px;
  border-radius: 32px;
  overflow: clip;
}

.cq08-coding {
  position: absolute;
  left: 24px;
  top: 98.66px;
  width: 454px;
  height: 670.68px;
  overflow: clip;
}

#main #cq-map .cq08-coding h3 {
  color: #fff;
  height: 47.679px;
  font: 900 40px/1.2 var(--cq08-text);
  transform: var(--cq08-skew);
  transform-origin: top left;
  padding-inline-start: 5.542px;
}

#main #cq-map .cq08-coding > p {
  height: 72px;
  margin-top: 24px;
  color: #fffc;
  font: 600 24px/1.5 var(--cq08-text);
  text-align: justify;
}

.cq08-device { position: absolute; isolation: isolate; }
.cq08-pc-rear { left: 543px; top: 80px; width: 789px; height: 440px; }
.cq08-pc-front { left: 589px; top: 215px; width: 789px; height: 575px; }
.cq08-dialog { left: 18px; top: 183.68px; width: 420px; height: 465px; }

.cq08-device::before {
  content: '';
  position: absolute;
  inset: -14.927px;
  border-radius: 37.726px;
  background: linear-gradient(180deg, #4900be4d, #560e8240 10.442%, #a96aff 44.255%, #4233ff59 87.019%), #d1d1d1;
}

.cq08-device > img { position: absolute; z-index: -1; }
.cq08-device-light { left: -166.412px; top: 297.865px; }
.cq08-device-shadow { left: -18.891px; top: 432.843px; }
.cq08-dialog .cq08-device-light { left: -29.99px; top: 365px; }
.cq08-dialog .cq08-device-shadow { top: 432.522px; left: -18.891px; }

.cq08-screen {
  position: absolute;
  inset: 0;
  border-radius: 22.799px;
  overflow: hidden;
  background: #000614;
  box-shadow: 0 0 0 11.195px #000614;
}

.cq08-screen > img,
.cq08-dialog-image > img { position: absolute; height: auto; }
.cq08-pc-rear .cq08-screen > img { left: -.03%; top: 0; width: 100.03%; }
.cq08-pc-front .cq08-screen > img { left: 0; top: .08%; width: 99.95%; }
.cq08-pc .cq08-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #16104100 62.25%, #161041 110.95%);
}

.cq08-dialog .cq08-screen { background: #1b2352; }
.cq08-dialog-dots { left: 29px; top: 16px; }
.cq08-dialog-image {
  position: absolute;
  inset: 40px 0 0;
  background: #8eacf9;
  overflow: hidden;
}
.cq08-dialog-image > img { left: -12.08%; top: -33.21%; width: 113.73%; }
.cq08-dialog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2b174b00 37.369%, #3644b1);
}
.cq08-run {
  position: absolute;
  left: 100px;
  top: 377.66px;
  width: 218.424px;
  height: 53px;
  border-radius: 26.5px;
  overflow: hidden;
  box-shadow: 0 0 18.1px #9c49d6;
}
.cq08-run > img { width: 100%; height: auto; }

.cq08-steps li:nth-child(1) {
  background: url('../assets/cq-pc-skill-1735/step-1-glow-1.svg'),
    linear-gradient(180deg, rgba(70, 35, 159, 0.25) 0%, rgba(38, 15, 92, 0.25) 100%);
  background-origin: border-box;
  background-repeat: no-repeat;
}

.cq08-steps li:nth-child(2) {
  background: url('../assets/cq-pc-skill-1735/step-2-glow-1.svg'),
    linear-gradient(161.98760786980034deg, rgba(47, 77, 237, 0.25) 17.228%, rgba(21, 30, 148, 0.25) 96.795%);
  background-origin: border-box;
  background-repeat: no-repeat;
}

.cq08-steps li:nth-child(3) {
  background: url('../assets/cq-pc-skill-1735/step-3-glow-1.svg'),
    linear-gradient(161.98760786980034deg, rgba(47, 77, 237, 0.25) 17.228%, rgba(21, 30, 148, 0.25) 96.795%);
  background-origin: border-box;
  background-repeat: no-repeat;
}

.cq08-steps li:nth-child(4) {
  background: url('../assets/cq-pc-skill-1735/step-4-glow-1.svg'),
    linear-gradient(180deg, rgba(70, 35, 159, 0.25) 0%, rgba(38, 15, 92, 0.25) 100%);
  background-origin: border-box;
  background-repeat: no-repeat;
}

.cq08-panel {
  background: url('../assets/cq-pc-skill-1735/panel-glow-1.svg'),
    url('../assets/cq-pc-skill-1735/panel-glow-2.svg'),
    linear-gradient(180deg, rgba(70, 35, 159, 0.25) 0%, rgba(38, 15, 92, 0.25) 100%);
  background-origin: border-box;
  background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-map.portfolio-sheet {
    height: calc(1400px * var(--zk592-scale, 1) + 92px);
  }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-map > .cq08-stage { top: 44px; }
  html[data-theme="dark"] body:not(.canvas-mode) #main #cq-map > .u-footer { height: 44px; }
}
