/* Saltdeep: a salt mine under a dead sea (docs/prison/LORE.md: white and pink salt, teal brine, pale
   blue crystal, rope lifts and timber galleries lit by lanterns). The page itself goes down the
   shaft: dawn over the salt flat, then crust, pink salt, brine, crystal and seabed stone. Panels
   are cut salt set in spruce beams. Block colours after generation/prison's preview.
   Contrast on the salt (about #f1ebe6): ink 13:1, muted 6.5:1, teal links 7:1. */
@font-face { font-family: "Zilla Slab"; src: url("/static/fonts/zilla-slab-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.theme-saltdeep {
  --salt: url("/static/img/hubs/saltdeep/block.png");
  --spruce: url("/static/img/hubs/saltdeep/spruce.png");
  --f-sign: "Zilla Slab", Georgia, serif;
  --teal: #1f7a72; --lamp: #ffd277;

  --bg: #1d1d26; --surface: #2e261f; --surface2: #453424; --line: #6e5236; --line-hi: #9a7a56;
  --text: #fbf4ea; --muted: #dccbb6; --primary: #ffd277; --primary-hi: #ffe3a6; --primary-ink: #2b1a05;
  --hub-accent: #f6efe8;
  --panel-head-text: #f2fffb; --panel-text: #20282c; --panel-muted: #4c5a5d; --panel-link: #0c5b54; --panel-line: #cdbab4;
  --panel-up: #1e5c1a; --panel-down: #8e2418; --slot-bg: #c9b3b0; --panel-card: #fbf7f4; --panel-card2: #e8dbd6; --panel-line-hi: #8a7570; --panel-btn-ink: #fff7ea;

  --vignette: rgba(14, 8, 24, .42);
  --spill: rgba(255, 244, 226, .55);
  --lit: linear-gradient(135deg, rgba(255, 214, 160, .3), rgba(255, 214, 160, 0) 28%, rgba(20, 6, 0, .1) 62%, rgba(20, 6, 0, .46));
  --bevel: inset 3px 3px 0 rgba(255, 220, 170, .34), inset -3px -3px 0 rgba(24, 10, 0, .55);
  --float: 0 2px 3px rgba(20, 8, 20, .5), 0 16px 24px -8px rgba(24, 8, 28, .68), 0 50px 72px -22px rgba(14, 4, 24, .78);
  --knob: #fff4d4 0 1.5px, #9a9aa6 3px, #4a4a54 5px, #17161c 6px, transparent 7px;
}

/* ---------- Down the shaft ---------- */
body.theme-saltdeep { background: linear-gradient(180deg, #4a7d94 0, #8fbcc2 200px, #e4dcd2 420px, #f9c9bd 560px, #f1e4df 700px, #3a3a44 100%); }
.theme-saltdeep .sky .sunup { left: 52%; top: 190px; width: 760px; height: 620px; background: radial-gradient(closest-side, #fffbe8 0, rgba(255, 238, 200, .8) 18%, rgba(255, 196, 176, .35) 52%, transparent); }
.theme-saltdeep .sky .cliff { left: 0; right: 0; background-repeat: repeat-x; image-rendering: pixelated; }
.theme-saltdeep .sky .cliff.far { top: 440px; height: 260px; background-image: url("/static/img/hubs/saltdeep/cliff-far.png"); opacity: .72; }
.theme-saltdeep .sky .cliff.near { top: 540px; height: 220px; background-image: url("/static/img/hubs/saltdeep/cliff-near.png"); background-position: 420px 0; }
.theme-saltdeep .sky .layer { left: 0; right: 0; bottom: 0; image-rendering: pixelated; background-repeat: repeat; background-size: 480px 600px; box-shadow: inset 0 60px 70px -40px rgba(20, 6, 24, .34); }
.theme-saltdeep .sky .layer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 72px; background: var(--lip) repeat-x 0 0 / 480px 72px; filter: drop-shadow(0 -10px 12px rgba(40, 10, 30, .32)); }
.theme-saltdeep .sky .layer::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.theme-saltdeep .sky .crust { top: 740px; background-image: url("/static/img/hubs/saltdeep/crust.png"); --lip: url("/static/img/hubs/saltdeep/crust-lip.png"); --shade: linear-gradient(90deg, rgba(60, 30, 50, .42), rgba(60, 30, 50, .06) 30% 70%, rgba(60, 30, 50, .46)); }
.theme-saltdeep .sky .pink { top: 30%; background-image: url("/static/img/hubs/saltdeep/pink.png"); --lip: url("/static/img/hubs/saltdeep/pink-lip.png"); --shade: radial-gradient(420px 300px at 4% 6%, rgba(255, 190, 90, .4), transparent), linear-gradient(90deg, rgba(40, 8, 24, .55), rgba(40, 8, 24, .2) 30% 70%, rgba(40, 8, 24, .6)); }
.theme-saltdeep .sky .brine { top: 50%; background-image: url("/static/img/hubs/saltdeep/brine.png"); --lip: url("/static/img/hubs/saltdeep/brine-lip.png"); --shade: radial-gradient(460px 320px at 97% 8%, rgba(255, 190, 90, .36), transparent), linear-gradient(90deg, rgba(4, 24, 30, .6), rgba(4, 24, 30, .24) 30% 70%, rgba(4, 24, 30, .64)); }
.theme-saltdeep .sky .crystal { top: 70%; background-image: url("/static/img/hubs/saltdeep/crystal.png"); --lip: url("/static/img/hubs/saltdeep/crystal-lip.png"); --shade: radial-gradient(380px 380px at 3% 30%, rgba(150, 220, 255, .5), transparent), radial-gradient(300px 300px at 98% 62%, rgba(150, 220, 255, .45), transparent), linear-gradient(90deg, rgba(10, 16, 44, .58), rgba(10, 16, 44, .24) 30% 70%, rgba(10, 16, 44, .62)); }
.theme-saltdeep .sky .bed { top: 88%; background-image: url("/static/img/hubs/saltdeep/bed.png"); --lip: url("/static/img/hubs/saltdeep/bed-lip.png"); --shade: linear-gradient(rgba(10, 8, 18, .1), rgba(10, 8, 18, .55)); }

/* ---------- Header and footer: spruce ---------- */
.theme-saltdeep .nav { image-rendering: pixelated; border-bottom: 4px solid #1c1008; background: linear-gradient(180deg, rgba(255, 214, 160, .12), transparent 45%, rgba(10, 4, 0, .55)), var(--spruce) 0 0 / 576px 96px; box-shadow: inset 0 -3px 0 #f1e4df, 0 10px 22px rgba(24, 10, 24, .5); }
.theme-saltdeep .nav > * { image-rendering: auto; }
.theme-saltdeep .servers > summary { background: rgba(20, 12, 8, .7); box-shadow: inset 0 1px 0 rgba(255, 220, 170, .25), 0 3px 6px rgba(0, 0, 0, .45); }
.theme-saltdeep .foot { image-rendering: pixelated; border-top: 4px solid #1c1008; background: linear-gradient(180deg, rgba(10, 4, 0, .4), rgba(10, 4, 0, .68)), var(--spruce) 0 0 / 576px 96px; box-shadow: 0 -16px 34px rgba(0, 0, 0, .5); }

/* ---------- The headframe sign and the lift plates ---------- */
.theme-saltdeep .hubname {
  min-height: 86px; padding: 4px 66px; font-family: var(--f-sign); font-weight: 700; font-size: clamp(2rem, 7.4vw, 3.3rem); letter-spacing: .12em; text-transform: uppercase; color: #14625c; image-rendering: pixelated;
  border: 12px solid transparent; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(222, 164, 160, .35)) padding-box, var(--salt) 0 0 / 128px padding-box, var(--lit) border-box, var(--spruce) 0 0 / 384px 64px border-box;
  box-shadow: inset 4px 5px 10px rgba(120, 60, 60, .35), 0 0 0 2px #1c1008, var(--float);
  text-shadow: 0 -1px 0 #0a3a36, 0 2px 0 #fff, 0 4px 0 rgba(180, 100, 100, .45), 0 8px 10px rgba(60, 20, 30, .35);
}
/* The ropes it hangs by. */
.theme-saltdeep .hubname::before, .theme-saltdeep .hubname::after { content: ""; position: absolute; bottom: calc(100% + 8px); width: 9px; height: 30px; background: repeating-linear-gradient(135deg, #e6cfa0 0 4px, #9a7c4c 4px 7px, #54401f 7px 8px); box-shadow: 5px 4px 5px rgba(30, 14, 10, .5); }
.theme-saltdeep .hubname::before { left: 26px; }
.theme-saltdeep .hubname::after { right: 26px; }
.theme-saltdeep .hubnav { margin-top: 20px; }
.theme-saltdeep .hubnav::before { content: ""; position: absolute; left: 7%; right: 7%; top: 0; height: 16px; border: 2px solid #1c1008; border-radius: 3px; image-rendering: pixelated; background: var(--lit), var(--spruce) 0 0 / 288px 48px; box-shadow: var(--bevel), 0 14px 16px -6px rgba(30, 10, 20, .6); }
.theme-saltdeep .hubnav ul { gap: 18px; padding: 14px 4px 28px; }
.theme-saltdeep .hubnav li { padding-top: 18px; }
.theme-saltdeep .hubnav li::before, .theme-saltdeep .hubnav li::after { content: ""; position: absolute; top: 0; width: 5px; height: 22px; background: repeating-linear-gradient(135deg, #e6cfa0 0 3px, #6e552e 3px 5px); box-shadow: 3px 3px 4px rgba(0, 0, 0, .4); }
.theme-saltdeep .hubnav li::before { left: 18px; }
.theme-saltdeep .hubnav li::after { right: 18px; }
.theme-saltdeep .hubnav a {
  min-width: 116px; min-height: 54px; padding: 0 22px; border: 3px solid; border-color: #6fc2b6 #17564f #0e403b #3d968b; border-radius: 7px; color: #f2fffb; font-family: var(--f-sign); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-shadow: 0 2px 2px #03201d;
  background: radial-gradient(circle at 8px 50%, var(--knob)), radial-gradient(circle at calc(100% - 8px) 50%, var(--knob)), linear-gradient(108deg, transparent 26%, rgba(255, 255, 255, .22) 38%, transparent 52%), linear-gradient(180deg, #2f968a, #1f7a72 50%, #125049);
  box-shadow: inset 0 0 10px rgba(0, 20, 18, .5), 0 0 0 2px #1c1008, 0 6px 0 2px #1c1008, 0 18px 18px -6px rgba(30, 10, 24, .7);
}
.theme-saltdeep .hubnav a:hover { filter: brightness(1.18); }
.theme-saltdeep .hubnav a[aria-current="page"] { color: #2b1503; text-shadow: 0 1px 0 rgba(255, 252, 230, .9); border-color: #fff0b8 #c07c1c #9a5c0c #f0bc4c; background: radial-gradient(circle at 8px 50%, var(--knob)), radial-gradient(circle at calc(100% - 8px) 50%, var(--knob)), radial-gradient(80% 110% at 50% 50%, #fffdf2 0, #ffedb2 34%, #ffc654 72%, #e08d22); box-shadow: inset 0 0 14px rgba(255, 255, 240, .9), 0 0 0 2px #1c1008, 0 6px 0 2px #1c1008, 0 0 28px 10px rgba(255, 190, 90, .85), 0 0 80px 30px rgba(255, 140, 50, .45); }

/* ---------- Coming soon ---------- */
.theme-saltdeep .notice { color: var(--panel-text); border: 8px solid transparent; border-radius: 8px; background: linear-gradient(rgba(255, 252, 250, .6), rgba(250, 232, 228, .6)) padding-box, var(--salt) 0 0 / 128px padding-box, var(--lit) border-box, var(--spruce) 0 0 / 384px 64px border-box; box-shadow: inset 2px 3px 8px rgba(120, 60, 60, .3), 0 0 0 2px #1c1008, var(--float); }
.theme-saltdeep .notice a { color: #0c5b54; }
.theme-saltdeep .notice .badge { color: #fff3df; border-color: #1c1008; background: linear-gradient(180deg, #b45a56, #86302e); box-shadow: inset 0 1px 0 rgba(255, 210, 200, .6), 3px 4px 6px rgba(50, 16, 14, .45); }

/* ---------- Hero ---------- */
.theme-saltdeep .sign .words {
  border: 15px solid transparent; border-radius: 10px; color: var(--panel-text);
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(244, 222, 218, .72)) padding-box, var(--salt) 0 0 / 192px padding-box, radial-gradient(240px 160px at 94% 0, rgba(255, 190, 90, .5), transparent 75%) border-box, var(--lit) border-box, var(--spruce) 0 0 / 576px 96px border-box;
  box-shadow: inset 6px 8px 18px rgba(130, 70, 70, .32), inset -3px -3px 8px #fff, 0 0 0 2px #1c1008, var(--float);
}
/* A lantern hung at the card's corner. */
.theme-saltdeep .sign .words::after { content: ""; position: absolute; top: -4px; right: 30px; width: 30px; height: 40px; border-radius: 7px; border: 3px solid #4a4a54; background: linear-gradient(90deg, transparent 44%, rgba(90, 80, 80, .85) 44% 56%, transparent 56%), radial-gradient(70% 80% at 50% 50%, #fffdf2, #ffd979 55%, #e08d22); box-shadow: 0 -11px 0 -7px #4a4a54, 0 0 18px 7px rgba(255, 200, 96, .85), 0 0 70px 34px rgba(255, 150, 48, .4), 6px 10px 12px rgba(40, 16, 0, .45); }
.theme-saltdeep .sign .kicker { color: #8a3a3a; }
.theme-saltdeep .sign h1 { font-family: var(--f-sign); font-size: clamp(2.8rem, 11vw, 5rem); line-height: 1.05; letter-spacing: .05em; text-transform: uppercase; color: #14625c; text-shadow: 0 2px 0 #fff, 3px 5px 0 rgba(222, 140, 140, .6), 6px 11px 12px rgba(90, 30, 30, .3); }
.theme-saltdeep .sign .live b { color: #0c5b54; }
.theme-saltdeep .sign .sign-art { max-width: 590px; }
.theme-saltdeep .sign-art img { max-height: 660px; filter: drop-shadow(0 10px 8px rgba(60, 24, 40, .34)) drop-shadow(0 44px 34px rgba(60, 24, 44, .5)); }
.theme-saltdeep .sign .sign-art::before { inset: -4% -10% 6%; }

.theme-saltdeep .sign .btn, .theme-saltdeep .panel-actions .btn { border: 2px solid #1c1008; border-radius: 7px; color: #fff3da; text-shadow: 0 2px 2px #1c0d02; font-family: var(--f-sign); font-weight: 700; font-size: 1.08rem; letter-spacing: .03em; image-rendering: pixelated; background: linear-gradient(rgba(28, 12, 2, .25), rgba(28, 12, 2, .25)), var(--lit), var(--spruce) 0 0 / 576px 96px; box-shadow: var(--bevel), 0 5px 0 #1c1008, 5px 16px 18px -4px rgba(24, 8, 24, .6); }
.theme-saltdeep .sign .btn:hover, .theme-saltdeep .panel-actions .btn:hover { color: var(--lamp); box-shadow: var(--bevel), 0 0 0 2px var(--lamp), 0 0 22px rgba(255, 200, 100, .75); }
.theme-saltdeep .sign .btn.p, .theme-saltdeep .panel-actions .btn.p { color: #2b1503; text-shadow: 0 1px 0 rgba(255, 250, 220, .85); background: linear-gradient(108deg, transparent 20%, rgba(255, 255, 244, .38) 34%, transparent 52%), linear-gradient(180deg, #fff0b8, #ffd477 45%, #e2a32e 85%, #f0bc4c); box-shadow: inset 0 1px 0 #fffbe4, inset 0 -3px 4px rgba(110, 64, 0, .55), 0 5px 0 #1c1008, 0 0 24px 5px rgba(255, 190, 84, .65), 5px 18px 20px -4px rgba(24, 8, 24, .55); }

/* ---------- Panels: cut salt in spruce beams ---------- */
.theme-saltdeep .panel {
  padding: 15px; border: 2px solid #1c1008; border-radius: 10px; image-rendering: pixelated;
  background:
    radial-gradient(circle at 9px 9px, var(--knob)), radial-gradient(circle at calc(100% - 9px) 9px, var(--knob)),
    radial-gradient(circle at 9px calc(100% - 9px), var(--knob)), radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--knob)),
    radial-gradient(260px 150px at 8% 0, rgba(255, 180, 90, .45), transparent 72%), var(--lit), var(--spruce) 0 0 / 576px 96px;
  box-shadow: var(--bevel), var(--float);
}
.theme-saltdeep .panel > * { image-rendering: auto; }
/* Salt crusted along the beam's top edge. */
.theme-saltdeep .panel::before { content: ""; position: absolute; left: 22px; right: 22px; top: -9px; height: 15px; pointer-events: none; image-rendering: pixelated; background: url("/static/img/hubs/saltdeep/crust.png") 0 0 / 480px 600px; filter: drop-shadow(0 4px 3px rgba(20, 6, 0, .5));
  clip-path: polygon(0 60%, 3% 30%, 9% 42%, 14% 8%, 22% 34%, 31% 0, 38% 38%, 47% 22%, 55% 40%, 63% 6%, 71% 36%, 80% 18%, 87% 44%, 94% 14%, 100% 55%, 97% 82%, 90% 64%, 83% 96%, 76% 66%, 66% 78%, 58% 62%, 49% 92%, 42% 64%, 33% 76%, 24% 60%, 17% 100%, 10% 68%, 4% 88%); }
.theme-saltdeep .panel-head :is(h1, h2) { padding: 8px 32px; border: 2px solid #1c1008; border-radius: 5px; font-family: var(--f-sign); font-weight: 700; font-size: 1.28rem; letter-spacing: .05em; text-transform: uppercase; color: #f2fffb; text-shadow: 0 2px 1px #03201d;
  background: radial-gradient(circle at 13px 50%, var(--knob)), radial-gradient(circle at calc(100% - 13px) 50%, var(--knob)), linear-gradient(108deg, transparent 22%, rgba(255, 255, 255, .26) 34%, transparent 50%), linear-gradient(180deg, #3aa597, #1f7a72 52%, #12544d);
  box-shadow: inset 0 1px 0 #9ce0d4, inset 0 -2px 3px rgba(0, 30, 26, .7), 0 4px 0 #1d1208, 4px 9px 10px rgba(14, 4, 4, .5); }
.theme-saltdeep .panel-head a { border: 1px solid #1c1008; border-radius: 999px; color: #fff3da; background: linear-gradient(180deg, #5a4432, #231810); box-shadow: inset 0 1px 0 rgba(255, 220, 170, .35), 0 0 0 2px rgba(240, 228, 223, .5), 3px 6px 8px rgba(14, 4, 4, .5); }
.theme-saltdeep .panel-head a:hover { color: var(--lamp); box-shadow: 0 0 0 2px var(--lamp), 0 0 18px rgba(255, 200, 100, .7); }
.theme-saltdeep .panel-body { border-radius: 5px; background: linear-gradient(170deg, rgba(255, 255, 255, .8), rgba(240, 222, 220, .76)), var(--salt) 0 0 / 192px; box-shadow: inset 6px 8px 18px rgba(130, 70, 74, .34), inset -3px -3px 8px #fff, 0 0 0 2px rgba(20, 8, 2, .75), 0 3px 0 2px rgba(255, 220, 190, .35); }
.theme-saltdeep .panel-body h3 { font-family: var(--f-sign); font-weight: 700; font-size: 1.08rem; color: #8a3a3a; }
.theme-saltdeep .hublist > li + li { border-top: 1px solid rgba(150, 100, 100, .34); box-shadow: inset 0 1px 0 #fff; }
.theme-saltdeep .slot { border-radius: 8px; background: linear-gradient(160deg, #a58a8c, #ddc9c6); box-shadow: inset 2px 4px 7px rgba(60, 20, 26, .55), inset -1px -2px 2px #fff, 0 1px 0 #fff; }
.theme-saltdeep .slot img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(2px 3px 1px rgba(40, 10, 10, .5)); }
.theme-saltdeep .place { background: #c9b3b0; box-shadow: inset -3px -4px 7px rgba(70, 30, 30, .4), inset 3px 3px 6px rgba(255, 255, 255, .8), 0 0 0 1px rgba(60, 20, 20, .45), 3px 5px 6px rgba(60, 20, 30, .35); }
.theme-saltdeep .place[data-place="1"] { background: #f7c431; }
.theme-saltdeep .place[data-place="2"] { background: #d6dbe3; }
.theme-saltdeep .place[data-place="3"] { background: #d98d55; }
.theme-saltdeep .hubmap { border: 7px solid transparent; border-radius: 8px; overflow: hidden; background: #d9d6d2 padding-box, var(--lit) border-box, var(--spruce) 0 0 / 576px 96px border-box; box-shadow: 0 0 0 2px #1c1008, 5px 12px 16px rgba(60, 20, 20, .42); }
.theme-saltdeep .hubmap.shore { aspect-ratio: 4 / 3; }
.theme-saltdeep .hubmap.shore img { object-position: 50% 46%; }

@media (max-width: 759.98px) {
  .theme-saltdeep .hubname { min-height: 70px; padding: 2px 40px; border-width: 9px; }
  .theme-saltdeep .hubname::before { left: 18px; }
  .theme-saltdeep .hubname::after { right: 18px; }
  .theme-saltdeep .hubnav::before, .theme-saltdeep .hubnav li::before, .theme-saltdeep .hubnav li::after { display: none; }
  .theme-saltdeep .hubnav ul { gap: 14px 12px; padding: 0 0 24px; }
  .theme-saltdeep .hubnav li { padding-top: 0; }
  .theme-saltdeep .hubnav a { padding: 0 18px; font-size: 1rem; }
}
@media (max-width: 559.98px) {
  .theme-saltdeep .panel { padding: 11px; }
  .theme-saltdeep .panel-head :is(h1, h2) { padding: 7px 25px; font-size: 1.02rem; background-position: -3px 0, 3px 0, 0 0, 0 0; }
  .theme-saltdeep .sign .words { border-width: 9px; }
  .theme-saltdeep .sign .words::after { right: 16px; width: 24px; height: 32px; }
  .theme-saltdeep .sign .kicker { padding-right: 38px; }
}
