.ash-threshold-membrane {
  --ash-mint: #76ead4;
  --ash-gold: #e4c66c;
  --ash-violet: #d0a7ff;
  --ash-paper: #fff8da;
  --ash-muted: #9fb6ad;
  position: relative;
  isolation: isolate;
  height: clamp(520px, 68svh, 720px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  container-type: inline-size;
  border-block: 1px solid rgba(118, 234, 212, .18);
  color: var(--ash-paper);
  background: radial-gradient(circle at 50% 42%, rgba(118, 234, 212, .08), transparent 23%), radial-gradient(circle at 50% 55%, rgba(208, 167, 255, .06), transparent 32%), #010504;
}
.ash-threshold-field,
.ash-threshold-grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ash-threshold-field { z-index: 0; }
.ash-threshold-grain {
  z-index: 1;
  opacity: .28;
  background: repeating-linear-gradient(61deg, rgba(255,255,255,.018) 0 1px, transparent 1px 23px), repeating-linear-gradient(-59deg, rgba(255,255,255,.013) 0 1px, transparent 1px 27px);
  mask-image: radial-gradient(circle at 50% 48%, #000 0 55%, transparent 90%);
}
.ash-threshold-rite {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(920px, calc(100% - 28px));
  min-height: 100%;
  margin: auto;
  padding: 20px 0 28px;
  text-align: center;
}
.ash-threshold-overline { color: var(--ash-mint); font: 700 .6rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ash-threshold-title { margin: .14em 0 .1em; color: var(--ash-paper); font: 400 clamp(3.6rem, min(14cqi, 13svh), 8rem)/.82 var(--serif); letter-spacing: 0; text-shadow: 0 0 42px rgba(118,234,212,.12); }
.ash-threshold-title em { color: var(--ash-gold); font-style: italic; }
.ash-threshold-lede { max-width: 660px; margin: 8px auto 16px; color: #d2ded7; font: 400 .98rem/1.55 var(--sans); }
.ash-threshold-laws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(740px, 100%); margin: 6px auto 12px; }
.ash-threshold-law {
  position: relative;
  min-height: 124px;
  padding: 14px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(118,234,212,.22);
  border-radius: 0;
  color: var(--ash-paper);
  background: linear-gradient(155deg, rgba(12,38,30,.78), rgba(2,12,9,.94));
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  cursor: pointer;
  transition: .25s transform, .25s border-color, .25s filter;
}
.ash-threshold-law::before { content: attr(data-glyph); position: absolute; right: 10px; bottom: -14px; color: rgba(118,234,212,.11); font: 400 5rem/1 var(--serif); }
.ash-threshold-law:hover,
.ash-threshold-law:focus-visible { transform: translateY(-4px); border-color: rgba(228,198,108,.7); outline: 0; }
.ash-threshold-law.cleared { border-color: rgba(228,198,108,.74); filter: brightness(1.18); box-shadow: 0 0 28px rgba(228,198,108,.09); }
.ash-threshold-law small { display: block; color: var(--ash-muted); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; }
.ash-threshold-law strong { display: block; margin: 11px 0 6px; font: 400 1.32rem var(--serif); }
.ash-threshold-law span { display: block; color: #b9ccc2; font-size: .64rem; line-height: 1.4; }
.ash-threshold-status { min-height: 20px; margin: 0; color: var(--ash-mint); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.ash-threshold-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(340px, 100%);
  min-height: 46px;
  margin-top: 5px;
  padding: 10px 16px;
  border: 1px solid rgba(228,198,108,.7);
  color: var(--ash-paper);
  background: linear-gradient(135deg, rgba(228,198,108,.18), rgba(118,234,212,.12));
  clip-path: polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
  font: 800 .74rem/1.2 var(--mono);
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.ash-threshold-enter[aria-disabled="true"] { opacity: .28; cursor: not-allowed; }
.ash-threshold-enter[aria-disabled="false"] { cursor: pointer; box-shadow: 0 0 30px rgba(228,198,108,.09); }
.ash-threshold-compat { max-width: 620px; margin: 10px 0 0; color: var(--ash-muted); font-size: .59rem; line-height: 1.45; }
.ash-threshold-compat b { color: var(--ash-violet); }
.ash-threshold-pulse { position: fixed; z-index: 100; width: 18px; height: 18px; border: 1px solid var(--ash-gold); border-radius: 50%; pointer-events: none; animation: ash-threshold-pulse .7s ease-out forwards; }
@keyframes ash-threshold-pulse { to { transform: scale(16); opacity: 0; } }
@media (min-width: 681px) and (max-height: 820px) {
  .ash-threshold-membrane { height: clamp(480px, 66svh, 570px); }
  .ash-threshold-rite { align-content: start; padding: 14px 0 18px; }
  .ash-threshold-title { font-size: clamp(3rem, min(11cqi, 10.5svh), 5.8rem); }
  .ash-threshold-lede { max-width: 620px; margin: 5px auto 10px; font-size: .88rem; line-height: 1.45; }
  .ash-threshold-laws { gap: 8px; margin: 4px auto 8px; }
  .ash-threshold-law { min-height: 104px; padding: 11px 10px 9px; }
  .ash-threshold-law small { font-size: .53rem; }
  .ash-threshold-law strong { margin: 8px 0 4px; font-size: 1.18rem; }
  .ash-threshold-law span { font-size: .58rem; line-height: 1.35; }
  .ash-threshold-status { min-height: 16px; font-size: .6rem; }
  .ash-threshold-enter { min-height: 42px; margin-top: 3px; padding: 9px 14px; }
  .ash-threshold-compat { margin-top: 7px; font-size: .55rem; }
}
@media (max-width: 680px) {
  .ash-threshold-membrane {
    height: auto;
    min-height: 760px;
    overflow: visible;
    scrollbar-gutter: auto;
  }
  .ash-threshold-rite { align-content: start; width: min(980px, calc(100% - 28px)); padding-top: 7vh; }
  .ash-threshold-laws { grid-template-columns: 1fr; }
  .ash-threshold-law { min-height: 104px; padding-left: 18px; text-align: left; }
  .ash-threshold-law::before { font-size: 5rem; }
  .ash-threshold-title { font-size: clamp(4rem, 24cqi, 7rem); }
  .ash-threshold-lede { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ash-threshold-membrane * { animation: none !important; transition: none !important; }
  .ash-threshold-field { opacity: .58; }
}
