/* Greedy Deep — M4 shell. Portrait tabs, desktop rails, settings. */
:root { --s: 2; --ink: #e9dcb6; --dim: #9a907f; --gold: #f2c14e; --panel: #171320; --edge: #2c2437; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #0b0910;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 env(safe-area-inset-bottom);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 60% at 50% 0%, #1b1526 0%, #0b0910 70%);
}
body.booting #col { opacity: 0; }

#game {
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#col {
  width: calc(160px * var(--s));
  max-width: 100vw;
  opacity: 1;
  transition: opacity .2s ease;
}

#left-rail, #right-rail { display: none; }

/* ---------------------------------------------------------- top bar */
#topbar {
  height: calc(28px * var(--s));
  display: flex;
  align-items: center;
  gap: calc(2px * var(--s));
  padding: 0 calc(4px * var(--s));
  background: linear-gradient(#20192c, #17121f);
  border-bottom: 2px solid #0a0810;
  position: relative;
}
.stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; overflow: hidden; }
.stat.right { align-items: flex-end; }
.stat .label { font-size: calc(4px * var(--s)); letter-spacing: .12em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#stat-depth-label { letter-spacing: .05em; }
.stat .value { font-size: calc(7px * var(--s)); font-weight: 700; color: var(--gold); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stat.rate .value { color: #8fd18a; }
.stat.right .value { color: #bfd4e6; }

#mute-btn {
  flex-shrink: 0;
  min-width: 36px; min-height: 44px; border: 0; border-radius: 4px;
  background: rgba(255,255,255,.06); color: var(--dim);
  font-size: calc(6px * var(--s)); cursor: pointer; line-height: 1;
  margin-left: calc(2px * var(--s));
}
#mute-btn.muted { color: #5a3030; }

/* ---------------------------------------------------------- shaft */
#shaftwrap { position: relative; line-height: 0; }
#shaft {
  display: block;
  image-rendering: pixelated;
  touch-action: none;
  cursor: pointer;
  background: #0a0810;
}
#hint {
  position: absolute;
  transform: translate(-100%, -50%);
  white-space: nowrap;
  font-size: calc(5px * var(--s));
  letter-spacing: .1em;
  color: #d8c68f;
  background: rgba(0,0,0,.5);
  padding: calc(2px * var(--s)) calc(4px * var(--s));
  border-radius: 3px;
  line-height: 1.2;
  pointer-events: none;
  animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
#hint.gone { display: none; }

#dbg {
  position: absolute; bottom: 4px; left: 4px;
  font: 10px/1.35 ui-monospace, Menlo, monospace;
  color: #9dffb0; background: rgba(0,0,0,.82);
  padding: 4px 6px; border-radius: 4px; white-space: pre;
  pointer-events: auto; cursor: pointer; z-index: 8;
  transition: max-height .2s ease, opacity .2s ease;
  max-height: 400px; overflow: hidden;
}
#dbg.hidden { display: none; }
#dbg.collapsed {
  max-height: 16px; overflow: hidden;
  opacity: 0.6;
  padding: 2px 6px;
}
#dbg.collapsed::after {
  content: " [+]";
  color: #6dff80;
}

/* ---------------------------------------------------------- roster strip */
#roster {
  display: flex;
  align-items: center;
  gap: calc(2px * var(--s));
  padding: calc(2px * var(--s)) calc(3px * var(--s));
  overflow-x: auto;
  overflow-y: hidden;
  background: #13101c;
  border-top: 1px solid #0a0810;
  min-height: calc(22px * var(--s));
  scrollbar-width: none;
}
#roster::-webkit-scrollbar { display: none; }
.roster-chip {
  display: flex;
  align-items: center;
  gap: calc(2px * var(--s));
  padding: calc(1px * var(--s)) calc(3px * var(--s));
  background: rgba(255,255,255,.04);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}
.chip-icon {
  width: calc(10px * var(--s)); height: calc(10px * var(--s));
  display: flex; align-items: center; justify-content: center;
  font-size: calc(5px * var(--s)); font-weight: 700;
  border-radius: 2px; color: #0a0810;
}
.chip-name { font-size: calc(4px * var(--s)); color: var(--ink); }
.chip-count { font-size: calc(4px * var(--s)); color: var(--gold); font-weight: 700; }
.chip-job { font-size: calc(3.5px * var(--s)); color: var(--dim); }
.roster-add {
  font-size: calc(4px * var(--s)); color: var(--dim);
  padding: calc(1px * var(--s)) calc(3px * var(--s));
  white-space: nowrap; flex-shrink: 0;
}

/* ---------------------------------------------------------- tab bar */
#tabbar {
  display: flex;
  background: #0f0c17;
  border-top: 1px solid #0a0810;
}
.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #17131f;
  color: var(--dim);
  font: inherit;
  font-size: calc(5px * var(--s));
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--gold);
  background: var(--panel);
  border-bottom-color: var(--gold);
}

/* ---------------------------------------------------------- tab panels */
#tabpanel {
  background: var(--panel);
  border-top: 1px solid #0a0810;
  max-height: calc(80px * var(--s));
  overflow-y: auto;
}
.tab { position: relative; }
.tab.has-buy::after {
  content: ""; position: absolute; top: calc(3px * var(--s)); right: calc(6px * var(--s));
  width: calc(2.5px * var(--s)); height: calc(2.5px * var(--s)); border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 calc(2px * var(--s)) var(--gold);
}
.tab-section { display: none; }
.tab-section.active { display: block; }
.tab-head { display: none; }


/* ---------------------------------------------------------- buy quantity toggle */
#qty-bar {
  display: flex;
  background: #0f0c17;
  border-bottom: 1px solid #0a0810;
  padding: 2px;
  gap: 2px;
}
.qty-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #1a1528;
  color: var(--dim);
  font: inherit;
  font-size: calc(4.5px * var(--s));
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border-radius: 3px;
}
.qty-btn.active {
  background: #2d2440;
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* ---------------------------------------------------------- shop rows */
.shop-rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: calc(3px * var(--s));
  padding: calc(3px * var(--s)) calc(4px * var(--s));
  border-top: 1px solid var(--edge);
  min-height: 48px;
}
.row-main { flex: 1; min-width: 0; }
/* The styled tooltip is desktop-rail only (shown by JS on hover at >= 900 px). Hidden at every
   width by default so it never renders inline in a phone or tablet shop row. */
.row-tip { display: none; }
.row-name { font-size: calc(6px * var(--s)); font-weight: 700; display: flex; align-items: center; gap: calc(2px * var(--s)); }
.row-sub { font-size: calc(4.5px * var(--s)); color: var(--dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-effect { font-size: calc(3.5px * var(--s)); color: #8d85a0; font-style: italic; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-effect:empty { display: none; }
.owned { color: var(--gold); font-weight: 700; }
.tag {
  font-size: calc(4px * var(--s)); letter-spacing: .08em; padding: 1px 4px; border-radius: 3px;
  background: #2d2440; color: #b9a7d8;
}
.tag.crew { background: #2a3a2c; color: #9fd0a2; }

.buy {
  font: inherit; font-weight: 700;
  min-width: 72px; min-height: 44px;
  padding: 0 calc(4px * var(--s));
  font-size: calc(6px * var(--s));
  color: #1a1410; background: linear-gradient(#f4cf6a, #d8a52f);
  border: 0; border-bottom: 3px solid #8a6414; border-radius: 6px;
  cursor: pointer; touch-action: manipulation;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.buy:active { transform: translateY(1px); border-bottom-width: 2px; }
.buy .price { white-space: nowrap; }
.buy .unit { font-size: .75em; opacity: .7; margin-left: 2px; }
.buy .eta { font-size: calc(4px * var(--s)); font-weight: 400; opacity: .8; margin-top: 1px; }
/* Three mutually exclusive row states: LOCKED, UNAFFORDABLE, BUYABLE */
/* LOCKED: depth-gated, grey, shows unlock requirement */
.row.locked { opacity: 0.5; }
.row.locked .buy { background: #1e1a28; color: #6d6580; border-bottom-color: #131020; cursor: default; }
.row.locked .buy .eta { color: #7a7290; opacity: 1; font-size: calc(3.5px * var(--s)); }
.row.locked .row-name { color: #7a7290; }
.row.locked .row-sub { color: #5a5470; }
/* UNAFFORDABLE: unlocked but too expensive, muted price, ETA shown */
.row.unaffordable .buy { background: #2a2435; color: #a49eb4; border-bottom-color: #1a1522; cursor: default; }
.row.unaffordable .buy .eta { color: #b0a7cc; opacity: 1; }
.row.unaffordable .row-name { color: #a8a1b6; }
/* BUYABLE: the ONLY state with the gold highlight */
.row.buyable .buy { background: linear-gradient(#f4cf6a, #d8a52f); color: #1a1410; border-bottom-color: #8a6414; cursor: pointer; }
.row.buyable .buy:active { transform: translateY(1px); border-bottom-width: 2px; }
/* MAXED: at level cap, no further purchases */
.row.maxed .buy { background: #1a1828; color: #5a5470; border-bottom-color: #131020; cursor: default; }
.row.maxed .row-name { color: #7a7290; }

.row.bought { animation: flashrow .35s ease-out; }
@keyframes flashrow { from { background: #33482f; } to { background: transparent; } }
.row.nope { animation: shake .25s ease-out; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ---------------------------------------------------------- M2: intro, log, panels */
#bandintro {
  position: absolute; left: 50%; top: calc(16px * var(--s));
  transform: translateX(-50%);
  text-align: center; pointer-events: none;
  background: rgba(8,6,14,.78);
  border: 1px solid #3a3050;
  border-radius: 4px;
  padding: calc(3px * var(--s)) calc(6px * var(--s));
  animation: introfade 4.5s ease-out forwards;
  max-width: calc(140px * var(--s));
  z-index: 3;
}
#bandintro b { display: block; font-size: calc(7px * var(--s)); color: var(--gold); letter-spacing: .06em; }
#bandintro span { display: block; font-size: calc(5px * var(--s)); color: #c3b9d4; margin-top: 2px; line-height: 1.35; }
#bandintro.hidden { display: none; }
@keyframes introfade { 0% { opacity: 0; transform: translate(-50%, -6px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* M5: active pickup buffs, top-right of the shaft under the depth readout */
#buffs {
  position: absolute; right: calc(9px * var(--s)); top: calc(14px * var(--s));
  display: flex; flex-direction: column; align-items: flex-end; gap: calc(1px * var(--s));
  pointer-events: none; z-index: 3; line-height: 1.2;
}
#buffs.hidden { display: none; }
.buff {
  display: flex; align-items: baseline; gap: calc(2px * var(--s));
  background: rgba(8,6,14,.82); border: 1px solid #6b5420; border-radius: 3px;
  padding: calc(1px * var(--s)) calc(3px * var(--s));
  font-size: calc(4.5px * var(--s)); letter-spacing: .06em; color: var(--gold);
}
.buff b { font-weight: 700; }
.buff span { color: #e9dcb6; font-variant-numeric: tabular-nums; }
.buff-frenzy { border-color: #3c6a86; color: #9fdcff; }

#log {
  background: #100d18;
  padding: calc(2px * var(--s)) calc(4px * var(--s));
  min-height: calc(14px * var(--s));
  font-size: calc(4.5px * var(--s));
  line-height: 1.5;
  color: #8d85a0;
  max-height: calc(40px * var(--s));
  overflow: hidden;
}
.logline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logline.hazard { color: #ec9a80; }
.logline.boon { color: #9fe8a4; }
.logline.band { color: var(--gold); }
.logline.hire { color: #b9a7d8; }

.overlay {
  position: absolute; inset: 0;
  background: rgba(6,4,10,.82);
  display: flex; align-items: center; justify-content: center;
  padding: calc(6px * var(--s));
  z-index: 5;
}
.overlay.hidden { display: none; }
/* Phones: a modal covers the whole screen, not just the shaft, which shrinks to make room
   for the shop and would otherwise squeeze Settings until CLOSE sits on RESET. */
@media (max-width: 599px) {
  .overlay { position: fixed; z-index: 40; }
}
.panel-card {
  background: #171320; border: 2px solid #3a3050; border-radius: 6px;
  width: 100%; padding: calc(5px * var(--s)); text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-height: 90%; overflow-y: auto;
  display: flex; flex-direction: column;
}
.panel-card .panel-head {
  font-size: calc(6px * var(--s)); letter-spacing: .1em; color: var(--gold);
  padding: 0 0 calc(3px * var(--s)); border-bottom: 1px solid var(--edge); margin-bottom: calc(3px * var(--s));
  flex-shrink: 0;
}
.panel-card .panel-body { font-size: calc(5px * var(--s)); color: #c3b9d4; line-height: 1.5; }
.panel-card .panel-body p { margin: 0 0 calc(3px * var(--s)); }
.wb-row { display: flex; justify-content: space-between; gap: calc(4px * var(--s)); padding: 1px 0; }
.wb-row b { color: var(--ink); }
.wb-row .cap { color: #ec9a80; font-style: normal; font-size: .85em; }
.panel-card .flavor { color: #8d85a0; margin-top: calc(3px * var(--s)); }
.panel-card .score {
  margin-top: calc(8px * var(--s)); padding-top: calc(5px * var(--s)); border-top: 1px solid #2c2540; text-align: center;
  font-size: calc(8px * var(--s)); font-weight: 700; color: var(--gold); letter-spacing: .08em;
  margin-bottom: calc(3px * var(--s));
}
.panel-btn {
  display: block; width: 100%; margin-top: calc(4px * var(--s));
  min-height: 44px; font: inherit; font-weight: 700; font-size: calc(6px * var(--s));
  color: #1a1410; background: linear-gradient(#f4cf6a, #d8a52f);
  border: 0; border-bottom: 3px solid #8a6414; border-radius: 6px; cursor: pointer;
  flex-shrink: 0;
}
.panel-btn:active { transform: translateY(1px); border-bottom-width: 2px; }

/* ---------------------------------------------------------- settings panel */
.settings-body { display: flex; flex-direction: column; gap: calc(3px * var(--s)); overflow-y: auto; flex-shrink: 1; min-height: 0; }
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(2px * var(--s)) 0;
  font-size: calc(5px * var(--s));
}
.settings-row button {
  min-height: 36px; min-width: 60px; padding: 4px 12px;
  font: inherit; font-weight: 700; font-size: calc(5px * var(--s));
  border: 1px solid #3a3050; border-radius: 4px;
  background: #1e1930; color: var(--ink); cursor: pointer;
}
.settings-row.danger button { color: #ec9a80; border-color: #5a3030; }
.danger-btn { background: #3a1818 !important; color: #ec9a80 !important; border-color: #5a3030 !important; }
/* Settings sub-parts (export box, import box + confirm, erase confirm) start hidden and
   open on demand; without this rule they all showed at once. */
.settings-body .hidden { display: none; }
#export-area, #import-area {
  width: 100%; font: inherit; font-size: calc(4px * var(--s));
  background: #0f0c17; color: var(--ink); border: 1px solid #3a3050;
  border-radius: 4px; padding: calc(2px * var(--s)); resize: none;
}

/* "next bands" readout */
#nextbands {
  background: #120f1c;
  padding: calc(2px * var(--s)) calc(4px * var(--s));
  font-size: calc(4.5px * var(--s));
  line-height: 1.6;
  color: #9a90b8;
}
#nextbands:empty { display: none; }
.nb { display: flex; align-items: baseline; gap: calc(3px * var(--s)); }
.nb-k { color: #6f6688; letter-spacing: .12em; min-width: calc(14px * var(--s)); }
.nb-n { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-d { color: var(--gold); font-weight: 700; }

/* ---------------------------------------------------------- desktop rails */
@media (min-width: 900px) {
  body {
    align-items: center; min-height: 100vh;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(27,21,38,.85) 0%, rgba(11,9,16,.92) 70%),
      url("assets/title.webp") center center / cover no-repeat;
    background-attachment: fixed;
  }
  #game {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
  #left-rail {
    display: block;
    width: 240px; /* JS overrides with fluid width */
    max-height: 100vh;
    overflow-y: auto;
    background: var(--panel);
    border-right: 2px solid #0a0810;
    scrollbar-width: thin;
  }
  #right-rail {
    display: block;
    width: 300px; /* JS overrides with fluid width */
    max-height: 100vh;
    overflow-y: auto;
    background: var(--panel);
    border-left: 2px solid #0a0810;
    scrollbar-width: thin;
  }
  #col {
    box-shadow: 0 0 0 2px #0a0810, 0 24px 60px rgba(0,0,0,.6);
    border-radius: 0;
    overflow: hidden;
  }
  /* On desktop: hide portrait roster, tab bar, tab panel */
  #roster, #tabbar, #tabpanel { display: none !important; }
  /* Rail roster cards */
  .rail-card {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-bottom: 1px solid var(--edge);
  }
  .rail-card-icon {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; border-radius: 4px; color: #0a0810; flex-shrink: 0;
  }
  .rail-card-info { flex: 1; min-width: 0; }
  .rail-card-name { font-size: 13px; font-weight: 700; color: var(--ink); }
  .rail-card-sub { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Right rail: show all tab sections + headings */
  .tab-head.desktop-only { display: none; }
  .rail-head {
    font-size: 11px; letter-spacing: .18em; color: var(--dim);
    padding: 10px 12px 6px; border-bottom: 1px solid var(--edge);
  }
  .rail-section { border-bottom: 2px solid #0a0810; }
  .rail-section .row {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .rail-section .row-name { font-size: 13px; }
  .rail-section .row-sub { font-size: 11px; }
  .rail-section .row-effect { font-size: 10px; }
  /* Styled hover tooltip for desktop rail rows — JS-positioned fixed to escape rail overflow */
  .row-tip {
    display: none; position: fixed; z-index: 30;
    background: #1e1930; border: 1px solid #3a3050; border-radius: 4px;
    padding: 8px 10px; min-width: 200px; max-width: 280px;
    font-size: 12px; line-height: 1.5; color: var(--ink);
    white-space: normal; box-shadow: 0 4px 16px rgba(0,0,0,.5);
    pointer-events: none;
  }
  .rail-section .buy { font-size: 13px; min-height: 38px; }
  .rail-section .buy .eta { font-size: 10px; }
  .rail-log {
    padding: 8px 12px;
    font-size: 11px;
    color: #8d85a0;
    line-height: 1.5;
  }
  .rail-log .logline { font-size: 11px; }
  /* Qty-bar inside the right rail */
  #right-rail #qty-bar {
    display: flex;
    padding: 4px 8px;
    gap: 4px;
    background: #0f0c17;
    border-bottom: 2px solid #0a0810;
  }
  #right-rail .qty-btn {
    min-height: 36px;
    font-size: 12px;
  }
}

/* Between phone and rails: scale column, show side art */
@media (min-width: 600px) and (max-width: 899px) {
  body {
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(27,21,38,.85) 0%, rgba(11,9,16,.92) 70%),
      url("assets/title.webp") center center / cover no-repeat;
    background-attachment: fixed;
  }
}

/* ---------------------------------------------------------- M3 splash */
#splash {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #16111f;
  opacity: 1; transition: opacity .45s ease;
}
#splash::before {
  content: ""; position: absolute; inset: -6%;
  background: #16111f url("assets/title.webp") center center / cover no-repeat;
  filter: blur(28px) brightness(.34) saturate(.75); transform: scale(1.06);
  pointer-events: none;
}
#splash::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 45%, rgba(0,0,0,0) 0%, rgba(8,6,12,.72) 100%);
  pointer-events: none;
}
#splash.gone { opacity: 0; pointer-events: none; }
#splash.off { display: none; }
#splash-card {
  position: relative;
  z-index: 1;
  width: min(calc(160px * var(--s) * 1.6), 92vw, calc(100vh * 0.47));
  height: min(96vh, calc(234px * var(--s) * 1.6));
  overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(16px * var(--s)) 0 0;
  box-shadow: 0 0 0 2px #0a0810, 0 calc(2px * var(--s)) calc(8px * var(--s)) rgba(0,0,0,.6);
}
#splash-art { position: absolute; inset: 0; background: #07060c url("assets/title.webp") center center / cover no-repeat; }
#splash-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,6,12,.62) 0%, rgba(7,6,12,.2) 16%, rgba(7,6,12,0) 38%, rgba(7,6,12,0) 60%, rgba(7,6,12,.32) 80%, rgba(7,6,12,.9) 100%);
}
#splash-inner {
  position: relative; width: 100%;
  padding: 0 calc(6px * var(--s)) calc(10px * var(--s)); text-align: center;
}
#splash-logo { display: block; margin: 0 auto calc(4px * var(--s)); image-rendering: pixelated; }
#splash-title {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 900; letter-spacing: .14em; text-indent: .14em;
  line-height: 0.95; text-align: center; text-transform: uppercase;
  font-size: min(14vw, calc(28px * var(--s)));
  color: #f7dc95;
  text-shadow:
    0 0 2px rgba(0,0,0,.95),
    0 0 10px rgba(0,0,0,.85),
    0 0 22px rgba(0,0,0,.6),
    0 2px 0 #d09a2e,
    0 4px 0 #6b4e1a,
    0 5px 14px rgba(0,0,0,.85);
  background: none;
  padding: 0;
  margin: 0 auto;
  max-width: 96%;
  position: relative; z-index: 1;
  -webkit-text-stroke: 1px rgba(18,11,3,.9);
}
#splash-sub {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: calc(5px * var(--s)); line-height: 1.5; color: #cbbd97;
  letter-spacing: .04em; margin-bottom: calc(7px * var(--s)); text-shadow: 0 1px 2px #000;
}
#descend {
  appearance: none; display: block; width: 100%; min-height: 48px;
  border: 2px solid #f2c14e; border-radius: 2px;
  background: linear-gradient(#3a2d16, #20180c); color: #f7dc95;
  font: 700 calc(8px * var(--s))/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .28em; text-indent: .28em; cursor: pointer;
  box-shadow: 0 0 calc(4px * var(--s)) rgba(242,193,78,.25);
}
#descend:hover { background: linear-gradient(#4a3a1d, #2a2010); }
#descend:active { transform: translateY(1px); }
