@font-face {
  font-family:Cartographer;
  src:url('/css/tldFont/LostDiamondCartographer-Regular.ttf') format('truetype');
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Cartographer;
  src:url('/css/tldFont/LostDiamondCartographer-Bold.ttf') format('truetype');
  font-weight:700;
  font-display:swap
}
:root {
  --ink:#34210c;
  --muted:#715b36;
  --red:#9d1812;
  --gold:#ac782b;
  --paper:#fae9c4;
  --line:#c59a56
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  color:var(--ink);
  font:19px/1.35 Cartographer,Georgia,serif;
  background:#f4e4be url('/images/treasury/treasury-background.webp') center top/cover fixed
}
button,input,a {
  -webkit-tap-highlight-color:transparent
}
button,input {
  font:inherit
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.5
}
a {
  color:inherit
}
button {
  color:inherit
}
img {
  max-width:100%;
  object-fit:contain
}
h1,h2,h3,p {
  margin:0
}
svg {
  display:inline-block
}
button svg,a svg {
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #146c83;
  outline-offset:5px
}
[hidden] {
  display:none!important
}
.svg-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.skip-link {
  position:fixed;
  z-index:10;
  left:20px;
  top:-100px;
  background:var(--paper);
  padding:12px
}
.skip-link:focus {
  top:10px
}
.page-shell {
  width:min(1540px,calc(100% - 64px));
  margin:18px auto 0
}
.parchment,.plaque {
  background:linear-gradient(110deg,#fff3d9e8,#f8e1b1e8 52%,#fff3dae8);
  border:1px solid var(--gold);
  box-shadow:0 4px 8px #5e38162b,inset 0 0 24px #d6a85d36
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:10px 23px;
  min-height:80px;
  border-radius:17px;
  outline:1px solid #caab72;
  outline-offset:4px;
  position:relative
}
.topbar:after {
  content:'';
  position:absolute;
  inset:5px;
  border:1px solid #c59a5666;
  border-radius:12px;
  pointer-events:none
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:clamp(24px,2.4vw,38px);
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  padding-right:22px;
  border-right:1px solid var(--line)
}
.brand img {
  width:56px;
  height:56px;
  filter:drop-shadow(0 3px 2px #7e350936)
}
.topbar .treasury-navigation {
  display:flex;
  gap:14px;
  align-items:center;
  flex:1;
  justify-content:center
}
.topbar .treasury-navigation a,.topbar .treasury-navigation button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  white-space:nowrap;
  font-size:23px;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:13px;
  background:none;
  padding:10px 16px
}
.topbar .treasury-navigation a:hover,.topbar .treasury-navigation button:hover {
  background:#aa712312
}
.topbar .treasury-navigation .active {
  background:linear-gradient(#bd291a,#8f160e);
  color:#fff2d2;
  box-shadow:0 3px 3px #4e180e4a,inset 0 1px 1px #e4824e;
  border-color:#b55b32
}
.topbar .active svg {
  color:#ffce6f
}
.scope {
  font-size:20px;
  border:1px solid #b88a44;
  border-radius:11px;
  padding:9px 18px;
  white-space:nowrap;
  background:#ffefcf66;
  box-shadow:0 2px 3px #87632d18
}
.intro {
  display:grid;
  grid-template-columns:125px 1fr auto;
  gap:16px;
  align-items:center;
  margin:32px 0 0;
  min-height:145px
}
.compass {
  width:125px;
  height:135px;
  color:#765529
}
.intro h1 {
  font-size:clamp(45px,5.6vw,84px);
  line-height:1.02;
  letter-spacing:-2px
}
.intro-copy p {
  font-style:italic;
  font-size:clamp(19px,2vw,30px);
  margin-top:5px
}
.intro-copy:after {
  content:'';
  display:block;
  width:82%;
  height:1px;
  background:linear-gradient(90deg,var(--gold),transparent);
  margin-top:15px
}
.total {
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 21px!important;
  margin-left:10px
}
.total img {
  width:55px;
  height:55px
}
.total div {
  display:flex;
  align-items:center;
  gap:18px
}
.total span {
  font-size:24px;
  font-weight:700;
  max-width:none;
  white-space:nowrap;
  flex-shrink:0;
  line-height:1.12
}
.total strong {
  font-size:40px;
  white-space:nowrap;
  line-height:1.15
}
.plaque {
  position:relative;
  border:2px solid #aa771f;
  outline:1px solid #ceab65;
  outline-offset:3px;
  border-radius:13px;
  padding:16px 20px;
  text-align:center;
  isolation:isolate
}
.plaque:before {
  content:'';
  position:absolute;
  inset:4px;
  border:1px solid #c3974a;
  border-radius:7px;
  pointer-events:none;
  z-index:-1
}
.plaque:after {
  content:'✧';
  position:absolute;
  top:-9px;
  left:7px;
  color:#9b671c;
  font-size:28px;
  line-height:1;
  text-shadow:0 1px #fff3d4;
  pointer-events:none
}
.status-row {
  min-height:28px;
  margin:0 0 6px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--muted);
  font-size:16px
}
.status-row.is-error {
  padding:10px 16px;
  border:1px solid #b7723f;
  background:#fff1d9;
  border-radius:8px;
  color:#851c13
}
.status-row.is-error~#treasury-values[aria-busy=false] {
  opacity:1
}
.flow {
  height:430px;
  position:relative;
  margin:0 0 35px
}
.flow-paths {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none
}
.flow-item {
  position:absolute
}
.flow-item h2 {
  font-size:24px;
  line-height:1.06
}
.flow-item p {
  font-style:italic;
  font-size:18px;
  line-height:1.2;
  margin-top:4px
}
.amount {
  display:block;
  font-size:44px;
  line-height:1.1;
  font-weight:700;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.reserve {
  width:29%;
  left:0;
  bottom:5px
}
.shop-art {
  position:relative;
  height:238px;
  margin:0 auto -8px
}
.shop-art>img {
  height:100%;
  width:100%;
  object-position:bottom;
  filter:drop-shadow(0 6px 4px #5b380d30)
}
.visit-ribbon {
  position:absolute;
  right:8%;
  bottom:30%;
  transform:rotate(-7deg);
  padding:6px 14px;
  background:#fff1cf;
  border:1px solid #b08739;
  border-radius:2px 10px 10px 2px;
  color:#315530;
  box-shadow:0 3px 5px #543a242b;
  text-align:center;
  font-size:20px;
  font-weight:700;
  line-height:1
}
.reserve-label {
  padding:10px 18px 13px
}
.reserve h2 {
  font-size:clamp(30px,3.15vw,48px)
}
.reserve .subtitle {
  font-size:27px;
  margin:0
}
.reserve .amount {
  font-size:55px;
  color:var(--red)
}
.reserve p:last-child {
  font-size:23px;
  margin:0
}
.batch {
  left:39%;
  top:12px;
  width:18%
}
.batch .pouches {
  display:block;
  width:124px;
  height:106px;
  object-position:bottom;
  margin:0 auto -12px;
  position:relative;
  z-index:1
}
.batch .plaque {
  padding:14px 10px 13px
}
.batch .amount {
  font-size:35px
}
.batch p {
  font-size:16px
}
.gems {
  left:64%;
  top:25px;
  width:16%
}
.gem-art {
  position:relative;
  margin:0 auto -8px;
  isolation:isolate;
  width:140px;
  height:105px;
  display:grid;
  place-items:center
}
.gem-art:before {
  content:'';
  position:absolute;
  inset:-15px;
  background:radial-gradient(ellipse,#fffbd0bb 15%,#ffd45d55 40%,transparent 70%);
  z-index:-1
}
.gem-art img {
  width:120px;
  max-height:100%;
  filter:drop-shadow(0 8px 5px #73551c55)
}
.gems .amount {
  font-size:39px
}
.gems .plaque {
  padding:13px 9px
}
.gems p,.diamonds p {
  font-size:16px
}
.diamonds {
  left:47%;
  top:262px;
  width:27%;
  display:flex;
  align-items:center
}
.diamonds .gem-art {
  width:144px;
  height:135px;
  flex:none;
  margin:0 -17px 0 0;
  z-index:1
}
.diamonds .gem-art img {
  width:144px
}
.diamonds .plaque {
  flex:1;
  padding:18px 13px 16px 24px
}
.diamonds .amount {
  font-size:42px
}
.diamonds h2 {
  font-size:23px
}
.hunters {
  right:0;
  top:140px;
  width:19%
}
.hunters>img {
  display:block;
  width:100%;
  height:168px;
  object-position:bottom;
  margin-bottom:-12px;
  position:relative;
  z-index:1
}
.hunters .plaque {
  padding:12px 13px
}
.hunters h2 {
  font-size:29px
}
.hunters p {
  font-size:21px
}
.wax-seal {
  position:absolute;
  left:79%;
  top:228px;
  width:51px;
  height:51px;
  display:grid;
  place-items:center;
  border:4px double #eb9a4b;
  border-radius:50%;
  background:linear-gradient(135deg,#ba3921,#76100d);
  color:#ffda89;
  font-size:31px;
  box-shadow:0 2px 5px #79430e55
}
.summaries {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px
}
.summary {
  display:grid;
  grid-template-columns:130px 1fr;
  gap:0 20px;
  align-items:center;
  padding:24px;
  text-align:left;
  min-height:191px
}
.summary-copy {
  border-left:1px solid #b78a3f;
  padding-left:20px
}
.summary h2 {
  font-size:30px;
  line-height:1.12
}
.summary .amount {
  color:var(--red);
  font-size:52px;
  line-height:1.2
}
.summary p {
  font-size:19px;
  font-style:italic
}
.summary .red-button,.summary .breakdown-link {
  grid-column:2;
  justify-self:end;
  margin-top:12px
}
.treasure-pair {
  position:relative;
  align-self:center;
  grid-row:1/3;
  height:136px
}
.treasure-pair img:first-child {
  position:absolute;
  top:0;
  left:0;
  width:115px;
  filter:drop-shadow(0 8px 4px #6d4f3755)
}
.treasure-pair img:last-child {
  position:absolute;
  bottom:0;
  right:-4px;
  width:95px;
  filter:drop-shadow(0 8px 4px #6d4f3755)
}
.coins-art {
  width:130px;
  height:150px;
  grid-row:1/3;
  filter:drop-shadow(0 7px 3px #76501830)
}
.red-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:9px 16px;
  background:linear-gradient(#c93223,#97170e);
  border:1px solid #b05b31;
  border-radius:12px;
  color:#fff4d8;
  box-shadow:0 3px 4px #59260b3d,inset 0 1px 1px #e88c5b;
  text-decoration:none;
  font-size:20px;
  font-weight:700;
  white-space:nowrap
}
.red-button:hover {
  background:linear-gradient(#d23a2a,#a31b10)
}
.breakdown-link {
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#941d13;
  background:none;
  border:0;
  text-decoration:underline;
  text-underline-offset:4px;
  padding:8px 0;
  font-weight:700;
  font-size:21px
}
.breakdown-link:hover {
  color:#c63221
}
.page-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:30px 0 24px;
  font-size:16px;
  color:#70512c;
  flex-wrap:wrap
}
.footer-ornament {
  color:#ad7b30;
  font-size:13px
}
.text-button {
  display:inline-flex;
  gap:7px;
  align-items:center;
  background:none;
  border:0;
  padding:5px;
  text-decoration:underline;
  text-underline-offset:4px
}
.text-button svg {
  width:17px;
  height:17px
}
.noscript {
  margin:20px 0
}
dialog {
  width:min(690px,calc(100% - 32px));
  max-height:85dvh;
  border-radius:15px;
  padding:30px;
  color:var(--ink);
  overflow:auto
}
dialog::backdrop {
  background:#21150599;
  backdrop-filter:blur(3px)
}
.dialog-header {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:start;
  margin-bottom:20px
}
.dialog-header h2 {
  font-size:36px;
  line-height:1.1;
  margin-top:7px
}
.dialog-header form {
  margin:0
}
.eyebrow {
  font-size:12px;
  letter-spacing:2px;
  color:var(--muted);
  font-weight:700
}
.close-button {
  width:44px;
  height:44px;
  border:1px solid #b68742;
  border-radius:50%;
  font-size:29px;
  background:#fff0cb
}
.account-overview {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:22px
}
.account-overview strong {
  font-size:36px;
  color:var(--red)
}
.search-label {
  display:block;
  font-weight:700;
  margin-bottom:6px
}
input[type=search] {
  width:100%;
  border:1px solid #a57e44;
  border-radius:8px;
  background:#fff6e1;
  color:var(--ink);
  padding:12px 14px;
  font-size:18px;
  min-height:46px
}
.muted {
  color:var(--muted);
  font-size:15px;
  margin:12px 0
}
.table-wrap {
  max-height:45vh;
  overflow:auto
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:18px
}
th,td {
  text-align:left;
  padding:12px 8px;
  border-bottom:1px solid #bf98524d
}
th {
  position:sticky;
  top:0;
  background:#f5e3be;
  font-size:16px;
  color:#69502c
}
td:last-child,th:last-child {
  text-align:right;
  white-space:nowrap
}
td:first-child {
  overflow-wrap:anywhere
}
td small {
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-top:3px
}
.negative {
  color:#9b2217
}
.account-note {
  font-size:15px;
  color:var(--muted);
  margin-top:18px
}
.how-steps {
  padding-left:25px
}
.how-steps li {
  padding-left:7px;
  margin:22px 0
}
.how-steps li::marker {
  color:var(--red);
  font-weight:700
}
.how-steps h3 {
  font-size:23px;
  margin-bottom:6px
}
.how-steps p {
  font-size:18px;
  color:#594327
}
.formula {
  font-size:17px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin:18px 0 24px
}
@media(min-width:1550px) {
  .summary {
    grid-template-columns:150px 1fr auto
  }
  .summary .red-button,.summary .breakdown-link {
    grid-column:3;
    grid-row:1;
    margin:0
  }
  .summary-copy p {
    white-space:nowrap
  }
  .summary .amount {
    font-size:58px
  }
  .summary h2 {
    font-size:32px
  }
}
@media(max-width:1250px) {
  .page-shell {
    width:calc(100% - 42px)
  }
  .topbar {
    gap:12px;
    padding:8px 15px
  }
  .brand {
    font-size:27px;
    padding-right:12px;
    gap:6px
  }
  .brand img {
    width:45px;
    height:45px
  }
  .topbar .treasury-navigation {
    gap:2px
  }
  .topbar .treasury-navigation a,.topbar .treasury-navigation button {
    font-size:20px;
    padding:9px 12px;
    gap:7px
  }
  .scope {
    font-size:17px;
    padding:8px 11px
  }
  .intro {
    grid-template-columns:90px 1fr auto;
    gap:10px
  }
  .compass {
    width:90px;
    height:110px
  }
  .intro h1 {
    font-size:62px
  }
  .intro-copy p {
    font-size:22px
  }
  .total div {
    flex-direction:column;
    align-items:start;
    gap:3px
  }
  .total span {
    max-width:none;
    font-size:21px
  }
  .total strong {
    font-size:34px
  }
  .total {
    padding:12px 15px!important
  }
  .flow {
    height:420px
  }
  .shop-art {
    height:220px
  }
  .reserve h2 {
    font-size:35px
  }
  .reserve .amount {
    font-size:47px
  }
  .reserve .subtitle {
    font-size:24px
  }
  .reserve p:last-child {
    font-size:20px
  }
  .batch {
    left:37%;
    width:21%
  }
  .gems {
    left:63%;
    width:18%
  }
  .diamonds {
    left:43%;
    width:34%
  }
  .hunters {
    width:20%
  }
  .hunters h2 {
    font-size:26px
  }
  .hunters p {
    font-size:18px
  }
  .flow-item h2 {
    font-size:22px
  }
  .flow-item .amount {
    font-size:35px
  }
  .reserve .amount {
    font-size:47px
  }
  .reserve h2 {
    font-size:35px
  }
  .summary {
    grid-template-columns:100px 1fr;
    padding:20px;
    gap:0 13px
  }
  .summary h2 {
    font-size:26px
  }
  .summary .amount {
    font-size:46px
  }
  .summary-copy {
    padding-left:13px
  }
  .summary p {
    font-size:17px
  }
  .treasure-pair {
    height:115px
  }
  .treasure-pair img:first-child {
    width:90px
  }
  .treasure-pair img:last-child {
    width:78px
  }
  .coins-art {
    width:100px
  }
  .diamonds .gem-art {
    width:110px
  }
  .diamonds .gem-art img {
    width:110px
  }
}
@media(max-width:950px) {
  .topbar {
    flex-wrap:wrap;
    gap:5px 15px
  }
  .brand {
    border:0;
    font-size:30px
  }
  .scope {
    margin-left:auto;
    order:1
  }
  .topbar .treasury-navigation {
    order:2;
    flex-basis:100%;
    border-top:1px solid #c59a5655;
    padding-top:7px;
    margin-top:4px;
    justify-content:space-around
  }
  .topbar .treasury-navigation a,.topbar .treasury-navigation button {
    padding:7px 14px
  }
  .intro {
    grid-template-columns:90px 1fr
  }
  .intro h1 {
    font-size:64px
  }
  .total {
    grid-column:1/-1;
    margin:6px 0 0;
    justify-content:center
  }
  .total div {
    flex-direction:row;
    align-items:center;
    gap:20px
  }
  .total img {
    width:42px;
    height:42px
  }
  .total span {
    font-size:22px
  }
  .total strong {
    font-size:34px
  }
  .status-row {
    margin-top:12px
  }
  .flow {
    height:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:36px 35px;
    align-items:center;
    margin:16px 10px 38px
  }
  .flow-item {
    position:relative;
    inset:auto;
    width:auto
  }
  .flow-paths,.wax-seal {
    display:none
  }
  .reserve {
    grid-row:1/3;
    align-self:center
  }
  .shop-art {
    height:245px
  }
  .batch .pouches {
    height:90px;
    width:130px
  }
  .batch .plaque {
    max-width:260px;
    margin:auto
  }
  .gems {
    display:flex;
    align-items:center;
    justify-content:center
  }
  .gems .gem-art {
    height:90px;
    width:105px;
    flex:none;
    margin:0 -15px 0 0;
    z-index:1
  }
  .gems .plaque {
    padding:18px 14px 18px 25px;
    flex:1
  }
  .diamonds {
    grid-row:3;
    grid-column:1;
    width:auto
  }
  .diamonds .plaque {
    padding:15px 12px 15px 22px
  }
  .diamonds .gem-art {
    width:100px;
    height:105px
  }
  .hunters {
    grid-row:3;
    grid-column:2;
    display:flex;
    align-items:center
  }
  .hunters>img {
    width:120px;
    height:110px;
    margin:0 -20px 0 0
  }
  .hunters .plaque {
    padding:15px 12px 15px 22px;
    flex:1
  }
  .hunters h2 {
    font-size:24px
  }
  .hunters p {
    font-size:17px
  }
  .summary {
    grid-template-columns:80px 1fr;
    padding:20px 15px;
    gap:0 8px
  }
  .summary h2 {
    font-size:24px
  }
  .summary .amount {
    font-size:40px
  }
  .summary-copy {
    padding-left:10px
  }
  .treasure-pair img:first-child {
    width:78px
  }
  .treasure-pair img:last-child {
    width:67px
  }
  .coins-art {
    width:80px
  }
  .summary .red-button {
    font-size:17px;
    padding:9px 10px
  }
  .summary .breakdown-link {
    font-size:18px
  }
}
@media(max-width:600px) {
  body {
    background-attachment:scroll;
    background-size:auto 1000px;
    font-size:17px
  }
  .page-shell {
    width:calc(100% - 28px);
    margin-top:12px
  }
  .topbar {
    padding:7px 10px;
    border-radius:12px;
    gap:0
  }
  .brand {
    font-size:25px;
    gap:6px;
    padding:0
  }
  .brand img {
    width:38px;
    height:38px
  }
  .scope {
    display:none
  }
  .topbar .treasury-navigation {
    gap:2px;
    padding-top:6px
  }
  .topbar .treasury-navigation a,.topbar .treasury-navigation button {
    font-size:16px;
    padding:8px 7px;
    gap:5px;
    border-radius:8px
  }
  .topbar .treasury-navigation svg {
    width:18px;
    height:18px
  }
  .intro {
    margin-top:27px;
    grid-template-columns:53px 1fr;
    gap:10px
  }
  .compass {
    width:53px;
    height:72px
  }
  .intro h1 {
    font-size:47px;
    letter-spacing:-1px
  }
  .intro-copy p {
    font-size:19px;
    line-height:1.2;
    max-width:280px
  }
  .intro-copy:after {
    margin-top:11px
  }
  .total {
    margin-top:10px;
    gap:9px;
    padding:12px!important
  }
  .total img {
    width:40px;
    height:40px
  }
  .total div {
    flex-direction:column;
    align-items:center;
    gap:4px
  }
  .total span {
    font-size:18px;
    max-width:none
  }
  .total strong {
    font-size:30px
  }
  .status-row {
    font-size:14px;
    min-height:23px;
    margin:13px 0 0
  }
  .flow {
    display:flex;
    flex-direction:column;
    gap:37px;
    margin:7px 10px 35px
  }
  .flow-item {
    width:100%;
    max-width:390px
  }
  .reserve {
    max-width:345px
  }
  .shop-art {
    height:210px
  }
  .reserve h2 {
    font-size:39px
  }
  .reserve .subtitle {
    font-size:25px
  }
  .reserve .amount {
    font-size:52px
  }
  .reserve p:last-child {
    font-size:22px
  }
  .reserve-label {
    padding:12px 14px
  }
  .batch,.gems,.diamonds,.hunters {
    display:flex;
    align-items:center;
    justify-content:center
  }
  .batch .pouches,.hunters>img {
    height:110px;
    width:110px;
    flex:none;
    margin:0 -17px 0 0;
    position:relative;
    z-index:1
  }
  .batch .plaque,.gems .plaque,.diamonds .plaque,.hunters .plaque {
    flex:1;
    padding:18px 12px 18px 21px;
    max-width:none;
    margin:0
  }
  .flow-item:not(.reserve):before {
    content:'↓';
    position:absolute;
    left:65%;
    top:-35px;
    color:#ad7b2e;
    font-size:29px
  }
  .diamonds:before {
    content:'↳'!important
  }
  .gems .gem-art,.diamonds .gem-art {
    height:100px;
    width:105px;
    flex:none;
    margin:0 -17px 0 0
  }
  .diamonds .gem-art img {
    width:105px
  }
  .batch .amount,.gems .amount,.diamonds .amount {
    font-size:36px
  }
  .flow-item h2 {
    font-size:24px
  }
  .reserve h2 {
    font-size:39px
  }
  .hunters h2 {
    font-size:26px
  }
  .hunters p {
    font-size:19px
  }
  .summaries {
    grid-template-columns:1fr;
    gap:25px;
    margin:0 5px
  }
  .summary {
    grid-template-columns:93px 1fr;
    padding:22px 16px;
    gap:0 13px;
    min-height:185px
  }
  .summary h2 {
    font-size:26px
  }
  .summary .amount {
    font-size:46px
  }
  .summary p {
    font-size:18px
  }
  .summary-copy {
    padding-left:14px
  }
  .summary .red-button {
    font-size:18px;
    padding:10px 12px;
    justify-self:start
  }
  .summary .breakdown-link {
    font-size:20px;
    justify-self:start
  }
  .treasure-pair {
    height:112px
  }
  .treasure-pair img:first-child {
    width:90px
  }
  .treasure-pair img:last-child {
    width:77px
  }
  .coins-art {
    width:93px
  }
  .page-footer {
    gap:8px;
    font-size:14px;
    margin:25px 10px
  }
  .page-footer .footer-ornament {
    display:none
  }
  .page-footer #updated {
    flex-basis:100%;
    text-align:center
  }
  dialog {
    padding:22px 18px
  }
  .dialog-header h2 {
    font-size:31px
  }
  .account-overview strong {
    font-size:31px
  }
  .account-overview {
    font-size:16px
  }
  input[type=search] {
    font-size:16px
  }
  .how-steps p {
    font-size:17px
  }
}
@media(prefers-reduced-motion:no-preference) {
  .flow-item {
    animation:unfold .5s ease-out both
  }
  .batch {
    animation-delay:.08s
  }
  .gems {
    animation-delay:.16s
  }
  .diamonds {
    animation-delay:.2s
  }
  .hunters {
    animation-delay:.24s
  }
  @keyframes unfold {
    from {
      opacity:0;
      transform:translateY(6px)
    }
    to {
      opacity:1;
      transform:translateY(0)
    }
  }
}
/* On narrow screens, label the two funding branches instead of implying a single chain. */
@media(max-width:600px) {
  .flow .batch:before,.flow .diamonds:before,.flow .hunters:before {
    left:0;
    right:0;
    top:-27px;
    text-align:center;
    font-size:13px;
    line-height:1.2;
    letter-spacing:.3px;
    color:#71512a
  }
  .flow .batch:before {
    content:'From the Treasure Reserve'
  }
  .flow .diamonds:before {
    content:'Also from the Treasure Reserve'!important
  }
  .flow .hunters:before {
    content:'When gems or diamonds are found'
  }
}
@media(max-width:380px) {
  .brand {
    font-size:22px
  }
  .brand img {
    width:32px;
    height:32px
  }
  .topbar .treasury-navigation {
    justify-content:space-between
  }
  .topbar .treasury-navigation a,.topbar .treasury-navigation button {
    font-size:14px;
    padding:8px 5px;
    gap:4px
  }
  .topbar .treasury-navigation svg {
    display:none
  }
  .intro {
    grid-template-columns:42px minmax(0,1fr);
    gap:8px
  }
  .compass {
    width:42px
  }
  .intro h1 {
    font-size:37px
  }
  .intro-copy p {
    font-size:17px
  }
  .total div {
    flex-direction:column;
    gap:3px;
    align-items:center
  }
  .total span {
    max-width:none;
    font-size:17px
  }
  .total strong {
    font-size:30px
  }
  .flow {
    margin-left:5px;
    margin-right:5px
  }
  .flow-item h2 {
    font-size:21px
  }
  .reserve h2 {
    font-size:33px
  }
  .reserve .amount {
    font-size:46px
  }
  .batch .pouches,.hunters>img,.gems .gem-art,.diamonds .gem-art {
    width:83px
  }
  .diamonds .gem-art img {
    width:90px
  }
  .batch .amount,.gems .amount,.diamonds .amount {
    font-size:31px
  }
  .flow-item p {
    font-size:15px
  }
  .hunters h2 {
    font-size:23px
  }
  .summary {
    grid-template-columns:65px minmax(0,1fr);
    gap:0 10px;
    padding:19px 13px
  }
  .summary-copy {
    padding-left:10px
  }
  .summary h2 {
    font-size:23px
  }
  .summary .amount {
    font-size:37px
  }
  .summary p {
    font-size:16px
  }
  .coins-art {
    width:65px
  }
  .treasure-pair img:first-child {
    width:65px
  }
  .treasure-pair img:last-child {
    width:58px
  }
  .treasure-pair {
    height:90px
  }
  .summary .red-button,.summary .breakdown-link {
    grid-column:1/-1;
    justify-self:center;
    margin-top:16px;
    font-size:17px
  }
}

/* The supplied background already includes a compass. Keep the title spacing. */
.compass { visibility: hidden; }

/* The illustrations below display pixels from the supplied reference images.
   SVG clips only isolate their silhouettes; the artwork is not regenerated. */
.reference-art { display:block; overflow:visible; flex:none; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.shop-art > .reference-art { width:100%; height:100%; }
.gem-art > .reference-art { width:100%; height:100%; }
.gem-art:before { display:none; }
.treasure-pair > .reference-art { width:100%; height:100%; }
.reference-art.coins-art { filter:none; }
.reference-art.wax-seal { padding:0; background:none; border:0; border-radius:0; box-shadow:none; }
.mining-seal { left:33%; top:292px; width:51px; height:52px; }
.chest-seal { left:79%; top:228px; width:58px; height:57px; }
.hunter-pouches { width:100%; height:168px; margin:0 0 -7px; position:relative; z-index:1; }
@media(min-width:951px) {
  .shop-art { height:238px; }
  .batch { left:37%; top:33px; width:24%; display:flex; align-items:center; }
  .batch .pouches { width:36%; height:auto; margin:0 -14px 0 0; z-index:2; }
  .batch .plaque { flex:1; min-width:0; padding:15px 10px 14px 16px; }
  .batch h2 { font-size:23px; }
  .batch .amount { font-size:37px; }
  .batch p { font-size:17px; }
  .gems { left:65%; top:38px; width:16%; }
  .gems .gem-art { width:145px; height:128px; margin:0 0 -54px -45px; }
  .gems .plaque { margin-left:0; padding:16px 8px; }
  .diamonds { left:44%; top:257px; width:32%; }
  .diamonds .gem-art { width:44%; height:164px; margin:0 -16px 0 0; }
  .diamonds .plaque { padding:18px 12px 18px 25px; }
  .diamonds .amount { font-size:44px; }
  .hunters { width:20%; top:132px; }
  .hunter-pouches { height:180px; }
}
@media(min-width:951px) and (max-width:1250px) {
  .batch h2 { font-size:20px; }
  .batch .amount { font-size:31px; }
  .batch p { font-size:15px; }
  .gems .gem-art { width:125px; margin-left:-32px; }
  .diamonds .amount { font-size:35px; }
  .diamonds h2 { font-size:21px; }
}
@media(max-width:950px) {
  .batch { display:flex; align-items:center; justify-content:center; }
  .batch .pouches { width:100px; height:118px; margin:0 -12px 0 0; z-index:2; }
  .batch .plaque { flex:1; padding:18px 12px 18px 21px; margin:0; }
  .hunter-pouches { width:120px; height:110px; margin:0 -20px 0 0; }
  .reference-art.wax-seal { display:none; }
}
@media(max-width:600px) {
  .hunter-pouches { width:110px; height:110px; margin:0 -17px 0 0; }
  .batch .pouches { width:105px; height:120px; }
  .shop-art { height:190px; }
}
@media(max-width:380px) {
  .hunter-pouches, .batch .pouches { width:83px; }
}

@media(min-width:951px) {
  .batch .pouches { width:39%; }
  .batch { width:24%; }
  .flow .plaque { background:linear-gradient(110deg,#fff1d1,#f9e4b8 52%,#ffefcc); }
  .chest-seal { left:75%; top:228px; z-index:3; }
  .hunters { width:19%; }
}

/* Hunter distribution: estimates and previously allocated funding remain separate. */
.batch-trigger {
  display:inline-flex;
  justify-content:center;
  align-items:baseline;
  gap:5px;
  padding:0;
  border:0;
  background:none;
  font:inherit;
  color:inherit;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.batch-trigger:hover:not(:disabled) { color:var(--red); text-decoration-style:solid; }
.batch-open-icon { font-size:.7em; text-decoration:none; }
#batch-dialog { width:min(790px,calc(100% - 32px)); }
.funding-overview { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.funding-overview > div { padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#fff3d980; }
.funding-overview span { display:block; font-size:18px; font-weight:700; }
.funding-overview strong { display:block; font-size:34px; line-height:1.3; color:var(--red); }
.funding-overview p { font-size:15px; color:var(--muted); }
.funding-note { font-size:17px; margin-bottom:14px; }
.funding-allocation { padding:10px 0; margin-bottom:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:16px; color:#594327; }
.hunter-table { table-layout:fixed; }
.hunter-table th:first-child { width:44%; }
.hunter-table th:nth-child(n+2),.hunter-table td:nth-child(n+2) { text-align:right; }
.hunter-table th { white-space:normal; }
.hunter-table td:nth-child(n+2) { white-space:nowrap; font-variant-numeric:tabular-nums; }
#batch-dialog .table-wrap { max-height:none; overflow:visible; }
@media(max-width:600px) {
  #batch-dialog { padding:20px 16px; }
  .funding-overview { gap:9px; }
  .funding-overview > div { padding:10px; }
  .funding-overview span { font-size:16px; }
  .funding-overview strong { font-size:27px; }
  .funding-overview p { font-size:13px; }
  .funding-note,.funding-allocation { font-size:15px; }
  .hunter-table { font-size:16px; }
  .hunter-table th { font-size:13px; }
  .hunter-table th,.hunter-table td { padding:10px 4px; }
  .hunter-table td small { font-size:12px; }
  .hunter-table th:first-child { width:42%; }
}

#batch-dialog .dialog-header { margin-bottom:16px; }
.funding-overview > div { padding:10px 14px; }
.funding-overview strong { font-size:30px; }
.funding-details { margin:0 0 16px; font-size:16px; }
.funding-details summary { cursor:pointer; color:#79531f; text-underline-offset:3px; }
.funding-details summary:hover { text-decoration:underline; }
.funding-details[open] summary { margin-bottom:12px; }
.funding-details .account-note { margin:10px 0 16px; }
@media(max-width:600px) {
  .funding-overview > div { padding:10px; }
  .funding-overview strong { font-size:27px; }
  .funding-details { font-size:15px; }
}

/* The full next-batch card, including its illustration, opens the distribution. */
.batch:has(.batch-trigger:not(:disabled)) { cursor:pointer; }
.batch:hover .batch-trigger:not(:disabled) { color:var(--red); text-decoration-style:solid; }
.batch:focus-within { outline:3px solid #146c83; outline-offset:5px; border-radius:12px; }

/* Map-inspired treasury navigation, scoped to the header. */
.topbar {
  --header-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%237d6741' opacity='.17' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  z-index:20;
  min-height:72px;
  padding:9px 17px;
  gap:22px;
  border:1px solid #8a7046;
  border-radius:12px;
  outline:none;
  color:#352b1c;
  background-color:#f0dfb8;
  background-image:var(--header-grain),linear-gradient(110deg,#fbf1dba8,#f0ddb3a0 45%,#faf0d8a8);
  box-shadow:0 4px 14px #362a2452,inset 0 0 0 3px #fffae34d,inset 0 0 32px #a46e2630;
}
.topbar:after { inset:4px;border-color:#a98b574d;border-radius:8px; }
.topbar .brand { font:700 clamp(22px,2.2vw,36px)/1 Cartographer,Georgia,serif;gap:10px;padding-right:22px;border-right:1px solid #c8b58f; }
.topbar .brand img { width:50px;height:50px;filter:drop-shadow(0 2px 1px #44231333); }
.topbar .treasury-navigation { gap:9px; }
.topbar .treasury-navigation a,.topbar .treasury-navigation button { gap:7px;padding:8px 13px;border:1px solid #9e8863;border-radius:30px;min-height:42px;background:#fff8e542;font-size:18px; }
.topbar .treasury-navigation .active { background:#fff6df;color:#352b1c;box-shadow:inset 0 0 10px #c9983520;border-color:#9e8863; }
.topbar .treasury-navigation .active svg { color:#a72c25; }
.topbar .treasury-navigation a:hover,.topbar .treasury-navigation button:hover { background:#fff6df; }
.topbar .scope { border-color:#9b8258;background:#fff7e640;box-shadow:none;font-size:17px;padding:9px 12px; }
.treasury-menu-toggle { display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;background:none; }
.treasury-menu-toggle svg { width:29px;height:29px;stroke-width:2; }
#treasury-menu { position:absolute;right:0;top:calc(100% + 12px);width:275px;max-width:calc(100vw - 28px);padding:22px;max-height:calc(100dvh - 180px);overflow:auto;border-radius:16px;background-color:#f0dfb8;background-image:var(--header-grain),linear-gradient(110deg,#fbf1db,#f0ddb3 45%,#faf0d8);box-shadow:0 4px 14px #362a2452; }
#treasury-menu .eyebrow { display:block;margin-bottom:15px;color:#72624c;font-size:10px;letter-spacing:.18em;text-transform:uppercase; }
#treasury-menu a,#treasury-menu button { display:flex;justify-content:space-between;width:100%;padding:10px 0;text-decoration:none;border:0;border-bottom:1px solid #b7a27c66;background:none;text-align:left;font-size:16px; }
#treasury-menu a:hover,#treasury-menu button:hover { color:#a72c25; }
#treasury-menu .original-home { font-size:13px;margin-top:8px;border:0; }
#treasury-menu-status { position:absolute;right:0;top:100%;padding:12px;background:#fff6df;color:#9d1812;max-width:300px; }
@media(max-width:1200px) {
  .topbar { flex-wrap:wrap;gap:8px 14px;padding:10px 14px; }
  .topbar .brand { flex:1;border:0;padding:0;font-size:28px; }
  .topbar .scope { order:0;margin-left:auto; }
  .treasury-menu-toggle { order:1; }
  .topbar .treasury-navigation { order:2;flex-basis:100%;border-top:1px solid #c8b58f66;padding-top:8px;margin-top:0;justify-content:center; }
}
@media(max-width:600px) {
  .topbar { padding:8px 10px;gap:8px; }
  .topbar .brand { gap:7px; }
  .topbar .brand img { width:34px;height:34px; }
  .treasury-menu-toggle { width:34px;height:34px; }
  .topbar .treasury-navigation { gap:5px;justify-content:space-between; }
  .topbar .treasury-navigation a,.topbar .treasury-navigation button { font-size:14px;padding:7px 8px;gap:5px;min-height:38px; }
  .topbar .treasury-navigation svg { width:18px;height:18px; }
}
@media(max-width:380px) {
  .topbar .treasury-navigation a,.topbar .treasury-navigation button { font-size:13px;padding:7px 8px; }
}
/* Same individual letter sizes and angles as the main website wordmark. */
@font-face{font-family:Cartographer;src:url('/css/tldFont/LostDiamondCartographer-ExtraBold.ttf') format('truetype');font-weight:800;font-display:swap}
.treasury-wordmark{display:block;position:relative;flex:none;width:8.1em;height:1.3em;font-size:1.18em;letter-spacing:normal}
.treasury-lettering{position:absolute;left:0;top:50%;display:inline-flex;align-items:baseline;gap:.13em;white-space:nowrap;transform:translateY(-50%) scaleX(.83);transform-origin:left center}
.treasury-word{display:inline-flex;align-items:baseline}
.treasury-letter{display:inline-block;font-family:Cartographer,Georgia,serif;font-weight:800;font-size:var(--size);line-height:1;letter-spacing:-.055em;color:#151611;transform:translateY(var(--lift)) rotate(var(--turn));transform-origin:50% 85%}
.topbar .brand img{flex-shrink:0}
@media(max-width:600px){.treasury-wordmark{font-size:clamp(20px,5.9vw,29px)}}
