body[data-view="gallery"] {
  --paper: #0b0b11;
  background: #0b0b11;
}
body[data-view="gallery"] .masthead {
  background: #0b0b11;
  border-bottom-color: #25242c;
}
body[data-view="gallery"] .brand-icon {
  color: #171321;
  background: #d0bfff;
}
body[data-view="gallery"] .nav-current:before {
  background: #d5c4ff;
}
body[data-view="gallery"] .mastinner {
  height: 68px;
}
body[data-view="gallery"] .main-shell {
  padding-top: 21px;
}
body[data-view="gallery"] footer {
  border-color: #2b2932;
}
#gallery {
  --station: #c0adff;
  --studio-white: #f5f3fc;
  color: var(--studio-white);
}
.g-hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  height: clamp(480px, 40vw, 650px);
  overflow: hidden;
  background: #10101a;
  border: 1px solid #37313f;
  border-radius: 13px 13px 0 0;
}
.g-ambient,
.g-starfield,
.g-fade,
#g-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.g-ambient {
  background:
    radial-gradient(ellipse at 82% 24%, #3d284b 0%, transparent 50%),
    radial-gradient(ellipse at 63% 93%, #1c3147, transparent 50%),
    linear-gradient(115deg, #15141b 0%, #1a1724 43%, #1a1722 89%);
  transition: filter 0.4s;
}
.g-starfield {
  opacity: 0.27;
  background-image: radial-gradient(#c7b4e156 0.8px, transparent 0.9px);
  background-size: 29px 29px;
  mask-image: linear-gradient(95deg, transparent 12%, black 76%);
}
.g-geometry {
  position: absolute;
  inset: 0 0 0 25%;
  overflow: hidden;
  z-index: 1;
}
.render-surface {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
}
.render-surface:active {
  cursor: grabbing;
}
.g-fade {
  z-index: 2;
  background: linear-gradient(
    90deg,
    #17161eee 1%,
    #17161edc 24%,
    #17161e78 42%,
    transparent 56%
  );
}
.g-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4.3vw, 77px);
  top: 49%;
  transform: translateY(-50%);
  width: 42%;
  pointer-events: none;
}
.g-over,
.g-top-right,
.g-heading > div,
.g-meta,
.ex-name small,
.tile-no,
.g-console output {
  font-family: var(--mono);
}
.g-over {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8c2d3;
  font: 550 11px var(--sans);
  letter-spacing: 0.105em;
}
.g-mono {
  font: 9px var(--mono);
  letter-spacing: 0.13em;
  color: #9c96ac;
}
.g-slash {
  color: #706b7a;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--station);
  box-shadow: 0 0 12px color-mix(in srgb, var(--station) 70%, transparent);
}
.g-heading {
  margin-top: clamp(24px, 3.5vw, 58px);
}
.g-heading > div {
  color: var(--station);
  font-size: clamp(12px, 1.03vw, 18px);
  letter-spacing: 0.19em;
  line-height: 1.1;
}
.g-heading h1 {
  color: #f5f2fc;
  font-size: clamp(62px, 6.4vw, 110px);
  font-weight: 830;
  line-height: 1.16;
  letter-spacing: -0.073em;
  margin: 8px 0 0;
}
.g-copy p {
  font-size: clamp(14px, 1.18vw, 20px);
  line-height: 1.65;
  color: #c9c6d0;
  font-weight: 400;
  margin: 17px 0 0;
  max-width: 28em;
}
.g-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.g-actions button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-radius: 6px;
  padding: 12px 16px;
  border: 1px solid #6c647a;
  color: #e4dfed;
  background: #1d1a2588;
}
.g-actions svg {
  width: 16px;
  height: 16px;
}
.g-actions #g-act {
  background: var(--station);
  border-color: transparent;
  color: #1f172a;
  font-weight: 700;
}
.g-actions button:hover {
  filter: brightness(1.15);
}
.g-top-right {
  position: absolute;
  right: 22px;
  top: 21px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #cec3dd;
  z-index: 2;
  pointer-events: none;
}
.g-top-right .live-dot {
  width: 4px;
  height: 4px;
}
.g-lower {
  position: absolute;
  bottom: 17px;
  left: clamp(24px, 4.3vw, 77px);
  right: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}
.g-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #c2bacd;
}
.g-meta > span:first-child {
  font-size: 23px;
  color: var(--station);
  letter-spacing: -0.1em;
}
.g-meta i {
  font-style: normal;
  font-size: 11px;
}
.g-meta #g-tag {
  padding-left: 11px;
  margin-left: 5px;
  border-left: 1px solid #696072;
  font: 12px var(--sans);
}
.g-step {
  display: flex;
  gap: 7px;
}
.g-step button,
.g-micro button {
  width: 33px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #dbd5e3;
  border: 1px solid #5b5264;
  background: #191822a6;
  border-radius: 6px;
  pointer-events: auto;
}
.g-step svg,
.g-micro svg {
  width: 15px;
  height: 15px;
}
.g-step button:hover,
.g-micro button:hover {
  color: var(--station);
  border-color: var(--station);
}
#g-flash {
  opacity: 0;
  z-index: 2;
  background: linear-gradient(
    108deg,
    transparent 20%,
    color-mix(in srgb, var(--station) 42%, transparent) 48%,
    transparent 78%
  );
}
#g-flash.flashing {
  animation: optical-sweep 0.48s ease-out;
}
@keyframes optical-sweep {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }
  22% {
    opacity: 0.57;
  }
  100% {
    opacity: 0;
    transform: translateX(90%);
  }
}
.g-console {
  height: 55px;
  border: 1px solid #37313f;
  border-top: none;
  border-radius: 0 0 13px 13px;
  background: #15151c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(18px, 2.4vw, 40px);
}
.g-knob,
.g-micro,
#fruit-modes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g-knob {
  font-size: 12px;
  color: #d9d3df;
}
.g-led {
  width: 13px;
  height: 13px;
  border: 1px solid color-mix(in srgb, var(--station) 55%, transparent);
  border-radius: 50%;
  background: conic-gradient(
    from -60deg,
    var(--station) 0 85deg,
    transparent 86deg
  );
}
.g-knob input {
  width: clamp(80px, 11vw, 180px);
  accent-color: var(--station);
  height: 15px;
  cursor: pointer;
}
.g-knob output {
  font-size: 11px;
  color: var(--station);
  min-width: 2em;
}
.g-micro {
  gap: 6px;
  margin-left: auto;
}
.g-micro button {
  border-color: #43404e;
  background: transparent;
}
.g-fs-tip {
  display: none;
  color: #adabba;
  font-size: 11px;
}
#fruit-modes {
  gap: 2px;
  background: #0d0f12;
  border: 1px solid #3c4240;
  border-radius: 5px;
  padding: 2px;
}
#fruit-modes button {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
}
#fruit-modes button[aria-pressed="true"] {
  background: var(--station);
  color: #191d12;
}
.ex-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 27px 0 13px;
}
.ex-heading .eyebrow {
  color: #aaa5b3;
}
.ex-heading .eyebrow i {
  background: var(--station);
}
.ex-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.2;
}
.ex-heading > button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #c6c1ce;
  font-size: 12px;
}
.ex-heading > button svg {
  width: 14px;
  height: 14px;
}
#ex-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.ex-tile {
  overflow: hidden;
  padding: 0;
  text-align: left;
  min-width: 0;
  border: 1px solid #383541;
  background: #17161d;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.ex-tile.selected,
.ex-tile:hover {
  border-color: var(--station);
}
.ex-tile:hover {
  transform: translateY(-2px);
}
.ex-preview {
  display: block;
  aspect-ratio: 3.05;
  position: relative;
  background: radial-gradient(at 68% 65%, #31273f, #171721);
  overflow: hidden;
}
.ex-preview img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.ex-tile:hover img {
  transform: scale(1.045);
}
.tile-no {
  position: absolute;
  top: 8px;
  left: 9px;
  font-size: 9px;
  letter-spacing: 0.06em;
  border: 1px solid #bbb5c344;
  color: #f6f2fa;
  background: #12121890;
  border-radius: 3px;
  padding: 2px 5px;
}
.ex-tile.selected .tile-no {
  color: #211b2d;
  background: var(--station);
  border-color: transparent;
}
.ex-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #3a3641;
  padding: 11px 13px;
}
.ex-name b {
  font-weight: 600;
  font-size: 15px;
}
.ex-name small {
  color: #a19ba8;
  display: block;
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.ex-name > svg {
  color: #b8adbf;
  width: 15px;
  height: 15px;
}
.ex-tile.selected .ex-name b,
.ex-tile.selected .ex-name > svg {
  color: var(--station);
}
.archive-fruit {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}
#gallery[data-station="fluid"] .g-ambient {
  background: radial-gradient(
    ellipse at 73% 60%,
    #143342,
    #181523 60%,
    #15141b
  );
}
#gallery[data-station="melon"] .g-ambient {
  background: radial-gradient(
    ellipse at 75% 50%,
    #293927,
    #131b17 68%,
    #15141b
  );
}
#gallery[data-station="network"] .g-ambient {
  background: radial-gradient(
    ellipse at 76% 52%,
    #172f32,
    #152021 64%,
    #15141b
  );
}
:is(:fullscreen, .immersive) body[data-view="gallery"] .mastinner {
  height: 44px;
}
:is(:fullscreen, .immersive) body[data-view="gallery"] .g-hero {
  height: calc(100dvh - 128px);
  min-height: 0;
}
:is(:fullscreen, .immersive) body[data-view="gallery"] .ex-heading,
:is(:fullscreen, .immersive) body[data-view="gallery"] #ex-rail {
  display: none;
}
:is(:fullscreen, .immersive) .g-fs-tip {
  display: block;
  margin-left: auto;
}
:is(:fullscreen, .immersive) .g-micro {
  margin-left: 0;
}
@media (max-width: 920px) {
  .g-hero {
    min-height: 450px;
    height: 52vw;
  }
  .g-heading h1 {
    font-size: clamp(45px, 7vw, 68px);
  }
  .g-copy {
    width: 43%;
  }
  .g-copy p {
    font-size: 14px;
  }
  .g-actions {
    gap: 7px;
  }
  .g-actions button {
    font-size: 12px;
    padding: 10px;
  }
  .g-geometry {
    left: 25%;
  }
  .ex-name b {
    font-size: 13px;
  }
}
@media (max-width: 670px) {
  body[data-view="gallery"] .mastinner {
    height: 57px;
  }
  body[data-view="gallery"] .main-shell {
    padding-top: 12px;
  }
  .g-hero {
    height: clamp(520px, 73dvh, 610px);
    min-height: 0;
  }
  .g-copy {
    left: 22px;
    right: 22px;
    top: 24px;
    width: auto;
    transform: none;
  }
  .g-over {
    font-size: 9px;
  }
  .g-mono {
    font-size: 8px;
  }
  .g-heading {
    margin-top: 19px;
  }
  .g-heading > div {
    font-size: 10px;
  }
  .g-heading h1 {
    font-size: clamp(43px, 11.7vw, 65px);
    margin: 5px 0 0;
    line-height: 1.04;
  }
  .g-copy p {
    font-size: 12px;
    margin: 9px 0 0;
    max-width: none;
  }
  .g-actions {
    margin-top: 12px;
  }
  .g-actions button {
    padding: 7px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .g-actions svg {
    width: 12px;
    height: 12px;
  }
  .g-geometry {
    inset: 33% 0 4% 0;
  }
  .g-fade {
    background: linear-gradient(180deg, #16151b82, transparent 45%);
  }
  .g-top-right {
    font-size: 7px;
    right: 12px;
    top: 15px;
  }
  .g-lower {
    left: 15px;
    right: 12px;
    bottom: 10px;
  }
  .g-meta > span:first-child {
    font-size: 17px;
  }
  .g-meta #g-tag {
    font-size: 10px;
  }
  .g-step button {
    width: 27px;
    height: 25px;
  }
  .g-console {
    height: auto;
    min-height: 47px;
    flex-wrap: wrap;
    gap: 5px 7px;
    padding: 6px 9px;
  }
  .g-led {
    display: none;
  }
  .g-knob {
    font-size: 10px;
    gap: 5px;
  }
  .g-knob input {
    width: 63px;
  }
  .g-micro {
    gap: 3px;
  }
  .g-micro button {
    width: 24px;
    height: 24px;
  }
  .g-micro svg {
    width: 12px;
    height: 12px;
  }
  #fruit-modes {
    order: 3;
    margin-right: 30%;
  }
  .ex-heading {
    margin: 19px 0 10px;
  }
  .ex-heading h2 {
    font-size: 19px;
  }
  .ex-heading > button {
    font-size: 10px;
  }
  #ex-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ex-name {
    padding: 8px;
  }
  .ex-name small {
    font-size: 7px;
  }
  .ex-preview {
    aspect-ratio: 2.65;
  }
  :is(:fullscreen, .immersive) .g-fs-tip {
    display: none;
  }
  :is(:fullscreen, .immersive) body[data-view="gallery"] .g-hero {
    height: calc(100dvh - 120px);
  }
}
html.immersive {
  overflow: auto;
}
html.immersive body {
  min-height: 100dvh;
}
#gallery[data-station="network"] .g-ambient {
  background:
    radial-gradient(ellipse at 79% 47%, #173c3a, transparent 55%),
    linear-gradient(110deg, #141b1c, #111e23 75%, #152727);
}
#gallery[data-station="privacy"] .g-ambient {
  background:
    radial-gradient(ellipse at 75% 50%, #38283d, transparent 58%),
    linear-gradient(110deg, #1c1920, #191923 64%, #25222c);
}
#gallery[data-station="verdict"] .g-ambient {
  background:
    radial-gradient(ellipse at 75% 50%, #493d2d, transparent 55%),
    linear-gradient(110deg, #1c1b1b, #201e1d 64%, #302b24);
}
#gallery[data-station="verdict"] .g-heading h1 {
  font-size: clamp(42px, 4.7vw, 81px);
  max-width: 6em;
}
#g-result {
  margin: 13px 0 0;
  border-left: 2px solid var(--station);
  padding: 2px 0 2px 11px;
  color: #e2e7dd;
  line-height: 1.55;
  max-width: 29em;
}
#g-result strong {
  display: block;
  color: var(--station);
  font-size: 11px;
  margin-bottom: 2px;
}
#g-result-text {
  font-size: clamp(12px, 1.02vw, 17px);
}
.g-copy:has(#g-result:not([hidden])) .g-heading {
  margin-top: 16px;
}
.g-copy:has(#g-result:not([hidden])) .g-actions {
  margin-top: 14px;
}
.g-copy:has(#g-result:not([hidden])) #g-note {
  margin-top: 8px;
}
#g-marker {
  position: absolute;
  right: 24px;
  bottom: 58px;
  z-index: 2;
  pointer-events: none;
  max-width: 33%;
  border-left: 2px solid var(--station);
  padding: 5px 10px;
  background: #10191acf;
  backdrop-filter: blur(6px);
  color: #e8ece7;
}
#g-marker > span {
  display: block;
  color: #b0bfb8;
  font-size: 10px;
  letter-spacing: 0.04em;
}
#g-marker > b {
  display: block;
  font-weight: 550;
  font-size: 14px;
  margin-top: 2px;
}
#g-marker.verified {
  background: #123d34e6;
}
.g-selectors {
  display: flex;
  gap: 3px;
  padding: 2px;
  border-radius: 5px;
  border: 1px solid #46434a;
  background: #111417;
}
.g-selectors button {
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 9px;
  white-space: nowrap;
}
.g-selectors [aria-pressed="true"] {
  background: var(--station);
  color: #20221b;
}
@media (max-width: 670px) {
  #gallery[data-station="verdict"] .g-heading h1 {
    font-size: clamp(31px, 7.9vw, 44px);
    max-width: none;
  }
  #g-marker {
    bottom: 43px;
    right: 11px;
    max-width: 62%;
    padding: 3px 7px;
  }
  #g-marker > span {
    font-size: 8px;
  }
  #g-marker > b {
    font-size: 11px;
  }
  #g-result {
    margin-top: 8px;
    max-width: 100%;
    background: #11171bcc;
  }
  #g-result-text {
    font-size: 11px;
  }
  #g-result strong {
    font-size: 9px;
  }
  .g-hero:has(#g-result:not([hidden])) .g-geometry {
    top: 43%;
  }
  .g-selectors {
    order: 3;
  }
  .g-console {
    justify-content: flex-start;
  }
  .g-micro {
    margin-left: auto;
  }
}
#g-echoes {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 44%;
  pointer-events: none;
  overflow: hidden;
}
.g-echo {
  position: absolute;
  display: block;
  border: 1px solid #7bdab896;
  border-radius: 12px 12px 12px 2px;
  background: #102722ef;
  color: #d8fff0;
  padding: 5px 10px;
  font: 11px var(--sans);
  box-shadow: 0 0 15px #7beab322;
  animation: echo-packet 2.3s ease both;
}
.g-echo.msg-0 {
  left: 45%;
  top: 39%;
  animation-delay: 0s;
}
.g-echo.msg-1 {
  left: 60%;
  top: 24%;
  animation-delay: 0.42s;
}
.g-echo.msg-2 {
  left: 18%;
  top: 62%;
  animation-delay: 0.82s;
}
@keyframes echo-packet {
  0% {
    opacity: 0;
    transform: translateY(9px) scale(0.92);
  }
  14%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-9px);
  }
}
@media (max-width: 670px) {
  #g-echoes {
    inset: 37% 0 5%;
  }
  .g-echo {
    font-size: 9px;
    padding: 4px 7px;
  }
}
