/* Layout: one screen, like standing in a nave. The lancet window is the hero; the glass palette sits at its foot. */
:root {
  --wall: #dce0e2;
  --joint: rgba(52, 62, 74, 0.075);
  --stone: #9d988e;
  --stone-hi: #c2bdb3;
  --ink: #1e2228;
  --ink-soft: #56606a;
  --line: rgba(30, 34, 40, 0.16);
  --chip: #ebeeef;
  --lead: #25262b;
  --lead-hi: #7a7c84;
  --clear: #c2cccf;
  --accent: #8a5a06;
  --warn: #ff5530;
  --g0: #2350a3;
  --g1: #a6213a;
  --g2: #1d8257;
  --g3: #db9a1c;
  --f-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-ui:
    "Alegreya Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
}
html {
  box-sizing: border-box;
  height: 100%;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  height: 100%;
  overflow: hidden;
  background: var(--wall);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 71px,
    var(--joint) 71px 72px
  );
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.45;
}
button {
  font: inherit;
  color: inherit;
}
.app {
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px 12px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  min-width: 0;
}
h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1.1;
}
.meta {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  white-space: nowrap;
}
.ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 6px 10px;
  cursor: pointer;
}
.seg button + button {
  border-left: 1px solid var(--line);
}
.seg button[aria-checked="true"] {
  background: var(--ink);
  color: var(--wall);
  font-weight: 500;
}
.icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--chip);
  cursor: pointer;
  font-weight: 700;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* window */
.stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.glow {
  position: absolute;
  inset: 4% 8%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.2s ease 0.4s;
  background: radial-gradient(
    closest-side,
    rgba(255, 206, 120, 0.55),
    rgba(110, 150, 255, 0.16) 62%,
    transparent 100%
  );
}
#win {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: filter 1.8s ease;
}
.app.lit .glow {
  opacity: 1;
}
#win.lit {
  filter: drop-shadow(0 0 22px rgba(255, 196, 110, 0.42));
}
.backing {
  fill: var(--lead);
}
.pane {
  cursor: pointer;
  transition: fill 0.18s ease;
  outline: none;
}
.pane.clue,
.done .pane {
  cursor: default;
}
.k-1 {
  fill: var(--clear);
}
.k0 {
  fill: var(--g0);
}
.k1 {
  fill: var(--g1);
}
.k2 {
  fill: var(--g2);
}
.k3 {
  fill: var(--g3);
}
.sheen {
  opacity: 0.55;
  transition: opacity 1.1s ease var(--d, 0ms);
}
#win.lit .sheen {
  opacity: 1;
}
.grain {
  mix-blend-mode: overlay;
  opacity: 0.3;
}
.ripple {
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
.sun {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2.4s ease 0.3s;
}
#win.lit .sun {
  opacity: 0.6;
}
.lead {
  fill: none;
  stroke: var(--lead);
  stroke-width: 4.4;
  stroke-linejoin: round;
}
.lead-hi {
  fill: none;
  stroke: var(--lead-hi);
  stroke-width: 1;
  stroke-linejoin: round;
  opacity: 0.55;
}
.frame {
  fill: none;
  stroke: var(--stone);
  stroke-width: 14;
  stroke-linejoin: round;
}
.frame-hi {
  fill: none;
  stroke: var(--stone-hi);
  stroke-width: 2.4;
  opacity: 0.8;
}
.frame-in {
  fill: none;
  stroke: var(--lead);
  stroke-width: 4;
}
.sill {
  fill: var(--stone);
}
.sill-hi {
  fill: var(--stone-hi);
}
#conf line {
  stroke: var(--warn);
  stroke-width: 3.6;
  stroke-linecap: round;
  animation: throb 1s ease-in-out infinite alternate;
}
@keyframes throb {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
.rivet {
  fill: none;
  stroke: var(--lead);
  stroke-width: 2.6;
}
.rivet-hi {
  fill: none;
  stroke: var(--lead-hi);
  stroke-width: 0.8;
  opacity: 0.8;
}
.rivet-dot {
  fill: var(--lead);
}
.glyph {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 0.7;
}
.hintp {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 2.4;
  animation: hint 0.7s ease-in-out 4 alternate;
}
@keyframes hint {
  from {
    fill-opacity: 0;
    stroke-opacity: 0.25;
  }
  to {
    fill-opacity: 0.42;
    stroke-opacity: 1;
  }
}
.focusp {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-dasharray: 5 4;
}
#sheens,
#leads,
#conf,
#marks,
#hintg,
.grain,
.ripple,
.sun,
.frame,
.frame-hi,
.frame-in,
.sill,
.sill-hi {
  pointer-events: none;
}

/* toast */
.toast {
  margin: 0;
  min-height: 21px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: opacity 0.3s;
}
.toast.fade {
  opacity: 0;
}

/* dock */
.dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.palette {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 6px;
}
.sw {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid var(--lead);
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 34% 28%,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0) 46%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0) 55%
    ),
    var(--c);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.sw[aria-checked="true"] {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 3px var(--wall),
    0 0 0 5px var(--accent),
    0 10px 18px -8px var(--c);
}
.sw svg {
  width: 16px;
  height: 16px;
  display: none;
}
.marks-on .sw svg {
  display: block;
}
.tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.tool {
  border: 1px solid var(--line);
  background: var(--chip);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
}
.tool[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.won {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 4px 2px;
  text-align: center;
}
.won h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.14em;
  margin: 0;
}
.won p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.primary {
  margin-top: 6px;
  border: 0;
  background: var(--ink);
  color: var(--wall);
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* help */
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.card {
  background: var(--wall);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.5);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.card .keys {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.card .primary {
  display: block;
  margin: 14px 0 0 auto;
}

@media (max-height: 640px) {
  .sw {
    width: 44px;
    height: 44px;
  }
  .palette {
    gap: 12px;
  }
  h1 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
}

/* Daylight atelier. Material effects belong to the window, not UI panels. */
:root {
  --wall: #eee9df;
  --ink: #353a35;
  --ink-soft: #77796e;
  --line: #ccc9bd;
  --chip: #f6f3eb;
  --accent: #88642f;
  --lead: #303b37;
  --lead-hi: #abb5a1;
  --stone: #b8b5a4;
  --stone-hi: #faf6e8;
  --g0: #287fbb;
  --g1: #b74650;
  --g2: #39866c;
  --g3: #dda944;
  --f-ui: "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-display: "Songti SC", "Noto Serif CJK SC", serif;
  color-scheme: light;
}
html {
  min-height: 100%;
  height: 100%;
}
body {
  min-height: 100%;
  height: 100dvh;
  overflow: auto;
  background: var(--wall);
  background-image: radial-gradient(
    ellipse at 50% 36%,
    #faf8ed 0%,
    #eee9df 58%,
    #ddd9cc 100%
  );
  font-size: 14px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23584d35' opacity='.5' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.app {
  max-width: 1080px;
  height: 100%;
  min-height: 660px;
  padding: 26px 40px 24px;
  gap: 8px;
  position: relative;
}
.top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: 26px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.meta {
  font-size: 11px;
  gap: 14px;
  margin-top: 8px;
  color: #787b71;
}
.seg {
  border-radius: 4px;
}
.seg button {
  padding: 8px 15px;
  font-size: 12px;
}
.seg button[aria-checked="true"] {
  background: #50594c;
  color: #fffaf0;
}
.icon {
  background: transparent;
  width: 33px;
  height: 33px;
  font-weight: 400;
}
.stage {
  margin-top: 10px;
  min-height: 350px;
  isolation: isolate;
}
#win {
  max-height: 680px;
  overflow: visible;
  filter: drop-shadow(4px 9px 5px #534f3a35);
}
.cast-light {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 280px;
  height: 80px;
  transform: translateX(-50%) skewX(-25deg);
  background: linear-gradient(
    100deg,
    #2782c400,
    #3287ba33 20%,
    #aa415a26 43%,
    #eec35b44 62%,
    #4f9e7d22 80%,
    transparent
  );
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}
.glow {
  opacity: 0.28;
  background: radial-gradient(ellipse, #fff4bf80, transparent 70%);
}
.app.lit .cast-light {
  opacity: 1;
  height: 120px;
  transition:
    opacity 2s,
    height 2s;
}
.rule {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #535d50;
  letter-spacing: 0.04em;
}
.rule span {
  color: #828276;
  margin-left: 10px;
}
.toast {
  font-size: 12px;
  min-height: 18px;
}
.toast.fade {
  opacity: 0;
}
.dock {
  padding-top: 3px;
}
.palette {
  gap: 24px;
  padding-top: 0;
  padding-bottom: 19px;
}
.sw {
  width: 48px;
  height: 48px;
  border-width: 2px;
  border-color: #4a5549;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow:
    inset 0 0 0 1px #ffffff70,
    inset 2px 2px 7px #ffffff55,
    inset -2px -3px 6px #172d3544;
  background:
    linear-gradient(
      135deg,
      #ffffff80,
      transparent 33%,
      #ffffff20 48%,
      #00000018 75%
    ),
    var(--c);
}
.sw:nth-child(even) {
  transform: rotate(3deg);
}
.sw::after {
  content: attr(aria-label);
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  color: var(--ink-soft);
}
.sw[aria-checked="true"] {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px var(--wall),
    0 0 0 4px #8b784e,
    inset 0 0 0 1px #ffffff90,
    inset 2px 2px 7px #ffffff55;
}
.tools {
  gap: 6px;
}
.tool {
  background: transparent;
  border-color: transparent;
  padding: 8px 17px;
  font-size: 12px;
}
.tool:hover {
  background: #deded2;
  border-color: #c2c6b7;
}
.tool:disabled {
  opacity: 0.4;
  cursor: default;
}
.k-1 {
  fill: url(#glass-clear);
}
.k0 {
  fill: url(#glass-0);
}
.k1 {
  fill: url(#glass-1);
}
.k2 {
  fill: url(#glass-2);
}
.k3 {
  fill: url(#glass-3);
}
.sheen {
  opacity: 0.7;
}
.grain {
  opacity: 0.12;
}
.ripple {
  opacity: 0.32;
  mix-blend-mode: soft-light;
}
.sun {
  opacity: 0.22;
}
.pane:hover {
  filter: brightness(1.12);
}
.pane.clue:hover {
  filter: none;
}
.lead-shadow {
  fill: none;
  stroke: #152c29;
  stroke-width: 5.6;
  stroke-linejoin: round;
  opacity: 0.5;
}
.lead {
  stroke-width: 3.1;
  stroke: #33433c;
}
.lead-hi {
  stroke: #b1b9a0;
  stroke-width: 0.65;
  opacity: 0.75;
  transform: translate(-0.55px, -0.65px);
}
.glass-edge {
  fill: none;
  stroke: #fff6d6;
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0.55;
  transform: translate(1.4px, 1.8px);
}
.frame-shadow {
  fill: none;
  stroke: #817f6c;
  stroke-width: 21;
  opacity: 0.35;
  transform: translate(1px, 3px);
}
.frame {
  stroke: url(#stone);
  stroke-width: 17;
}
.frame-hi {
  stroke: #fffbea;
  stroke-width: 1;
  transform: translate(-5px, -1px);
  opacity: 0.7;
}
.frame-in {
  stroke: #5c6252;
  stroke-width: 3;
}
.rivet {
  stroke: #2b3d35;
  fill: #a5ac8c;
  stroke-width: 1.5;
}
.rivet-hi {
  stroke: #f1e9b5;
  stroke-width: 0.6;
  transform: translate(-0.6px, -0.6px);
}
.rivet-dot {
  fill: #52644c;
}
.material {
  pointer-events: none;
}
.card {
  background: #f5f2e9;
  border-radius: 6px;
  box-shadow: 0 2px 8px #0002;
}
.sheet {
  align-items: center;
}
.won h2 {
  font-weight: 700;
}
.won p {
  font-size: 12px;
}
@media (min-width: 900px) {
  .stage::before,
  .stage::after {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 3%;
    width: 1px;
    background: linear-gradient(transparent, #b8b5a34a, transparent);
    left: 18%;
  }
  .stage::after {
    left: auto;
    right: 18%;
  }
}
@media (max-width: 600px) {
  .app {
    padding: 20px 18px 16px;
    min-height: 620px;
  }
  .top {
    padding-bottom: 14px;
    gap: 8px;
  }
  h1 {
    font-size: 21px;
  }
  .seg button {
    padding: 7px 10px;
  }
  .ctrls {
    gap: 6px;
  }
  .meta {
    font-size: 10px;
    gap: 10px;
  }
  .stage {
    margin-top: 8px;
    min-height: 290px;
  }
  .rule {
    font-size: 12px;
    margin-top: 8px;
  }
  .rule span {
    display: none;
  }
  .palette {
    gap: 22px;
  }
  .toast {
    font-size: 11px;
  }
  .tool {
    padding: 8px 16px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  .app {
    min-height: 610px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .top {
    padding-bottom: 10px;
  }
  .stage {
    min-height: 290px;
  }
  .rule {
    margin-top: 4px;
  }
  .palette {
    padding-bottom: 16px;
  }
  .sw {
    width: 42px;
    height: 42px;
  }
  .sw::after {
    top: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
.stage #win {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
}
.ripple {
  opacity: 0.18;
}
.sun {
  opacity: 0.1;
}
.sheen {
  opacity: 0.55;
}

.ripple {
  mix-blend-mode: screen;
  opacity: 0.3;
}
/* V2: photographic glass carries the material; avoid fogging its highlights. */
.sheen {
  opacity: 0.15;
}
.sun {
  opacity: 0.035;
}
#win.lit .sheen {
  opacity: 0.28;
}
#win.lit .sun {
  opacity: 0.14;
}
.glass-edge {
  stroke: #fff9db;
  stroke-width: 1.2;
  opacity: 0.6;
}
.refresh-game {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: var(--line);
  background: #f6f3eb;
}
.refresh-game svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 380px) {
  .tools {
    gap: 3px;
  }
  .tool {
    padding: 8px 11px;
  }
}
.sw {
  background-image:
    linear-gradient(var(--c), var(--c)), url("/assets/cathedral-glass-v3.png");
  background-size: cover;
  background-blend-mode: color, multiply;
}

/* V3: reference-led transmitted color, matte lead and restrained material. */
:root {
  --g0: #235fa7;
  --g1: #a32e45;
  --g2: #337b58;
  --g3: #c6963d;
  --lead: #292b2c;
  --lead-hi: #666568;
  --stone: #b3ada0;
  --stone-hi: #e0d9c9;
}
.lead-shadow {
  stroke: #1c2022;
  stroke-width: 4.7;
  opacity: 0.55;
}
.lead {
  stroke: #292b2c;
  stroke-width: 3.6;
}
.lead-hi {
  stroke: #8e8b82;
  stroke-width: 0.45;
  opacity: 0.4;
  transform: translate(-0.35px, -0.4px);
}
.glass-edge {
  stroke: #172023;
  stroke-width: 1.7;
  opacity: 0.3;
  transform: none;
}
.sheen,
#win.lit .sheen {
  opacity: 0.7;
}
.sun,
#win.lit .sun,
.cast-light,
.glow {
  display: none;
}
#win.lit {
  filter: drop-shadow(4px 9px 5px #534f3a35);
}
.rivet {
  fill: #403e35;
  stroke: #252a28;
  stroke-width: 1;
}
.rivet-hi {
  stroke: #a9a38f;
  stroke-width: 0.5;
  opacity: 0.7;
}
.rivet-dot {
  fill: #b5ae97;
}
.sw {
  background-image:
    linear-gradient(var(--c), var(--c)), url("/assets/cathedral-glass-v3.png");
  background-blend-mode: color, normal;
  border-color: #3c3c38;
  box-shadow:
    inset 0 0 0 1px #d9d5c930,
    inset 0 0 6px #1115;
  border-radius: 3px;
}
.sw[aria-checked="true"] {
  box-shadow:
    0 0 0 3px var(--wall),
    0 0 0 4px #8b784e,
    inset 0 0 5px #1115;
}
.sw {
  background: var(--c);
}
.sw::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: url("/assets/cathedral-glass-v3.png") center/cover;
  filter: grayscale(1);
  mix-blend-mode: soft-light;
  opacity: 0.24;
  pointer-events: none;
}
.sw svg {
  position: relative;
  z-index: 1;
}

/* V4: transmitted daylight is composited beneath the opaque lead, not over it. */
:root {
  --g0: #2878b8;
  --g1: #bf354c;
  --g2: #35895e;
  --g3: #cc9c36;
}
.app {
  z-index: 1;
}
.dock {
  min-height: 128px;
  justify-content: center;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 42%,
    #fff6cf66,
    transparent 39%,
    #202c344d 100%
  );
  opacity: 0;
  transition: opacity 3s ease;
}
body:has(.app.lit)::after {
  opacity: 1;
}
.transmitted {
  opacity: 0;
  transition: opacity 2.8s cubic-bezier(0.2, 0.6, 0.2, 1)
    var(--light-delay, 0ms);
}
#win.lit .transmitted {
  opacity: 1;
}
#bloom {
  opacity: 0;
  transition: opacity 3s ease 0.4s;
  pointer-events: none;
}
#win.lit #bloom {
  opacity: 0.38;
}
.surface-reflection {
  opacity: 0.32;
  pointer-events: none;
}
.sheen {
  opacity: 0.7;
  transition: opacity 2.8s ease;
}
#win.lit .sheen {
  opacity: 0.22;
}
.glass-edge {
  stroke: #e9f6df;
  stroke-width: 0.8;
  opacity: 0.22;
  transform: translate(0.6px, 0.7px);
}
#win.lit .glass-edge {
  opacity: 0.45;
}
#win.lit {
  filter: drop-shadow(4px 9px 5px #534f3a35);
}
.cast-light {
  display: block;
  opacity: 0;
  bottom: -20px;
  height: 85px;
  width: 290px;
  filter: blur(19px);
  background: linear-gradient(
    105deg,
    transparent,
    #287ccc66 18%,
    #d74a6155 38%,
    #f8cb6666 62%,
    #53c99c55 80%,
    transparent
  );
  transition:
    opacity 3s ease 0.6s,
    height 3s ease 0.6s;
}
.app.lit .cast-light {
  opacity: 0.85;
  height: 105px;
}
#win.lit #marks {
  opacity: 0.18;
  transition: opacity 2s ease;
}
.sw::before {
  background-image: url("/assets/transmitted-glass-v4.png");
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .transmitted,
  #bloom,
  .cast-light,
  body::after,
  .sheen,
  #marks {
    transition: none !important;
  }
}

.app {
  overflow-x: clip;
}
