body {
  background: linear-gradient(125deg, #edf3e9, #f6eddd 70%);
  color: #233d46;
  font:
    650 16px/1.43 Nunito,
    sans-serif;
}
header {
  background: #244657;
  border-bottom: 3px solid #aa9270;
}
.top,
main,
footer {
  max-width: 1270px;
}
.top nav a {
  color: #fff1cf;
}
main {
  padding-top: 21px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid #aabac0;
}
a {
  color: #326279;
}
.prism-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.57fr) minmax(0, 1fr);
  border: 2px solid #556765;
  border-radius: 80px 15px 15px 15px;
  overflow: hidden;
  box-shadow: 0 4px #c1b599;
  background: #fff1d3;
}
.prism-cover > img {
  height: 100%;
  max-height: 450px;
  width: 100%;
  object-fit: cover;
}
.cover-panel {
  padding: clamp(20px, 3.4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(ellipse at 85% 4%, #f4e4b0, transparent 50%), #fff3db;
}
.lead-light {
  display: flex;
  gap: 5px;
  margin: 0 0 15px;
}
.lead-light i,
.pigments button:before {
  display: block;
  width: 17px;
  height: 17px;
  background: var(--gem);
  border: 1px solid #795e5f;
  transform: rotate(45deg);
  border-radius: 3px;
}
.cover-panel h1,
.pg-heading h1 {
  font:
    700 clamp(42px, 5.6vw, 82px)/0.93 Pixel,
    monospace;
  color: #274e59;
  letter-spacing: -0.04em;
  margin: 0;
}
.cover-panel p {
  max-width: 36ch;
}
.primary,
#prism button {
  padding: 8px 13px;
  border-radius: 7px;
  background: #305d6a;
  border: 1px solid #204954;
  color: #fff6dd;
  font:
    850 0.94rem Nunito,
    sans-serif;
  box-shadow: 0 2px 0 #214752;
  text-decoration: none;
  min-height: 38px;
}
.cover-panel > a + a {
  margin-top: 15px;
  font-size: 0.91rem;
}
.rooms h2,
.desk h2,
.notecard h2 {
  font:
    700 1.8rem Pixel,
    monospace;
  color: #2d5058;
  margin: 8px 0 12px;
}
.rooms {
  margin: 23px 0;
}
.rooms > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rooms a {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #baa98c;
  border-bottom: 3px solid #c2ad88;
  border-radius: 11px;
  background: #fffaee;
  padding: 12px;
  color: #344e51;
  text-decoration: none;
}
.rooms i {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 48px;
  background: linear-gradient(125deg, #fff8, var(--gem) 65%);
  border: 1px solid #877775;
  border-radius: 20px 20px 4px 4px;
  font: 1.5rem Georgia;
  color: #28414d;
}
.rooms small,
.rooms strong,
.rooms em {
  display: block;
}
.rooms strong {
  font:
    700 1.23rem/1.05 Pixel,
    monospace;
}
.rooms em {
  color: #426872;
  font-size: 0.78rem;
  font-style: normal;
  margin-top: 5px;
}
.rooms small,
.pg-heading small,
.packet small {
  font-size: 0.76rem;
  color: #785642;
  letter-spacing: 0.05em;
  font-weight: 900;
}
.gallery-nav,
.pg-controls,
.turns,
.pg-reward,
.pigments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.gallery-nav a {
  color: #385762;
  background: #fff9e9;
  border: 1px solid #b2b9ad;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.86rem;
}
.gallery-nav a[aria-current='page'] {
  color: #fff6de;
  background: #305d6a;
}
.pg-heading {
  margin: 18px 0 17px;
}
.pg-heading h1 {
  font-size: clamp(34px, 4vw, 55px);
  margin: 4px 0;
}
.pg-heading p {
  margin: 7px 0;
  max-width: 82ch;
}
.pg-work,
.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.desk,
.notecard,
.atelier > section:first-child {
  border: 1px solid #aeb8ad;
  background: #fffbee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px #c6c8b5;
}
.desk,
.notecard > div + div {
  padding: clamp(13px, 2.2vw, 24px);
}
.card-art {
  height: clamp(94px, 12vw, 162px);
  background: url(assets/prism-glassworks.webp) center 48% / cover;
}
.notecard a,
.pg-note {
  font-size: 0.86rem;
}
.pg-controls,
.pg-reward,
.pg-status {
  margin: 12px 0;
}
.pg-reward {
  justify-content: space-between;
  background: #e4ebd5;
  border: 1px solid #a3b49b;
  padding: 12px;
  border-radius: 7px;
}
.pg-status {
  background: #f6e8b9;
  padding: 9px 12px;
  color: #444e3c;
  border-radius: 6px;
}
.pg-status:empty {
  display: none;
}
#prism .play button[aria-pressed='true'],
#prism .desk button[aria-pressed='true'] {
  background: #f3d48f;
  color: #3b4a46;
  border: 2px solid #887548;
}
#prism button[disabled] {
  opacity: 0.52;
}
.pg-work + button {
  margin: 15px 0;
}
.shard-tray,
.glass-slips,
.prism-meters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shard-tray span {
  flex: 1;
  text-align: center;
  padding: 11px 3px;
  background: #d6e6df;
  color: #344d51;
  border: 1px solid #8ca7a3;
  border-radius: 16px 4px 12px 4px;
}
.shard-tray span.current {
  background: #e4b7bd;
  border: 2px solid #946773;
}
.shard-tray span.used {
  background: #dcdebe;
}
.glass-rail,
.packet,
.order-slip {
  padding: 16px;
  margin: 12px 0;
  border: 1px solid #c1b69c;
  border-radius: 10px;
  background: #f5ead4;
}
.glass-rail label,
.glass-rail > div,
.tide-shelves > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.glass-rail input {
  width: 100%;
  accent-color: #8a5289;
  margin: 14px 0 0;
}
.glass-rail > div {
  color: #6d6259;
  font-size: 0.8rem;
}
.glass-rail p,
.order-slip p,
.pg-note {
  margin: 6px 0;
}
.glass-slips {
  flex-direction: column;
  margin: 12px 0;
  font-size: 0.89rem;
}
.glass-slips span {
  background: #e8ecda;
  padding: 5px 10px;
  border-left: 3px solid #8aab94;
}
.daylight,
.bell-scene {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #edd1a7, #ffeec1, #e8c09e);
  border: 1px solid #b8a682;
  border-radius: 30px 30px 7px 7px;
  padding: 14px;
}
.daylight > span {
  font: 2.3rem Georgia;
  color: #9b6f30;
}
.daylight.d2 {
  background: linear-gradient(115deg, #63738d, #a6b5ce);
  color: #fff9db;
}
.daylight.d2 > span {
  color: #fff0ba;
}
.samples,
.choir,
.tide-shelves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}
.samples > div,
.choir > div,
.tide-shelves > div,
.prism-meters span {
  background: #e8eee3;
  border: 1px solid #bdc7b5;
  border-radius: 8px;
  padding: 9px;
}
.samples p {
  font-size: 0.88rem;
  margin: 5px 0;
}
.samples strong {
  font-size: 0.89rem;
}
.choir strong,
.prism-meters b {
  display: block;
}
.choir span {
  display: inline-block;
  margin: 8px 3px 0;
  padding: 12px 7px;
  background: rgba(98, 164, 171, var(--light));
  border: 1px solid #80a2a1;
  border-radius: 14px 14px 3px 3px;
}
.prism-meters {
  margin: 12px 0;
}
.prism-meters span {
  flex: 1;
  min-width: 76px;
  font-size: 0.82rem;
}
.prism-meters b {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.packet > div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin-top: 8px;
}
.packet button {
  padding: 4px !important;
}
.packet button:nth-child(4) {
  margin-right: 4px;
}
.tide-shelves > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.fill {
  height: 11px;
  background: #c4ccbd;
  border-radius: 10px;
  overflow: hidden;
}
.fill i {
  height: 100%;
  display: block;
  background: #5a939a;
}
.tide-shelves span {
  font-size: 0.87rem;
}
.bell-scene {
  justify-content: space-between;
  background: linear-gradient(135deg, #d9dfde, #dcead7);
  text-align: center;
}
.bell-scene span {
  font: 1.9rem Georgia;
  color: #5d5b61;
}
.bell-scene small {
  display: block;
  font:
    800 0.76rem Nunito,
    sans-serif;
}
.bell-scene .ring {
  color: #825326;
  background: #fae2a9;
  border-radius: 25px;
  padding: 6px;
}
.pg-note {
  color: #55636c;
}
.atelier {
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
}
.lantern-sky {
  background:
    radial-gradient(ellipse at 46% 48%, #718398, transparent 38%),
    radial-gradient(circle at 16% 23%, #fff4bc 1px, transparent 2px),
    radial-gradient(circle at 75% 20%, #fbe5c0 2px, transparent 3px),
    linear-gradient(160deg, #273b55, #566479 56%, #a98a8e);
  border-bottom: 4px solid #938171;
}
#lantern {
  width: 100%;
  height: clamp(280px, 32vw, 450px);
  touch-action: none;
  cursor: grab;
}
#lantern canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#lantern:active {
  cursor: grabbing;
}
.turns {
  justify-content: center;
  padding: 12px;
}
.pigments {
  margin: 10px 0;
}
.pigments button:before {
  content: '';
  width: 12px;
  height: 12px;
}
.pigments button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem !important;
}
.net-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin: 13px 0;
  background: #807b6d;
  border: 4px solid #807b6d;
}
.net-grid > div {
  position: relative;
  aspect-ratio: 1;
  background: #807b6d;
}
.net-grid .triangle,
#prism .net-grid button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: #17242c;
  background: var(--gem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.t0 {
  clip-path: polygon(2% 0, 100% 0, 100% 98%);
}
.t1 {
  clip-path: polygon(0 2%, 98% 100%, 0 100%);
}
.triangle span {
  position: absolute;
  font:
    800 0.76rem Nunito,
    sans-serif;
  background: #fff9dba6;
  border-radius: 4px;
  padding: 0 2px;
}
.t0 span {
  right: 12%;
  top: 12%;
}
.t1 span {
  left: 12%;
  bottom: 12%;
}
.net-grid button:focus-visible {
  filter: brightness(1.6);
  outline: 2px solid #283638;
}
.desk label:not([for='cutter']) {
  display: block;
  font-size: 0.86rem;
  margin: 10px 0;
}
.desk label input:not([type='range']) {
  margin-top: 3px;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #acb6aa;
  border-radius: 5px;
  background: #fffdf3;
  color: #3a5865;
}
.packet-size {
  font-size: 0.91rem;
}
.desk .pg-controls button + button {
  margin: 0;
}
@media (max-width: 800px) {
  .rooms > div {
    grid-template-columns: 1fr 1fr;
  }
  .pg-work {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .top {
    gap: 12px;
  }
  .top nav {
    gap: 9px;
  }
}
@media (max-width: 650px) {
  .prism-cover,
  .pg-work,
  .atelier {
    grid-template-columns: minmax(0, 1fr);
  }
  .prism-cover {
    border-radius: 40px 10px 10px 10px;
  }
  .prism-cover > img {
    height: 225px;
    max-height: none;
  }
  .cover-panel {
    padding: 18px;
  }
  .cover-panel h1 br {
    display: none;
  }
  .lead-light {
    margin-bottom: 9px;
  }
  .cover-panel p {
    max-width: none;
  }
  .rooms a {
    align-items: flex-start;
    padding: 8px;
    gap: 6px;
  }
  .rooms i {
    flex: 0 0 25px;
    height: 33px;
    font-size: 1.1rem;
  }
  .rooms strong {
    font-size: 1.05rem;
  }
  .gallery-nav {
    gap: 4px;
  }
  .gallery-nav a {
    font-size: 0.8rem;
  }
  .top {
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .brand {
    font-size: 23px;
  }
  .top nav {
    font-size: 0.8rem;
  }
  .pg-work + button {
    margin-top: 12px;
  }
  .bell-scene > strong {
    font-size: 0.91rem;
  }
  .pigments {
    gap: 5px;
  }
  .samples {
    font-size: 0.88rem;
  }
  .card-art {
    height: 100px;
  }
}

.commission {
  margin: 5px 12px 13px;
}
.commission h2 {
  font:
    700 1.35rem Pixel,
    monospace;
  margin: 4px 0;
}
.commission li {
  font-size: 0.86rem;
}
.commission ul {
  padding-left: 20px;
}
.commission small {
  color: #665b46;
}

.harbor-shift {
  background: #e5efea;
  border: 1px solid #9bb6a9;
  border-radius: 10px;
  padding: 14px;
  margin-top: 15px;
}
.harbor-shift h2 {
  font-size: 1.45rem;
}
.harbor-calls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.harbor-calls > div {
  background: #fff9e9;
  border: 1px solid #c6bfac;
  padding: 8px;
  border-radius: 7px;
  font-size: 0.84rem;
}
.harbor-calls button {
  margin-top: 5px;
}
@media (max-width: 500px) {
  .harbor-calls {
    grid-template-columns: 1fr;
  }
}
