@font-face {
  font-family:'Cedar Scribe Hand';
  src:url("assets/cedar-scribe-hand.woff2?v=9ee695ffdbc0e736") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
.cedar-replay {
  inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;
  padding:max(12px,env(safe-area-inset-top)) max(16px,4vw,env(safe-area-inset-right))
    max(12px,env(safe-area-inset-bottom)) max(16px,4vw,env(safe-area-inset-left));
  color:#f5e1ba;background:#38271b;
  background-image:linear-gradient(180deg,#26180ccb,#27190c35 20%,#2a1c1138 78%,#1e140dd9),url("excavation.webp?v=0424fdf9d1d8234e");
  background-size:cover;background-position:center;
  font:500 16px/1.35 Georgia,'Times New Roman',serif;
  box-sizing:border-box;overflow:hidden;overscroll-behavior:contain;
}
.cedar-replay[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(8px,1.8dvh,22px)}
.cedar-replay::backdrop {background:#21160e}
html:has(.cedar-replay[open]) {overflow:hidden}
body:has(> .cedar-replay[open]) > :is(main,.excavated-device) {opacity:0}
.cedar-replay [hidden] {display:none}
.replay-heading,.replay-controls {
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;
  text-shadow:0 2px 4px #170e06;
}
.replay-heading {border-bottom:1px solid #b68e56b3;padding-bottom:7px}
.replay-heading h2 {
  display:flex;gap:14px;align-items:center;margin:0;color:#ffe6b9;
  font:600 clamp(23px,3vw,44px)/1.04 Georgia,serif;letter-spacing:-.02em;
}
.replay-heading h2::before {
  content:'';flex:none;width:.55em;height:.55em;margin-left:3px;transform:rotate(45deg);
  border:3px double #dcaf64;box-shadow:0 0 0 2px #362716;
  background:radial-gradient(circle,#d8ad64 0 17%,transparent 21%),#3a2a18;
}
.cedar-replay button {
  box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:8px 13px;
  border:1px solid #ae8a56;border-radius:3px;background:linear-gradient(145deg,#61482f,#392a1b);
  box-shadow:inset 0 0 0 2px #322316,0 2px 3px #21140773;color:#ffebc7;
  font:600 15px/1.2 Georgia,serif;cursor:pointer;touch-action:manipulation;
}
.cedar-replay button:hover:enabled {border-color:#ebc681}
.cedar-replay button:disabled {opacity:.48;cursor:default}
.cedar-replay :is(button,[tabindex]):focus-visible {outline:2px solid #ffe9b2;outline-offset:2px}
.replay-content {min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(14px,3vw,52px)}
.cedar-replay[data-mode="mirror"] .replay-content {grid-template-columns:minmax(0,1fr)}
.replay-stage {min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:2px}
.replay-instrument {position:relative;display:grid;align-items:center;min-width:0;min-height:0}
.replay-surface {position:absolute;inset:0;pointer-events:none;visibility:hidden}
.replay-has-model:not(.replay-read-numbers) .replay-surface {visibility:visible}
.replay-surface canvas {display:block;width:100%;height:100%}
.replay-matrices {
  position:relative;z-index:1;display:flex;justify-content:safe center;align-items:stretch;gap:7px;
  width:max-content;max-width:100%;max-height:100%;min-width:0;margin:auto;
  padding:10px;border:2px solid #91683c;border-radius:4px;background:#342118ed;
  box-shadow:inset 0 0 0 3px #543a23,0 5px 12px #1d100b80;overflow:auto;
}
.replay-has-model:not(.replay-read-numbers) .replay-matrices {
  width:1px;height:1px;position:absolute;overflow:hidden;clip-path:inset(50%);padding:0;border:0;
}
.replay-read-numbers .replay-surface {visibility:hidden}
.replay-matrices table {border-collapse:separate;border-spacing:2px;table-layout:auto;width:auto;min-width:0;margin:0;color:#ffe5b0}
.replay-matrices td {
  padding:clamp(3px,1.1vw,14px) clamp(3px,.95vw,13px);text-align:center;vertical-align:middle;
  min-width:1.2em;border:1px solid #98744973;background:linear-gradient(145deg,#71513a,#452c1d);
  font:600 clamp(15px,2vw,29px)/1.16 Georgia,serif;font-variant-numeric:lining-nums tabular-nums;overflow-wrap:anywhere;
}
.replay-matrices .replay-register {border-left:1px solid #c2a16b;padding-left:5px}
.replay-matrices .replay-register td {background:linear-gradient(145deg,#655a36,#443f26)}
.replay-stage-foot {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 9px;min-height:30px}
.replay-stage-foot:not(:has(> :not([hidden]))) {display:none}
.replay-caption,.cedar-replay .replay-readout {
  padding:5px 9px;border:1px solid #ae8a5685;border-radius:3px;background:#2c2017eb;color:#f4dfb5;
  font:500 clamp(12px,1.3vw,17px)/1.25 Georgia,serif;
}
.replay-caption {margin:0;overflow-wrap:anywhere;max-width:100%}
.replay-fallback-note {
  padding:3px 7px;border-radius:3px;background:#2c2017e6;color:#f1d7a9;
  font:500 clamp(12px,1.15vw,15px)/1.3 Georgia,serif;text-align:center;
}
.cedar-replay .replay-readout {min-height:44px;text-decoration:underline;text-underline-offset:3px;font-size:13px}
.cedar-replay .replay-meaning-open {
  border-color:#d0a771;color:#fff0d2;
  background:linear-gradient(145deg,#805b35,#4e341f);font-size:15px
}
.replay-meaning {
  --meaning-gutter:clamp(16px,3vw,28px);
  position:fixed;inset:0;width:min(440px,calc(100% - 20px));height:fit-content;
  max-width:none;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));
  margin:auto auto max(12px,env(safe-area-inset-bottom));padding:0;overflow:hidden;color:#f8e6c5;
  border:1px solid #ba9159;border-radius:6px;background:linear-gradient(135deg,#4a3527,#2a2019 80%);
  box-shadow:inset 0 0 0 3px #9a78433a,0 8px 35px #130c09b0;
  font:400 clamp(15px,1.4vw,18px)/1.47 Georgia,'Times New Roman',serif
}
.replay-meaning[open] {display:flex;flex-direction:column}
.replay-meaning::backdrop {background:#170e0840}
.replay-meaning-body {min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--meaning-gutter) var(--meaning-gutter) 14px}
.replay-meaning h3 {margin:0;color:#ffedc9;font:600 clamp(24px,2.9vw,36px)/1.12 Georgia,serif;text-wrap:balance}
.cedar-replay .replay-meaning h3:focus {outline:none}
.replay-meaning-text {margin:.65em 0 0}
.replay-meaning-solution {margin:1em 0 0;color:#ffe5ae}
.replay-meaning a:focus-visible {outline:2px solid #ffe9b2;outline-offset:2px}
.replay-meaning-solution {
  display:flex;flex-wrap:wrap;gap:.24em .9em;padding:.55em 0;list-style:none;
  border-block:1px solid #a67b475c;font-size:1.15em;overflow-wrap:anywhere
}
.replay-meaning-credit {margin:1.05em 0 0;color:#dfc9a8;font-size:.9em}
.replay-meaning-credit a,.replay-meaning-actions .replay-support {color:#f3d79d;text-underline-offset:3px}
.replay-meaning-actions {
  flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px var(--meaning-gutter);border-top:1px solid #a67b474f
}
.replay-meaning-actions .replay-support {display:inline-flex;align-items:center;min-height:44px;max-width:50%;font-size:.87em}
@media (min-width:760px), (min-width:640px) and (orientation:landscape) {
  .cedar-replay {--meaning-width:clamp(300px,34vw,440px)}
  .replay-meaning {
    width:var(--meaning-width);margin:auto max(16px,4vw,env(safe-area-inset-right)) auto auto
  }
  .replay-meaning::backdrop {background:#21150924}
  .cedar-replay[data-mode="mirror"]:has(.replay-meaning[open]) .replay-content {
    margin-inline-end:calc(var(--meaning-width) + clamp(12px,2vw,32px))
  }
}
.replay-scroll {
  position:relative;container-type:inline-size;min-width:0;min-height:0;
  display:grid;grid-template-rows:minmax(0,1fr);padding-block:5px;
}
.replay-scroll::before,.replay-scroll::after {
  content:'';position:absolute;z-index:1;inset-inline:-3px;height:clamp(9px,2.5cqi,15px);
  pointer-events:none;border:1px solid #906a3f;border-radius:44% 6px 5px 6px / 2px 45% 45% 4px;
  background:linear-gradient(180deg,#b48851b8,#f1d6a475 26%,#ffedc369 42%,#9e7446b3 88%,#6d4b2e),
    url("assets/replay-parchment.webp?v=d2fa1692ce9db6b0") center 18%/100% auto;
}
.replay-scroll::before {top:0;box-shadow:0 2px 3px #56321460}
.replay-scroll::after {bottom:0;box-shadow:0 2px 4px #21140782}
.replay-paper {
  --scribe-hand:'Cedar Scribe Hand','Palatino Linotype',Palatino,Georgia,serif;
  min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;
  padding:clamp(18px,5cqi,38px) clamp(12px,5cqi,38px);
  border:1px solid #a68150;background:#e6cea0 url("assets/replay-parchment.webp?v=d2fa1692ce9db6b0") center/100% 100%;
  color:#39271b;box-shadow:inset 0 0 16px #946b3b3d,2px 5px 9px #1d0f0782;
  font:400 clamp(25px,6.4cqi,42px)/1.23 var(--scribe-hand);
  font-synthesis:none;scrollbar-width:none;
}
.replay-paper::-webkit-scrollbar {display:none;width:0;height:0}
.replay-paper-title {
  margin:0 0 .35em;color:#503420;text-align:center;
  font:400 clamp(37px,9.3cqi,64px)/1.14 var(--scribe-hand);
}
.replay-paper-title::after {
  content:'';display:block;height:2px;width:83%;margin:.09em auto 0;
  background:#805b39a3;clip-path:polygon(0 66%,18% 25%,60% 32%,96% 0,100% 14%,97% 48%,24% 93%,3% 90%);
}
.replay-step-arrow {
  margin:.18em 0 .20em;color:#67442a;text-align:center;
  font:400 1.08em/1.08 var(--scribe-hand);
}
.replay-step-arrow > span {display:inline-block}
.replay-entry:nth-of-type(2n) .replay-step-arrow > span {transform:rotate(-2deg)}
.replay-equations {
  --note-width:min(31%,6.8em);
  display:grid;
  grid-template-columns:minmax(0,var(--replay-lhs-width)) max-content min(var(--replay-rhs-width),17%) minmax(var(--note-width),1fr);
  column-gap:.22em;row-gap:.22em;align-items:baseline;padding:.12em 0 .12em .37em;
  border-inline-start:2px solid #a180532e;font-variant-numeric:lining-nums;
}
.replay-entry[aria-current="step"] .replay-equations {border-color:#855632}
.replay-equation {display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:last baseline;row-gap:.25em;min-width:0}
.replay-lhs,.replay-rhs,.replay-row-note {min-width:0;overflow-wrap:anywhere}
.replay-lhs {display:grid;grid-template-columns:var(--replay-term-tracks);column-gap:.15em;align-items:last baseline}
.replay-term {display:block;min-width:0;text-align:end;white-space:nowrap}
.replay-term:empty::before {content:'\00a0';visibility:hidden}
.replay-rhs {max-width:100%}
.replay-product {display:inline-block;white-space:nowrap}
.replay-fraction {
  display:inline-grid;vertical-align:middle;min-width:.5em;
  font-size:.78em;line-height:1.04;text-align:center
}
.replay-fraction-mark {display:none}
.replay-denominator {border-top:1px solid currentColor}
.replay-long-term,.replay-long-term .replay-fraction {white-space:normal;overflow-wrap:anywhere}
.replay-long-term .replay-product {max-width:100%}
.replay-long-term .replay-fraction {max-width:calc(100% - .70em)}
.replay-row-note {padding-inline-start:.46em;font:400 max(20px,.83em)/1.18 var(--scribe-hand);color:#68432c}
.replay-row-label {white-space:nowrap}
.replay-assignment {color:#67371e}
.replay-solutions .replay-rhs {justify-self:start;border-bottom:1px solid #936c438a}
.replay-equations:is([data-size="4"],[data-size="5"]) {font-size:.90em}
@container (max-width:735px) {
  .replay-equations:is([data-size="4"],[data-size="5"]) {--note-width:1.48em;column-gap:.15em;padding-inline-start:.24em}
  .replay-equations:is([data-size="4"],[data-size="5"]) .replay-row-note:has(.replay-assignment) {
    grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%;padding-inline-start:0
  }
}
@container (max-width:345px) {
  .replay-equations:is([data-size="4"],[data-size="5"]) {
    --note-width:1.20em;grid-template-columns:minmax(0,var(--replay-lhs-width)) max-content min(var(--replay-rhs-width),13%) minmax(var(--note-width),1fr);
    column-gap:.07em;padding-inline-start:.15em
  }
  .replay-equations:is([data-size="4"],[data-size="5"]) .replay-lhs {column-gap:.04em}
  .replay-equations[data-size="3"] {--note-width:1.48em}
  .replay-equations[data-size="3"] .replay-row-note:has(.replay-assignment) {
    grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%;padding-inline-start:0
  }
}
.replay-paper:focus-visible {outline:2px solid #835b32;outline-offset:-4px}
.replay-controls {border-top:1px solid #bd935d99;padding-top:7px}
.replay-position {margin:0;color:#ffe3b0;padding:4px 7px;border-radius:2px;background:#302116de;font-size:clamp(13px,1.4vw,18px)}
.replay-transport {display:flex;gap:6px;align-items:center}
.cedar-replay .replay-play {color:#382613;background:linear-gradient(145deg,#e2c692,#bf985f);box-shadow:inset 0 0 0 2px #e9d3a4;min-width:68px}
@media (max-width:660px) and (orientation:portrait) {
  .cedar-replay {padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))}
  .replay-content {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(115px,.88fr) minmax(0,1fr);gap:7px}
  .cedar-replay[data-mode="mirror"] .replay-content {grid-template-rows:minmax(0,1fr)}
  .replay-heading {padding-bottom:4px}
  .replay-stage {grid-template-rows:minmax(0,1fr) auto}
  .replay-paper {padding:14px clamp(10px,4cqi,18px) 18px}
  .replay-paper-title {margin-bottom:.35em}
  .replay-transport {gap:4px}.cedar-replay .replay-transport button {padding-inline:9px;font-size:14px}
  .replay-controls {gap:4px;flex-wrap:wrap;justify-content:space-between}
}
@media (max-width:360px) and (orientation:portrait) {
  .replay-stage-foot {column-gap:5px}
  .cedar-replay .replay-meaning-open {font-size:14px;padding-inline:7px}
  .cedar-replay .replay-readout {font-size:12px;padding-inline:7px}
  .replay-matrices:has(tr:nth-child(4)) {padding:4px}
  .replay-matrices:has(tr:nth-child(4)) table {border-spacing:1px}
  .replay-matrices:has(tr:nth-child(4)) td {padding:1px 3px;line-height:1.1}
}
@media (max-height:490px) and (orientation:landscape) {
  .cedar-replay {padding: max(4px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .replay-meaning {margin-inline-end:max(10px,env(safe-area-inset-right))}
  .cedar-replay[open]{gap:3px}.replay-heading,.replay-controls {padding:0}.replay-content {gap:10px}
  .replay-paper {font-size:23px;padding:12px 14px}.replay-paper-title {font-size:34px}
  .replay-stage-foot {min-height:0}
}
