/*
 * jlbet login app - shell styles for the site front
 * Palette: #F4A460 (sand) / #2C2C2C (charcoal base) / #8B7355 (taupe)
 * Mobile-first phone canvas, 320-430px. All classes use the shell1e660- prefix.
 */

:root {
  --shell1e660-ink: #2c2c2c;
  --shell1e660-ink-deep: #191612;
  --shell1e660-ink-soft: #332e28;
  --shell1e660-ink-card: #38322a;
  --shell1e660-line: #4a4136;
  --shell1e660-sand: #f4a460;
  --shell1e660-sand-bright: #ffc38a;
  --shell1e660-sand-dim: #c98d55;
  --shell1e660-taupe: #8b7355;
  --shell1e660-paper: #f3e9db;
  --shell1e660-paper-dim: #cfc2b0;
  --shell1e660-paper-faint: #a2957f;
  --shell1e660-on-sand: #2b1d0e;
  --shell1e660-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell1e660-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
  --shell1e660-r-card: 10px;
  --shell1e660-r-btn: 8px;
  --shell1e660-r-tile: 7px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--shell1e660-ink-deep);
  color: var(--shell1e660-paper);
  font-family: var(--shell1e660-sans);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--shell1e660-sand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--shell1e660-sand);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Phone canvas: centered column, keeps its own width on wide screens ------ */

.shell1e660-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shell1e660-ink);
  box-shadow: 0 0 0 1px rgba(244, 164, 96, 0.08);
}

@media (min-width: 431px) {
  .shell1e660-canvas {
    box-shadow: 0 0 0 1px rgba(244, 164, 96, 0.14), 0 0 44px rgba(0, 0, 0, 0.55);
  }
}

/* Compact brand bar ------------------------------------------------------- */

.shell1e660-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(32, 28, 23, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shell1e660-line);
}

.shell1e660-topbar::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    var(--shell1e660-taupe) 0%,
    var(--shell1e660-sand) 45%,
    var(--shell1e660-taupe) 100%);
  opacity: 0.85;
}

.shell1e660-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 6px 8px;
}

.shell1e660-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--shell1e660-paper);
}

.shell1e660-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(244, 164, 96, 0.35);
  background: var(--shell1e660-ink-soft);
  flex: none;
}

.shell1e660-brandName {
  font-family: var(--shell1e660-mono);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell1e660-brandName b {
  color: var(--shell1e660-sand);
  font-weight: 700;
}

.shell1e660-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Compact icon + text buttons -------------------------------------------- */

.shell1e660-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 9px;
  border-radius: var(--shell1e660-r-btn);
  font-family: var(--shell1e660-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.shell1e660-btn svg {
  width: 13px;
  height: 13px;
  flex: none;
}

@media (max-width: 409px) {
  .shell1e660-bar .shell1e660-btn--ghost span {
    display: none;
  }

  .shell1e660-bar .shell1e660-btn--ghost {
    padding: 0 12px;
  }
}

@media (max-width: 379px) {
  .shell1e660-brandName {
    font-size: 11.5px;
    letter-spacing: 0;
  }

  .shell1e660-brand img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 369px) {
  .shell1e660-bar .shell1e660-btn span {
    display: none;
  }

  .shell1e660-bar .shell1e660-btn {
    padding: 0 12px;
  }
}

.shell1e660-btn--primary {
  background: var(--shell1e660-sand);
  color: var(--shell1e660-on-sand);
  box-shadow: inset 0 -2px 0 rgba(43, 29, 14, 0.28);
}

.shell1e660-btn--primary:active {
  background: var(--shell1e660-sand-bright);
}

.shell1e660-btn--ghost {
  border: 1px solid var(--shell1e660-taupe);
  color: var(--shell1e660-paper);
  background: rgba(59, 51, 42, 0.55);
}

.shell1e660-btn--ghost:active {
  border-color: var(--shell1e660-sand);
  color: var(--shell1e660-sand-bright);
}

.shell1e660-menuBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--shell1e660-r-btn);
  border: 1px solid var(--shell1e660-line);
  color: var(--shell1e660-sand);
  background: rgba(59, 51, 42, 0.55);
  transition: border-color 0.12s ease, color 0.12s ease;
}

.shell1e660-menuBtn:active {
  border-color: var(--shell1e660-sand);
  color: var(--shell1e660-sand-bright);
}

.shell1e660-menuBtn svg {
  width: 18px;
  height: 18px;
}

/* Expandable navigation panel -------------------------------------------- */

.shell1e660-menu {
  background: rgba(37, 32, 27, 0.99);
  border-bottom: 1px solid var(--shell1e660-line);
  padding: 4px 12px 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.shell1e660-menuLabel {
  margin: 12px 2px 4px;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell1e660-taupe);
}

.shell1e660-menuLink {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px 0 12px;
  border-left: 2px solid transparent;
  color: var(--shell1e660-paper-dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.shell1e660-menuLink:active {
  color: var(--shell1e660-sand-bright);
}

.shell1e660-menuLink--on {
  color: var(--shell1e660-sand-bright);
  border-left-color: var(--shell1e660-sand);
  font-weight: 700;
}

/* Main flow ---------------------------------------------------------------- */

.shell1e660-main {
  padding: 68px 12px 96px;
}

.shell1e660-kicker {
  margin: 6px 0 6px;
  font-family: var(--shell1e660-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell1e660-sand-dim);
}

.shell1e660-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--shell1e660-paper);
}

.shell1e660-lede {
  margin: 0 0 12px;
  font-size: 13.8px;
  color: var(--shell1e660-paper-dim);
}

/* Fact strip: summary rows first, details expand below -------------------- */

.shell1e660-facts {
  margin: 0 0 14px;
  background: var(--shell1e660-ink-soft);
  border: 1px solid var(--shell1e660-line);
  border-radius: var(--shell1e660-r-card);
  padding: 10px 12px;
}

.shell1e660-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(139, 115, 85, 0.35);
}

.shell1e660-facts div:last-child {
  border-bottom: 0;
}

.shell1e660-facts dt {
  margin: 0;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell1e660-sand-dim);
  padding-top: 3px;
}

.shell1e660-facts dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--shell1e660-paper);
}

/* Banner carousel ---------------------------------------------------------- */

.shell1e660-carousel {
  margin: 0 0 18px;
}

.shell1e660-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 12px;
  border: 1px solid var(--shell1e660-line);
  background: var(--shell1e660-ink-soft);
}

.shell1e660-slides::-webkit-scrollbar {
  display: none;
}

.shell1e660-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.shell1e660-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.shell1e660-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.shell1e660-dot {
  min-width: 44px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shell1e660-dot::before {
  content: "";
  width: 20px;
  height: 5px;
  border-radius: 3px;
  background: var(--shell1e660-taupe);
  transition: background-color 0.12s ease;
}

.shell1e660-dot--on::before {
  background: var(--shell1e660-sand);
}

/* Game shelves ------------------------------------------------------------- */

.shell1e660-lead {
  margin: 0 0 12px;
  font-size: 13.2px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-shelf {
  margin: 0 0 20px;
}

.shell1e660-shelfHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--shell1e660-line);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.shell1e660-h2 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--shell1e660-sand);
}

.shell1e660-chip {
  flex: none;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--shell1e660-paper-faint);
  border: 1px solid var(--shell1e660-line);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(56, 50, 42, 0.6);
}

.shell1e660-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 6px;
}

.shell1e660-game {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 4px 6px;
  border-radius: var(--shell1e660-r-card);
  border: 1px solid rgba(74, 65, 54, 0.7);
  background: var(--shell1e660-ink-soft);
  text-align: center;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.shell1e660-game:active {
  border-color: var(--shell1e660-sand);
  background: var(--shell1e660-ink-card);
}

.shell1e660-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--shell1e660-r-tile);
  background: var(--shell1e660-ink-deep);
}

.shell1e660-game span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 24px;
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--shell1e660-paper-dim);
}

/* Content blocks ------------------------------------------------------------ */

.shell1e660-mod {
  margin: 0 0 22px;
  padding-top: 4px;
}

.shell1e660-mod .shell1e660-h2 {
  font-size: 16px;
  color: var(--shell1e660-paper);
}

.shell1e660-mod .shell1e660-h2 em {
  font-style: normal;
  color: var(--shell1e660-sand);
}

.shell1e660-p {
  margin: 8px 0;
  font-size: 13.2px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-h3 {
  margin: 14px 0 4px;
  font-family: var(--shell1e660-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--shell1e660-sand-bright);
}

.shell1e660-upd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 6px;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shell1e660-sand-dim);
}

.shell1e660-upd::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shell1e660-sand);
}

/* Steps rail */

.shell1e660-steps {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.shell1e660-steps li {
  position: relative;
  padding: 7px 0 7px 34px;
  border-left: 2px solid var(--shell1e660-taupe);
  margin-left: 10px;
  font-size: 13px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-steps li::before {
  content: attr(data-n);
  position: absolute;
  left: -11px;
  top: 9px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--shell1e660-ink-card);
  border: 1px solid var(--shell1e660-taupe);
  color: var(--shell1e660-sand);
  font-family: var(--shell1e660-mono);
  font-size: 10px;
  font-weight: 700;
}

/* Checklist */

.shell1e660-check {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.shell1e660-check li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 13px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-check li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(244, 164, 96, 0.16);
  color: var(--shell1e660-sand);
  font-family: var(--shell1e660-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Signal rows */

.shell1e660-signals {
  margin: 10px 0;
  border-left: 2px solid var(--shell1e660-sand-dim);
}

.shell1e660-signals div {
  padding: 6px 0 6px 12px;
  font-size: 12.8px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-signals b {
  display: block;
  font-family: var(--shell1e660-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell1e660-sand-dim);
  margin-bottom: 2px;
}

/* Wagering example strip */

.shell1e660-math {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0;
}

.shell1e660-math span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 9px 2px;
  background: var(--shell1e660-ink-soft);
  border: 1px solid var(--shell1e660-line);
  border-radius: var(--shell1e660-r-card);
}

.shell1e660-math b {
  font-family: var(--shell1e660-mono);
  font-size: 14px;
  color: var(--shell1e660-sand);
}

.shell1e660-math small {
  font-family: var(--shell1e660-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell1e660-paper-faint);
}

.shell1e660-math i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--shell1e660-mono);
  color: var(--shell1e660-taupe);
  font-size: 13px;
}

/* Horizontal icon-name bars (style comparison picks) ----------------------- */

.shell1e660-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin: 8px 0;
  padding: 7px 10px 7px 7px;
  text-align: left;
  text-decoration: none;
  background: var(--shell1e660-ink-soft);
  border: 1px solid var(--shell1e660-line);
  border-radius: var(--shell1e660-r-card);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.shell1e660-pick:active {
  border-color: var(--shell1e660-sand);
  background: var(--shell1e660-ink-card);
}

.shell1e660-pick img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--shell1e660-r-tile);
  object-fit: cover;
  background: var(--shell1e660-ink-deep);
}

.shell1e660-pickBody {
  min-width: 0;
  flex: 1;
}

.shell1e660-pickBody b {
  display: block;
  font-size: 13px;
  color: var(--shell1e660-paper);
}

.shell1e660-pickBody small {
  display: block;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--shell1e660-paper-faint);
}

.shell1e660-pickArrow {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244, 164, 96, 0.14);
  color: var(--shell1e660-sand);
  font-family: var(--shell1e660-mono);
  font-size: 13px;
}

/* Extended home footer ------------------------------------------------------ */

.shell1e660-xfoot {
  margin: 26px -12px 0;
  padding: 16px 12px 10px;
  background: #262119;
  border-top: 1px solid var(--shell1e660-line);
}

.shell1e660-xlabel {
  margin: 14px 0 6px;
  font-family: var(--shell1e660-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell1e660-taupe);
}

.shell1e660-xblurb {
  margin: 0 0 4px;
  font-size: 12.8px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-partners {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 10px 0 2px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.shell1e660-partners::-webkit-scrollbar {
  display: none;
}

.shell1e660-partners img {
  width: 64px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(25, 22, 18, 0.8);
  border: 1px solid rgba(74, 65, 54, 0.6);
  padding: 3px 5px;
  flex: none;
}

.shell1e660-xpromo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.shell1e660-xpromo .shell1e660-btn {
  min-height: 46px;
  flex-direction: column;
  gap: 3px;
  padding: 6px 2px;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.shell1e660-xpromo .shell1e660-btn svg {
  width: 15px;
  height: 15px;
}

.shell1e660-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shell1e660-dir a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--shell1e660-paper-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 115, 85, 0.28);
  transition: color 0.12s ease;
}

.shell1e660-dir a:active {
  color: var(--shell1e660-sand-bright);
}

.shell1e660-close {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--shell1e660-line);
  text-align: center;
  font-family: var(--shell1e660-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--shell1e660-paper-faint);
}

/* Common footer line --------------------------------------------------------- */

.shell1e660-foot {
  padding: 12px 12px 14px;
  text-align: center;
  font-family: var(--shell1e660-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--shell1e660-paper-faint);
  border-top: 1px solid rgba(74, 65, 54, 0.55);
}

/* Segmented action bar (fixed bottom navigation) ------------------------------ */

.shell1e660-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: rgba(30, 26, 21, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--shell1e660-line);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
}

.shell1e660-bnav a,
.shell1e660-bnav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px 8px;
  text-decoration: none;
  color: var(--shell1e660-paper-faint);
  transition: color 0.12s ease;
}

.shell1e660-bnavIcon {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(56, 50, 42, 0.85);
  border: 1px solid rgba(74, 65, 54, 0.8);
  color: inherit;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.shell1e660-bnavIcon svg {
  width: 16px;
  height: 16px;
}

.shell1e660-bnav a:active .shell1e660-bnavIcon,
.shell1e660-bnav button:active .shell1e660-bnavIcon {
  transform: scale(0.9);
  background: rgba(244, 164, 96, 0.2);
}

.shell1e660-bnav span {
  font-family: var(--shell1e660-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shell1e660-bnav a:active,
.shell1e660-bnav button:active {
  color: var(--shell1e660-sand-bright);
}

.shell1e660-bnav--on {
  color: var(--shell1e660-sand-bright);
}

.shell1e660-bnav--on .shell1e660-bnavIcon {
  background: rgba(244, 164, 96, 0.18);
  border-color: var(--shell1e660-sand-dim);
  color: var(--shell1e660-sand);
}

.shell1e660-bnav--on::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--shell1e660-sand);
}

/* Compatible reading layouts and touch refinements -------------------------- */

html {
  scroll-padding-top: 76px;
}

.shell1e660-main {
  padding-bottom: 26px;
}

.shell1e660-foot {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.shell1e660-dot {
  min-height: 44px;
}

.shell1e660-game {
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: center;
}

.shell1e660-game span {
  display: block;
  overflow: visible;
  min-height: 26px;
  overflow-wrap: anywhere;
}

.shell1e660-grid > li {
  min-width: 0;
}

.shell1e660-menuLink--on {
  border-left-color: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.shell1e660-bnav a.shell1e660-bnav--on {
  color: var(--shell1e660-sand-bright);
}

.shell1e660-menuLabel,
.shell1e660-xlabel {
  color: var(--shell1e660-paper-dim);
}

.shell1e660-dir a {
  min-height: 44px;
}

.shell1e660-inlineAction {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  margin: 8px 0 2px;
  border: 1px solid var(--shell1e660-taupe);
  border-radius: 6px;
  color: var(--shell1e660-sand-bright);
  background: var(--shell1e660-ink-soft);
  font-size: 12px;
  font-family: var(--shell1e660-mono);
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.shell1e660-inlineAction:active {
  background: var(--shell1e660-ink-card);
  color: var(--shell1e660-paper);
}

.shell1e660-note {
  border-left: 3px solid var(--shell1e660-sand);
  padding: 4px 0 8px 12px;
  margin-bottom: 20px;
}

.shell1e660-folio {
  padding: 14px 0 18px;
  border-top: 1px solid var(--shell1e660-line);
}

.shell1e660-folio .shell1e660-h2,
.shell1e660-workflow .shell1e660-h2 {
  font-size: 17px;
  color: var(--shell1e660-paper);
}

.shell1e660-compare,
.shell1e660-glossary {
  margin: 12px 0;
}

.shell1e660-compare > div,
.shell1e660-glossary > div {
  padding: 10px 0;
  border-bottom: 1px dashed var(--shell1e660-line);
}

.shell1e660-compare dt,
.shell1e660-glossary dt,
.shell1e660-branch dt {
  font-family: var(--shell1e660-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--shell1e660-sand-bright);
}

.shell1e660-compare dd,
.shell1e660-glossary dd,
.shell1e660-branch dd {
  margin: 5px 0 0;
  font-size: 13.2px;
  color: var(--shell1e660-paper-dim);
}

.shell1e660-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.shell1e660-balance > div {
  padding: 0 12px 6px;
  border: 1px solid var(--shell1e660-line);
  border-radius: 7px;
}

.shell1e660-corrections {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.shell1e660-corrections > li {
  padding-left: 12px;
  border-left: 1px solid var(--shell1e660-taupe);
}

.shell1e660-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 20px;
}

.shell1e660-route a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  font-size: 11px;
  font-family: var(--shell1e660-mono);
  border-bottom: 2px solid var(--shell1e660-taupe);
  text-decoration: none;
  background: var(--shell1e660-ink-soft);
}

.shell1e660-workflow {
  margin: 0 0 28px;
}

.shell1e660-task {
  background: var(--shell1e660-ink-soft);
  border: 1px solid var(--shell1e660-line);
  border-radius: 7px;
  margin: 12px 0;
  padding: 0 12px 12px;
}

.shell1e660-branch {
  margin: 14px 0;
}

.shell1e660-branch > div {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 2px solid var(--shell1e660-sand-dim);
  background: var(--shell1e660-ink-soft);
}

.shell1e660-definitions {
  border-top: 1px solid var(--shell1e660-line);
  border-bottom: 1px solid var(--shell1e660-line);
  padding-bottom: 8px;
  margin: 14px 0;
}

.shell1e660-troubleshoot > section {
  border-bottom: 1px dashed var(--shell1e660-taupe);
  padding: 0 0 8px;
}

.shell1e660-finishList {
  padding-left: 24px;
  color: var(--shell1e660-paper-dim);
  font-size: 13.2px;
}

.shell1e660-finishList > li {
  padding: 8px 0 8px 5px;
}

.shell1e660-finishList b {
  color: var(--shell1e660-paper);
}

@media (min-width: 400px) {
  .shell1e660-game {
    flex-direction: row;
    padding: 5px 3px;
    gap: 4px;
    text-align: left;
  }

  .shell1e660-game img {
    width: 28px;
    height: 28px;
    flex: none;
  }

  .shell1e660-game span {
    font-size: 9px;
    min-width: 0;
  }
}

/* Long-name control on the narrowest canvas ---------------------------------- */

@media (max-width: 359px) {
  .shell1e660-facts div {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .shell1e660-game span {
    font-size: 9px;
  }
}
