/* === ARCLIGHT Works Index, Progress Bar, Crazy Deep World & Generic Game Showcase === */

/* --- Works Directory Index --- */
.works-index {
  margin: clamp(48px, 8vh, 90px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr) 128px auto;
  column-gap: 24px;
}

.works-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-areas: "n name kind status acts";
  align-items: center;
  row-gap: 10px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.works-row__n {
  grid-area: n;
}

.works-row__name {
  grid-area: name;
  justify-self: start;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: .04em;
  line-height: 1.3;
  padding: 2px 6px;
  margin-left: -6px;
  background-image: linear-gradient(var(--fg), var(--fg));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0% 100%;
  transition: background-size .38s var(--ease-io), color .32s var(--ease-io);
}

.works-row__name:hover,
.works-row__name:focus-visible {
  background-position: left center;
  background-size: 100% 100%;
  color: #000;
}

.works-row__kind {
  grid-area: kind;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: .04em;
}

.works-row__status {
  grid-area: status;
}

.works-row[data-tone="live"] .game-badge i {
  background: #ffff21;
  box-shadow: 0 0 12px #ffff2166;
}

.works-row[data-tone="dev"] .game-badge i {
  background: #e07b39;
  box-shadow: none;
  animation: works-blink 1.2s step-end infinite;
}

.works-row__acts {
  grid-area: acts;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.works-row .works-row__btn {
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: .18em;
}

.works-row .works-row__btn:focus-visible .works-row__down,
.works-row .works-row__btn:hover .works-row__down {
  transform: translateY(4px);
}

@keyframes works-blink {
  50% { opacity: .25; }
}

@media (max-width: 980px) {
  .works-index {
    display: block;
  }
  .works-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "n name status"
      "n kind kind"
      "n acts acts";
    column-gap: 24px;
  }
  .works-row__acts {
    justify-content: flex-start;
    margin-top: 8px;
  }
  .works-row__n {
    align-self: start;
    padding-top: .8em;
  }
}

@media (max-width: 480px) {
  .works-row {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "n name"
      "n status"
      "n kind"
      "n acts";
    column-gap: 12px;
  }
  .works-row .works-row__btn {
    padding: 11px 14px;
    letter-spacing: .12em;
  }
}

/* --- Game 01: PROGRESS BAR --- */
.pb-details,
.pb-scene {
  --pb-ink: #171816;
  --pb-panel: #1f201d;
  --pb-paper: #ecece7;
  --pb-muted: #90948a;
  --pb-soft: #c2c5bb;
  --pb-acid: #ffff21;
  --pb-line: #767970;
  --pb-font: "Inter", "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--pb-ink);
  color: var(--pb-paper);
  font-family: var(--pb-font);
  letter-spacing: normal;
}

.pb-scene {
  position: relative;
  height: 185svh;
  border-top: 1px solid var(--line);
}

.pb-scene__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-h) + var(--admin-offset, 0px));
  min-height: calc(100svh - var(--nav-h) - var(--admin-offset, 0px));
  display: flex;
  align-items: center;
  padding-block: 24px;
}

.pb-scene__sticky > .shell {
  max-width: 1280px;
}

.pb-panel {
  position: relative;
  border: 1px solid var(--pb-line);
  background: var(--pb-panel);
  padding: clamp(22px, min(3.4vw, 5vh), 52px);
}

.pb-panel:before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  width: 68px;
  height: 3px;
  background: var(--pb-acid);
}

.pb-panel__plus {
  position: absolute;
  top: clamp(14px, 2vw, 26px);
  right: clamp(16px, 2.4vw, 30px);
  color: var(--pb-acid);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.pb-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
}

.pb-eyebrow {
  color: var(--pb-acid);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.pb-title {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: clamp(46px, min(8.4vw, 10.5vh), 136px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.pb-title span {
  color: var(--pb-acid);
}

.pb-copy {
  color: var(--pb-soft);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.78;
}

.pb-copy p + p {
  margin-top: 10px;
}

.pb-load {
  margin-top: clamp(22px, 4.2vh, 50px);
}

.pb-load__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.pb-load__label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.pb-load__done {
  flex: 1 1 auto;
  color: var(--pb-soft);
  font-size: 13px;
  text-align: right;
  opacity: clamp(0, calc((var(--fill) - .995) * 200), 1);
}

.pb-load__row b {
  color: var(--pb-acid);
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.pb-load__bar {
  position: relative;
  height: clamp(32px, 5.2vh, 54px);
  border: 1px solid var(--pb-line);
}

.pb-load__bar > div {
  position: absolute;
  inset: 0;
  background: var(--pb-acid);
  transform: scaleX(var(--fill));
  transform-origin: left;
}

.pb-load__ticks {
  margin-top: 10px;
  color: var(--pb-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
}

.pb-play {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: clamp(18px, 3.4vh, 34px);
  min-height: clamp(54px, 7.6vh, 74px);
  padding-inline: 20px 24px;
  background: var(--pb-acid);
  color: var(--pb-ink);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  transition: background-color .3s ease;
}

.pb-play span {
  font-size: 1.1em;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.pb-play:focus-visible,
.pb-play:hover {
  background: var(--pb-paper);
}

.pb-play:focus-visible span,
.pb-play:hover span {
  transform: translateX(6px);
}

.pb-play:focus-visible {
  outline-color: var(--pb-acid);
}

.pb-note {
  margin-top: 14px;
  color: var(--pb-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.pb-details {
  padding-block: clamp(70px, 11vh, 140px);
  border-top: 1px solid #2e302c;
}

.pb-details__grid {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
}

.pb-details__title {
  margin-block: 16px 26px;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.03em;
  font-feature-settings: "halt" 1;
}

.pb-details__title span {
  display: block;
  color: var(--pb-acid);
}

.pb-details__text {
  color: var(--pb-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
  max-width: 36em;
}

.pb-details__text + .pb-details__text {
  margin-top: 14px;
}

.pb-spec {
  margin: 0;
  border-top: 1px solid var(--pb-paper);
}

.pb-spec > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid #454841;
  font-size: 15px;
}

.pb-spec dt {
  color: var(--pb-muted);
  white-space: nowrap;
}

.pb-spec dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

@media (max-width: 900px) {
  .pb-details__grid,
  .pb-head {
    grid-template-columns: 1fr;
  }
  .pb-head {
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .pb-scene {
    height: 140svh;
  }
  .pb-copy {
    font-size: 14px;
    line-height: 1.65;
  }
  .pb-copy p + p {
    display: none;
  }
  .pb-load__done {
    display: none;
  }
  .pb-load__ticks span:nth-child(2n) {
    visibility: hidden;
  }
}

@media (max-height: 680px), (prefers-reduced-motion: reduce) {
  .pb-scene {
    height: auto;
  }
  .pb-scene__sticky {
    position: relative;
    top: auto;
    min-height: 0;
    padding-block: 64px;
  }
}

/* --- Game 02: Crazy Deep World (Strict 12px / 24px Integer Pixel Multiples) --- */
@font-face {
  font-family: "Fusion Pixel 12";
  src: url(../fonts/fusion-pixel-12px-zh_hans.woff2) format("woff2");
  font-display: swap;
}

.cdw {
  --k: #14101e;
  --K: #2b2535;
  --g: #4a4655;
  --l: #c4c0c2;
  --w: #f2efe6;
  --n: #0f2a4a;
  --b: #1d4f7a;
  --B: #2f7fa8;
  --c: #4fb8c8;
  --C: #b2ebe8;
  --o: #e07b39;
  --y: #f4c542;
  --px: 3;
  --logo: 3;
  --pixel: "Fusion Pixel 12", var(--mono);
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 10vh, 120px);
  border-top: 4px solid var(--k);
  background-color: var(--b);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48' shape-rendering='crispEdges'%3E%3Cg fill='%232f7fa8'%3E%3Crect x='4' y='6' width='7' height='1'/%3E%3Crect x='38' y='20' width='8' height='1'/%3E%3Crect x='18' y='35' width='5' height='1'/%3E%3Crect x='52' y='43' width='4' height='1'/%3E%3C/g%3E%3Cg fill='%234fb8c8'%3E%3Crect x='6' y='5' width='3' height='1'/%3E%3Crect x='41' y='19' width='3' height='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: calc(var(--px) * 64px) calc(var(--px) * 48px);
  image-rendering: pixelated;
  animation: cdw-sea 9s steps(32) infinite;
  color: var(--w);
  font-family: var(--pixel);
  letter-spacing: 0;
  -webkit-font-smoothing: none;
}

@keyframes cdw-sea {
  to { background-position: calc(var(--px) * 64px) 0; }
}

.cdw__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--n);
  font-size: 12px;
  color: var(--C);
}

.cdw-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  background: var(--k);
  color: var(--y);
}

.cdw-badge i {
  width: 6px;
  height: 6px;
  background: var(--o);
  animation: works-blink 1s step-end infinite;
}

.cdw__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(32px, 6vh, 64px);
}

.cdw__logo img {
  width: calc(224px * var(--logo));
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.cdw__sub {
  margin-top: 18px;
  line-height: 1.5;
  color: var(--C);
}

.cdw__lede,
.cdw__sub {
  font-size: 24px;
  text-shadow: 0 3px 0 var(--n);
}

.cdw__lede {
  margin-top: 22px;
  max-width: 30em;
  line-height: 1.75;
  text-wrap: pretty;
}

.cdw__acts {
  margin-top: 34px;
}

.cdw-btn {
  display: inline-block;
  padding: 14px 22px 13px;
  font-size: 24px;
  line-height: 1;
  background: var(--g);
  color: var(--l);
  border: 3px solid var(--k);
  box-shadow: inset -3px -3px 0 var(--K), inset 3px 3px 0 #77737d, 0 6px 0 var(--k);
  cursor: not-allowed;
  user-select: none;
}

.cdw__note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--C);
  opacity: .9;
}

.cdw-panel {
  background: var(--n);
  border: 3px solid var(--k);
  box-shadow: inset 0 3px 0 var(--B), 0 6px 0 var(--k);
  padding: 6px 22px 22px;
}

.cdw-spec {
  margin: 0;
}

.cdw-spec > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 3px solid var(--b);
}

.cdw-spec dt {
  font-size: 12px;
  color: var(--C);
  white-space: nowrap;
}

.cdw-spec dd {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  text-align: right;
}

.cdw-cp {
  margin-top: 22px;
}

.cdw-cp__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--C);
}

.cdw-cp__bar {
  margin: 10px 0 0;
  padding: 3px;
  display: grid;
  gap: 3px;
  background: var(--k);
  grid-template-columns: repeat(10, minmax(0, 1fr)) 3px repeat(10, minmax(0, 1fr));
}

.cdw-cp__bar li {
  height: 18px;
  background: var(--K);
}

.cdw-cp__bar li:nth-child(11) {
  grid-column-start: 12;
}

.cdw-cp__bar li[data-line="abyss"] {
  background: var(--n);
}

.cdw-cp__bar li[data-state="done"] {
  background: var(--y);
}

.cdw-cp__bar li[data-state="now"] {
  background: var(--y);
  animation: cdw-now 1.2s step-end infinite;
}

@keyframes cdw-now {
  50% { background: var(--o); }
}

.cdw-cp__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--l);
}

.cdw-ch {
  margin: 16px 0 0;
  padding: 0;
  border-top: 3px solid var(--b);
}

.cdw-ch li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 3px solid var(--b);
}

.cdw-ch b {
  padding: 4px 6px;
  background: var(--k);
  color: var(--y);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.cdw-ch__name {
  font-size: 24px;
  line-height: 1.25;
}

.cdw-ch__name small {
  margin-left: 10px;
}

.cdw-ch em,
.cdw-ch__name small {
  font-size: 12px;
  color: var(--C);
  white-space: nowrap;
}

.cdw-ch em {
  font-style: normal;
}

.cdw-ch li[data-state="now"] b {
  background: var(--y);
  color: var(--k);
}

.cdw-ch li[data-state="now"] em {
  color: var(--y);
}

.cdw-log {
  margin-top: clamp(48px, 9vh, 96px);
}

.cdw-log__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--n);
  font-size: 12px;
  color: var(--C);
}

.cdw-log__head h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--w);
  text-shadow: 0 3px 0 var(--n);
}

.cdw-log__list {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.cdw-log__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px 20px 18px 16px;
  background: var(--n);
  border: 3px solid var(--k);
  box-shadow: inset 0 3px 0 var(--B), 0 6px 0 var(--k);
}

.cdw-log__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding-bottom: 6px;
  background: var(--b);
  border: 3px solid var(--k);
  box-shadow: inset 0 3px 0 var(--K);
}

.cdw-log__art > * {
  position: relative;
  transform: scale(2);
  transform-origin: 50% 100%;
  image-rendering: pixelated;
}

.cdw-log__art img {
  max-width: none;
}

.cdw-log__talk {
  width: 24px;
  height: 32px;
  background: url(../img/cdw/char_ashui_talk_s.png) 0 0 / 48px 32px;
  animation: cdw-frames .34s steps(2) infinite;
  --frames: -48px;
}

.cdw-log__art > .cdw-log__bubble {
  position: absolute;
  left: calc(50% + 14px);
  bottom: 62px;
  transform-origin: 0 100%;
}

.cdw-log__tag {
  display: inline-block;
  padding: 4px 6px;
  background: var(--k);
  color: var(--y);
  font-size: 12px;
  line-height: 1;
}

.cdw-log__title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--y);
  text-shadow: 0 3px 0 var(--k);
}

.cdw-log__text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 2;
  color: var(--w);
}

.cdw-stage {
  position: relative;
  height: calc(var(--px) * 110px);
  margin-top: clamp(28px, 6vh, 64px);
}

.cdw-stage:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--px) * 8px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='8' shape-rendering='crispEdges'%3E%3Cg fill='%230f2a4a'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='2' height='1'/%3E%3Crect x='0' y='5' width='3' height='1'/%3E%3Crect x='0' y='6' width='4' height='2'/%3E%3C/g%3E%3C/svg%3E") 0 100% / calc(var(--px) * 4px) 100% repeat-x;
}

.cdw-world {
  position: absolute;
  left: 0;
  bottom: calc(var(--px) * 10px);
  width: calc(100% / var(--px));
  height: 100px;
  transform: scale(var(--px));
  transform-origin: 0 100%;
}

.cdw-world img {
  position: absolute;
  max-width: none;
  image-rendering: pixelated;
}

.cdw-tower { bottom: -6px; }
.cdw-tower--a { left: 3%; }
.cdw-tower--b { right: 5%; bottom: 6px; }
.cdw-raft { position: absolute; left: 24%; bottom: 10px; width: 64px; height: 40px; }
.cdw-ashui { position: absolute; left: 20px; top: -16px; width: 24px; height: 32px; background: url(../img/cdw/char_ashui_cheer_s.png) 0 0 / 48px 32px; animation: cdw-frames .34s steps(2) infinite; --frames: -48px; }
.cdw-bob { position: absolute; display: block; animation: cdw-bob 1.4s step-end infinite; }
.cdw-bob img { position: relative; display: block; }
.cdw-tub { left: 47%; bottom: 26px; width: 32px; height: 24px; }
.cdw-skiff { left: 57%; bottom: 4px; width: 40px; height: 32px; animation-delay: -.7s; }
.cdw-reef { right: calc(5% + 84px); bottom: -2px; }
.cdw-snake { width: 32px; height: 40px; background: url(../img/cdw/fx_snake_head.png) 0 0 / 64px 40px; animation: cdw-frames .67s steps(2) infinite; --frames: -64px; }
.cdw-snake--stage { position: absolute; right: calc(5% + 54px); bottom: 2px; }
.cdw-debris { width: 16px; height: 16px; }
.cdw-debris--a { left: 42%; bottom: 6px; animation-delay: -.5s; }
.cdw-debris--b { left: 68%; bottom: 46px; animation-delay: -1s; }
.cdw-ripple { position: absolute; left: 1px; right: 1px; top: 10px; height: 1px; background: repeating-linear-gradient(90deg, var(--C) 0 3px, transparent 3px 5px); }
.cdw-tub .cdw-ripple { left: 3px; right: 3px; top: 18px; }
.cdw-skiff .cdw-ripple { left: 4px; right: 4px; top: 26px; }
.cdw-raft .cdw-ripple { left: 2px; right: 2px; top: 33px; background: repeating-linear-gradient(90deg, var(--C) 0 4px, transparent 4px 7px); }

@keyframes cdw-bob {
  50% { transform: translateY(1px); }
}

.cdw-swim { position: absolute; left: 0; width: 100%; height: 16px; }
.cdw-swim--shark { bottom: 2px; animation: cdw-swim-left 30s linear infinite; }
.cdw-swim--gull { bottom: 80px; animation: cdw-swim-right 19s linear infinite; animation-delay: -6s; }
.cdw-anim { display: block; }
.cdw-gull, .cdw-shark { width: 16px; height: 16px; background: 0 0 / 32px 16px; --frames: -32px; }
.cdw-shark { background-image: url(../img/cdw/fx_shark_fin.png); animation: cdw-frames .5s steps(2) infinite; }
.cdw-gull { background-image: url(../img/cdw/fx_seagull.png); animation: cdw-frames .34s steps(2) infinite; }

@keyframes cdw-frames {
  to { background-position: var(--frames) 0; }
}
@keyframes cdw-swim-left {
  0% { transform: translateX(104%); }
  to { transform: translateX(-6%); }
}
@keyframes cdw-swim-right {
  0% { transform: translateX(-6%) scaleX(-1); }
  to { transform: translateX(104%) scaleX(-1); }
}

@media (max-width: 1200px) { .cdw-reef { display: none; } }
@media (max-width: 1100px) { .cdw { --logo: 2; } }
@media (max-width: 900px) {
  .cdw { --px: 2; }
  .cdw__grid { grid-template-columns: 1fr; }
  .cdw-tower--b { right: 2%; }
  .cdw-snake--stage { right: calc(2% + 54px); }
}
@media (max-width: 760px) { .cdw-log__list { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cdw-skiff { display: none; } }
@media (max-width: 620px) {
  .cdw-debris--b, .cdw-tower--b { display: none; }
  .cdw-raft { left: 30%; }
  .cdw-tub { left: 62%; }
  .cdw-snake--stage { right: 3%; }
  .cdw__meta { flex-direction: column; align-items: flex-start; }
  .cdw-log__head { flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  /* Strict 12px (1x) and 24px (2x) integer bitmap multiples — zero 18px stroke distortion */
  .cdw { --logo: 1.5; }
  .cdw__lede { font-size: 12px; line-height: 2.1; }
  .cdw-btn { font-size: 24px; padding: 12px 16px 11px; }
  .cdw-panel { padding-inline: 16px; }
  .cdw-log__item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 14px 16px 12px; }
  .cdw-log__art { width: 88px; height: 92px; }
  .cdw-log__art > .cdw-log__bubble { left: calc(50% + 10px); }
}
@media (max-width: 440px) {
  .cdw-snake--stage { display: none; }
  .cdw-tub { left: 66%; }
}
@media (max-width: 380px) { .cdw { --logo: 1.25; } }
@media (prefers-reduced-motion: reduce) {
  .cdw, .cdw-anim, .cdw-bob, .cdw-cp__bar li, .cdw-swim { animation: none !important; }
  .cdw-swim--shark { transform: translateX(78%); }
  .cdw-swim--gull { transform: translateX(14%) scaleX(-1); }
}

/* --- Generic Reusable Game Showcase Block (arclight/works-showcase) --- */
.work-showcase {
  --game-accent: #ffffff;
  position: relative;
  padding-block: clamp(80px, 12vh, 160px);
  border-top: 1px solid var(--line);
  background: #040406;
}

.work-showcase__panel {
  border: 1px solid var(--line-strong);
  background: #08080c;
  padding: clamp(24px, 5vw, 64px);
}

.work-showcase__panel:before {
  background: transparent;
}

.work-showcase__accent-bar {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 76px;
  height: 3px;
  background: var(--game-accent);
}

.work-showcase__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.work-showcase__badge i {
  background: var(--game-accent);
  box-shadow: 0 0 12px var(--game-accent);
}

.work-showcase__grid {
  margin-top: clamp(28px, 5vh, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.work-showcase__title {
  font-family: var(--sans);
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--fg);
}

.work-showcase__sub {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--game-accent);
}

.work-showcase__media {
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.work-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-showcase__desc {
  margin-top: 24px;
  color: var(--dim);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
  max-width: 56ch;
}

.work-showcase__desc + .work-showcase__desc {
  margin-top: 14px;
}

.work-showcase__acts {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.work-showcase__spec {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.work-showcase__spec > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.work-showcase__spec dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.work-showcase__spec dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  color: var(--fg);
}

@media (max-width: 900px) {
  .work-showcase__grid {
    grid-template-columns: 1fr;
  }
}
